configure 988 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.63.
  4. #
  5. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  6. # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9. ## --------------------- ##
  10. ## M4sh Initialization. ##
  11. ## --------------------- ##
  12. # Be more Bourne compatible
  13. DUALCASE=1; export DUALCASE # for MKS sh
  14. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  15. emulate sh
  16. NULLCMD=:
  17. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  18. # is contrary to our usage. Disable this feature.
  19. alias -g '${1+"$@"}'='"$@"'
  20. setopt NO_GLOB_SUBST
  21. else
  22. case `(set -o) 2>/dev/null` in
  23. *posix*) set -o posix ;;
  24. esac
  25. fi
  26. # PATH needs CR
  27. # Avoid depending upon Character Ranges.
  28. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  29. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  30. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  31. as_cr_digits='0123456789'
  32. as_cr_alnum=$as_cr_Letters$as_cr_digits
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  41. as_echo='printf %s\n'
  42. as_echo_n='printf %s'
  43. else
  44. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  45. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  46. as_echo_n='/usr/ucb/echo -n'
  47. else
  48. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  49. as_echo_n_body='eval
  50. arg=$1;
  51. case $arg in
  52. *"$as_nl"*)
  53. expr "X$arg" : "X\\(.*\\)$as_nl";
  54. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  55. esac;
  56. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  57. '
  58. export as_echo_n_body
  59. as_echo_n='sh -c $as_echo_n_body as_echo'
  60. fi
  61. export as_echo_body
  62. as_echo='sh -c $as_echo_body as_echo'
  63. fi
  64. # The user is always right.
  65. if test "${PATH_SEPARATOR+set}" != set; then
  66. PATH_SEPARATOR=:
  67. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  68. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  69. PATH_SEPARATOR=';'
  70. }
  71. fi
  72. # Support unset when possible.
  73. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  74. as_unset=unset
  75. else
  76. as_unset=false
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. case $0 in
  86. *[\\/]* ) as_myself=$0 ;;
  87. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  88. for as_dir in $PATH
  89. do
  90. IFS=$as_save_IFS
  91. test -z "$as_dir" && as_dir=.
  92. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  93. done
  94. IFS=$as_save_IFS
  95. ;;
  96. esac
  97. # We did not find ourselves, most probably we were run as `sh COMMAND'
  98. # in which case we are not to be found in the path.
  99. if test "x$as_myself" = x; then
  100. as_myself=$0
  101. fi
  102. if test ! -f "$as_myself"; then
  103. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  104. { (exit 1); exit 1; }
  105. fi
  106. # Work around bugs in pre-3.0 UWIN ksh.
  107. for as_var in ENV MAIL MAILPATH
  108. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  109. done
  110. PS1='$ '
  111. PS2='> '
  112. PS4='+ '
  113. # NLS nuisances.
  114. LC_ALL=C
  115. export LC_ALL
  116. LANGUAGE=C
  117. export LANGUAGE
  118. # Required to use basename.
  119. if expr a : '\(a\)' >/dev/null 2>&1 &&
  120. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  121. as_expr=expr
  122. else
  123. as_expr=false
  124. fi
  125. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  126. as_basename=basename
  127. else
  128. as_basename=false
  129. fi
  130. # Name of the executable.
  131. as_me=`$as_basename -- "$0" ||
  132. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  133. X"$0" : 'X\(//\)$' \| \
  134. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  135. $as_echo X/"$0" |
  136. sed '/^.*\/\([^/][^/]*\)\/*$/{
  137. s//\1/
  138. q
  139. }
  140. /^X\/\(\/\/\)$/{
  141. s//\1/
  142. q
  143. }
  144. /^X\/\(\/\).*/{
  145. s//\1/
  146. q
  147. }
  148. s/.*/./; q'`
  149. # CDPATH.
  150. $as_unset CDPATH
  151. if test "x$CONFIG_SHELL" = x; then
  152. if (eval ":") 2>/dev/null; then
  153. as_have_required=yes
  154. else
  155. as_have_required=no
  156. fi
  157. if test $as_have_required = yes && (eval ":
  158. (as_func_return () {
  159. (exit \$1)
  160. }
  161. as_func_success () {
  162. as_func_return 0
  163. }
  164. as_func_failure () {
  165. as_func_return 1
  166. }
  167. as_func_ret_success () {
  168. return 0
  169. }
  170. as_func_ret_failure () {
  171. return 1
  172. }
  173. exitcode=0
  174. if as_func_success; then
  175. :
  176. else
  177. exitcode=1
  178. echo as_func_success failed.
  179. fi
  180. if as_func_failure; then
  181. exitcode=1
  182. echo as_func_failure succeeded.
  183. fi
  184. if as_func_ret_success; then
  185. :
  186. else
  187. exitcode=1
  188. echo as_func_ret_success failed.
  189. fi
  190. if as_func_ret_failure; then
  191. exitcode=1
  192. echo as_func_ret_failure succeeded.
  193. fi
  194. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  195. :
  196. else
  197. exitcode=1
  198. echo positional parameters were not saved.
  199. fi
  200. test \$exitcode = 0) || { (exit 1); exit 1; }
  201. (
  202. as_lineno_1=\$LINENO
  203. as_lineno_2=\$LINENO
  204. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  205. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  206. ") 2> /dev/null; then
  207. :
  208. else
  209. as_candidate_shells=
  210. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  211. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  212. do
  213. IFS=$as_save_IFS
  214. test -z "$as_dir" && as_dir=.
  215. case $as_dir in
  216. /*)
  217. for as_base in sh bash ksh sh5; do
  218. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  219. done;;
  220. esac
  221. done
  222. IFS=$as_save_IFS
  223. for as_shell in $as_candidate_shells $SHELL; do
  224. # Try only shells that exist, to save several forks.
  225. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  226. { ("$as_shell") 2> /dev/null <<\_ASEOF
  227. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  228. emulate sh
  229. NULLCMD=:
  230. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  231. # is contrary to our usage. Disable this feature.
  232. alias -g '${1+"$@"}'='"$@"'
  233. setopt NO_GLOB_SUBST
  234. else
  235. case `(set -o) 2>/dev/null` in
  236. *posix*) set -o posix ;;
  237. esac
  238. fi
  239. :
  240. _ASEOF
  241. }; then
  242. CONFIG_SHELL=$as_shell
  243. as_have_required=yes
  244. if { "$as_shell" 2> /dev/null <<\_ASEOF
  245. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  246. emulate sh
  247. NULLCMD=:
  248. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  249. # is contrary to our usage. Disable this feature.
  250. alias -g '${1+"$@"}'='"$@"'
  251. setopt NO_GLOB_SUBST
  252. else
  253. case `(set -o) 2>/dev/null` in
  254. *posix*) set -o posix ;;
  255. esac
  256. fi
  257. :
  258. (as_func_return () {
  259. (exit $1)
  260. }
  261. as_func_success () {
  262. as_func_return 0
  263. }
  264. as_func_failure () {
  265. as_func_return 1
  266. }
  267. as_func_ret_success () {
  268. return 0
  269. }
  270. as_func_ret_failure () {
  271. return 1
  272. }
  273. exitcode=0
  274. if as_func_success; then
  275. :
  276. else
  277. exitcode=1
  278. echo as_func_success failed.
  279. fi
  280. if as_func_failure; then
  281. exitcode=1
  282. echo as_func_failure succeeded.
  283. fi
  284. if as_func_ret_success; then
  285. :
  286. else
  287. exitcode=1
  288. echo as_func_ret_success failed.
  289. fi
  290. if as_func_ret_failure; then
  291. exitcode=1
  292. echo as_func_ret_failure succeeded.
  293. fi
  294. if ( set x; as_func_ret_success y && test x = "$1" ); then
  295. :
  296. else
  297. exitcode=1
  298. echo positional parameters were not saved.
  299. fi
  300. test $exitcode = 0) || { (exit 1); exit 1; }
  301. (
  302. as_lineno_1=$LINENO
  303. as_lineno_2=$LINENO
  304. test "x$as_lineno_1" != "x$as_lineno_2" &&
  305. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  306. _ASEOF
  307. }; then
  308. break
  309. fi
  310. fi
  311. done
  312. if test "x$CONFIG_SHELL" != x; then
  313. for as_var in BASH_ENV ENV
  314. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  315. done
  316. export CONFIG_SHELL
  317. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  318. fi
  319. if test $as_have_required = no; then
  320. echo This script requires a shell more modern than all the
  321. echo shells that I found on your system. Please install a
  322. echo modern shell, or manually run the script under such a
  323. echo shell if you do have one.
  324. { (exit 1); exit 1; }
  325. fi
  326. fi
  327. fi
  328. (eval "as_func_return () {
  329. (exit \$1)
  330. }
  331. as_func_success () {
  332. as_func_return 0
  333. }
  334. as_func_failure () {
  335. as_func_return 1
  336. }
  337. as_func_ret_success () {
  338. return 0
  339. }
  340. as_func_ret_failure () {
  341. return 1
  342. }
  343. exitcode=0
  344. if as_func_success; then
  345. :
  346. else
  347. exitcode=1
  348. echo as_func_success failed.
  349. fi
  350. if as_func_failure; then
  351. exitcode=1
  352. echo as_func_failure succeeded.
  353. fi
  354. if as_func_ret_success; then
  355. :
  356. else
  357. exitcode=1
  358. echo as_func_ret_success failed.
  359. fi
  360. if as_func_ret_failure; then
  361. exitcode=1
  362. echo as_func_ret_failure succeeded.
  363. fi
  364. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  365. :
  366. else
  367. exitcode=1
  368. echo positional parameters were not saved.
  369. fi
  370. test \$exitcode = 0") || {
  371. echo No shell found that supports shell functions.
  372. echo Please tell bug-autoconf@gnu.org about your system,
  373. echo including any error possibly output before this message.
  374. echo This can help us improve future autoconf versions.
  375. echo Configuration will now proceed without shell functions.
  376. }
  377. as_lineno_1=$LINENO
  378. as_lineno_2=$LINENO
  379. test "x$as_lineno_1" != "x$as_lineno_2" &&
  380. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  381. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  382. # uniformly replaced by the line number. The first 'sed' inserts a
  383. # line-number line after each line using $LINENO; the second 'sed'
  384. # does the real work. The second script uses 'N' to pair each
  385. # line-number line with the line containing $LINENO, and appends
  386. # trailing '-' during substitution so that $LINENO is not a special
  387. # case at line end.
  388. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  389. # scripts with optimization help from Paolo Bonzini. Blame Lee
  390. # E. McMahon (1931-1989) for sed's syntax. :-)
  391. sed -n '
  392. p
  393. /[$]LINENO/=
  394. ' <$as_myself |
  395. sed '
  396. s/[$]LINENO.*/&-/
  397. t lineno
  398. b
  399. :lineno
  400. N
  401. :loop
  402. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  403. t loop
  404. s/-\n.*//
  405. ' >$as_me.lineno &&
  406. chmod +x "$as_me.lineno" ||
  407. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  408. { (exit 1); exit 1; }; }
  409. # Don't try to exec as it changes $[0], causing all sort of problems
  410. # (the dirname of $[0] is not the place where we might find the
  411. # original and so on. Autoconf is especially sensitive to this).
  412. . "./$as_me.lineno"
  413. # Exit status is that of the last command.
  414. exit
  415. }
  416. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  417. as_dirname=dirname
  418. else
  419. as_dirname=false
  420. fi
  421. ECHO_C= ECHO_N= ECHO_T=
  422. case `echo -n x` in
  423. -n*)
  424. case `echo 'x\c'` in
  425. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  426. *) ECHO_C='\c';;
  427. esac;;
  428. *)
  429. ECHO_N='-n';;
  430. esac
  431. if expr a : '\(a\)' >/dev/null 2>&1 &&
  432. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  433. as_expr=expr
  434. else
  435. as_expr=false
  436. fi
  437. rm -f conf$$ conf$$.exe conf$$.file
  438. if test -d conf$$.dir; then
  439. rm -f conf$$.dir/conf$$.file
  440. else
  441. rm -f conf$$.dir
  442. mkdir conf$$.dir 2>/dev/null
  443. fi
  444. if (echo >conf$$.file) 2>/dev/null; then
  445. if ln -s conf$$.file conf$$ 2>/dev/null; then
  446. as_ln_s='ln -s'
  447. # ... but there are two gotchas:
  448. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  449. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  450. # In both cases, we have to default to `cp -p'.
  451. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  452. as_ln_s='cp -p'
  453. elif ln conf$$.file conf$$ 2>/dev/null; then
  454. as_ln_s=ln
  455. else
  456. as_ln_s='cp -p'
  457. fi
  458. else
  459. as_ln_s='cp -p'
  460. fi
  461. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  462. rmdir conf$$.dir 2>/dev/null
  463. if mkdir -p . 2>/dev/null; then
  464. as_mkdir_p=:
  465. else
  466. test -d ./-p && rmdir ./-p
  467. as_mkdir_p=false
  468. fi
  469. if test -x / >/dev/null 2>&1; then
  470. as_test_x='test -x'
  471. else
  472. if ls -dL / >/dev/null 2>&1; then
  473. as_ls_L_option=L
  474. else
  475. as_ls_L_option=
  476. fi
  477. as_test_x='
  478. eval sh -c '\''
  479. if test -d "$1"; then
  480. test -d "$1/.";
  481. else
  482. case $1 in
  483. -*)set "./$1";;
  484. esac;
  485. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  486. ???[sx]*):;;*)false;;esac;fi
  487. '\'' sh
  488. '
  489. fi
  490. as_executable_p=$as_test_x
  491. # Sed expression to map a string onto a valid CPP name.
  492. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  493. # Sed expression to map a string onto a valid variable name.
  494. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  495. # Check that we are running under the correct shell.
  496. SHELL=${CONFIG_SHELL-/bin/sh}
  497. case X$lt_ECHO in
  498. X*--fallback-echo)
  499. # Remove one level of quotation (which was required for Make).
  500. ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  501. ;;
  502. esac
  503. ECHO=${lt_ECHO-echo}
  504. if test "X$1" = X--no-reexec; then
  505. # Discard the --no-reexec flag, and continue.
  506. shift
  507. elif test "X$1" = X--fallback-echo; then
  508. # Avoid inline document here, it may be left over
  509. :
  510. elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  511. # Yippee, $ECHO works!
  512. :
  513. else
  514. # Restart under the correct shell.
  515. exec $SHELL "$0" --no-reexec ${1+"$@"}
  516. fi
  517. if test "X$1" = X--fallback-echo; then
  518. # used as fallback echo
  519. shift
  520. cat <<_LT_EOF
  521. $*
  522. _LT_EOF
  523. exit 0
  524. fi
  525. # The HP-UX ksh and POSIX shell print the target directory to stdout
  526. # if CDPATH is set.
  527. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  528. if test -z "$lt_ECHO"; then
  529. if test "X${echo_test_string+set}" != Xset; then
  530. # find a string as large as possible, as long as the shell can cope with it
  531. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  532. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  533. if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  534. { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  535. then
  536. break
  537. fi
  538. done
  539. fi
  540. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  541. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  542. test "X$echo_testing_string" = "X$echo_test_string"; then
  543. :
  544. else
  545. # The Solaris, AIX, and Digital Unix default echo programs unquote
  546. # backslashes. This makes it impossible to quote backslashes using
  547. # echo "$something" | sed 's/\\/\\\\/g'
  548. #
  549. # So, first we look for a working echo in the user's PATH.
  550. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  551. for dir in $PATH /usr/ucb; do
  552. IFS="$lt_save_ifs"
  553. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  554. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  555. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  556. test "X$echo_testing_string" = "X$echo_test_string"; then
  557. ECHO="$dir/echo"
  558. break
  559. fi
  560. done
  561. IFS="$lt_save_ifs"
  562. if test "X$ECHO" = Xecho; then
  563. # We didn't find a better echo, so look for alternatives.
  564. if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  565. echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  566. test "X$echo_testing_string" = "X$echo_test_string"; then
  567. # This shell has a builtin print -r that does the trick.
  568. ECHO='print -r'
  569. elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  570. test "X$CONFIG_SHELL" != X/bin/ksh; then
  571. # If we have ksh, try running configure again with it.
  572. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  573. export ORIGINAL_CONFIG_SHELL
  574. CONFIG_SHELL=/bin/ksh
  575. export CONFIG_SHELL
  576. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  577. else
  578. # Try using printf.
  579. ECHO='printf %s\n'
  580. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  581. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  582. test "X$echo_testing_string" = "X$echo_test_string"; then
  583. # Cool, printf works
  584. :
  585. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  586. test "X$echo_testing_string" = 'X\t' &&
  587. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  588. test "X$echo_testing_string" = "X$echo_test_string"; then
  589. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  590. export CONFIG_SHELL
  591. SHELL="$CONFIG_SHELL"
  592. export SHELL
  593. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  594. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  595. test "X$echo_testing_string" = 'X\t' &&
  596. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  597. test "X$echo_testing_string" = "X$echo_test_string"; then
  598. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  599. else
  600. # maybe with a smaller string...
  601. prev=:
  602. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  603. if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  604. then
  605. break
  606. fi
  607. prev="$cmd"
  608. done
  609. if test "$prev" != 'sed 50q "$0"'; then
  610. echo_test_string=`eval $prev`
  611. export echo_test_string
  612. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  613. else
  614. # Oops. We lost completely, so just stick with echo.
  615. ECHO=echo
  616. fi
  617. fi
  618. fi
  619. fi
  620. fi
  621. fi
  622. # Copy echo and quote the copy suitably for passing to libtool from
  623. # the Makefile, instead of quoting the original, which is used later.
  624. lt_ECHO=$ECHO
  625. if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  626. lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  627. fi
  628. exec 7<&0 </dev/null 6>&1
  629. # Name of the host.
  630. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  631. # so uname gets run too.
  632. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  633. #
  634. # Initializations.
  635. #
  636. ac_default_prefix=/usr/local
  637. ac_clean_files=
  638. ac_config_libobj_dir=.
  639. LIBOBJS=
  640. cross_compiling=no
  641. subdirs=
  642. MFLAGS=
  643. MAKEFLAGS=
  644. SHELL=${CONFIG_SHELL-/bin/sh}
  645. # Identity of this package.
  646. PACKAGE_NAME=
  647. PACKAGE_TARNAME=
  648. PACKAGE_VERSION=
  649. PACKAGE_STRING=
  650. PACKAGE_BUGREPORT=
  651. ac_unique_file="tcpreplay"
  652. ac_unique_file="src/tcpreplay.c"
  653. # Factoring default headers for most tests.
  654. ac_includes_default="\
  655. #include <stdio.h>
  656. #ifdef HAVE_SYS_TYPES_H
  657. # include <sys/types.h>
  658. #endif
  659. #ifdef HAVE_SYS_STAT_H
  660. # include <sys/stat.h>
  661. #endif
  662. #ifdef STDC_HEADERS
  663. # include <stdlib.h>
  664. # include <stddef.h>
  665. #else
  666. # ifdef HAVE_STDLIB_H
  667. # include <stdlib.h>
  668. # endif
  669. #endif
  670. #ifdef HAVE_STRING_H
  671. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  672. # include <memory.h>
  673. # endif
  674. # include <string.h>
  675. #endif
  676. #ifdef HAVE_STRINGS_H
  677. # include <strings.h>
  678. #endif
  679. #ifdef HAVE_INTTYPES_H
  680. # include <inttypes.h>
  681. #endif
  682. #ifdef HAVE_STDINT_H
  683. # include <stdint.h>
  684. #endif
  685. #ifdef HAVE_UNISTD_H
  686. # include <unistd.h>
  687. #endif"
  688. ac_subst_vars='am__EXEEXT_FALSE
  689. am__EXEEXT_TRUE
  690. LTLIBOBJS
  691. LIBOPTS_CFLAGS
  692. LIBOPTS_LDADD
  693. NEED_LIBOPTS_FALSE
  694. NEED_LIBOPTS_TRUE
  695. INSTALL_LIBOPTS_FALSE
  696. INSTALL_LIBOPTS_TRUE
  697. LIBOPTS_DIR
  698. nic2
  699. nic1
  700. ENABLE_OSX_FRAMEWORKS_FALSE
  701. ENABLE_OSX_FRAMEWORKS_TRUE
  702. ENABLE_TCPDUMP_FALSE
  703. ENABLE_TCPDUMP_TRUE
  704. tcpdump_path
  705. LNAV_CFLAGS
  706. LNAVLIB
  707. pcncfg
  708. PCAP_BPF_H_FILE
  709. COMPILE_FRAGROUTE_FALSE
  710. COMPILE_FRAGROUTE_TRUE
  711. LDNETLIB
  712. LDNETINC
  713. COMPILE_TCPBRIDGE_FALSE
  714. COMPILE_TCPBRIDGE_TRUE
  715. LPCAPLIB
  716. LPCAPINC
  717. DMALLOC_LIB
  718. debug_flag
  719. WORDS_BIGENDIAN_FALSE
  720. WORDS_BIGENDIAN_TRUE
  721. SYSTEM_STRLCPY_FALSE
  722. SYSTEM_STRLCPY_TRUE
  723. LIBOBJS
  724. GROFF
  725. AUTOGEN
  726. CUT
  727. ECHO
  728. PRINTF
  729. CXXCPP
  730. am__fastdepCXX_FALSE
  731. am__fastdepCXX_TRUE
  732. CXXDEPMODE
  733. ac_ct_CXX
  734. CXXFLAGS
  735. CXX
  736. CPP
  737. OTOOL64
  738. OTOOL
  739. LIPO
  740. NMEDIT
  741. DSYMUTIL
  742. lt_ECHO
  743. RANLIB
  744. AR
  745. OBJDUMP
  746. LN_S
  747. NM
  748. ac_ct_DUMPBIN
  749. DUMPBIN
  750. LD
  751. FGREP
  752. EGREP
  753. GREP
  754. SED
  755. am__fastdepCC_FALSE
  756. am__fastdepCC_TRUE
  757. CCDEPMODE
  758. AMDEPBACKSLASH
  759. AMDEP_FALSE
  760. AMDEP_TRUE
  761. am__quote
  762. am__include
  763. DEPDIR
  764. OBJEXT
  765. EXEEXT
  766. ac_ct_CC
  767. CPPFLAGS
  768. LDFLAGS
  769. CFLAGS
  770. CC
  771. LIBTOOL
  772. am__untar
  773. am__tar
  774. AMTAR
  775. am__leading_dot
  776. SET_MAKE
  777. AWK
  778. mkdir_p
  779. MKDIR_P
  780. INSTALL_STRIP_PROGRAM
  781. STRIP
  782. install_sh
  783. MAKEINFO
  784. AUTOHEADER
  785. AUTOMAKE
  786. AUTOCONF
  787. ACLOCAL
  788. VERSION
  789. PACKAGE
  790. CYGPATH_W
  791. am__isrc
  792. INSTALL_DATA
  793. INSTALL_SCRIPT
  794. INSTALL_PROGRAM
  795. target_os
  796. target_vendor
  797. target_cpu
  798. target
  799. host_os
  800. host_vendor
  801. host_cpu
  802. host
  803. build_os
  804. build_vendor
  805. build_cpu
  806. build
  807. TCPREPLAY_RELEASE
  808. TCPREPLAY_VERSION
  809. MAINT
  810. MAINTAINER_MODE_FALSE
  811. MAINTAINER_MODE_TRUE
  812. target_alias
  813. host_alias
  814. build_alias
  815. LIBS
  816. ECHO_T
  817. ECHO_N
  818. ECHO_C
  819. DEFS
  820. mandir
  821. localedir
  822. libdir
  823. psdir
  824. pdfdir
  825. dvidir
  826. htmldir
  827. infodir
  828. docdir
  829. oldincludedir
  830. includedir
  831. localstatedir
  832. sharedstatedir
  833. sysconfdir
  834. datadir
  835. datarootdir
  836. libexecdir
  837. sbindir
  838. bindir
  839. program_transform_name
  840. prefix
  841. exec_prefix
  842. PACKAGE_BUGREPORT
  843. PACKAGE_STRING
  844. PACKAGE_VERSION
  845. PACKAGE_TARNAME
  846. PACKAGE_NAME
  847. PATH_SEPARATOR
  848. SHELL'
  849. ac_subst_files=''
  850. ac_user_opts='
  851. enable_option_checking
  852. enable_maintainer_mode
  853. with_dmalloc
  854. enable_shared
  855. enable_static
  856. with_pic
  857. enable_fast_install
  858. enable_dependency_tracking
  859. with_gnu_ld
  860. enable_libtool_lock
  861. enable_largefile
  862. enable_debug
  863. enable_dmalloc
  864. enable_pedantic
  865. enable_efence
  866. enable_gprof
  867. enable_64bits
  868. enable_force_bpf
  869. enable_force_pf
  870. enable_force_libdnet
  871. enable_force_inject
  872. enable_force_sendpacket
  873. enable_dynamic_link
  874. with_libpcap
  875. with_libdnet
  876. with_pcapnav_config
  877. with_tcpdump
  878. with_testnic
  879. with_testnic2
  880. enable_local_libopts
  881. enable_libopts_install
  882. with_autoopts_config
  883. with_regex_header
  884. with_libregex
  885. with_libregex_cflags
  886. with_libregex_libs
  887. enable_optional_args
  888. '
  889. ac_precious_vars='build_alias
  890. host_alias
  891. target_alias
  892. CC
  893. CFLAGS
  894. LDFLAGS
  895. LIBS
  896. CPPFLAGS
  897. CPP
  898. CXX
  899. CXXFLAGS
  900. CCC
  901. CXXCPP'
  902. # Initialize some variables set by options.
  903. ac_init_help=
  904. ac_init_version=false
  905. ac_unrecognized_opts=
  906. ac_unrecognized_sep=
  907. # The variables have the same names as the options, with
  908. # dashes changed to underlines.
  909. cache_file=/dev/null
  910. exec_prefix=NONE
  911. no_create=
  912. no_recursion=
  913. prefix=NONE
  914. program_prefix=NONE
  915. program_suffix=NONE
  916. program_transform_name=s,x,x,
  917. silent=
  918. site=
  919. srcdir=
  920. verbose=
  921. x_includes=NONE
  922. x_libraries=NONE
  923. # Installation directory options.
  924. # These are left unexpanded so users can "make install exec_prefix=/foo"
  925. # and all the variables that are supposed to be based on exec_prefix
  926. # by default will actually change.
  927. # Use braces instead of parens because sh, perl, etc. also accept them.
  928. # (The list follows the same order as the GNU Coding Standards.)
  929. bindir='${exec_prefix}/bin'
  930. sbindir='${exec_prefix}/sbin'
  931. libexecdir='${exec_prefix}/libexec'
  932. datarootdir='${prefix}/share'
  933. datadir='${datarootdir}'
  934. sysconfdir='${prefix}/etc'
  935. sharedstatedir='${prefix}/com'
  936. localstatedir='${prefix}/var'
  937. includedir='${prefix}/include'
  938. oldincludedir='/usr/include'
  939. docdir='${datarootdir}/doc/${PACKAGE}'
  940. infodir='${datarootdir}/info'
  941. htmldir='${docdir}'
  942. dvidir='${docdir}'
  943. pdfdir='${docdir}'
  944. psdir='${docdir}'
  945. libdir='${exec_prefix}/lib'
  946. localedir='${datarootdir}/locale'
  947. mandir='${datarootdir}/man'
  948. ac_prev=
  949. ac_dashdash=
  950. for ac_option
  951. do
  952. # If the previous option needs an argument, assign it.
  953. if test -n "$ac_prev"; then
  954. eval $ac_prev=\$ac_option
  955. ac_prev=
  956. continue
  957. fi
  958. case $ac_option in
  959. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  960. *) ac_optarg=yes ;;
  961. esac
  962. # Accept the important Cygnus configure options, so we can diagnose typos.
  963. case $ac_dashdash$ac_option in
  964. --)
  965. ac_dashdash=yes ;;
  966. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  967. ac_prev=bindir ;;
  968. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  969. bindir=$ac_optarg ;;
  970. -build | --build | --buil | --bui | --bu)
  971. ac_prev=build_alias ;;
  972. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  973. build_alias=$ac_optarg ;;
  974. -cache-file | --cache-file | --cache-fil | --cache-fi \
  975. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  976. ac_prev=cache_file ;;
  977. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  978. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  979. cache_file=$ac_optarg ;;
  980. --config-cache | -C)
  981. cache_file=config.cache ;;
  982. -datadir | --datadir | --datadi | --datad)
  983. ac_prev=datadir ;;
  984. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  985. datadir=$ac_optarg ;;
  986. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  987. | --dataroo | --dataro | --datar)
  988. ac_prev=datarootdir ;;
  989. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  990. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  991. datarootdir=$ac_optarg ;;
  992. -disable-* | --disable-*)
  993. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  994. # Reject names that are not valid shell variable names.
  995. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  996. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  997. { (exit 1); exit 1; }; }
  998. ac_useropt_orig=$ac_useropt
  999. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1000. case $ac_user_opts in
  1001. *"
  1002. "enable_$ac_useropt"
  1003. "*) ;;
  1004. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1005. ac_unrecognized_sep=', ';;
  1006. esac
  1007. eval enable_$ac_useropt=no ;;
  1008. -docdir | --docdir | --docdi | --doc | --do)
  1009. ac_prev=docdir ;;
  1010. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1011. docdir=$ac_optarg ;;
  1012. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1013. ac_prev=dvidir ;;
  1014. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1015. dvidir=$ac_optarg ;;
  1016. -enable-* | --enable-*)
  1017. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1018. # Reject names that are not valid shell variable names.
  1019. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1020. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  1021. { (exit 1); exit 1; }; }
  1022. ac_useropt_orig=$ac_useropt
  1023. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1024. case $ac_user_opts in
  1025. *"
  1026. "enable_$ac_useropt"
  1027. "*) ;;
  1028. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1029. ac_unrecognized_sep=', ';;
  1030. esac
  1031. eval enable_$ac_useropt=\$ac_optarg ;;
  1032. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1033. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1034. | --exec | --exe | --ex)
  1035. ac_prev=exec_prefix ;;
  1036. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1037. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1038. | --exec=* | --exe=* | --ex=*)
  1039. exec_prefix=$ac_optarg ;;
  1040. -gas | --gas | --ga | --g)
  1041. # Obsolete; use --with-gas.
  1042. with_gas=yes ;;
  1043. -help | --help | --hel | --he | -h)
  1044. ac_init_help=long ;;
  1045. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1046. ac_init_help=recursive ;;
  1047. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1048. ac_init_help=short ;;
  1049. -host | --host | --hos | --ho)
  1050. ac_prev=host_alias ;;
  1051. -host=* | --host=* | --hos=* | --ho=*)
  1052. host_alias=$ac_optarg ;;
  1053. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1054. ac_prev=htmldir ;;
  1055. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1056. | --ht=*)
  1057. htmldir=$ac_optarg ;;
  1058. -includedir | --includedir | --includedi | --included | --include \
  1059. | --includ | --inclu | --incl | --inc)
  1060. ac_prev=includedir ;;
  1061. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1062. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1063. includedir=$ac_optarg ;;
  1064. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1065. ac_prev=infodir ;;
  1066. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1067. infodir=$ac_optarg ;;
  1068. -libdir | --libdir | --libdi | --libd)
  1069. ac_prev=libdir ;;
  1070. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1071. libdir=$ac_optarg ;;
  1072. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1073. | --libexe | --libex | --libe)
  1074. ac_prev=libexecdir ;;
  1075. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1076. | --libexe=* | --libex=* | --libe=*)
  1077. libexecdir=$ac_optarg ;;
  1078. -localedir | --localedir | --localedi | --localed | --locale)
  1079. ac_prev=localedir ;;
  1080. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1081. localedir=$ac_optarg ;;
  1082. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1083. | --localstate | --localstat | --localsta | --localst | --locals)
  1084. ac_prev=localstatedir ;;
  1085. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1086. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1087. localstatedir=$ac_optarg ;;
  1088. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1089. ac_prev=mandir ;;
  1090. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1091. mandir=$ac_optarg ;;
  1092. -nfp | --nfp | --nf)
  1093. # Obsolete; use --without-fp.
  1094. with_fp=no ;;
  1095. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1096. | --no-cr | --no-c | -n)
  1097. no_create=yes ;;
  1098. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1099. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1100. no_recursion=yes ;;
  1101. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1102. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1103. | --oldin | --oldi | --old | --ol | --o)
  1104. ac_prev=oldincludedir ;;
  1105. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1106. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1107. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1108. oldincludedir=$ac_optarg ;;
  1109. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1110. ac_prev=prefix ;;
  1111. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1112. prefix=$ac_optarg ;;
  1113. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1114. | --program-pre | --program-pr | --program-p)
  1115. ac_prev=program_prefix ;;
  1116. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1117. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1118. program_prefix=$ac_optarg ;;
  1119. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1120. | --program-suf | --program-su | --program-s)
  1121. ac_prev=program_suffix ;;
  1122. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1123. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1124. program_suffix=$ac_optarg ;;
  1125. -program-transform-name | --program-transform-name \
  1126. | --program-transform-nam | --program-transform-na \
  1127. | --program-transform-n | --program-transform- \
  1128. | --program-transform | --program-transfor \
  1129. | --program-transfo | --program-transf \
  1130. | --program-trans | --program-tran \
  1131. | --progr-tra | --program-tr | --program-t)
  1132. ac_prev=program_transform_name ;;
  1133. -program-transform-name=* | --program-transform-name=* \
  1134. | --program-transform-nam=* | --program-transform-na=* \
  1135. | --program-transform-n=* | --program-transform-=* \
  1136. | --program-transform=* | --program-transfor=* \
  1137. | --program-transfo=* | --program-transf=* \
  1138. | --program-trans=* | --program-tran=* \
  1139. | --progr-tra=* | --program-tr=* | --program-t=*)
  1140. program_transform_name=$ac_optarg ;;
  1141. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1142. ac_prev=pdfdir ;;
  1143. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1144. pdfdir=$ac_optarg ;;
  1145. -psdir | --psdir | --psdi | --psd | --ps)
  1146. ac_prev=psdir ;;
  1147. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1148. psdir=$ac_optarg ;;
  1149. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1150. | -silent | --silent | --silen | --sile | --sil)
  1151. silent=yes ;;
  1152. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1153. ac_prev=sbindir ;;
  1154. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1155. | --sbi=* | --sb=*)
  1156. sbindir=$ac_optarg ;;
  1157. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1158. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1159. | --sharedst | --shareds | --shared | --share | --shar \
  1160. | --sha | --sh)
  1161. ac_prev=sharedstatedir ;;
  1162. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1163. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1164. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1165. | --sha=* | --sh=*)
  1166. sharedstatedir=$ac_optarg ;;
  1167. -site | --site | --sit)
  1168. ac_prev=site ;;
  1169. -site=* | --site=* | --sit=*)
  1170. site=$ac_optarg ;;
  1171. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1172. ac_prev=srcdir ;;
  1173. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1174. srcdir=$ac_optarg ;;
  1175. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1176. | --syscon | --sysco | --sysc | --sys | --sy)
  1177. ac_prev=sysconfdir ;;
  1178. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1179. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1180. sysconfdir=$ac_optarg ;;
  1181. -target | --target | --targe | --targ | --tar | --ta | --t)
  1182. ac_prev=target_alias ;;
  1183. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1184. target_alias=$ac_optarg ;;
  1185. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1186. verbose=yes ;;
  1187. -version | --version | --versio | --versi | --vers | -V)
  1188. ac_init_version=: ;;
  1189. -with-* | --with-*)
  1190. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1191. # Reject names that are not valid shell variable names.
  1192. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1193. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1194. { (exit 1); exit 1; }; }
  1195. ac_useropt_orig=$ac_useropt
  1196. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1197. case $ac_user_opts in
  1198. *"
  1199. "with_$ac_useropt"
  1200. "*) ;;
  1201. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1202. ac_unrecognized_sep=', ';;
  1203. esac
  1204. eval with_$ac_useropt=\$ac_optarg ;;
  1205. -without-* | --without-*)
  1206. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1207. # Reject names that are not valid shell variable names.
  1208. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1209. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1210. { (exit 1); exit 1; }; }
  1211. ac_useropt_orig=$ac_useropt
  1212. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1213. case $ac_user_opts in
  1214. *"
  1215. "with_$ac_useropt"
  1216. "*) ;;
  1217. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1218. ac_unrecognized_sep=', ';;
  1219. esac
  1220. eval with_$ac_useropt=no ;;
  1221. --x)
  1222. # Obsolete; use --with-x.
  1223. with_x=yes ;;
  1224. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1225. | --x-incl | --x-inc | --x-in | --x-i)
  1226. ac_prev=x_includes ;;
  1227. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1228. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1229. x_includes=$ac_optarg ;;
  1230. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1231. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1232. ac_prev=x_libraries ;;
  1233. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1234. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1235. x_libraries=$ac_optarg ;;
  1236. -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
  1237. Try \`$0 --help' for more information." >&2
  1238. { (exit 1); exit 1; }; }
  1239. ;;
  1240. *=*)
  1241. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1242. # Reject names that are not valid shell variable names.
  1243. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1244. { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1245. { (exit 1); exit 1; }; }
  1246. eval $ac_envvar=\$ac_optarg
  1247. export $ac_envvar ;;
  1248. *)
  1249. # FIXME: should be removed in autoconf 3.0.
  1250. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1251. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1252. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1253. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1254. ;;
  1255. esac
  1256. done
  1257. if test -n "$ac_prev"; then
  1258. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1259. { $as_echo "$as_me: error: missing argument to $ac_option" >&2
  1260. { (exit 1); exit 1; }; }
  1261. fi
  1262. if test -n "$ac_unrecognized_opts"; then
  1263. case $enable_option_checking in
  1264. no) ;;
  1265. fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
  1266. { (exit 1); exit 1; }; } ;;
  1267. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1268. esac
  1269. fi
  1270. # Check all directory arguments for consistency.
  1271. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1272. datadir sysconfdir sharedstatedir localstatedir includedir \
  1273. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1274. libdir localedir mandir
  1275. do
  1276. eval ac_val=\$$ac_var
  1277. # Remove trailing slashes.
  1278. case $ac_val in
  1279. */ )
  1280. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1281. eval $ac_var=\$ac_val;;
  1282. esac
  1283. # Be sure to have absolute directory names.
  1284. case $ac_val in
  1285. [\\/$]* | ?:[\\/]* ) continue;;
  1286. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1287. esac
  1288. { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1289. { (exit 1); exit 1; }; }
  1290. done
  1291. # There might be people who depend on the old broken behavior: `$host'
  1292. # used to hold the argument of --host etc.
  1293. # FIXME: To remove some day.
  1294. build=$build_alias
  1295. host=$host_alias
  1296. target=$target_alias
  1297. # FIXME: To remove some day.
  1298. if test "x$host_alias" != x; then
  1299. if test "x$build_alias" = x; then
  1300. cross_compiling=maybe
  1301. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1302. If a cross compiler is detected then cross compile mode will be used." >&2
  1303. elif test "x$build_alias" != "x$host_alias"; then
  1304. cross_compiling=yes
  1305. fi
  1306. fi
  1307. ac_tool_prefix=
  1308. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1309. test "$silent" = yes && exec 6>/dev/null
  1310. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1311. ac_ls_di=`ls -di .` &&
  1312. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1313. { $as_echo "$as_me: error: working directory cannot be determined" >&2
  1314. { (exit 1); exit 1; }; }
  1315. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1316. { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
  1317. { (exit 1); exit 1; }; }
  1318. # Find the source files, if location was not specified.
  1319. if test -z "$srcdir"; then
  1320. ac_srcdir_defaulted=yes
  1321. # Try the directory containing this script, then the parent directory.
  1322. ac_confdir=`$as_dirname -- "$as_myself" ||
  1323. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1324. X"$as_myself" : 'X\(//\)[^/]' \| \
  1325. X"$as_myself" : 'X\(//\)$' \| \
  1326. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1327. $as_echo X"$as_myself" |
  1328. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1329. s//\1/
  1330. q
  1331. }
  1332. /^X\(\/\/\)[^/].*/{
  1333. s//\1/
  1334. q
  1335. }
  1336. /^X\(\/\/\)$/{
  1337. s//\1/
  1338. q
  1339. }
  1340. /^X\(\/\).*/{
  1341. s//\1/
  1342. q
  1343. }
  1344. s/.*/./; q'`
  1345. srcdir=$ac_confdir
  1346. if test ! -r "$srcdir/$ac_unique_file"; then
  1347. srcdir=..
  1348. fi
  1349. else
  1350. ac_srcdir_defaulted=no
  1351. fi
  1352. if test ! -r "$srcdir/$ac_unique_file"; then
  1353. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1354. { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1355. { (exit 1); exit 1; }; }
  1356. fi
  1357. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1358. ac_abs_confdir=`(
  1359. cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
  1360. { (exit 1); exit 1; }; }
  1361. pwd)`
  1362. # When building in place, set srcdir=.
  1363. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1364. srcdir=.
  1365. fi
  1366. # Remove unnecessary trailing slashes from srcdir.
  1367. # Double slashes in file names in object file debugging info
  1368. # mess up M-x gdb in Emacs.
  1369. case $srcdir in
  1370. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1371. esac
  1372. for ac_var in $ac_precious_vars; do
  1373. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1374. eval ac_env_${ac_var}_value=\$${ac_var}
  1375. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1376. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1377. done
  1378. #
  1379. # Report the --help message.
  1380. #
  1381. if test "$ac_init_help" = "long"; then
  1382. # Omit some internal or obsolete options to make the list less imposing.
  1383. # This message is too long to be a string in the A/UX 3.1 sh.
  1384. cat <<_ACEOF
  1385. \`configure' configures this package to adapt to many kinds of systems.
  1386. Usage: $0 [OPTION]... [VAR=VALUE]...
  1387. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1388. VAR=VALUE. See below for descriptions of some of the useful variables.
  1389. Defaults for the options are specified in brackets.
  1390. Configuration:
  1391. -h, --help display this help and exit
  1392. --help=short display options specific to this package
  1393. --help=recursive display the short help of all the included packages
  1394. -V, --version display version information and exit
  1395. -q, --quiet, --silent do not print \`checking...' messages
  1396. --cache-file=FILE cache test results in FILE [disabled]
  1397. -C, --config-cache alias for \`--cache-file=config.cache'
  1398. -n, --no-create do not create output files
  1399. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1400. Installation directories:
  1401. --prefix=PREFIX install architecture-independent files in PREFIX
  1402. [$ac_default_prefix]
  1403. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1404. [PREFIX]
  1405. By default, \`make install' will install all the files in
  1406. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1407. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1408. for instance \`--prefix=\$HOME'.
  1409. For better control, use the options below.
  1410. Fine tuning of the installation directories:
  1411. --bindir=DIR user executables [EPREFIX/bin]
  1412. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1413. --libexecdir=DIR program executables [EPREFIX/libexec]
  1414. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1415. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1416. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1417. --libdir=DIR object code libraries [EPREFIX/lib]
  1418. --includedir=DIR C header files [PREFIX/include]
  1419. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1420. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1421. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1422. --infodir=DIR info documentation [DATAROOTDIR/info]
  1423. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1424. --mandir=DIR man documentation [DATAROOTDIR/man]
  1425. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1426. --htmldir=DIR html documentation [DOCDIR]
  1427. --dvidir=DIR dvi documentation [DOCDIR]
  1428. --pdfdir=DIR pdf documentation [DOCDIR]
  1429. --psdir=DIR ps documentation [DOCDIR]
  1430. _ACEOF
  1431. cat <<\_ACEOF
  1432. Program names:
  1433. --program-prefix=PREFIX prepend PREFIX to installed program names
  1434. --program-suffix=SUFFIX append SUFFIX to installed program names
  1435. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1436. System types:
  1437. --build=BUILD configure for building on BUILD [guessed]
  1438. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1439. --target=TARGET configure for building compilers for TARGET [HOST]
  1440. _ACEOF
  1441. fi
  1442. if test -n "$ac_init_help"; then
  1443. cat <<\_ACEOF
  1444. Optional Features:
  1445. --disable-option-checking ignore unrecognized --enable/--with options
  1446. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1447. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1448. --enable-maintainer-mode enable make rules and dependencies not useful
  1449. (and sometimes confusing) to the casual installer
  1450. --enable-shared[=PKGS] build shared libraries [default=yes]
  1451. --enable-static[=PKGS] build static libraries [default=yes]
  1452. --enable-fast-install[=PKGS]
  1453. optimize for fast installation [default=yes]
  1454. --disable-dependency-tracking speeds up one-time build
  1455. --enable-dependency-tracking do not reject slow dependency extractors
  1456. --disable-libtool-lock avoid locking (might break parallel builds)
  1457. --disable-largefile omit support for large files
  1458. --enable-debug Enable debugging code and support for the -d option
  1459. --enable-dmalloc Enable linking to dmalloc for better memory
  1460. debugging
  1461. --enable-pedantic Enable gcc's -pedantic option
  1462. --enable-efence Enable Electric Fence memory debugger
  1463. --enable-gprof Enable GNU Profiler
  1464. --disable-64bits Do not use 64bit packet counters
  1465. --enable-force-bpf Force using BPF for sending packets
  1466. --enable-force-pf Force using Linux's PF_PACKET for sending packets
  1467. --enable-force-libdnet Force using libdnet for sending packets
  1468. --enable-force-inject Force using libpcap's pcap_inject() for sending
  1469. packets
  1470. --enable-force-sendpacket
  1471. Force using libpcap's pcap_sendpacket() for sending
  1472. packets
  1473. --enable-dynamic-link Dynamically link libraries
  1474. --enable-local-libopts Force using the supplied libopts tearoff code
  1475. --disable-libopts-install
  1476. Do not install libopts with client installation
  1477. --disable-optional-args not wanting optional option args
  1478. Optional Packages:
  1479. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1480. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1481. --with-dmalloc use dmalloc, as in
  1482. http://www.dmalloc.com/dmalloc.tar.gz
  1483. --with-pic try to use only PIC/non-PIC objects [default=use
  1484. both]
  1485. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1486. --with-libpcap=DIR Use libpcap in DIR
  1487. --with-libdnet=DIR Use libdnet in DIR
  1488. --with-pcapnav-config=FILE
  1489. Use given pcapnav-config
  1490. --with-tcpdump=FILE Path to tcpdump binary
  1491. --with-testnic=NIC Select which network card to use for testing
  1492. --with-testnic2=NIC2 Select an optional 2nd network card to use for
  1493. testing
  1494. --with-autoopts-config specify the config-info script
  1495. --with-regex-header a reg expr header is specified
  1496. --with-libregex libregex installation prefix
  1497. --with-libregex-cflags libregex compile flags
  1498. --with-libregex-libs libregex link command arguments
  1499. Some influential environment variables:
  1500. CC C compiler command
  1501. CFLAGS C compiler flags
  1502. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1503. nonstandard directory <lib dir>
  1504. LIBS libraries to pass to the linker, e.g. -l<library>
  1505. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1506. you have headers in a nonstandard directory <include dir>
  1507. CPP C preprocessor
  1508. CXX C++ compiler command
  1509. CXXFLAGS C++ compiler flags
  1510. CXXCPP C++ preprocessor
  1511. Use these variables to override the choices made by `configure' or to help
  1512. it to find libraries and programs with nonstandard names/locations.
  1513. _ACEOF
  1514. ac_status=$?
  1515. fi
  1516. if test "$ac_init_help" = "recursive"; then
  1517. # If there are subdirs, report their specific --help.
  1518. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1519. test -d "$ac_dir" ||
  1520. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1521. continue
  1522. ac_builddir=.
  1523. case "$ac_dir" in
  1524. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1525. *)
  1526. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1527. # A ".." for each directory in $ac_dir_suffix.
  1528. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1529. case $ac_top_builddir_sub in
  1530. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1531. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1532. esac ;;
  1533. esac
  1534. ac_abs_top_builddir=$ac_pwd
  1535. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1536. # for backward compatibility:
  1537. ac_top_builddir=$ac_top_build_prefix
  1538. case $srcdir in
  1539. .) # We are building in place.
  1540. ac_srcdir=.
  1541. ac_top_srcdir=$ac_top_builddir_sub
  1542. ac_abs_top_srcdir=$ac_pwd ;;
  1543. [\\/]* | ?:[\\/]* ) # Absolute name.
  1544. ac_srcdir=$srcdir$ac_dir_suffix;
  1545. ac_top_srcdir=$srcdir
  1546. ac_abs_top_srcdir=$srcdir ;;
  1547. *) # Relative name.
  1548. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1549. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1550. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1551. esac
  1552. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1553. cd "$ac_dir" || { ac_status=$?; continue; }
  1554. # Check for guested configure.
  1555. if test -f "$ac_srcdir/configure.gnu"; then
  1556. echo &&
  1557. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1558. elif test -f "$ac_srcdir/configure"; then
  1559. echo &&
  1560. $SHELL "$ac_srcdir/configure" --help=recursive
  1561. else
  1562. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1563. fi || ac_status=$?
  1564. cd "$ac_pwd" || { ac_status=$?; break; }
  1565. done
  1566. fi
  1567. test -n "$ac_init_help" && exit $ac_status
  1568. if $ac_init_version; then
  1569. cat <<\_ACEOF
  1570. configure
  1571. generated by GNU Autoconf 2.63
  1572. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1573. 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  1574. This configure script is free software; the Free Software Foundation
  1575. gives unlimited permission to copy, distribute and modify it.
  1576. _ACEOF
  1577. exit
  1578. fi
  1579. cat >config.log <<_ACEOF
  1580. This file contains any messages produced by compilers while
  1581. running configure, to aid debugging if configure makes a mistake.
  1582. It was created by $as_me, which was
  1583. generated by GNU Autoconf 2.63. Invocation command line was
  1584. $ $0 $@
  1585. _ACEOF
  1586. exec 5>>config.log
  1587. {
  1588. cat <<_ASUNAME
  1589. ## --------- ##
  1590. ## Platform. ##
  1591. ## --------- ##
  1592. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1593. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1594. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1595. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1596. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1597. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1598. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1599. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1600. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1601. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1602. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1603. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1604. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1605. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1606. _ASUNAME
  1607. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1608. for as_dir in $PATH
  1609. do
  1610. IFS=$as_save_IFS
  1611. test -z "$as_dir" && as_dir=.
  1612. $as_echo "PATH: $as_dir"
  1613. done
  1614. IFS=$as_save_IFS
  1615. } >&5
  1616. cat >&5 <<_ACEOF
  1617. ## ----------- ##
  1618. ## Core tests. ##
  1619. ## ----------- ##
  1620. _ACEOF
  1621. # Keep a trace of the command line.
  1622. # Strip out --no-create and --no-recursion so they do not pile up.
  1623. # Strip out --silent because we don't want to record it for future runs.
  1624. # Also quote any args containing shell meta-characters.
  1625. # Make two passes to allow for proper duplicate-argument suppression.
  1626. ac_configure_args=
  1627. ac_configure_args0=
  1628. ac_configure_args1=
  1629. ac_must_keep_next=false
  1630. for ac_pass in 1 2
  1631. do
  1632. for ac_arg
  1633. do
  1634. case $ac_arg in
  1635. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1636. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1637. | -silent | --silent | --silen | --sile | --sil)
  1638. continue ;;
  1639. *\'*)
  1640. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1641. esac
  1642. case $ac_pass in
  1643. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1644. 2)
  1645. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1646. if test $ac_must_keep_next = true; then
  1647. ac_must_keep_next=false # Got value, back to normal.
  1648. else
  1649. case $ac_arg in
  1650. *=* | --config-cache | -C | -disable-* | --disable-* \
  1651. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1652. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1653. | -with-* | --with-* | -without-* | --without-* | --x)
  1654. case "$ac_configure_args0 " in
  1655. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1656. esac
  1657. ;;
  1658. -* ) ac_must_keep_next=true ;;
  1659. esac
  1660. fi
  1661. ac_configure_args="$ac_configure_args '$ac_arg'"
  1662. ;;
  1663. esac
  1664. done
  1665. done
  1666. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1667. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1668. # When interrupted or exit'd, cleanup temporary files, and complete
  1669. # config.log. We remove comments because anyway the quotes in there
  1670. # would cause problems or look ugly.
  1671. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1672. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1673. trap 'exit_status=$?
  1674. # Save into config.log some information that might help in debugging.
  1675. {
  1676. echo
  1677. cat <<\_ASBOX
  1678. ## ---------------- ##
  1679. ## Cache variables. ##
  1680. ## ---------------- ##
  1681. _ASBOX
  1682. echo
  1683. # The following way of writing the cache mishandles newlines in values,
  1684. (
  1685. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1686. eval ac_val=\$$ac_var
  1687. case $ac_val in #(
  1688. *${as_nl}*)
  1689. case $ac_var in #(
  1690. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  1691. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1692. esac
  1693. case $ac_var in #(
  1694. _ | IFS | as_nl) ;; #(
  1695. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1696. *) $as_unset $ac_var ;;
  1697. esac ;;
  1698. esac
  1699. done
  1700. (set) 2>&1 |
  1701. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1702. *${as_nl}ac_space=\ *)
  1703. sed -n \
  1704. "s/'\''/'\''\\\\'\'''\''/g;
  1705. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1706. ;; #(
  1707. *)
  1708. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1709. ;;
  1710. esac |
  1711. sort
  1712. )
  1713. echo
  1714. cat <<\_ASBOX
  1715. ## ----------------- ##
  1716. ## Output variables. ##
  1717. ## ----------------- ##
  1718. _ASBOX
  1719. echo
  1720. for ac_var in $ac_subst_vars
  1721. do
  1722. eval ac_val=\$$ac_var
  1723. case $ac_val in
  1724. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1725. esac
  1726. $as_echo "$ac_var='\''$ac_val'\''"
  1727. done | sort
  1728. echo
  1729. if test -n "$ac_subst_files"; then
  1730. cat <<\_ASBOX
  1731. ## ------------------- ##
  1732. ## File substitutions. ##
  1733. ## ------------------- ##
  1734. _ASBOX
  1735. echo
  1736. for ac_var in $ac_subst_files
  1737. do
  1738. eval ac_val=\$$ac_var
  1739. case $ac_val in
  1740. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1741. esac
  1742. $as_echo "$ac_var='\''$ac_val'\''"
  1743. done | sort
  1744. echo
  1745. fi
  1746. if test -s confdefs.h; then
  1747. cat <<\_ASBOX
  1748. ## ----------- ##
  1749. ## confdefs.h. ##
  1750. ## ----------- ##
  1751. _ASBOX
  1752. echo
  1753. cat confdefs.h
  1754. echo
  1755. fi
  1756. test "$ac_signal" != 0 &&
  1757. $as_echo "$as_me: caught signal $ac_signal"
  1758. $as_echo "$as_me: exit $exit_status"
  1759. } >&5
  1760. rm -f core *.core core.conftest.* &&
  1761. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1762. exit $exit_status
  1763. ' 0
  1764. for ac_signal in 1 2 13 15; do
  1765. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1766. done
  1767. ac_signal=0
  1768. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1769. rm -f -r conftest* confdefs.h
  1770. # Predefined preprocessor variables.
  1771. cat >>confdefs.h <<_ACEOF
  1772. #define PACKAGE_NAME "$PACKAGE_NAME"
  1773. _ACEOF
  1774. cat >>confdefs.h <<_ACEOF
  1775. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1776. _ACEOF
  1777. cat >>confdefs.h <<_ACEOF
  1778. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1779. _ACEOF
  1780. cat >>confdefs.h <<_ACEOF
  1781. #define PACKAGE_STRING "$PACKAGE_STRING"
  1782. _ACEOF
  1783. cat >>confdefs.h <<_ACEOF
  1784. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1785. _ACEOF
  1786. # Let the site file select an alternate cache file if it wants to.
  1787. # Prefer an explicitly selected file to automatically selected ones.
  1788. ac_site_file1=NONE
  1789. ac_site_file2=NONE
  1790. if test -n "$CONFIG_SITE"; then
  1791. ac_site_file1=$CONFIG_SITE
  1792. elif test "x$prefix" != xNONE; then
  1793. ac_site_file1=$prefix/share/config.site
  1794. ac_site_file2=$prefix/etc/config.site
  1795. else
  1796. ac_site_file1=$ac_default_prefix/share/config.site
  1797. ac_site_file2=$ac_default_prefix/etc/config.site
  1798. fi
  1799. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1800. do
  1801. test "x$ac_site_file" = xNONE && continue
  1802. if test -r "$ac_site_file"; then
  1803. { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1804. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1805. sed 's/^/| /' "$ac_site_file" >&5
  1806. . "$ac_site_file"
  1807. fi
  1808. done
  1809. if test -r "$cache_file"; then
  1810. # Some versions of bash will fail to source /dev/null (special
  1811. # files actually), so we avoid doing that.
  1812. if test -f "$cache_file"; then
  1813. { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1814. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1815. case $cache_file in
  1816. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1817. *) . "./$cache_file";;
  1818. esac
  1819. fi
  1820. else
  1821. { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1822. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1823. >$cache_file
  1824. fi
  1825. # Check that the precious variables saved in the cache have kept the same
  1826. # value.
  1827. ac_cache_corrupted=false
  1828. for ac_var in $ac_precious_vars; do
  1829. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1830. eval ac_new_set=\$ac_env_${ac_var}_set
  1831. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1832. eval ac_new_val=\$ac_env_${ac_var}_value
  1833. case $ac_old_set,$ac_new_set in
  1834. set,)
  1835. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1836. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1837. ac_cache_corrupted=: ;;
  1838. ,set)
  1839. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1840. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1841. ac_cache_corrupted=: ;;
  1842. ,);;
  1843. *)
  1844. if test "x$ac_old_val" != "x$ac_new_val"; then
  1845. # differences in whitespace do not lead to failure.
  1846. ac_old_val_w=`echo x $ac_old_val`
  1847. ac_new_val_w=`echo x $ac_new_val`
  1848. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1849. { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1850. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1851. ac_cache_corrupted=:
  1852. else
  1853. { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1854. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1855. eval $ac_var=\$ac_old_val
  1856. fi
  1857. { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
  1858. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1859. { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
  1860. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1861. fi;;
  1862. esac
  1863. # Pass precious variables to config.status.
  1864. if test "$ac_new_set" = set; then
  1865. case $ac_new_val in
  1866. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1867. *) ac_arg=$ac_var=$ac_new_val ;;
  1868. esac
  1869. case " $ac_configure_args " in
  1870. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1871. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1872. esac
  1873. fi
  1874. done
  1875. if $ac_cache_corrupted; then
  1876. { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  1877. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1878. { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1879. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1880. { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1881. $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1882. { (exit 1); exit 1; }; }
  1883. fi
  1884. ac_ext=c
  1885. ac_cpp='$CPP $CPPFLAGS'
  1886. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1887. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1888. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1889. ac_config_headers="$ac_config_headers src/config.h"
  1890. ac_aux_dir=
  1891. for ac_dir in config "$srcdir"/config; do
  1892. if test -f "$ac_dir/install-sh"; then
  1893. ac_aux_dir=$ac_dir
  1894. ac_install_sh="$ac_aux_dir/install-sh -c"
  1895. break
  1896. elif test -f "$ac_dir/install.sh"; then
  1897. ac_aux_dir=$ac_dir
  1898. ac_install_sh="$ac_aux_dir/install.sh -c"
  1899. break
  1900. elif test -f "$ac_dir/shtool"; then
  1901. ac_aux_dir=$ac_dir
  1902. ac_install_sh="$ac_aux_dir/shtool install -c"
  1903. break
  1904. fi
  1905. done
  1906. if test -z "$ac_aux_dir"; then
  1907. { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
  1908. $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
  1909. { (exit 1); exit 1; }; }
  1910. fi
  1911. # These three variables are undocumented and unsupported,
  1912. # and are intended to be withdrawn in a future Autoconf release.
  1913. # They can cause serious problems if a builder's source tree is in a directory
  1914. # whose full name contains unusual characters.
  1915. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1916. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1917. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1918. { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  1919. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  1920. # Check whether --enable-maintainer-mode was given.
  1921. if test "${enable_maintainer_mode+set}" = set; then
  1922. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  1923. else
  1924. USE_MAINTAINER_MODE=no
  1925. fi
  1926. { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  1927. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  1928. if test $USE_MAINTAINER_MODE = yes; then
  1929. MAINTAINER_MODE_TRUE=
  1930. MAINTAINER_MODE_FALSE='#'
  1931. else
  1932. MAINTAINER_MODE_TRUE='#'
  1933. MAINTAINER_MODE_FALSE=
  1934. fi
  1935. MAINT=$MAINTAINER_MODE_TRUE
  1936. { $as_echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
  1937. $as_echo_n "checking if malloc debugging is wanted... " >&6; }
  1938. # Check whether --with-dmalloc was given.
  1939. if test "${with_dmalloc+set}" = set; then
  1940. withval=$with_dmalloc; if test "$withval" = yes; then
  1941. { $as_echo "$as_me:$LINENO: result: yes" >&5
  1942. $as_echo "yes" >&6; }
  1943. cat >>confdefs.h <<\_ACEOF
  1944. #define WITH_DMALLOC 1
  1945. _ACEOF
  1946. LIBS="$LIBS -ldmalloc"
  1947. LDFLAGS="$LDFLAGS -g"
  1948. else
  1949. { $as_echo "$as_me:$LINENO: result: no" >&5
  1950. $as_echo "no" >&6; }
  1951. fi
  1952. else
  1953. { $as_echo "$as_me:$LINENO: result: no" >&5
  1954. $as_echo "no" >&6; }
  1955. fi
  1956. MAINTAINER_AUTOGEN_VERSION=5.9.7
  1957. MAJOR_VERSION=3
  1958. MINOR_VERSION=4
  1959. MICRO_VERSION=3
  1960. TCPREPLAY_VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION
  1961. TCPREPLAY_RELEASE=1
  1962. cat >>confdefs.h <<\_ACEOF
  1963. #define PACKAGE tcpreplay
  1964. _ACEOF
  1965. cat >>confdefs.h <<_ACEOF
  1966. #define VERSION "$TCPREPLAY_VERSION"
  1967. _ACEOF
  1968. USER_CFLAGS=$CFLAGS
  1969. CFLAGS="${CFLAGS} -Wall -O3 -std=gnu99"
  1970. # Make sure we can run config.sub.
  1971. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  1972. { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  1973. $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  1974. { (exit 1); exit 1; }; }
  1975. { $as_echo "$as_me:$LINENO: checking build system type" >&5
  1976. $as_echo_n "checking build system type... " >&6; }
  1977. if test "${ac_cv_build+set}" = set; then
  1978. $as_echo_n "(cached) " >&6
  1979. else
  1980. ac_build_alias=$build_alias
  1981. test "x$ac_build_alias" = x &&
  1982. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  1983. test "x$ac_build_alias" = x &&
  1984. { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1985. $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1986. { (exit 1); exit 1; }; }
  1987. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  1988. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  1989. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  1990. { (exit 1); exit 1; }; }
  1991. fi
  1992. { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1993. $as_echo "$ac_cv_build" >&6; }
  1994. case $ac_cv_build in
  1995. *-*-*) ;;
  1996. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  1997. $as_echo "$as_me: error: invalid value of canonical build" >&2;}
  1998. { (exit 1); exit 1; }; };;
  1999. esac
  2000. build=$ac_cv_build
  2001. ac_save_IFS=$IFS; IFS='-'
  2002. set x $ac_cv_build
  2003. shift
  2004. build_cpu=$1
  2005. build_vendor=$2
  2006. shift; shift
  2007. # Remember, the first character of IFS is used to create $*,
  2008. # except with old shells:
  2009. build_os=$*
  2010. IFS=$ac_save_IFS
  2011. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2012. { $as_echo "$as_me:$LINENO: checking host system type" >&5
  2013. $as_echo_n "checking host system type... " >&6; }
  2014. if test "${ac_cv_host+set}" = set; then
  2015. $as_echo_n "(cached) " >&6
  2016. else
  2017. if test "x$host_alias" = x; then
  2018. ac_cv_host=$ac_cv_build
  2019. else
  2020. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2021. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  2022. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  2023. { (exit 1); exit 1; }; }
  2024. fi
  2025. fi
  2026. { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  2027. $as_echo "$ac_cv_host" >&6; }
  2028. case $ac_cv_host in
  2029. *-*-*) ;;
  2030. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  2031. $as_echo "$as_me: error: invalid value of canonical host" >&2;}
  2032. { (exit 1); exit 1; }; };;
  2033. esac
  2034. host=$ac_cv_host
  2035. ac_save_IFS=$IFS; IFS='-'
  2036. set x $ac_cv_host
  2037. shift
  2038. host_cpu=$1
  2039. host_vendor=$2
  2040. shift; shift
  2041. # Remember, the first character of IFS is used to create $*,
  2042. # except with old shells:
  2043. host_os=$*
  2044. IFS=$ac_save_IFS
  2045. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2046. { $as_echo "$as_me:$LINENO: checking target system type" >&5
  2047. $as_echo_n "checking target system type... " >&6; }
  2048. if test "${ac_cv_target+set}" = set; then
  2049. $as_echo_n "(cached) " >&6
  2050. else
  2051. if test "x$target_alias" = x; then
  2052. ac_cv_target=$ac_cv_host
  2053. else
  2054. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2055. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
  2056. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
  2057. { (exit 1); exit 1; }; }
  2058. fi
  2059. fi
  2060. { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  2061. $as_echo "$ac_cv_target" >&6; }
  2062. case $ac_cv_target in
  2063. *-*-*) ;;
  2064. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
  2065. $as_echo "$as_me: error: invalid value of canonical target" >&2;}
  2066. { (exit 1); exit 1; }; };;
  2067. esac
  2068. target=$ac_cv_target
  2069. ac_save_IFS=$IFS; IFS='-'
  2070. set x $ac_cv_target
  2071. shift
  2072. target_cpu=$1
  2073. target_vendor=$2
  2074. shift; shift
  2075. # Remember, the first character of IFS is used to create $*,
  2076. # except with old shells:
  2077. target_os=$*
  2078. IFS=$ac_save_IFS
  2079. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2080. # The aliases save the names the user supplied, while $host etc.
  2081. # will get canonicalized.
  2082. test -n "$target_alias" &&
  2083. test "$program_prefix$program_suffix$program_transform_name" = \
  2084. NONENONEs,x,x, &&
  2085. program_prefix=${target_alias}-
  2086. have_cygwin=no
  2087. { $as_echo "$as_me:$LINENO: checking for cygwin development environment" >&5
  2088. $as_echo_n "checking for cygwin development environment... " >&6; }
  2089. if test `echo $target | grep -c cygwin` -gt 0 ; then
  2090. cat >>confdefs.h <<\_ACEOF
  2091. #define HAVE_WIN32 1
  2092. _ACEOF
  2093. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2094. $as_echo "yes" >&6; }
  2095. have_cygwin=yes
  2096. else
  2097. { $as_echo "$as_me:$LINENO: result: no" >&5
  2098. $as_echo "no" >&6; }
  2099. fi
  2100. am__api_version='1.11'
  2101. # Find a good install program. We prefer a C program (faster),
  2102. # so one script is as good as another. But avoid the broken or
  2103. # incompatible versions:
  2104. # SysV /etc/install, /usr/sbin/install
  2105. # SunOS /usr/etc/install
  2106. # IRIX /sbin/install
  2107. # AIX /bin/install
  2108. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2109. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2110. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2111. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2112. # OS/2's system install, which has a completely different semantic
  2113. # ./install, which can be erroneously created by make from ./install.sh.
  2114. # Reject install programs that cannot install multiple files.
  2115. { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  2116. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2117. if test -z "$INSTALL"; then
  2118. if test "${ac_cv_path_install+set}" = set; then
  2119. $as_echo_n "(cached) " >&6
  2120. else
  2121. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2122. for as_dir in $PATH
  2123. do
  2124. IFS=$as_save_IFS
  2125. test -z "$as_dir" && as_dir=.
  2126. # Account for people who put trailing slashes in PATH elements.
  2127. case $as_dir/ in
  2128. ./ | .// | /cC/* | \
  2129. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2130. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  2131. /usr/ucb/* ) ;;
  2132. *)
  2133. # OSF1 and SCO ODT 3.0 have their own names for install.
  2134. # Don't use installbsd from OSF since it installs stuff as root
  2135. # by default.
  2136. for ac_prog in ginstall scoinst install; do
  2137. for ac_exec_ext in '' $ac_executable_extensions; do
  2138. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2139. if test $ac_prog = install &&
  2140. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2141. # AIX install. It has an incompatible calling convention.
  2142. :
  2143. elif test $ac_prog = install &&
  2144. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2145. # program-specific install script used by HP pwplus--don't use.
  2146. :
  2147. else
  2148. rm -rf conftest.one conftest.two conftest.dir
  2149. echo one > conftest.one
  2150. echo two > conftest.two
  2151. mkdir conftest.dir
  2152. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2153. test -s conftest.one && test -s conftest.two &&
  2154. test -s conftest.dir/conftest.one &&
  2155. test -s conftest.dir/conftest.two
  2156. then
  2157. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2158. break 3
  2159. fi
  2160. fi
  2161. fi
  2162. done
  2163. done
  2164. ;;
  2165. esac
  2166. done
  2167. IFS=$as_save_IFS
  2168. rm -rf conftest.one conftest.two conftest.dir
  2169. fi
  2170. if test "${ac_cv_path_install+set}" = set; then
  2171. INSTALL=$ac_cv_path_install
  2172. else
  2173. # As a last resort, use the slow shell script. Don't cache a
  2174. # value for INSTALL within a source directory, because that will
  2175. # break other packages using the cache if that directory is
  2176. # removed, or if the value is a relative name.
  2177. INSTALL=$ac_install_sh
  2178. fi
  2179. fi
  2180. { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
  2181. $as_echo "$INSTALL" >&6; }
  2182. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2183. # It thinks the first close brace ends the variable substitution.
  2184. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2185. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2186. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2187. { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  2188. $as_echo_n "checking whether build environment is sane... " >&6; }
  2189. # Just in case
  2190. sleep 1
  2191. echo timestamp > conftest.file
  2192. # Reject unsafe characters in $srcdir or the absolute working directory
  2193. # name. Accept space and tab only in the latter.
  2194. am_lf='
  2195. '
  2196. case `pwd` in
  2197. *[\\\"\#\$\&\'\`$am_lf]*)
  2198. { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
  2199. $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
  2200. { (exit 1); exit 1; }; };;
  2201. esac
  2202. case $srcdir in
  2203. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2204. { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
  2205. $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
  2206. { (exit 1); exit 1; }; };;
  2207. esac
  2208. # Do `set' in a subshell so we don't clobber the current shell's
  2209. # arguments. Must try -L first in case configure is actually a
  2210. # symlink; some systems play weird games with the mod time of symlinks
  2211. # (eg FreeBSD returns the mod time of the symlink's containing
  2212. # directory).
  2213. if (
  2214. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2215. if test "$*" = "X"; then
  2216. # -L didn't work.
  2217. set X `ls -t "$srcdir/configure" conftest.file`
  2218. fi
  2219. rm -f conftest.file
  2220. if test "$*" != "X $srcdir/configure conftest.file" \
  2221. && test "$*" != "X conftest.file $srcdir/configure"; then
  2222. # If neither matched, then we have a broken ls. This can happen
  2223. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2224. # broken ls alias from the environment. This has actually
  2225. # happened. Such a system could not be considered "sane".
  2226. { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  2227. alias in your environment" >&5
  2228. $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  2229. alias in your environment" >&2;}
  2230. { (exit 1); exit 1; }; }
  2231. fi
  2232. test "$2" = conftest.file
  2233. )
  2234. then
  2235. # Ok.
  2236. :
  2237. else
  2238. { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  2239. Check your system clock" >&5
  2240. $as_echo "$as_me: error: newly created file is older than distributed files!
  2241. Check your system clock" >&2;}
  2242. { (exit 1); exit 1; }; }
  2243. fi
  2244. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2245. $as_echo "yes" >&6; }
  2246. test "$program_prefix" != NONE &&
  2247. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2248. # Use a double $ so make ignores it.
  2249. test "$program_suffix" != NONE &&
  2250. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2251. # Double any \ or $.
  2252. # By default was `s,x,x', remove it if useless.
  2253. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2254. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2255. # expand $ac_aux_dir to an absolute path
  2256. am_aux_dir=`cd $ac_aux_dir && pwd`
  2257. if test x"${MISSING+set}" != xset; then
  2258. case $am_aux_dir in
  2259. *\ * | *\ *)
  2260. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2261. *)
  2262. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2263. esac
  2264. fi
  2265. # Use eval to expand $SHELL
  2266. if eval "$MISSING --run true"; then
  2267. am_missing_run="$MISSING --run "
  2268. else
  2269. am_missing_run=
  2270. { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  2271. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2272. fi
  2273. if test x"${install_sh}" != xset; then
  2274. case $am_aux_dir in
  2275. *\ * | *\ *)
  2276. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2277. *)
  2278. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2279. esac
  2280. fi
  2281. # Installed binaries are usually stripped using `strip' when the user
  2282. # run `make install-strip'. However `strip' might not be the right
  2283. # tool to use in cross-compilation environments, therefore Automake
  2284. # will honor the `STRIP' environment variable to overrule this program.
  2285. if test "$cross_compiling" != no; then
  2286. if test -n "$ac_tool_prefix"; then
  2287. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2288. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2289. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2290. $as_echo_n "checking for $ac_word... " >&6; }
  2291. if test "${ac_cv_prog_STRIP+set}" = set; then
  2292. $as_echo_n "(cached) " >&6
  2293. else
  2294. if test -n "$STRIP"; then
  2295. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2296. else
  2297. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2298. for as_dir in $PATH
  2299. do
  2300. IFS=$as_save_IFS
  2301. test -z "$as_dir" && as_dir=.
  2302. for ac_exec_ext in '' $ac_executable_extensions; do
  2303. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2304. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2305. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2306. break 2
  2307. fi
  2308. done
  2309. done
  2310. IFS=$as_save_IFS
  2311. fi
  2312. fi
  2313. STRIP=$ac_cv_prog_STRIP
  2314. if test -n "$STRIP"; then
  2315. { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  2316. $as_echo "$STRIP" >&6; }
  2317. else
  2318. { $as_echo "$as_me:$LINENO: result: no" >&5
  2319. $as_echo "no" >&6; }
  2320. fi
  2321. fi
  2322. if test -z "$ac_cv_prog_STRIP"; then
  2323. ac_ct_STRIP=$STRIP
  2324. # Extract the first word of "strip", so it can be a program name with args.
  2325. set dummy strip; ac_word=$2
  2326. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2327. $as_echo_n "checking for $ac_word... " >&6; }
  2328. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2329. $as_echo_n "(cached) " >&6
  2330. else
  2331. if test -n "$ac_ct_STRIP"; then
  2332. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2333. else
  2334. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2335. for as_dir in $PATH
  2336. do
  2337. IFS=$as_save_IFS
  2338. test -z "$as_dir" && as_dir=.
  2339. for ac_exec_ext in '' $ac_executable_extensions; do
  2340. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2341. ac_cv_prog_ac_ct_STRIP="strip"
  2342. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2343. break 2
  2344. fi
  2345. done
  2346. done
  2347. IFS=$as_save_IFS
  2348. fi
  2349. fi
  2350. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2351. if test -n "$ac_ct_STRIP"; then
  2352. { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2353. $as_echo "$ac_ct_STRIP" >&6; }
  2354. else
  2355. { $as_echo "$as_me:$LINENO: result: no" >&5
  2356. $as_echo "no" >&6; }
  2357. fi
  2358. if test "x$ac_ct_STRIP" = x; then
  2359. STRIP=":"
  2360. else
  2361. case $cross_compiling:$ac_tool_warned in
  2362. yes:)
  2363. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2364. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2365. ac_tool_warned=yes ;;
  2366. esac
  2367. STRIP=$ac_ct_STRIP
  2368. fi
  2369. else
  2370. STRIP="$ac_cv_prog_STRIP"
  2371. fi
  2372. fi
  2373. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2374. { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  2375. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2376. if test -z "$MKDIR_P"; then
  2377. if test "${ac_cv_path_mkdir+set}" = set; then
  2378. $as_echo_n "(cached) " >&6
  2379. else
  2380. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2381. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2382. do
  2383. IFS=$as_save_IFS
  2384. test -z "$as_dir" && as_dir=.
  2385. for ac_prog in mkdir gmkdir; do
  2386. for ac_exec_ext in '' $ac_executable_extensions; do
  2387. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2388. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2389. 'mkdir (GNU coreutils) '* | \
  2390. 'mkdir (coreutils) '* | \
  2391. 'mkdir (fileutils) '4.1*)
  2392. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2393. break 3;;
  2394. esac
  2395. done
  2396. done
  2397. done
  2398. IFS=$as_save_IFS
  2399. fi
  2400. if test "${ac_cv_path_mkdir+set}" = set; then
  2401. MKDIR_P="$ac_cv_path_mkdir -p"
  2402. else
  2403. # As a last resort, use the slow shell script. Don't cache a
  2404. # value for MKDIR_P within a source directory, because that will
  2405. # break other packages using the cache if that directory is
  2406. # removed, or if the value is a relative name.
  2407. test -d ./--version && rmdir ./--version
  2408. MKDIR_P="$ac_install_sh -d"
  2409. fi
  2410. fi
  2411. { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  2412. $as_echo "$MKDIR_P" >&6; }
  2413. mkdir_p="$MKDIR_P"
  2414. case $mkdir_p in
  2415. [\\/$]* | ?:[\\/]*) ;;
  2416. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2417. esac
  2418. for ac_prog in gawk mawk nawk awk
  2419. do
  2420. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2421. set dummy $ac_prog; ac_word=$2
  2422. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2423. $as_echo_n "checking for $ac_word... " >&6; }
  2424. if test "${ac_cv_prog_AWK+set}" = set; then
  2425. $as_echo_n "(cached) " >&6
  2426. else
  2427. if test -n "$AWK"; then
  2428. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2429. else
  2430. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2431. for as_dir in $PATH
  2432. do
  2433. IFS=$as_save_IFS
  2434. test -z "$as_dir" && as_dir=.
  2435. for ac_exec_ext in '' $ac_executable_extensions; do
  2436. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2437. ac_cv_prog_AWK="$ac_prog"
  2438. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2439. break 2
  2440. fi
  2441. done
  2442. done
  2443. IFS=$as_save_IFS
  2444. fi
  2445. fi
  2446. AWK=$ac_cv_prog_AWK
  2447. if test -n "$AWK"; then
  2448. { $as_echo "$as_me:$LINENO: result: $AWK" >&5
  2449. $as_echo "$AWK" >&6; }
  2450. else
  2451. { $as_echo "$as_me:$LINENO: result: no" >&5
  2452. $as_echo "no" >&6; }
  2453. fi
  2454. test -n "$AWK" && break
  2455. done
  2456. { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2457. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2458. set x ${MAKE-make}
  2459. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2460. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2461. $as_echo_n "(cached) " >&6
  2462. else
  2463. cat >conftest.make <<\_ACEOF
  2464. SHELL = /bin/sh
  2465. all:
  2466. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2467. _ACEOF
  2468. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2469. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2470. *@@@%%%=?*=@@@%%%*)
  2471. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2472. *)
  2473. eval ac_cv_prog_make_${ac_make}_set=no;;
  2474. esac
  2475. rm -f conftest.make
  2476. fi
  2477. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2478. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2479. $as_echo "yes" >&6; }
  2480. SET_MAKE=
  2481. else
  2482. { $as_echo "$as_me:$LINENO: result: no" >&5
  2483. $as_echo "no" >&6; }
  2484. SET_MAKE="MAKE=${MAKE-make}"
  2485. fi
  2486. rm -rf .tst 2>/dev/null
  2487. mkdir .tst 2>/dev/null
  2488. if test -d .tst; then
  2489. am__leading_dot=.
  2490. else
  2491. am__leading_dot=_
  2492. fi
  2493. rmdir .tst 2>/dev/null
  2494. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2495. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2496. # is not polluted with repeated "-I."
  2497. am__isrc=' -I$(srcdir)'
  2498. # test to see if srcdir already configured
  2499. if test -f $srcdir/config.status; then
  2500. { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2501. $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2502. { (exit 1); exit 1; }; }
  2503. fi
  2504. fi
  2505. # test whether we have cygpath
  2506. if test -z "$CYGPATH_W"; then
  2507. if (cygpath --version) >/dev/null 2>/dev/null; then
  2508. CYGPATH_W='cygpath -w'
  2509. else
  2510. CYGPATH_W=echo
  2511. fi
  2512. fi
  2513. # Define the identity of the package.
  2514. PACKAGE=tcpreplay
  2515. VERSION=$TCPREPLAY_VERSION
  2516. # Some tools Automake needs.
  2517. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2518. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2519. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2520. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2521. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2522. # We need awk for the "check" target. The system "awk" is bad on
  2523. # some platforms.
  2524. # Always define AMTAR for backward compatibility.
  2525. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2526. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2527. # Find a good install program. We prefer a C program (faster),
  2528. # so one script is as good as another. But avoid the broken or
  2529. # incompatible versions:
  2530. # SysV /etc/install, /usr/sbin/install
  2531. # SunOS /usr/etc/install
  2532. # IRIX /sbin/install
  2533. # AIX /bin/install
  2534. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2535. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2536. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2537. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2538. # OS/2's system install, which has a completely different semantic
  2539. # ./install, which can be erroneously created by make from ./install.sh.
  2540. # Reject install programs that cannot install multiple files.
  2541. { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  2542. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2543. if test -z "$INSTALL"; then
  2544. if test "${ac_cv_path_install+set}" = set; then
  2545. $as_echo_n "(cached) " >&6
  2546. else
  2547. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2548. for as_dir in $PATH
  2549. do
  2550. IFS=$as_save_IFS
  2551. test -z "$as_dir" && as_dir=.
  2552. # Account for people who put trailing slashes in PATH elements.
  2553. case $as_dir/ in
  2554. ./ | .// | /cC/* | \
  2555. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2556. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  2557. /usr/ucb/* ) ;;
  2558. *)
  2559. # OSF1 and SCO ODT 3.0 have their own names for install.
  2560. # Don't use installbsd from OSF since it installs stuff as root
  2561. # by default.
  2562. for ac_prog in ginstall scoinst install; do
  2563. for ac_exec_ext in '' $ac_executable_extensions; do
  2564. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2565. if test $ac_prog = install &&
  2566. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2567. # AIX install. It has an incompatible calling convention.
  2568. :
  2569. elif test $ac_prog = install &&
  2570. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2571. # program-specific install script used by HP pwplus--don't use.
  2572. :
  2573. else
  2574. rm -rf conftest.one conftest.two conftest.dir
  2575. echo one > conftest.one
  2576. echo two > conftest.two
  2577. mkdir conftest.dir
  2578. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2579. test -s conftest.one && test -s conftest.two &&
  2580. test -s conftest.dir/conftest.one &&
  2581. test -s conftest.dir/conftest.two
  2582. then
  2583. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2584. break 3
  2585. fi
  2586. fi
  2587. fi
  2588. done
  2589. done
  2590. ;;
  2591. esac
  2592. done
  2593. IFS=$as_save_IFS
  2594. rm -rf conftest.one conftest.two conftest.dir
  2595. fi
  2596. if test "${ac_cv_path_install+set}" = set; then
  2597. INSTALL=$ac_cv_path_install
  2598. else
  2599. # As a last resort, use the slow shell script. Don't cache a
  2600. # value for INSTALL within a source directory, because that will
  2601. # break other packages using the cache if that directory is
  2602. # removed, or if the value is a relative name.
  2603. INSTALL=$ac_install_sh
  2604. fi
  2605. fi
  2606. { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
  2607. $as_echo "$INSTALL" >&6; }
  2608. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2609. # It thinks the first close brace ends the variable substitution.
  2610. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2611. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2612. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2613. case `pwd` in
  2614. *\ * | *\ *)
  2615. { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2616. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2617. esac
  2618. macro_version='2.2.6'
  2619. macro_revision='1.3012'
  2620. ltmain="$ac_aux_dir/ltmain.sh"
  2621. DEPDIR="${am__leading_dot}deps"
  2622. ac_config_commands="$ac_config_commands depfiles"
  2623. am_make=${MAKE-make}
  2624. cat > confinc << 'END'
  2625. am__doit:
  2626. @echo this is the am__doit target
  2627. .PHONY: am__doit
  2628. END
  2629. # If we don't find an include directive, just comment out the code.
  2630. { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2631. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  2632. am__include="#"
  2633. am__quote=
  2634. _am_result=none
  2635. # First try GNU make style include.
  2636. echo "include confinc" > confmf
  2637. # Ignore all kinds of additional output from `make'.
  2638. case `$am_make -s -f confmf 2> /dev/null` in #(
  2639. *the\ am__doit\ target*)
  2640. am__include=include
  2641. am__quote=
  2642. _am_result=GNU
  2643. ;;
  2644. esac
  2645. # Now try BSD make style include.
  2646. if test "$am__include" = "#"; then
  2647. echo '.include "confinc"' > confmf
  2648. case `$am_make -s -f confmf 2> /dev/null` in #(
  2649. *the\ am__doit\ target*)
  2650. am__include=.include
  2651. am__quote="\""
  2652. _am_result=BSD
  2653. ;;
  2654. esac
  2655. fi
  2656. { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
  2657. $as_echo "$_am_result" >&6; }
  2658. rm -f confinc confmf
  2659. # Check whether --enable-dependency-tracking was given.
  2660. if test "${enable_dependency_tracking+set}" = set; then
  2661. enableval=$enable_dependency_tracking;
  2662. fi
  2663. if test "x$enable_dependency_tracking" != xno; then
  2664. am_depcomp="$ac_aux_dir/depcomp"
  2665. AMDEPBACKSLASH='\'
  2666. fi
  2667. if test "x$enable_dependency_tracking" != xno; then
  2668. AMDEP_TRUE=
  2669. AMDEP_FALSE='#'
  2670. else
  2671. AMDEP_TRUE='#'
  2672. AMDEP_FALSE=
  2673. fi
  2674. ac_ext=c
  2675. ac_cpp='$CPP $CPPFLAGS'
  2676. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2677. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2678. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2679. if test -n "$ac_tool_prefix"; then
  2680. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2681. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2682. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2683. $as_echo_n "checking for $ac_word... " >&6; }
  2684. if test "${ac_cv_prog_CC+set}" = set; then
  2685. $as_echo_n "(cached) " >&6
  2686. else
  2687. if test -n "$CC"; then
  2688. ac_cv_prog_CC="$CC" # Let the user override the test.
  2689. else
  2690. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2691. for as_dir in $PATH
  2692. do
  2693. IFS=$as_save_IFS
  2694. test -z "$as_dir" && as_dir=.
  2695. for ac_exec_ext in '' $ac_executable_extensions; do
  2696. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2697. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2698. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2699. break 2
  2700. fi
  2701. done
  2702. done
  2703. IFS=$as_save_IFS
  2704. fi
  2705. fi
  2706. CC=$ac_cv_prog_CC
  2707. if test -n "$CC"; then
  2708. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2709. $as_echo "$CC" >&6; }
  2710. else
  2711. { $as_echo "$as_me:$LINENO: result: no" >&5
  2712. $as_echo "no" >&6; }
  2713. fi
  2714. fi
  2715. if test -z "$ac_cv_prog_CC"; then
  2716. ac_ct_CC=$CC
  2717. # Extract the first word of "gcc", so it can be a program name with args.
  2718. set dummy gcc; ac_word=$2
  2719. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2720. $as_echo_n "checking for $ac_word... " >&6; }
  2721. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2722. $as_echo_n "(cached) " >&6
  2723. else
  2724. if test -n "$ac_ct_CC"; then
  2725. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2726. else
  2727. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2728. for as_dir in $PATH
  2729. do
  2730. IFS=$as_save_IFS
  2731. test -z "$as_dir" && as_dir=.
  2732. for ac_exec_ext in '' $ac_executable_extensions; do
  2733. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2734. ac_cv_prog_ac_ct_CC="gcc"
  2735. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2736. break 2
  2737. fi
  2738. done
  2739. done
  2740. IFS=$as_save_IFS
  2741. fi
  2742. fi
  2743. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2744. if test -n "$ac_ct_CC"; then
  2745. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2746. $as_echo "$ac_ct_CC" >&6; }
  2747. else
  2748. { $as_echo "$as_me:$LINENO: result: no" >&5
  2749. $as_echo "no" >&6; }
  2750. fi
  2751. if test "x$ac_ct_CC" = x; then
  2752. CC=""
  2753. else
  2754. case $cross_compiling:$ac_tool_warned in
  2755. yes:)
  2756. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2757. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2758. ac_tool_warned=yes ;;
  2759. esac
  2760. CC=$ac_ct_CC
  2761. fi
  2762. else
  2763. CC="$ac_cv_prog_CC"
  2764. fi
  2765. if test -z "$CC"; then
  2766. if test -n "$ac_tool_prefix"; then
  2767. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2768. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2769. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2770. $as_echo_n "checking for $ac_word... " >&6; }
  2771. if test "${ac_cv_prog_CC+set}" = set; then
  2772. $as_echo_n "(cached) " >&6
  2773. else
  2774. if test -n "$CC"; then
  2775. ac_cv_prog_CC="$CC" # Let the user override the test.
  2776. else
  2777. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2778. for as_dir in $PATH
  2779. do
  2780. IFS=$as_save_IFS
  2781. test -z "$as_dir" && as_dir=.
  2782. for ac_exec_ext in '' $ac_executable_extensions; do
  2783. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2784. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2785. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2786. break 2
  2787. fi
  2788. done
  2789. done
  2790. IFS=$as_save_IFS
  2791. fi
  2792. fi
  2793. CC=$ac_cv_prog_CC
  2794. if test -n "$CC"; then
  2795. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2796. $as_echo "$CC" >&6; }
  2797. else
  2798. { $as_echo "$as_me:$LINENO: result: no" >&5
  2799. $as_echo "no" >&6; }
  2800. fi
  2801. fi
  2802. fi
  2803. if test -z "$CC"; then
  2804. # Extract the first word of "cc", so it can be a program name with args.
  2805. set dummy cc; ac_word=$2
  2806. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2807. $as_echo_n "checking for $ac_word... " >&6; }
  2808. if test "${ac_cv_prog_CC+set}" = set; then
  2809. $as_echo_n "(cached) " >&6
  2810. else
  2811. if test -n "$CC"; then
  2812. ac_cv_prog_CC="$CC" # Let the user override the test.
  2813. else
  2814. ac_prog_rejected=no
  2815. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2816. for as_dir in $PATH
  2817. do
  2818. IFS=$as_save_IFS
  2819. test -z "$as_dir" && as_dir=.
  2820. for ac_exec_ext in '' $ac_executable_extensions; do
  2821. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2822. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2823. ac_prog_rejected=yes
  2824. continue
  2825. fi
  2826. ac_cv_prog_CC="cc"
  2827. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2828. break 2
  2829. fi
  2830. done
  2831. done
  2832. IFS=$as_save_IFS
  2833. if test $ac_prog_rejected = yes; then
  2834. # We found a bogon in the path, so make sure we never use it.
  2835. set dummy $ac_cv_prog_CC
  2836. shift
  2837. if test $# != 0; then
  2838. # We chose a different compiler from the bogus one.
  2839. # However, it has the same basename, so the bogon will be chosen
  2840. # first if we set CC to just the basename; use the full file name.
  2841. shift
  2842. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2843. fi
  2844. fi
  2845. fi
  2846. fi
  2847. CC=$ac_cv_prog_CC
  2848. if test -n "$CC"; then
  2849. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2850. $as_echo "$CC" >&6; }
  2851. else
  2852. { $as_echo "$as_me:$LINENO: result: no" >&5
  2853. $as_echo "no" >&6; }
  2854. fi
  2855. fi
  2856. if test -z "$CC"; then
  2857. if test -n "$ac_tool_prefix"; then
  2858. for ac_prog in cl.exe
  2859. do
  2860. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2861. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2862. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2863. $as_echo_n "checking for $ac_word... " >&6; }
  2864. if test "${ac_cv_prog_CC+set}" = set; then
  2865. $as_echo_n "(cached) " >&6
  2866. else
  2867. if test -n "$CC"; then
  2868. ac_cv_prog_CC="$CC" # Let the user override the test.
  2869. else
  2870. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2871. for as_dir in $PATH
  2872. do
  2873. IFS=$as_save_IFS
  2874. test -z "$as_dir" && as_dir=.
  2875. for ac_exec_ext in '' $ac_executable_extensions; do
  2876. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2877. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2878. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2879. break 2
  2880. fi
  2881. done
  2882. done
  2883. IFS=$as_save_IFS
  2884. fi
  2885. fi
  2886. CC=$ac_cv_prog_CC
  2887. if test -n "$CC"; then
  2888. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2889. $as_echo "$CC" >&6; }
  2890. else
  2891. { $as_echo "$as_me:$LINENO: result: no" >&5
  2892. $as_echo "no" >&6; }
  2893. fi
  2894. test -n "$CC" && break
  2895. done
  2896. fi
  2897. if test -z "$CC"; then
  2898. ac_ct_CC=$CC
  2899. for ac_prog in cl.exe
  2900. do
  2901. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2902. set dummy $ac_prog; ac_word=$2
  2903. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2904. $as_echo_n "checking for $ac_word... " >&6; }
  2905. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2906. $as_echo_n "(cached) " >&6
  2907. else
  2908. if test -n "$ac_ct_CC"; then
  2909. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2910. else
  2911. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2912. for as_dir in $PATH
  2913. do
  2914. IFS=$as_save_IFS
  2915. test -z "$as_dir" && as_dir=.
  2916. for ac_exec_ext in '' $ac_executable_extensions; do
  2917. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2918. ac_cv_prog_ac_ct_CC="$ac_prog"
  2919. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2920. break 2
  2921. fi
  2922. done
  2923. done
  2924. IFS=$as_save_IFS
  2925. fi
  2926. fi
  2927. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2928. if test -n "$ac_ct_CC"; then
  2929. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2930. $as_echo "$ac_ct_CC" >&6; }
  2931. else
  2932. { $as_echo "$as_me:$LINENO: result: no" >&5
  2933. $as_echo "no" >&6; }
  2934. fi
  2935. test -n "$ac_ct_CC" && break
  2936. done
  2937. if test "x$ac_ct_CC" = x; then
  2938. CC=""
  2939. else
  2940. case $cross_compiling:$ac_tool_warned in
  2941. yes:)
  2942. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2943. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2944. ac_tool_warned=yes ;;
  2945. esac
  2946. CC=$ac_ct_CC
  2947. fi
  2948. fi
  2949. fi
  2950. test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2951. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2952. { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2953. See \`config.log' for more details." >&5
  2954. $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  2955. See \`config.log' for more details." >&2;}
  2956. { (exit 1); exit 1; }; }; }
  2957. # Provide some information about the compiler.
  2958. $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  2959. set X $ac_compile
  2960. ac_compiler=$2
  2961. { (ac_try="$ac_compiler --version >&5"
  2962. case "(($ac_try" in
  2963. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2964. *) ac_try_echo=$ac_try;;
  2965. esac
  2966. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2967. $as_echo "$ac_try_echo") >&5
  2968. (eval "$ac_compiler --version >&5") 2>&5
  2969. ac_status=$?
  2970. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2971. (exit $ac_status); }
  2972. { (ac_try="$ac_compiler -v >&5"
  2973. case "(($ac_try" in
  2974. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2975. *) ac_try_echo=$ac_try;;
  2976. esac
  2977. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2978. $as_echo "$ac_try_echo") >&5
  2979. (eval "$ac_compiler -v >&5") 2>&5
  2980. ac_status=$?
  2981. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2982. (exit $ac_status); }
  2983. { (ac_try="$ac_compiler -V >&5"
  2984. case "(($ac_try" in
  2985. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2986. *) ac_try_echo=$ac_try;;
  2987. esac
  2988. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2989. $as_echo "$ac_try_echo") >&5
  2990. (eval "$ac_compiler -V >&5") 2>&5
  2991. ac_status=$?
  2992. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2993. (exit $ac_status); }
  2994. cat >conftest.$ac_ext <<_ACEOF
  2995. /* confdefs.h. */
  2996. _ACEOF
  2997. cat confdefs.h >>conftest.$ac_ext
  2998. cat >>conftest.$ac_ext <<_ACEOF
  2999. /* end confdefs.h. */
  3000. int
  3001. main ()
  3002. {
  3003. ;
  3004. return 0;
  3005. }
  3006. _ACEOF
  3007. ac_clean_files_save=$ac_clean_files
  3008. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3009. # Try to create an executable without -o first, disregard a.out.
  3010. # It will help us diagnose broken compilers, and finding out an intuition
  3011. # of exeext.
  3012. { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  3013. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3014. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3015. # The possible output files:
  3016. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3017. ac_rmfiles=
  3018. for ac_file in $ac_files
  3019. do
  3020. case $ac_file in
  3021. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3022. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3023. esac
  3024. done
  3025. rm -f $ac_rmfiles
  3026. if { (ac_try="$ac_link_default"
  3027. case "(($ac_try" in
  3028. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3029. *) ac_try_echo=$ac_try;;
  3030. esac
  3031. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3032. $as_echo "$ac_try_echo") >&5
  3033. (eval "$ac_link_default") 2>&5
  3034. ac_status=$?
  3035. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3036. (exit $ac_status); }; then
  3037. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3038. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3039. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3040. # so that the user can short-circuit this test for compilers unknown to
  3041. # Autoconf.
  3042. for ac_file in $ac_files ''
  3043. do
  3044. test -f "$ac_file" || continue
  3045. case $ac_file in
  3046. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3047. ;;
  3048. [ab].out )
  3049. # We found the default executable, but exeext='' is most
  3050. # certainly right.
  3051. break;;
  3052. *.* )
  3053. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3054. then :; else
  3055. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3056. fi
  3057. # We set ac_cv_exeext here because the later test for it is not
  3058. # safe: cross compilers may not add the suffix if given an `-o'
  3059. # argument, so we may need to know it at that point already.
  3060. # Even if this section looks crufty: it has the advantage of
  3061. # actually working.
  3062. break;;
  3063. * )
  3064. break;;
  3065. esac
  3066. done
  3067. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3068. else
  3069. ac_file=''
  3070. fi
  3071. { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
  3072. $as_echo "$ac_file" >&6; }
  3073. if test -z "$ac_file"; then
  3074. $as_echo "$as_me: failed program was:" >&5
  3075. sed 's/^/| /' conftest.$ac_ext >&5
  3076. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  3077. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3078. { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
  3079. See \`config.log' for more details." >&5
  3080. $as_echo "$as_me: error: C compiler cannot create executables
  3081. See \`config.log' for more details." >&2;}
  3082. { (exit 77); exit 77; }; }; }
  3083. fi
  3084. ac_exeext=$ac_cv_exeext
  3085. # Check that the compiler produces executables we can run. If not, either
  3086. # the compiler is broken, or we cross compile.
  3087. { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  3088. $as_echo_n "checking whether the C compiler works... " >&6; }
  3089. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  3090. # If not cross compiling, check that we can run a simple program.
  3091. if test "$cross_compiling" != yes; then
  3092. if { ac_try='./$ac_file'
  3093. { (case "(($ac_try" in
  3094. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3095. *) ac_try_echo=$ac_try;;
  3096. esac
  3097. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3098. $as_echo "$ac_try_echo") >&5
  3099. (eval "$ac_try") 2>&5
  3100. ac_status=$?
  3101. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3102. (exit $ac_status); }; }; then
  3103. cross_compiling=no
  3104. else
  3105. if test "$cross_compiling" = maybe; then
  3106. cross_compiling=yes
  3107. else
  3108. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  3109. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3110. { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
  3111. If you meant to cross compile, use \`--host'.
  3112. See \`config.log' for more details." >&5
  3113. $as_echo "$as_me: error: cannot run C compiled programs.
  3114. If you meant to cross compile, use \`--host'.
  3115. See \`config.log' for more details." >&2;}
  3116. { (exit 1); exit 1; }; }; }
  3117. fi
  3118. fi
  3119. fi
  3120. { $as_echo "$as_me:$LINENO: result: yes" >&5
  3121. $as_echo "yes" >&6; }
  3122. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3123. ac_clean_files=$ac_clean_files_save
  3124. # Check that the compiler produces executables we can run. If not, either
  3125. # the compiler is broken, or we cross compile.
  3126. { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  3127. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3128. { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
  3129. $as_echo "$cross_compiling" >&6; }
  3130. { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
  3131. $as_echo_n "checking for suffix of executables... " >&6; }
  3132. if { (ac_try="$ac_link"
  3133. case "(($ac_try" in
  3134. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3135. *) ac_try_echo=$ac_try;;
  3136. esac
  3137. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3138. $as_echo "$ac_try_echo") >&5
  3139. (eval "$ac_link") 2>&5
  3140. ac_status=$?
  3141. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3142. (exit $ac_status); }; then
  3143. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3144. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3145. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3146. # `rm'.
  3147. for ac_file in conftest.exe conftest conftest.*; do
  3148. test -f "$ac_file" || continue
  3149. case $ac_file in
  3150. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3151. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3152. break;;
  3153. * ) break;;
  3154. esac
  3155. done
  3156. else
  3157. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  3158. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3159. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  3160. See \`config.log' for more details." >&5
  3161. $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  3162. See \`config.log' for more details." >&2;}
  3163. { (exit 1); exit 1; }; }; }
  3164. fi
  3165. rm -f conftest$ac_cv_exeext
  3166. { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  3167. $as_echo "$ac_cv_exeext" >&6; }
  3168. rm -f conftest.$ac_ext
  3169. EXEEXT=$ac_cv_exeext
  3170. ac_exeext=$EXEEXT
  3171. { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
  3172. $as_echo_n "checking for suffix of object files... " >&6; }
  3173. if test "${ac_cv_objext+set}" = set; then
  3174. $as_echo_n "(cached) " >&6
  3175. else
  3176. cat >conftest.$ac_ext <<_ACEOF
  3177. /* confdefs.h. */
  3178. _ACEOF
  3179. cat confdefs.h >>conftest.$ac_ext
  3180. cat >>conftest.$ac_ext <<_ACEOF
  3181. /* end confdefs.h. */
  3182. int
  3183. main ()
  3184. {
  3185. ;
  3186. return 0;
  3187. }
  3188. _ACEOF
  3189. rm -f conftest.o conftest.obj
  3190. if { (ac_try="$ac_compile"
  3191. case "(($ac_try" in
  3192. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3193. *) ac_try_echo=$ac_try;;
  3194. esac
  3195. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3196. $as_echo "$ac_try_echo") >&5
  3197. (eval "$ac_compile") 2>&5
  3198. ac_status=$?
  3199. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3200. (exit $ac_status); }; then
  3201. for ac_file in conftest.o conftest.obj conftest.*; do
  3202. test -f "$ac_file" || continue;
  3203. case $ac_file in
  3204. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3205. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3206. break;;
  3207. esac
  3208. done
  3209. else
  3210. $as_echo "$as_me: failed program was:" >&5
  3211. sed 's/^/| /' conftest.$ac_ext >&5
  3212. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  3213. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3214. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  3215. See \`config.log' for more details." >&5
  3216. $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
  3217. See \`config.log' for more details." >&2;}
  3218. { (exit 1); exit 1; }; }; }
  3219. fi
  3220. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3221. fi
  3222. { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  3223. $as_echo "$ac_cv_objext" >&6; }
  3224. OBJEXT=$ac_cv_objext
  3225. ac_objext=$OBJEXT
  3226. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3227. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3228. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3229. $as_echo_n "(cached) " >&6
  3230. else
  3231. cat >conftest.$ac_ext <<_ACEOF
  3232. /* confdefs.h. */
  3233. _ACEOF
  3234. cat confdefs.h >>conftest.$ac_ext
  3235. cat >>conftest.$ac_ext <<_ACEOF
  3236. /* end confdefs.h. */
  3237. int
  3238. main ()
  3239. {
  3240. #ifndef __GNUC__
  3241. choke me
  3242. #endif
  3243. ;
  3244. return 0;
  3245. }
  3246. _ACEOF
  3247. rm -f conftest.$ac_objext
  3248. if { (ac_try="$ac_compile"
  3249. case "(($ac_try" in
  3250. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3251. *) ac_try_echo=$ac_try;;
  3252. esac
  3253. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3254. $as_echo "$ac_try_echo") >&5
  3255. (eval "$ac_compile") 2>conftest.er1
  3256. ac_status=$?
  3257. grep -v '^ *+' conftest.er1 >conftest.err
  3258. rm -f conftest.er1
  3259. cat conftest.err >&5
  3260. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3261. (exit $ac_status); } && {
  3262. test -z "$ac_c_werror_flag" ||
  3263. test ! -s conftest.err
  3264. } && test -s conftest.$ac_objext; then
  3265. ac_compiler_gnu=yes
  3266. else
  3267. $as_echo "$as_me: failed program was:" >&5
  3268. sed 's/^/| /' conftest.$ac_ext >&5
  3269. ac_compiler_gnu=no
  3270. fi
  3271. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3272. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3273. fi
  3274. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3275. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3276. if test $ac_compiler_gnu = yes; then
  3277. GCC=yes
  3278. else
  3279. GCC=
  3280. fi
  3281. ac_test_CFLAGS=${CFLAGS+set}
  3282. ac_save_CFLAGS=$CFLAGS
  3283. { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3284. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3285. if test "${ac_cv_prog_cc_g+set}" = set; then
  3286. $as_echo_n "(cached) " >&6
  3287. else
  3288. ac_save_c_werror_flag=$ac_c_werror_flag
  3289. ac_c_werror_flag=yes
  3290. ac_cv_prog_cc_g=no
  3291. CFLAGS="-g"
  3292. cat >conftest.$ac_ext <<_ACEOF
  3293. /* confdefs.h. */
  3294. _ACEOF
  3295. cat confdefs.h >>conftest.$ac_ext
  3296. cat >>conftest.$ac_ext <<_ACEOF
  3297. /* end confdefs.h. */
  3298. int
  3299. main ()
  3300. {
  3301. ;
  3302. return 0;
  3303. }
  3304. _ACEOF
  3305. rm -f conftest.$ac_objext
  3306. if { (ac_try="$ac_compile"
  3307. case "(($ac_try" in
  3308. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3309. *) ac_try_echo=$ac_try;;
  3310. esac
  3311. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3312. $as_echo "$ac_try_echo") >&5
  3313. (eval "$ac_compile") 2>conftest.er1
  3314. ac_status=$?
  3315. grep -v '^ *+' conftest.er1 >conftest.err
  3316. rm -f conftest.er1
  3317. cat conftest.err >&5
  3318. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3319. (exit $ac_status); } && {
  3320. test -z "$ac_c_werror_flag" ||
  3321. test ! -s conftest.err
  3322. } && test -s conftest.$ac_objext; then
  3323. ac_cv_prog_cc_g=yes
  3324. else
  3325. $as_echo "$as_me: failed program was:" >&5
  3326. sed 's/^/| /' conftest.$ac_ext >&5
  3327. CFLAGS=""
  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. int
  3335. main ()
  3336. {
  3337. ;
  3338. return 0;
  3339. }
  3340. _ACEOF
  3341. rm -f conftest.$ac_objext
  3342. if { (ac_try="$ac_compile"
  3343. case "(($ac_try" in
  3344. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3345. *) ac_try_echo=$ac_try;;
  3346. esac
  3347. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3348. $as_echo "$ac_try_echo") >&5
  3349. (eval "$ac_compile") 2>conftest.er1
  3350. ac_status=$?
  3351. grep -v '^ *+' conftest.er1 >conftest.err
  3352. rm -f conftest.er1
  3353. cat conftest.err >&5
  3354. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3355. (exit $ac_status); } && {
  3356. test -z "$ac_c_werror_flag" ||
  3357. test ! -s conftest.err
  3358. } && test -s conftest.$ac_objext; then
  3359. :
  3360. else
  3361. $as_echo "$as_me: failed program was:" >&5
  3362. sed 's/^/| /' conftest.$ac_ext >&5
  3363. ac_c_werror_flag=$ac_save_c_werror_flag
  3364. CFLAGS="-g"
  3365. cat >conftest.$ac_ext <<_ACEOF
  3366. /* confdefs.h. */
  3367. _ACEOF
  3368. cat confdefs.h >>conftest.$ac_ext
  3369. cat >>conftest.$ac_ext <<_ACEOF
  3370. /* end confdefs.h. */
  3371. int
  3372. main ()
  3373. {
  3374. ;
  3375. return 0;
  3376. }
  3377. _ACEOF
  3378. rm -f conftest.$ac_objext
  3379. if { (ac_try="$ac_compile"
  3380. case "(($ac_try" in
  3381. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3382. *) ac_try_echo=$ac_try;;
  3383. esac
  3384. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3385. $as_echo "$ac_try_echo") >&5
  3386. (eval "$ac_compile") 2>conftest.er1
  3387. ac_status=$?
  3388. grep -v '^ *+' conftest.er1 >conftest.err
  3389. rm -f conftest.er1
  3390. cat conftest.err >&5
  3391. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3392. (exit $ac_status); } && {
  3393. test -z "$ac_c_werror_flag" ||
  3394. test ! -s conftest.err
  3395. } && test -s conftest.$ac_objext; then
  3396. ac_cv_prog_cc_g=yes
  3397. else
  3398. $as_echo "$as_me: failed program was:" >&5
  3399. sed 's/^/| /' conftest.$ac_ext >&5
  3400. fi
  3401. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3402. fi
  3403. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3404. fi
  3405. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3406. ac_c_werror_flag=$ac_save_c_werror_flag
  3407. fi
  3408. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3409. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3410. if test "$ac_test_CFLAGS" = set; then
  3411. CFLAGS=$ac_save_CFLAGS
  3412. elif test $ac_cv_prog_cc_g = yes; then
  3413. if test "$GCC" = yes; then
  3414. CFLAGS="-g -O2"
  3415. else
  3416. CFLAGS="-g"
  3417. fi
  3418. else
  3419. if test "$GCC" = yes; then
  3420. CFLAGS="-O2"
  3421. else
  3422. CFLAGS=
  3423. fi
  3424. fi
  3425. { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3426. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3427. if test "${ac_cv_prog_cc_c89+set}" = set; then
  3428. $as_echo_n "(cached) " >&6
  3429. else
  3430. ac_cv_prog_cc_c89=no
  3431. ac_save_CC=$CC
  3432. cat >conftest.$ac_ext <<_ACEOF
  3433. /* confdefs.h. */
  3434. _ACEOF
  3435. cat confdefs.h >>conftest.$ac_ext
  3436. cat >>conftest.$ac_ext <<_ACEOF
  3437. /* end confdefs.h. */
  3438. #include <stdarg.h>
  3439. #include <stdio.h>
  3440. #include <sys/types.h>
  3441. #include <sys/stat.h>
  3442. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3443. struct buf { int x; };
  3444. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3445. static char *e (p, i)
  3446. char **p;
  3447. int i;
  3448. {
  3449. return p[i];
  3450. }
  3451. static char *f (char * (*g) (char **, int), char **p, ...)
  3452. {
  3453. char *s;
  3454. va_list v;
  3455. va_start (v,p);
  3456. s = g (p, va_arg (v,int));
  3457. va_end (v);
  3458. return s;
  3459. }
  3460. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3461. function prototypes and stuff, but not '\xHH' hex character constants.
  3462. These don't provoke an error unfortunately, instead are silently treated
  3463. as 'x'. The following induces an error, until -std is added to get
  3464. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3465. array size at least. It's necessary to write '\x00'==0 to get something
  3466. that's true only with -std. */
  3467. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3468. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3469. inside strings and character constants. */
  3470. #define FOO(x) 'x'
  3471. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3472. int test (int i, double x);
  3473. struct s1 {int (*f) (int a);};
  3474. struct s2 {int (*f) (double a);};
  3475. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3476. int argc;
  3477. char **argv;
  3478. int
  3479. main ()
  3480. {
  3481. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3482. ;
  3483. return 0;
  3484. }
  3485. _ACEOF
  3486. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3487. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3488. do
  3489. CC="$ac_save_CC $ac_arg"
  3490. rm -f conftest.$ac_objext
  3491. if { (ac_try="$ac_compile"
  3492. case "(($ac_try" in
  3493. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3494. *) ac_try_echo=$ac_try;;
  3495. esac
  3496. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3497. $as_echo "$ac_try_echo") >&5
  3498. (eval "$ac_compile") 2>conftest.er1
  3499. ac_status=$?
  3500. grep -v '^ *+' conftest.er1 >conftest.err
  3501. rm -f conftest.er1
  3502. cat conftest.err >&5
  3503. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3504. (exit $ac_status); } && {
  3505. test -z "$ac_c_werror_flag" ||
  3506. test ! -s conftest.err
  3507. } && test -s conftest.$ac_objext; then
  3508. ac_cv_prog_cc_c89=$ac_arg
  3509. else
  3510. $as_echo "$as_me: failed program was:" >&5
  3511. sed 's/^/| /' conftest.$ac_ext >&5
  3512. fi
  3513. rm -f core conftest.err conftest.$ac_objext
  3514. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3515. done
  3516. rm -f conftest.$ac_ext
  3517. CC=$ac_save_CC
  3518. fi
  3519. # AC_CACHE_VAL
  3520. case "x$ac_cv_prog_cc_c89" in
  3521. x)
  3522. { $as_echo "$as_me:$LINENO: result: none needed" >&5
  3523. $as_echo "none needed" >&6; } ;;
  3524. xno)
  3525. { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  3526. $as_echo "unsupported" >&6; } ;;
  3527. *)
  3528. CC="$CC $ac_cv_prog_cc_c89"
  3529. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3530. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3531. esac
  3532. ac_ext=c
  3533. ac_cpp='$CPP $CPPFLAGS'
  3534. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3535. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3536. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3537. depcc="$CC" am_compiler_list=
  3538. { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3539. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3540. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3541. $as_echo_n "(cached) " >&6
  3542. else
  3543. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3544. # We make a subdir and do the tests there. Otherwise we can end up
  3545. # making bogus files that we don't know about and never remove. For
  3546. # instance it was reported that on HP-UX the gcc test will end up
  3547. # making a dummy file named `D' -- because `-MD' means `put the output
  3548. # in D'.
  3549. mkdir conftest.dir
  3550. # Copy depcomp to subdir because otherwise we won't find it if we're
  3551. # using a relative directory.
  3552. cp "$am_depcomp" conftest.dir
  3553. cd conftest.dir
  3554. # We will build objects and dependencies in a subdirectory because
  3555. # it helps to detect inapplicable dependency modes. For instance
  3556. # both Tru64's cc and ICC support -MD to output dependencies as a
  3557. # side effect of compilation, but ICC will put the dependencies in
  3558. # the current directory while Tru64 will put them in the object
  3559. # directory.
  3560. mkdir sub
  3561. am_cv_CC_dependencies_compiler_type=none
  3562. if test "$am_compiler_list" = ""; then
  3563. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3564. fi
  3565. am__universal=false
  3566. case " $depcc " in #(
  3567. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3568. esac
  3569. for depmode in $am_compiler_list; do
  3570. # Setup a source with many dependencies, because some compilers
  3571. # like to wrap large dependency lists on column 80 (with \), and
  3572. # we should not choose a depcomp mode which is confused by this.
  3573. #
  3574. # We need to recreate these files for each test, as the compiler may
  3575. # overwrite some of them when testing with obscure command lines.
  3576. # This happens at least with the AIX C compiler.
  3577. : > sub/conftest.c
  3578. for i in 1 2 3 4 5 6; do
  3579. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3580. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3581. # Solaris 8's {/usr,}/bin/sh.
  3582. touch sub/conftst$i.h
  3583. done
  3584. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3585. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3586. # mode. It turns out that the SunPro C++ compiler does not properly
  3587. # handle `-M -o', and we need to detect this. Also, some Intel
  3588. # versions had trouble with output in subdirs
  3589. am__obj=sub/conftest.${OBJEXT-o}
  3590. am__minus_obj="-o $am__obj"
  3591. case $depmode in
  3592. gcc)
  3593. # This depmode causes a compiler race in universal mode.
  3594. test "$am__universal" = false || continue
  3595. ;;
  3596. nosideeffect)
  3597. # after this tag, mechanisms are not by side-effect, so they'll
  3598. # only be used when explicitly requested
  3599. if test "x$enable_dependency_tracking" = xyes; then
  3600. continue
  3601. else
  3602. break
  3603. fi
  3604. ;;
  3605. msvisualcpp | msvcmsys)
  3606. # This compiler won't grok `-c -o', but also, the minuso test has
  3607. # not run yet. These depmodes are late enough in the game, and
  3608. # so weak that their functioning should not be impacted.
  3609. am__obj=conftest.${OBJEXT-o}
  3610. am__minus_obj=
  3611. ;;
  3612. none) break ;;
  3613. esac
  3614. if depmode=$depmode \
  3615. source=sub/conftest.c object=$am__obj \
  3616. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3617. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3618. >/dev/null 2>conftest.err &&
  3619. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3620. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3621. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3622. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3623. # icc doesn't choke on unknown options, it will just issue warnings
  3624. # or remarks (even with -Werror). So we grep stderr for any message
  3625. # that says an option was ignored or not supported.
  3626. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3627. # icc: Command line warning: ignoring option '-M'; no argument required
  3628. # The diagnosis changed in icc 8.0:
  3629. # icc: Command line remark: option '-MP' not supported
  3630. if (grep 'ignoring option' conftest.err ||
  3631. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3632. am_cv_CC_dependencies_compiler_type=$depmode
  3633. break
  3634. fi
  3635. fi
  3636. done
  3637. cd ..
  3638. rm -rf conftest.dir
  3639. else
  3640. am_cv_CC_dependencies_compiler_type=none
  3641. fi
  3642. fi
  3643. { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3644. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3645. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3646. if
  3647. test "x$enable_dependency_tracking" != xno \
  3648. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3649. am__fastdepCC_TRUE=
  3650. am__fastdepCC_FALSE='#'
  3651. else
  3652. am__fastdepCC_TRUE='#'
  3653. am__fastdepCC_FALSE=
  3654. fi
  3655. { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  3656. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3657. if test "${ac_cv_path_SED+set}" = set; then
  3658. $as_echo_n "(cached) " >&6
  3659. else
  3660. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3661. for ac_i in 1 2 3 4 5 6 7; do
  3662. ac_script="$ac_script$as_nl$ac_script"
  3663. done
  3664. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3665. $as_unset ac_script || ac_script=
  3666. if test -z "$SED"; then
  3667. ac_path_SED_found=false
  3668. # Loop through the user's path and test for each of PROGNAME-LIST
  3669. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3670. for as_dir in $PATH
  3671. do
  3672. IFS=$as_save_IFS
  3673. test -z "$as_dir" && as_dir=.
  3674. for ac_prog in sed gsed; do
  3675. for ac_exec_ext in '' $ac_executable_extensions; do
  3676. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3677. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  3678. # Check for GNU ac_path_SED and select it if it is found.
  3679. # Check for GNU $ac_path_SED
  3680. case `"$ac_path_SED" --version 2>&1` in
  3681. *GNU*)
  3682. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3683. *)
  3684. ac_count=0
  3685. $as_echo_n 0123456789 >"conftest.in"
  3686. while :
  3687. do
  3688. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3689. mv "conftest.tmp" "conftest.in"
  3690. cp "conftest.in" "conftest.nl"
  3691. $as_echo '' >> "conftest.nl"
  3692. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3693. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3694. ac_count=`expr $ac_count + 1`
  3695. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3696. # Best one so far, save it but keep looking for a better one
  3697. ac_cv_path_SED="$ac_path_SED"
  3698. ac_path_SED_max=$ac_count
  3699. fi
  3700. # 10*(2^10) chars as input seems more than enough
  3701. test $ac_count -gt 10 && break
  3702. done
  3703. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3704. esac
  3705. $ac_path_SED_found && break 3
  3706. done
  3707. done
  3708. done
  3709. IFS=$as_save_IFS
  3710. if test -z "$ac_cv_path_SED"; then
  3711. { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
  3712. $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
  3713. { (exit 1); exit 1; }; }
  3714. fi
  3715. else
  3716. ac_cv_path_SED=$SED
  3717. fi
  3718. fi
  3719. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
  3720. $as_echo "$ac_cv_path_SED" >&6; }
  3721. SED="$ac_cv_path_SED"
  3722. rm -f conftest.sed
  3723. test -z "$SED" && SED=sed
  3724. Xsed="$SED -e 1s/^X//"
  3725. { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  3726. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3727. if test "${ac_cv_path_GREP+set}" = set; then
  3728. $as_echo_n "(cached) " >&6
  3729. else
  3730. if test -z "$GREP"; then
  3731. ac_path_GREP_found=false
  3732. # Loop through the user's path and test for each of PROGNAME-LIST
  3733. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3734. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3735. do
  3736. IFS=$as_save_IFS
  3737. test -z "$as_dir" && as_dir=.
  3738. for ac_prog in grep ggrep; do
  3739. for ac_exec_ext in '' $ac_executable_extensions; do
  3740. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3741. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3742. # Check for GNU ac_path_GREP and select it if it is found.
  3743. # Check for GNU $ac_path_GREP
  3744. case `"$ac_path_GREP" --version 2>&1` in
  3745. *GNU*)
  3746. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3747. *)
  3748. ac_count=0
  3749. $as_echo_n 0123456789 >"conftest.in"
  3750. while :
  3751. do
  3752. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3753. mv "conftest.tmp" "conftest.in"
  3754. cp "conftest.in" "conftest.nl"
  3755. $as_echo 'GREP' >> "conftest.nl"
  3756. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3757. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3758. ac_count=`expr $ac_count + 1`
  3759. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3760. # Best one so far, save it but keep looking for a better one
  3761. ac_cv_path_GREP="$ac_path_GREP"
  3762. ac_path_GREP_max=$ac_count
  3763. fi
  3764. # 10*(2^10) chars as input seems more than enough
  3765. test $ac_count -gt 10 && break
  3766. done
  3767. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3768. esac
  3769. $ac_path_GREP_found && break 3
  3770. done
  3771. done
  3772. done
  3773. IFS=$as_save_IFS
  3774. if test -z "$ac_cv_path_GREP"; then
  3775. { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3776. $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3777. { (exit 1); exit 1; }; }
  3778. fi
  3779. else
  3780. ac_cv_path_GREP=$GREP
  3781. fi
  3782. fi
  3783. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  3784. $as_echo "$ac_cv_path_GREP" >&6; }
  3785. GREP="$ac_cv_path_GREP"
  3786. { $as_echo "$as_me:$LINENO: checking for egrep" >&5
  3787. $as_echo_n "checking for egrep... " >&6; }
  3788. if test "${ac_cv_path_EGREP+set}" = set; then
  3789. $as_echo_n "(cached) " >&6
  3790. else
  3791. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3792. then ac_cv_path_EGREP="$GREP -E"
  3793. else
  3794. if test -z "$EGREP"; then
  3795. ac_path_EGREP_found=false
  3796. # Loop through the user's path and test for each of PROGNAME-LIST
  3797. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3798. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3799. do
  3800. IFS=$as_save_IFS
  3801. test -z "$as_dir" && as_dir=.
  3802. for ac_prog in egrep; do
  3803. for ac_exec_ext in '' $ac_executable_extensions; do
  3804. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3805. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3806. # Check for GNU ac_path_EGREP and select it if it is found.
  3807. # Check for GNU $ac_path_EGREP
  3808. case `"$ac_path_EGREP" --version 2>&1` in
  3809. *GNU*)
  3810. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3811. *)
  3812. ac_count=0
  3813. $as_echo_n 0123456789 >"conftest.in"
  3814. while :
  3815. do
  3816. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3817. mv "conftest.tmp" "conftest.in"
  3818. cp "conftest.in" "conftest.nl"
  3819. $as_echo 'EGREP' >> "conftest.nl"
  3820. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3821. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3822. ac_count=`expr $ac_count + 1`
  3823. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3824. # Best one so far, save it but keep looking for a better one
  3825. ac_cv_path_EGREP="$ac_path_EGREP"
  3826. ac_path_EGREP_max=$ac_count
  3827. fi
  3828. # 10*(2^10) chars as input seems more than enough
  3829. test $ac_count -gt 10 && break
  3830. done
  3831. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3832. esac
  3833. $ac_path_EGREP_found && break 3
  3834. done
  3835. done
  3836. done
  3837. IFS=$as_save_IFS
  3838. if test -z "$ac_cv_path_EGREP"; then
  3839. { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3840. $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3841. { (exit 1); exit 1; }; }
  3842. fi
  3843. else
  3844. ac_cv_path_EGREP=$EGREP
  3845. fi
  3846. fi
  3847. fi
  3848. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  3849. $as_echo "$ac_cv_path_EGREP" >&6; }
  3850. EGREP="$ac_cv_path_EGREP"
  3851. { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
  3852. $as_echo_n "checking for fgrep... " >&6; }
  3853. if test "${ac_cv_path_FGREP+set}" = set; then
  3854. $as_echo_n "(cached) " >&6
  3855. else
  3856. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3857. then ac_cv_path_FGREP="$GREP -F"
  3858. else
  3859. if test -z "$FGREP"; then
  3860. ac_path_FGREP_found=false
  3861. # Loop through the user's path and test for each of PROGNAME-LIST
  3862. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3863. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3864. do
  3865. IFS=$as_save_IFS
  3866. test -z "$as_dir" && as_dir=.
  3867. for ac_prog in fgrep; do
  3868. for ac_exec_ext in '' $ac_executable_extensions; do
  3869. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3870. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  3871. # Check for GNU ac_path_FGREP and select it if it is found.
  3872. # Check for GNU $ac_path_FGREP
  3873. case `"$ac_path_FGREP" --version 2>&1` in
  3874. *GNU*)
  3875. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3876. *)
  3877. ac_count=0
  3878. $as_echo_n 0123456789 >"conftest.in"
  3879. while :
  3880. do
  3881. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3882. mv "conftest.tmp" "conftest.in"
  3883. cp "conftest.in" "conftest.nl"
  3884. $as_echo 'FGREP' >> "conftest.nl"
  3885. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3886. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3887. ac_count=`expr $ac_count + 1`
  3888. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3889. # Best one so far, save it but keep looking for a better one
  3890. ac_cv_path_FGREP="$ac_path_FGREP"
  3891. ac_path_FGREP_max=$ac_count
  3892. fi
  3893. # 10*(2^10) chars as input seems more than enough
  3894. test $ac_count -gt 10 && break
  3895. done
  3896. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3897. esac
  3898. $ac_path_FGREP_found && break 3
  3899. done
  3900. done
  3901. done
  3902. IFS=$as_save_IFS
  3903. if test -z "$ac_cv_path_FGREP"; then
  3904. { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3905. $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3906. { (exit 1); exit 1; }; }
  3907. fi
  3908. else
  3909. ac_cv_path_FGREP=$FGREP
  3910. fi
  3911. fi
  3912. fi
  3913. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
  3914. $as_echo "$ac_cv_path_FGREP" >&6; }
  3915. FGREP="$ac_cv_path_FGREP"
  3916. test -z "$GREP" && GREP=grep
  3917. # Check whether --with-gnu-ld was given.
  3918. if test "${with_gnu_ld+set}" = set; then
  3919. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3920. else
  3921. with_gnu_ld=no
  3922. fi
  3923. ac_prog=ld
  3924. if test "$GCC" = yes; then
  3925. # Check if gcc -print-prog-name=ld gives a path.
  3926. { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  3927. $as_echo_n "checking for ld used by $CC... " >&6; }
  3928. case $host in
  3929. *-*-mingw*)
  3930. # gcc leaves a trailing carriage return which upsets mingw
  3931. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3932. *)
  3933. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3934. esac
  3935. case $ac_prog in
  3936. # Accept absolute paths.
  3937. [\\/]* | ?:[\\/]*)
  3938. re_direlt='/[^/][^/]*/\.\./'
  3939. # Canonicalize the pathname of ld
  3940. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3941. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3942. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3943. done
  3944. test -z "$LD" && LD="$ac_prog"
  3945. ;;
  3946. "")
  3947. # If it fails, then pretend we aren't using GCC.
  3948. ac_prog=ld
  3949. ;;
  3950. *)
  3951. # If it is relative, then search for the first ld in PATH.
  3952. with_gnu_ld=unknown
  3953. ;;
  3954. esac
  3955. elif test "$with_gnu_ld" = yes; then
  3956. { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
  3957. $as_echo_n "checking for GNU ld... " >&6; }
  3958. else
  3959. { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  3960. $as_echo_n "checking for non-GNU ld... " >&6; }
  3961. fi
  3962. if test "${lt_cv_path_LD+set}" = set; then
  3963. $as_echo_n "(cached) " >&6
  3964. else
  3965. if test -z "$LD"; then
  3966. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3967. for ac_dir in $PATH; do
  3968. IFS="$lt_save_ifs"
  3969. test -z "$ac_dir" && ac_dir=.
  3970. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3971. lt_cv_path_LD="$ac_dir/$ac_prog"
  3972. # Check to see if the program is GNU ld. I'd rather use --version,
  3973. # but apparently some variants of GNU ld only accept -v.
  3974. # Break only if it was the GNU/non-GNU ld that we prefer.
  3975. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3976. *GNU* | *'with BFD'*)
  3977. test "$with_gnu_ld" != no && break
  3978. ;;
  3979. *)
  3980. test "$with_gnu_ld" != yes && break
  3981. ;;
  3982. esac
  3983. fi
  3984. done
  3985. IFS="$lt_save_ifs"
  3986. else
  3987. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3988. fi
  3989. fi
  3990. LD="$lt_cv_path_LD"
  3991. if test -n "$LD"; then
  3992. { $as_echo "$as_me:$LINENO: result: $LD" >&5
  3993. $as_echo "$LD" >&6; }
  3994. else
  3995. { $as_echo "$as_me:$LINENO: result: no" >&5
  3996. $as_echo "no" >&6; }
  3997. fi
  3998. test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  3999. $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  4000. { (exit 1); exit 1; }; }
  4001. { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  4002. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4003. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  4004. $as_echo_n "(cached) " >&6
  4005. else
  4006. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4007. case `$LD -v 2>&1 </dev/null` in
  4008. *GNU* | *'with BFD'*)
  4009. lt_cv_prog_gnu_ld=yes
  4010. ;;
  4011. *)
  4012. lt_cv_prog_gnu_ld=no
  4013. ;;
  4014. esac
  4015. fi
  4016. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  4017. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4018. with_gnu_ld=$lt_cv_prog_gnu_ld
  4019. { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
  4020. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4021. if test "${lt_cv_path_NM+set}" = set; then
  4022. $as_echo_n "(cached) " >&6
  4023. else
  4024. if test -n "$NM"; then
  4025. # Let the user override the test.
  4026. lt_cv_path_NM="$NM"
  4027. else
  4028. lt_nm_to_check="${ac_tool_prefix}nm"
  4029. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4030. lt_nm_to_check="$lt_nm_to_check nm"
  4031. fi
  4032. for lt_tmp_nm in $lt_nm_to_check; do
  4033. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4034. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4035. IFS="$lt_save_ifs"
  4036. test -z "$ac_dir" && ac_dir=.
  4037. tmp_nm="$ac_dir/$lt_tmp_nm"
  4038. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4039. # Check to see if the nm accepts a BSD-compat flag.
  4040. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4041. # nm: unknown option "B" ignored
  4042. # Tru64's nm complains that /dev/null is an invalid object file
  4043. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4044. */dev/null* | *'Invalid file or object type'*)
  4045. lt_cv_path_NM="$tmp_nm -B"
  4046. break
  4047. ;;
  4048. *)
  4049. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4050. */dev/null*)
  4051. lt_cv_path_NM="$tmp_nm -p"
  4052. break
  4053. ;;
  4054. *)
  4055. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4056. continue # so that we can try to find one that supports BSD flags
  4057. ;;
  4058. esac
  4059. ;;
  4060. esac
  4061. fi
  4062. done
  4063. IFS="$lt_save_ifs"
  4064. done
  4065. : ${lt_cv_path_NM=no}
  4066. fi
  4067. fi
  4068. { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  4069. $as_echo "$lt_cv_path_NM" >&6; }
  4070. if test "$lt_cv_path_NM" != "no"; then
  4071. NM="$lt_cv_path_NM"
  4072. else
  4073. # Didn't find any BSD compatible name lister, look for dumpbin.
  4074. if test -n "$ac_tool_prefix"; then
  4075. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4076. do
  4077. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4078. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4079. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4080. $as_echo_n "checking for $ac_word... " >&6; }
  4081. if test "${ac_cv_prog_DUMPBIN+set}" = set; then
  4082. $as_echo_n "(cached) " >&6
  4083. else
  4084. if test -n "$DUMPBIN"; then
  4085. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4086. else
  4087. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4088. for as_dir in $PATH
  4089. do
  4090. IFS=$as_save_IFS
  4091. test -z "$as_dir" && as_dir=.
  4092. for ac_exec_ext in '' $ac_executable_extensions; do
  4093. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4094. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4095. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4096. break 2
  4097. fi
  4098. done
  4099. done
  4100. IFS=$as_save_IFS
  4101. fi
  4102. fi
  4103. DUMPBIN=$ac_cv_prog_DUMPBIN
  4104. if test -n "$DUMPBIN"; then
  4105. { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
  4106. $as_echo "$DUMPBIN" >&6; }
  4107. else
  4108. { $as_echo "$as_me:$LINENO: result: no" >&5
  4109. $as_echo "no" >&6; }
  4110. fi
  4111. test -n "$DUMPBIN" && break
  4112. done
  4113. fi
  4114. if test -z "$DUMPBIN"; then
  4115. ac_ct_DUMPBIN=$DUMPBIN
  4116. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4117. do
  4118. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4119. set dummy $ac_prog; ac_word=$2
  4120. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4121. $as_echo_n "checking for $ac_word... " >&6; }
  4122. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
  4123. $as_echo_n "(cached) " >&6
  4124. else
  4125. if test -n "$ac_ct_DUMPBIN"; then
  4126. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4127. else
  4128. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4129. for as_dir in $PATH
  4130. do
  4131. IFS=$as_save_IFS
  4132. test -z "$as_dir" && as_dir=.
  4133. for ac_exec_ext in '' $ac_executable_extensions; do
  4134. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4135. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4136. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4137. break 2
  4138. fi
  4139. done
  4140. done
  4141. IFS=$as_save_IFS
  4142. fi
  4143. fi
  4144. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4145. if test -n "$ac_ct_DUMPBIN"; then
  4146. { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
  4147. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4148. else
  4149. { $as_echo "$as_me:$LINENO: result: no" >&5
  4150. $as_echo "no" >&6; }
  4151. fi
  4152. test -n "$ac_ct_DUMPBIN" && break
  4153. done
  4154. if test "x$ac_ct_DUMPBIN" = x; then
  4155. DUMPBIN=":"
  4156. else
  4157. case $cross_compiling:$ac_tool_warned in
  4158. yes:)
  4159. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4160. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4161. ac_tool_warned=yes ;;
  4162. esac
  4163. DUMPBIN=$ac_ct_DUMPBIN
  4164. fi
  4165. fi
  4166. if test "$DUMPBIN" != ":"; then
  4167. NM="$DUMPBIN"
  4168. fi
  4169. fi
  4170. test -z "$NM" && NM=nm
  4171. { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
  4172. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4173. if test "${lt_cv_nm_interface+set}" = set; then
  4174. $as_echo_n "(cached) " >&6
  4175. else
  4176. lt_cv_nm_interface="BSD nm"
  4177. echo "int some_variable = 0;" > conftest.$ac_ext
  4178. (eval echo "\"\$as_me:4710: $ac_compile\"" >&5)
  4179. (eval "$ac_compile" 2>conftest.err)
  4180. cat conftest.err >&5
  4181. (eval echo "\"\$as_me:4713: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4182. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4183. cat conftest.err >&5
  4184. (eval echo "\"\$as_me:4716: output\"" >&5)
  4185. cat conftest.out >&5
  4186. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4187. lt_cv_nm_interface="MS dumpbin"
  4188. fi
  4189. rm -f conftest*
  4190. fi
  4191. { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
  4192. $as_echo "$lt_cv_nm_interface" >&6; }
  4193. { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
  4194. $as_echo_n "checking whether ln -s works... " >&6; }
  4195. LN_S=$as_ln_s
  4196. if test "$LN_S" = "ln -s"; then
  4197. { $as_echo "$as_me:$LINENO: result: yes" >&5
  4198. $as_echo "yes" >&6; }
  4199. else
  4200. { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  4201. $as_echo "no, using $LN_S" >&6; }
  4202. fi
  4203. # find the maximum length of command line arguments
  4204. { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  4205. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4206. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  4207. $as_echo_n "(cached) " >&6
  4208. else
  4209. i=0
  4210. teststring="ABCD"
  4211. case $build_os in
  4212. msdosdjgpp*)
  4213. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4214. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4215. # during glob expansion). Even if it were fixed, the result of this
  4216. # check would be larger than it should be.
  4217. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4218. ;;
  4219. gnu*)
  4220. # Under GNU Hurd, this test is not required because there is
  4221. # no limit to the length of command line arguments.
  4222. # Libtool will interpret -1 as no limit whatsoever
  4223. lt_cv_sys_max_cmd_len=-1;
  4224. ;;
  4225. cygwin* | mingw* | cegcc*)
  4226. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4227. # about 5 minutes as the teststring grows exponentially.
  4228. # Worse, since 9x/ME are not pre-emptively multitasking,
  4229. # you end up with a "frozen" computer, even though with patience
  4230. # the test eventually succeeds (with a max line length of 256k).
  4231. # Instead, let's just punt: use the minimum linelength reported by
  4232. # all of the supported platforms: 8192 (on NT/2K/XP).
  4233. lt_cv_sys_max_cmd_len=8192;
  4234. ;;
  4235. amigaos*)
  4236. # On AmigaOS with pdksh, this test takes hours, literally.
  4237. # So we just punt and use a minimum line length of 8192.
  4238. lt_cv_sys_max_cmd_len=8192;
  4239. ;;
  4240. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4241. # This has been around since 386BSD, at least. Likely further.
  4242. if test -x /sbin/sysctl; then
  4243. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4244. elif test -x /usr/sbin/sysctl; then
  4245. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4246. else
  4247. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4248. fi
  4249. # And add a safety zone
  4250. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4251. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4252. ;;
  4253. interix*)
  4254. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4255. lt_cv_sys_max_cmd_len=196608
  4256. ;;
  4257. osf*)
  4258. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4259. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4260. # nice to cause kernel panics so lets avoid the loop below.
  4261. # First set a reasonable default.
  4262. lt_cv_sys_max_cmd_len=16384
  4263. #
  4264. if test -x /sbin/sysconfig; then
  4265. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4266. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4267. esac
  4268. fi
  4269. ;;
  4270. sco3.2v5*)
  4271. lt_cv_sys_max_cmd_len=102400
  4272. ;;
  4273. sysv5* | sco5v6* | sysv4.2uw2*)
  4274. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4275. if test -n "$kargmax"; then
  4276. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4277. else
  4278. lt_cv_sys_max_cmd_len=32768
  4279. fi
  4280. ;;
  4281. *)
  4282. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4283. if test -n "$lt_cv_sys_max_cmd_len"; then
  4284. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4285. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4286. else
  4287. # Make teststring a little bigger before we do anything with it.
  4288. # a 1K string should be a reasonable start.
  4289. for i in 1 2 3 4 5 6 7 8 ; do
  4290. teststring=$teststring$teststring
  4291. done
  4292. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4293. # If test is not a shell built-in, we'll probably end up computing a
  4294. # maximum length that is only half of the actual maximum length, but
  4295. # we can't tell.
  4296. while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  4297. = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  4298. test $i != 17 # 1/2 MB should be enough
  4299. do
  4300. i=`expr $i + 1`
  4301. teststring=$teststring$teststring
  4302. done
  4303. # Only check the string length outside the loop.
  4304. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4305. teststring=
  4306. # Add a significant safety factor because C++ compilers can tack on
  4307. # massive amounts of additional arguments before passing them to the
  4308. # linker. It appears as though 1/2 is a usable value.
  4309. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4310. fi
  4311. ;;
  4312. esac
  4313. fi
  4314. if test -n $lt_cv_sys_max_cmd_len ; then
  4315. { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  4316. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4317. else
  4318. { $as_echo "$as_me:$LINENO: result: none" >&5
  4319. $as_echo "none" >&6; }
  4320. fi
  4321. max_cmd_len=$lt_cv_sys_max_cmd_len
  4322. : ${CP="cp -f"}
  4323. : ${MV="mv -f"}
  4324. : ${RM="rm -f"}
  4325. { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
  4326. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4327. # Try some XSI features
  4328. xsi_shell=no
  4329. ( _lt_dummy="a/b/c"
  4330. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  4331. = c,a/b,, \
  4332. && eval 'test $(( 1 + 1 )) -eq 2 \
  4333. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4334. && xsi_shell=yes
  4335. { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
  4336. $as_echo "$xsi_shell" >&6; }
  4337. { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
  4338. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4339. lt_shell_append=no
  4340. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4341. >/dev/null 2>&1 \
  4342. && lt_shell_append=yes
  4343. { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
  4344. $as_echo "$lt_shell_append" >&6; }
  4345. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4346. lt_unset=unset
  4347. else
  4348. lt_unset=false
  4349. fi
  4350. # test EBCDIC or ASCII
  4351. case `echo X|tr X '\101'` in
  4352. A) # ASCII based system
  4353. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4354. lt_SP2NL='tr \040 \012'
  4355. lt_NL2SP='tr \015\012 \040\040'
  4356. ;;
  4357. *) # EBCDIC based system
  4358. lt_SP2NL='tr \100 \n'
  4359. lt_NL2SP='tr \r\n \100\100'
  4360. ;;
  4361. esac
  4362. { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  4363. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4364. if test "${lt_cv_ld_reload_flag+set}" = set; then
  4365. $as_echo_n "(cached) " >&6
  4366. else
  4367. lt_cv_ld_reload_flag='-r'
  4368. fi
  4369. { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  4370. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4371. reload_flag=$lt_cv_ld_reload_flag
  4372. case $reload_flag in
  4373. "" | " "*) ;;
  4374. *) reload_flag=" $reload_flag" ;;
  4375. esac
  4376. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4377. case $host_os in
  4378. darwin*)
  4379. if test "$GCC" = yes; then
  4380. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4381. else
  4382. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4383. fi
  4384. ;;
  4385. esac
  4386. if test -n "$ac_tool_prefix"; then
  4387. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4388. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4389. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4390. $as_echo_n "checking for $ac_word... " >&6; }
  4391. if test "${ac_cv_prog_OBJDUMP+set}" = set; then
  4392. $as_echo_n "(cached) " >&6
  4393. else
  4394. if test -n "$OBJDUMP"; then
  4395. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4396. else
  4397. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4398. for as_dir in $PATH
  4399. do
  4400. IFS=$as_save_IFS
  4401. test -z "$as_dir" && as_dir=.
  4402. for ac_exec_ext in '' $ac_executable_extensions; do
  4403. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4404. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4405. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4406. break 2
  4407. fi
  4408. done
  4409. done
  4410. IFS=$as_save_IFS
  4411. fi
  4412. fi
  4413. OBJDUMP=$ac_cv_prog_OBJDUMP
  4414. if test -n "$OBJDUMP"; then
  4415. { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
  4416. $as_echo "$OBJDUMP" >&6; }
  4417. else
  4418. { $as_echo "$as_me:$LINENO: result: no" >&5
  4419. $as_echo "no" >&6; }
  4420. fi
  4421. fi
  4422. if test -z "$ac_cv_prog_OBJDUMP"; then
  4423. ac_ct_OBJDUMP=$OBJDUMP
  4424. # Extract the first word of "objdump", so it can be a program name with args.
  4425. set dummy objdump; ac_word=$2
  4426. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4427. $as_echo_n "checking for $ac_word... " >&6; }
  4428. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
  4429. $as_echo_n "(cached) " >&6
  4430. else
  4431. if test -n "$ac_ct_OBJDUMP"; then
  4432. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4433. else
  4434. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4435. for as_dir in $PATH
  4436. do
  4437. IFS=$as_save_IFS
  4438. test -z "$as_dir" && as_dir=.
  4439. for ac_exec_ext in '' $ac_executable_extensions; do
  4440. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4441. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4442. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4443. break 2
  4444. fi
  4445. done
  4446. done
  4447. IFS=$as_save_IFS
  4448. fi
  4449. fi
  4450. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4451. if test -n "$ac_ct_OBJDUMP"; then
  4452. { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
  4453. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4454. else
  4455. { $as_echo "$as_me:$LINENO: result: no" >&5
  4456. $as_echo "no" >&6; }
  4457. fi
  4458. if test "x$ac_ct_OBJDUMP" = x; then
  4459. OBJDUMP="false"
  4460. else
  4461. case $cross_compiling:$ac_tool_warned in
  4462. yes:)
  4463. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4464. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4465. ac_tool_warned=yes ;;
  4466. esac
  4467. OBJDUMP=$ac_ct_OBJDUMP
  4468. fi
  4469. else
  4470. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4471. fi
  4472. test -z "$OBJDUMP" && OBJDUMP=objdump
  4473. { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
  4474. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4475. if test "${lt_cv_deplibs_check_method+set}" = set; then
  4476. $as_echo_n "(cached) " >&6
  4477. else
  4478. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4479. lt_cv_file_magic_test_file=
  4480. lt_cv_deplibs_check_method='unknown'
  4481. # Need to set the preceding variable on all platforms that support
  4482. # interlibrary dependencies.
  4483. # 'none' -- dependencies not supported.
  4484. # `unknown' -- same as none, but documents that we really don't know.
  4485. # 'pass_all' -- all dependencies passed with no checks.
  4486. # 'test_compile' -- check by making test program.
  4487. # 'file_magic [[regex]]' -- check by looking for files in library path
  4488. # which responds to the $file_magic_cmd with a given extended regex.
  4489. # If you have `file' or equivalent on your system and you're not sure
  4490. # whether `pass_all' will *always* work, you probably want this one.
  4491. case $host_os in
  4492. aix[4-9]*)
  4493. lt_cv_deplibs_check_method=pass_all
  4494. ;;
  4495. beos*)
  4496. lt_cv_deplibs_check_method=pass_all
  4497. ;;
  4498. bsdi[45]*)
  4499. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4500. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4501. lt_cv_file_magic_test_file=/shlib/libc.so
  4502. ;;
  4503. cygwin*)
  4504. # func_win32_libid is a shell function defined in ltmain.sh
  4505. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4506. lt_cv_file_magic_cmd='func_win32_libid'
  4507. ;;
  4508. mingw* | pw32*)
  4509. # Base MSYS/MinGW do not provide the 'file' command needed by
  4510. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4511. # unless we find 'file', for example because we are cross-compiling.
  4512. if ( file / ) >/dev/null 2>&1; then
  4513. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4514. lt_cv_file_magic_cmd='func_win32_libid'
  4515. else
  4516. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  4517. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4518. fi
  4519. ;;
  4520. cegcc)
  4521. # use the weaker test based on 'objdump'. See mingw*.
  4522. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4523. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4524. ;;
  4525. darwin* | rhapsody*)
  4526. lt_cv_deplibs_check_method=pass_all
  4527. ;;
  4528. freebsd* | dragonfly*)
  4529. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4530. case $host_cpu in
  4531. i*86 )
  4532. # Not sure whether the presence of OpenBSD here was a mistake.
  4533. # Let's accept both of them until this is cleared up.
  4534. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4535. lt_cv_file_magic_cmd=/usr/bin/file
  4536. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4537. ;;
  4538. esac
  4539. else
  4540. lt_cv_deplibs_check_method=pass_all
  4541. fi
  4542. ;;
  4543. gnu*)
  4544. lt_cv_deplibs_check_method=pass_all
  4545. ;;
  4546. hpux10.20* | hpux11*)
  4547. lt_cv_file_magic_cmd=/usr/bin/file
  4548. case $host_cpu in
  4549. ia64*)
  4550. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4551. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4552. ;;
  4553. hppa*64*)
  4554. 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]'
  4555. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4556. ;;
  4557. *)
  4558. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  4559. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4560. ;;
  4561. esac
  4562. ;;
  4563. interix[3-9]*)
  4564. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4565. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4566. ;;
  4567. irix5* | irix6* | nonstopux*)
  4568. case $LD in
  4569. *-32|*"-32 ") libmagic=32-bit;;
  4570. *-n32|*"-n32 ") libmagic=N32;;
  4571. *-64|*"-64 ") libmagic=64-bit;;
  4572. *) libmagic=never-match;;
  4573. esac
  4574. lt_cv_deplibs_check_method=pass_all
  4575. ;;
  4576. # This must be Linux ELF.
  4577. linux* | k*bsd*-gnu)
  4578. lt_cv_deplibs_check_method=pass_all
  4579. ;;
  4580. netbsd*)
  4581. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4582. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4583. else
  4584. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4585. fi
  4586. ;;
  4587. newos6*)
  4588. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4589. lt_cv_file_magic_cmd=/usr/bin/file
  4590. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4591. ;;
  4592. *nto* | *qnx*)
  4593. lt_cv_deplibs_check_method=pass_all
  4594. ;;
  4595. openbsd*)
  4596. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4597. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4598. else
  4599. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4600. fi
  4601. ;;
  4602. osf3* | osf4* | osf5*)
  4603. lt_cv_deplibs_check_method=pass_all
  4604. ;;
  4605. rdos*)
  4606. lt_cv_deplibs_check_method=pass_all
  4607. ;;
  4608. solaris*)
  4609. lt_cv_deplibs_check_method=pass_all
  4610. ;;
  4611. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4612. lt_cv_deplibs_check_method=pass_all
  4613. ;;
  4614. sysv4 | sysv4.3*)
  4615. case $host_vendor in
  4616. motorola)
  4617. 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]'
  4618. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4619. ;;
  4620. ncr)
  4621. lt_cv_deplibs_check_method=pass_all
  4622. ;;
  4623. sequent)
  4624. lt_cv_file_magic_cmd='/bin/file'
  4625. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4626. ;;
  4627. sni)
  4628. lt_cv_file_magic_cmd='/bin/file'
  4629. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4630. lt_cv_file_magic_test_file=/lib/libc.so
  4631. ;;
  4632. siemens)
  4633. lt_cv_deplibs_check_method=pass_all
  4634. ;;
  4635. pc)
  4636. lt_cv_deplibs_check_method=pass_all
  4637. ;;
  4638. esac
  4639. ;;
  4640. tpf*)
  4641. lt_cv_deplibs_check_method=pass_all
  4642. ;;
  4643. esac
  4644. fi
  4645. { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  4646. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4647. file_magic_cmd=$lt_cv_file_magic_cmd
  4648. deplibs_check_method=$lt_cv_deplibs_check_method
  4649. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4650. if test -n "$ac_tool_prefix"; then
  4651. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  4652. set dummy ${ac_tool_prefix}ar; ac_word=$2
  4653. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4654. $as_echo_n "checking for $ac_word... " >&6; }
  4655. if test "${ac_cv_prog_AR+set}" = set; then
  4656. $as_echo_n "(cached) " >&6
  4657. else
  4658. if test -n "$AR"; then
  4659. ac_cv_prog_AR="$AR" # Let the user override the test.
  4660. else
  4661. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4662. for as_dir in $PATH
  4663. do
  4664. IFS=$as_save_IFS
  4665. test -z "$as_dir" && as_dir=.
  4666. for ac_exec_ext in '' $ac_executable_extensions; do
  4667. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4668. ac_cv_prog_AR="${ac_tool_prefix}ar"
  4669. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4670. break 2
  4671. fi
  4672. done
  4673. done
  4674. IFS=$as_save_IFS
  4675. fi
  4676. fi
  4677. AR=$ac_cv_prog_AR
  4678. if test -n "$AR"; then
  4679. { $as_echo "$as_me:$LINENO: result: $AR" >&5
  4680. $as_echo "$AR" >&6; }
  4681. else
  4682. { $as_echo "$as_me:$LINENO: result: no" >&5
  4683. $as_echo "no" >&6; }
  4684. fi
  4685. fi
  4686. if test -z "$ac_cv_prog_AR"; then
  4687. ac_ct_AR=$AR
  4688. # Extract the first word of "ar", so it can be a program name with args.
  4689. set dummy ar; ac_word=$2
  4690. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4691. $as_echo_n "checking for $ac_word... " >&6; }
  4692. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  4693. $as_echo_n "(cached) " >&6
  4694. else
  4695. if test -n "$ac_ct_AR"; then
  4696. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4697. else
  4698. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4699. for as_dir in $PATH
  4700. do
  4701. IFS=$as_save_IFS
  4702. test -z "$as_dir" && as_dir=.
  4703. for ac_exec_ext in '' $ac_executable_extensions; do
  4704. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4705. ac_cv_prog_ac_ct_AR="ar"
  4706. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4707. break 2
  4708. fi
  4709. done
  4710. done
  4711. IFS=$as_save_IFS
  4712. fi
  4713. fi
  4714. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4715. if test -n "$ac_ct_AR"; then
  4716. { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  4717. $as_echo "$ac_ct_AR" >&6; }
  4718. else
  4719. { $as_echo "$as_me:$LINENO: result: no" >&5
  4720. $as_echo "no" >&6; }
  4721. fi
  4722. if test "x$ac_ct_AR" = x; then
  4723. AR="false"
  4724. else
  4725. case $cross_compiling:$ac_tool_warned in
  4726. yes:)
  4727. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4728. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4729. ac_tool_warned=yes ;;
  4730. esac
  4731. AR=$ac_ct_AR
  4732. fi
  4733. else
  4734. AR="$ac_cv_prog_AR"
  4735. fi
  4736. test -z "$AR" && AR=ar
  4737. test -z "$AR_FLAGS" && AR_FLAGS=cru
  4738. if test -n "$ac_tool_prefix"; then
  4739. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4740. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4741. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4742. $as_echo_n "checking for $ac_word... " >&6; }
  4743. if test "${ac_cv_prog_STRIP+set}" = set; then
  4744. $as_echo_n "(cached) " >&6
  4745. else
  4746. if test -n "$STRIP"; then
  4747. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4748. else
  4749. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4750. for as_dir in $PATH
  4751. do
  4752. IFS=$as_save_IFS
  4753. test -z "$as_dir" && as_dir=.
  4754. for ac_exec_ext in '' $ac_executable_extensions; do
  4755. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4756. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4757. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4758. break 2
  4759. fi
  4760. done
  4761. done
  4762. IFS=$as_save_IFS
  4763. fi
  4764. fi
  4765. STRIP=$ac_cv_prog_STRIP
  4766. if test -n "$STRIP"; then
  4767. { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  4768. $as_echo "$STRIP" >&6; }
  4769. else
  4770. { $as_echo "$as_me:$LINENO: result: no" >&5
  4771. $as_echo "no" >&6; }
  4772. fi
  4773. fi
  4774. if test -z "$ac_cv_prog_STRIP"; then
  4775. ac_ct_STRIP=$STRIP
  4776. # Extract the first word of "strip", so it can be a program name with args.
  4777. set dummy strip; ac_word=$2
  4778. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4779. $as_echo_n "checking for $ac_word... " >&6; }
  4780. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  4781. $as_echo_n "(cached) " >&6
  4782. else
  4783. if test -n "$ac_ct_STRIP"; then
  4784. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4785. else
  4786. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4787. for as_dir in $PATH
  4788. do
  4789. IFS=$as_save_IFS
  4790. test -z "$as_dir" && as_dir=.
  4791. for ac_exec_ext in '' $ac_executable_extensions; do
  4792. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4793. ac_cv_prog_ac_ct_STRIP="strip"
  4794. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4795. break 2
  4796. fi
  4797. done
  4798. done
  4799. IFS=$as_save_IFS
  4800. fi
  4801. fi
  4802. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4803. if test -n "$ac_ct_STRIP"; then
  4804. { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  4805. $as_echo "$ac_ct_STRIP" >&6; }
  4806. else
  4807. { $as_echo "$as_me:$LINENO: result: no" >&5
  4808. $as_echo "no" >&6; }
  4809. fi
  4810. if test "x$ac_ct_STRIP" = x; then
  4811. STRIP=":"
  4812. else
  4813. case $cross_compiling:$ac_tool_warned in
  4814. yes:)
  4815. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4816. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4817. ac_tool_warned=yes ;;
  4818. esac
  4819. STRIP=$ac_ct_STRIP
  4820. fi
  4821. else
  4822. STRIP="$ac_cv_prog_STRIP"
  4823. fi
  4824. test -z "$STRIP" && STRIP=:
  4825. if test -n "$ac_tool_prefix"; then
  4826. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4827. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4828. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4829. $as_echo_n "checking for $ac_word... " >&6; }
  4830. if test "${ac_cv_prog_RANLIB+set}" = set; then
  4831. $as_echo_n "(cached) " >&6
  4832. else
  4833. if test -n "$RANLIB"; then
  4834. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4835. else
  4836. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4837. for as_dir in $PATH
  4838. do
  4839. IFS=$as_save_IFS
  4840. test -z "$as_dir" && as_dir=.
  4841. for ac_exec_ext in '' $ac_executable_extensions; do
  4842. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4843. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4844. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4845. break 2
  4846. fi
  4847. done
  4848. done
  4849. IFS=$as_save_IFS
  4850. fi
  4851. fi
  4852. RANLIB=$ac_cv_prog_RANLIB
  4853. if test -n "$RANLIB"; then
  4854. { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
  4855. $as_echo "$RANLIB" >&6; }
  4856. else
  4857. { $as_echo "$as_me:$LINENO: result: no" >&5
  4858. $as_echo "no" >&6; }
  4859. fi
  4860. fi
  4861. if test -z "$ac_cv_prog_RANLIB"; then
  4862. ac_ct_RANLIB=$RANLIB
  4863. # Extract the first word of "ranlib", so it can be a program name with args.
  4864. set dummy ranlib; ac_word=$2
  4865. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4866. $as_echo_n "checking for $ac_word... " >&6; }
  4867. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  4868. $as_echo_n "(cached) " >&6
  4869. else
  4870. if test -n "$ac_ct_RANLIB"; then
  4871. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4880. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4881. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4882. break 2
  4883. fi
  4884. done
  4885. done
  4886. IFS=$as_save_IFS
  4887. fi
  4888. fi
  4889. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4890. if test -n "$ac_ct_RANLIB"; then
  4891. { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  4892. $as_echo "$ac_ct_RANLIB" >&6; }
  4893. else
  4894. { $as_echo "$as_me:$LINENO: result: no" >&5
  4895. $as_echo "no" >&6; }
  4896. fi
  4897. if test "x$ac_ct_RANLIB" = x; then
  4898. RANLIB=":"
  4899. else
  4900. case $cross_compiling:$ac_tool_warned in
  4901. yes:)
  4902. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4903. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4904. ac_tool_warned=yes ;;
  4905. esac
  4906. RANLIB=$ac_ct_RANLIB
  4907. fi
  4908. else
  4909. RANLIB="$ac_cv_prog_RANLIB"
  4910. fi
  4911. test -z "$RANLIB" && RANLIB=:
  4912. # Determine commands to create old-style static archives.
  4913. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4914. old_postinstall_cmds='chmod 644 $oldlib'
  4915. old_postuninstall_cmds=
  4916. if test -n "$RANLIB"; then
  4917. case $host_os in
  4918. openbsd*)
  4919. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  4920. ;;
  4921. *)
  4922. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  4923. ;;
  4924. esac
  4925. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  4926. fi
  4927. # If no C compiler was specified, use CC.
  4928. LTCC=${LTCC-"$CC"}
  4929. # If no C compiler flags were specified, use CFLAGS.
  4930. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  4931. # Allow CC to be a program name with arguments.
  4932. compiler=$CC
  4933. # Check for command to grab the raw symbol name followed by C symbol from nm.
  4934. { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  4935. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  4936. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  4937. $as_echo_n "(cached) " >&6
  4938. else
  4939. # These are sane defaults that work on at least a few old systems.
  4940. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4941. # Character class describing NM global symbol codes.
  4942. symcode='[BCDEGRST]'
  4943. # Regexp to match symbols that can be accessed directly from C.
  4944. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  4945. # Define system-specific variables.
  4946. case $host_os in
  4947. aix*)
  4948. symcode='[BCDT]'
  4949. ;;
  4950. cygwin* | mingw* | pw32* | cegcc*)
  4951. symcode='[ABCDGISTW]'
  4952. ;;
  4953. hpux*)
  4954. if test "$host_cpu" = ia64; then
  4955. symcode='[ABCDEGRST]'
  4956. fi
  4957. ;;
  4958. irix* | nonstopux*)
  4959. symcode='[BCDEGRST]'
  4960. ;;
  4961. osf*)
  4962. symcode='[BCDEGQRST]'
  4963. ;;
  4964. solaris*)
  4965. symcode='[BDRT]'
  4966. ;;
  4967. sco3.2v5*)
  4968. symcode='[DT]'
  4969. ;;
  4970. sysv4.2uw2*)
  4971. symcode='[DT]'
  4972. ;;
  4973. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  4974. symcode='[ABDT]'
  4975. ;;
  4976. sysv4)
  4977. symcode='[DFNSTU]'
  4978. ;;
  4979. esac
  4980. # If we're using GNU nm, then use its standard symbol codes.
  4981. case `$NM -V 2>&1` in
  4982. *GNU* | *'with BFD'*)
  4983. symcode='[ABCDGIRSTW]' ;;
  4984. esac
  4985. # Transform an extracted symbol line into a proper C declaration.
  4986. # Some systems (esp. on ia64) link data and code symbols differently,
  4987. # so use this general approach.
  4988. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4989. # Transform an extracted symbol line into symbol name and symbol address
  4990. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  4991. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  4992. # Handle CRLF in mingw tool chain
  4993. opt_cr=
  4994. case $build_os in
  4995. mingw*)
  4996. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  4997. ;;
  4998. esac
  4999. # Try without a prefix underscore, then with it.
  5000. for ac_symprfx in "" "_"; do
  5001. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5002. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5003. # Write the raw and C identifiers.
  5004. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5005. # Fake it for dumpbin and say T for any non-static function
  5006. # and D for any global variable.
  5007. # Also find C++ and __fastcall symbols from MSVC++,
  5008. # which start with @ or ?.
  5009. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5010. " {last_section=section; section=\$ 3};"\
  5011. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5012. " \$ 0!~/External *\|/{next};"\
  5013. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5014. " {if(hide[section]) next};"\
  5015. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5016. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5017. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5018. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5019. " ' prfx=^$ac_symprfx"
  5020. else
  5021. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5022. fi
  5023. # Check to see that the pipe works correctly.
  5024. pipe_works=no
  5025. rm -f conftest*
  5026. cat > conftest.$ac_ext <<_LT_EOF
  5027. #ifdef __cplusplus
  5028. extern "C" {
  5029. #endif
  5030. char nm_test_var;
  5031. void nm_test_func(void);
  5032. void nm_test_func(void){}
  5033. #ifdef __cplusplus
  5034. }
  5035. #endif
  5036. int main(){nm_test_var='a';nm_test_func();return(0);}
  5037. _LT_EOF
  5038. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5039. (eval $ac_compile) 2>&5
  5040. ac_status=$?
  5041. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5042. (exit $ac_status); }; then
  5043. # Now try to grab the symbols.
  5044. nlist=conftest.nm
  5045. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  5046. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  5047. ac_status=$?
  5048. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5049. (exit $ac_status); } && test -s "$nlist"; then
  5050. # Try sorting and uniquifying the output.
  5051. if sort "$nlist" | uniq > "$nlist"T; then
  5052. mv -f "$nlist"T "$nlist"
  5053. else
  5054. rm -f "$nlist"T
  5055. fi
  5056. # Make sure that we snagged all the symbols we need.
  5057. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5058. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5059. cat <<_LT_EOF > conftest.$ac_ext
  5060. #ifdef __cplusplus
  5061. extern "C" {
  5062. #endif
  5063. _LT_EOF
  5064. # Now generate the symbol file.
  5065. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5066. cat <<_LT_EOF >> conftest.$ac_ext
  5067. /* The mapping between symbol names and symbols. */
  5068. const struct {
  5069. const char *name;
  5070. void *address;
  5071. }
  5072. lt__PROGRAM__LTX_preloaded_symbols[] =
  5073. {
  5074. { "@PROGRAM@", (void *) 0 },
  5075. _LT_EOF
  5076. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5077. cat <<\_LT_EOF >> conftest.$ac_ext
  5078. {0, (void *) 0}
  5079. };
  5080. /* This works around a problem in FreeBSD linker */
  5081. #ifdef FREEBSD_WORKAROUND
  5082. static const void *lt_preloaded_setup() {
  5083. return lt__PROGRAM__LTX_preloaded_symbols;
  5084. }
  5085. #endif
  5086. #ifdef __cplusplus
  5087. }
  5088. #endif
  5089. _LT_EOF
  5090. # Now try linking the two files.
  5091. mv conftest.$ac_objext conftstm.$ac_objext
  5092. lt_save_LIBS="$LIBS"
  5093. lt_save_CFLAGS="$CFLAGS"
  5094. LIBS="conftstm.$ac_objext"
  5095. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5096. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5097. (eval $ac_link) 2>&5
  5098. ac_status=$?
  5099. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5100. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  5101. pipe_works=yes
  5102. fi
  5103. LIBS="$lt_save_LIBS"
  5104. CFLAGS="$lt_save_CFLAGS"
  5105. else
  5106. echo "cannot find nm_test_func in $nlist" >&5
  5107. fi
  5108. else
  5109. echo "cannot find nm_test_var in $nlist" >&5
  5110. fi
  5111. else
  5112. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5113. fi
  5114. else
  5115. echo "$progname: failed program was:" >&5
  5116. cat conftest.$ac_ext >&5
  5117. fi
  5118. rm -rf conftest* conftst*
  5119. # Do not use the global_symbol_pipe unless it works.
  5120. if test "$pipe_works" = yes; then
  5121. break
  5122. else
  5123. lt_cv_sys_global_symbol_pipe=
  5124. fi
  5125. done
  5126. fi
  5127. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5128. lt_cv_sys_global_symbol_to_cdecl=
  5129. fi
  5130. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5131. { $as_echo "$as_me:$LINENO: result: failed" >&5
  5132. $as_echo "failed" >&6; }
  5133. else
  5134. { $as_echo "$as_me:$LINENO: result: ok" >&5
  5135. $as_echo "ok" >&6; }
  5136. fi
  5137. # Check whether --enable-libtool-lock was given.
  5138. if test "${enable_libtool_lock+set}" = set; then
  5139. enableval=$enable_libtool_lock;
  5140. fi
  5141. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5142. # Some flags need to be propagated to the compiler or linker for good
  5143. # libtool support.
  5144. case $host in
  5145. ia64-*-hpux*)
  5146. # Find out which ABI we are using.
  5147. echo 'int i;' > conftest.$ac_ext
  5148. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5149. (eval $ac_compile) 2>&5
  5150. ac_status=$?
  5151. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5152. (exit $ac_status); }; then
  5153. case `/usr/bin/file conftest.$ac_objext` in
  5154. *ELF-32*)
  5155. HPUX_IA64_MODE="32"
  5156. ;;
  5157. *ELF-64*)
  5158. HPUX_IA64_MODE="64"
  5159. ;;
  5160. esac
  5161. fi
  5162. rm -rf conftest*
  5163. ;;
  5164. *-*-irix6*)
  5165. # Find out which ABI we are using.
  5166. echo '#line 5922 "configure"' > conftest.$ac_ext
  5167. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5168. (eval $ac_compile) 2>&5
  5169. ac_status=$?
  5170. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5171. (exit $ac_status); }; then
  5172. if test "$lt_cv_prog_gnu_ld" = yes; then
  5173. case `/usr/bin/file conftest.$ac_objext` in
  5174. *32-bit*)
  5175. LD="${LD-ld} -melf32bsmip"
  5176. ;;
  5177. *N32*)
  5178. LD="${LD-ld} -melf32bmipn32"
  5179. ;;
  5180. *64-bit*)
  5181. LD="${LD-ld} -melf64bmip"
  5182. ;;
  5183. esac
  5184. else
  5185. case `/usr/bin/file conftest.$ac_objext` in
  5186. *32-bit*)
  5187. LD="${LD-ld} -32"
  5188. ;;
  5189. *N32*)
  5190. LD="${LD-ld} -n32"
  5191. ;;
  5192. *64-bit*)
  5193. LD="${LD-ld} -64"
  5194. ;;
  5195. esac
  5196. fi
  5197. fi
  5198. rm -rf conftest*
  5199. ;;
  5200. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5201. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5202. # Find out which ABI we are using.
  5203. echo 'int i;' > conftest.$ac_ext
  5204. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5205. (eval $ac_compile) 2>&5
  5206. ac_status=$?
  5207. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5208. (exit $ac_status); }; then
  5209. case `/usr/bin/file conftest.o` in
  5210. *32-bit*)
  5211. case $host in
  5212. x86_64-*kfreebsd*-gnu)
  5213. LD="${LD-ld} -m elf_i386_fbsd"
  5214. ;;
  5215. x86_64-*linux*)
  5216. LD="${LD-ld} -m elf_i386"
  5217. ;;
  5218. ppc64-*linux*|powerpc64-*linux*)
  5219. LD="${LD-ld} -m elf32ppclinux"
  5220. ;;
  5221. s390x-*linux*)
  5222. LD="${LD-ld} -m elf_s390"
  5223. ;;
  5224. sparc64-*linux*)
  5225. LD="${LD-ld} -m elf32_sparc"
  5226. ;;
  5227. esac
  5228. ;;
  5229. *64-bit*)
  5230. case $host in
  5231. x86_64-*kfreebsd*-gnu)
  5232. LD="${LD-ld} -m elf_x86_64_fbsd"
  5233. ;;
  5234. x86_64-*linux*)
  5235. LD="${LD-ld} -m elf_x86_64"
  5236. ;;
  5237. ppc*-*linux*|powerpc*-*linux*)
  5238. LD="${LD-ld} -m elf64ppc"
  5239. ;;
  5240. s390*-*linux*|s390*-*tpf*)
  5241. LD="${LD-ld} -m elf64_s390"
  5242. ;;
  5243. sparc*-*linux*)
  5244. LD="${LD-ld} -m elf64_sparc"
  5245. ;;
  5246. esac
  5247. ;;
  5248. esac
  5249. fi
  5250. rm -rf conftest*
  5251. ;;
  5252. *-*-sco3.2v5*)
  5253. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5254. SAVE_CFLAGS="$CFLAGS"
  5255. CFLAGS="$CFLAGS -belf"
  5256. { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  5257. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5258. if test "${lt_cv_cc_needs_belf+set}" = set; then
  5259. $as_echo_n "(cached) " >&6
  5260. else
  5261. ac_ext=c
  5262. ac_cpp='$CPP $CPPFLAGS'
  5263. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5264. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5265. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5266. cat >conftest.$ac_ext <<_ACEOF
  5267. /* confdefs.h. */
  5268. _ACEOF
  5269. cat confdefs.h >>conftest.$ac_ext
  5270. cat >>conftest.$ac_ext <<_ACEOF
  5271. /* end confdefs.h. */
  5272. int
  5273. main ()
  5274. {
  5275. ;
  5276. return 0;
  5277. }
  5278. _ACEOF
  5279. rm -f conftest.$ac_objext conftest$ac_exeext
  5280. if { (ac_try="$ac_link"
  5281. case "(($ac_try" in
  5282. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5283. *) ac_try_echo=$ac_try;;
  5284. esac
  5285. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5286. $as_echo "$ac_try_echo") >&5
  5287. (eval "$ac_link") 2>conftest.er1
  5288. ac_status=$?
  5289. grep -v '^ *+' conftest.er1 >conftest.err
  5290. rm -f conftest.er1
  5291. cat conftest.err >&5
  5292. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5293. (exit $ac_status); } && {
  5294. test -z "$ac_c_werror_flag" ||
  5295. test ! -s conftest.err
  5296. } && test -s conftest$ac_exeext && {
  5297. test "$cross_compiling" = yes ||
  5298. $as_test_x conftest$ac_exeext
  5299. }; then
  5300. lt_cv_cc_needs_belf=yes
  5301. else
  5302. $as_echo "$as_me: failed program was:" >&5
  5303. sed 's/^/| /' conftest.$ac_ext >&5
  5304. lt_cv_cc_needs_belf=no
  5305. fi
  5306. rm -rf conftest.dSYM
  5307. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5308. conftest$ac_exeext conftest.$ac_ext
  5309. ac_ext=c
  5310. ac_cpp='$CPP $CPPFLAGS'
  5311. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5312. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5313. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5314. fi
  5315. { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  5316. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5317. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5318. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5319. CFLAGS="$SAVE_CFLAGS"
  5320. fi
  5321. ;;
  5322. sparc*-*solaris*)
  5323. # Find out which ABI we are using.
  5324. echo 'int i;' > conftest.$ac_ext
  5325. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5326. (eval $ac_compile) 2>&5
  5327. ac_status=$?
  5328. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5329. (exit $ac_status); }; then
  5330. case `/usr/bin/file conftest.o` in
  5331. *64-bit*)
  5332. case $lt_cv_prog_gnu_ld in
  5333. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  5334. *)
  5335. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5336. LD="${LD-ld} -64"
  5337. fi
  5338. ;;
  5339. esac
  5340. ;;
  5341. esac
  5342. fi
  5343. rm -rf conftest*
  5344. ;;
  5345. esac
  5346. need_locks="$enable_libtool_lock"
  5347. case $host_os in
  5348. rhapsody* | darwin*)
  5349. if test -n "$ac_tool_prefix"; then
  5350. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5351. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5352. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5353. $as_echo_n "checking for $ac_word... " >&6; }
  5354. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
  5355. $as_echo_n "(cached) " >&6
  5356. else
  5357. if test -n "$DSYMUTIL"; then
  5358. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5359. else
  5360. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5361. for as_dir in $PATH
  5362. do
  5363. IFS=$as_save_IFS
  5364. test -z "$as_dir" && as_dir=.
  5365. for ac_exec_ext in '' $ac_executable_extensions; do
  5366. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5367. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5368. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5369. break 2
  5370. fi
  5371. done
  5372. done
  5373. IFS=$as_save_IFS
  5374. fi
  5375. fi
  5376. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5377. if test -n "$DSYMUTIL"; then
  5378. { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
  5379. $as_echo "$DSYMUTIL" >&6; }
  5380. else
  5381. { $as_echo "$as_me:$LINENO: result: no" >&5
  5382. $as_echo "no" >&6; }
  5383. fi
  5384. fi
  5385. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5386. ac_ct_DSYMUTIL=$DSYMUTIL
  5387. # Extract the first word of "dsymutil", so it can be a program name with args.
  5388. set dummy dsymutil; ac_word=$2
  5389. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5390. $as_echo_n "checking for $ac_word... " >&6; }
  5391. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
  5392. $as_echo_n "(cached) " >&6
  5393. else
  5394. if test -n "$ac_ct_DSYMUTIL"; then
  5395. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5396. else
  5397. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5398. for as_dir in $PATH
  5399. do
  5400. IFS=$as_save_IFS
  5401. test -z "$as_dir" && as_dir=.
  5402. for ac_exec_ext in '' $ac_executable_extensions; do
  5403. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5404. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5405. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5406. break 2
  5407. fi
  5408. done
  5409. done
  5410. IFS=$as_save_IFS
  5411. fi
  5412. fi
  5413. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5414. if test -n "$ac_ct_DSYMUTIL"; then
  5415. { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
  5416. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5417. else
  5418. { $as_echo "$as_me:$LINENO: result: no" >&5
  5419. $as_echo "no" >&6; }
  5420. fi
  5421. if test "x$ac_ct_DSYMUTIL" = x; then
  5422. DSYMUTIL=":"
  5423. else
  5424. case $cross_compiling:$ac_tool_warned in
  5425. yes:)
  5426. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5427. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5428. ac_tool_warned=yes ;;
  5429. esac
  5430. DSYMUTIL=$ac_ct_DSYMUTIL
  5431. fi
  5432. else
  5433. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5434. fi
  5435. if test -n "$ac_tool_prefix"; then
  5436. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5437. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5438. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5439. $as_echo_n "checking for $ac_word... " >&6; }
  5440. if test "${ac_cv_prog_NMEDIT+set}" = set; then
  5441. $as_echo_n "(cached) " >&6
  5442. else
  5443. if test -n "$NMEDIT"; then
  5444. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5445. else
  5446. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5447. for as_dir in $PATH
  5448. do
  5449. IFS=$as_save_IFS
  5450. test -z "$as_dir" && as_dir=.
  5451. for ac_exec_ext in '' $ac_executable_extensions; do
  5452. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5453. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5454. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5455. break 2
  5456. fi
  5457. done
  5458. done
  5459. IFS=$as_save_IFS
  5460. fi
  5461. fi
  5462. NMEDIT=$ac_cv_prog_NMEDIT
  5463. if test -n "$NMEDIT"; then
  5464. { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
  5465. $as_echo "$NMEDIT" >&6; }
  5466. else
  5467. { $as_echo "$as_me:$LINENO: result: no" >&5
  5468. $as_echo "no" >&6; }
  5469. fi
  5470. fi
  5471. if test -z "$ac_cv_prog_NMEDIT"; then
  5472. ac_ct_NMEDIT=$NMEDIT
  5473. # Extract the first word of "nmedit", so it can be a program name with args.
  5474. set dummy nmedit; ac_word=$2
  5475. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5476. $as_echo_n "checking for $ac_word... " >&6; }
  5477. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
  5478. $as_echo_n "(cached) " >&6
  5479. else
  5480. if test -n "$ac_ct_NMEDIT"; then
  5481. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5482. else
  5483. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5484. for as_dir in $PATH
  5485. do
  5486. IFS=$as_save_IFS
  5487. test -z "$as_dir" && as_dir=.
  5488. for ac_exec_ext in '' $ac_executable_extensions; do
  5489. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5490. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5491. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5492. break 2
  5493. fi
  5494. done
  5495. done
  5496. IFS=$as_save_IFS
  5497. fi
  5498. fi
  5499. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5500. if test -n "$ac_ct_NMEDIT"; then
  5501. { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
  5502. $as_echo "$ac_ct_NMEDIT" >&6; }
  5503. else
  5504. { $as_echo "$as_me:$LINENO: result: no" >&5
  5505. $as_echo "no" >&6; }
  5506. fi
  5507. if test "x$ac_ct_NMEDIT" = x; then
  5508. NMEDIT=":"
  5509. else
  5510. case $cross_compiling:$ac_tool_warned in
  5511. yes:)
  5512. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5513. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5514. ac_tool_warned=yes ;;
  5515. esac
  5516. NMEDIT=$ac_ct_NMEDIT
  5517. fi
  5518. else
  5519. NMEDIT="$ac_cv_prog_NMEDIT"
  5520. fi
  5521. if test -n "$ac_tool_prefix"; then
  5522. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5523. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5524. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5525. $as_echo_n "checking for $ac_word... " >&6; }
  5526. if test "${ac_cv_prog_LIPO+set}" = set; then
  5527. $as_echo_n "(cached) " >&6
  5528. else
  5529. if test -n "$LIPO"; then
  5530. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5531. else
  5532. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5533. for as_dir in $PATH
  5534. do
  5535. IFS=$as_save_IFS
  5536. test -z "$as_dir" && as_dir=.
  5537. for ac_exec_ext in '' $ac_executable_extensions; do
  5538. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5539. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5540. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5541. break 2
  5542. fi
  5543. done
  5544. done
  5545. IFS=$as_save_IFS
  5546. fi
  5547. fi
  5548. LIPO=$ac_cv_prog_LIPO
  5549. if test -n "$LIPO"; then
  5550. { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
  5551. $as_echo "$LIPO" >&6; }
  5552. else
  5553. { $as_echo "$as_me:$LINENO: result: no" >&5
  5554. $as_echo "no" >&6; }
  5555. fi
  5556. fi
  5557. if test -z "$ac_cv_prog_LIPO"; then
  5558. ac_ct_LIPO=$LIPO
  5559. # Extract the first word of "lipo", so it can be a program name with args.
  5560. set dummy lipo; ac_word=$2
  5561. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5562. $as_echo_n "checking for $ac_word... " >&6; }
  5563. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
  5564. $as_echo_n "(cached) " >&6
  5565. else
  5566. if test -n "$ac_ct_LIPO"; then
  5567. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5568. else
  5569. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5570. for as_dir in $PATH
  5571. do
  5572. IFS=$as_save_IFS
  5573. test -z "$as_dir" && as_dir=.
  5574. for ac_exec_ext in '' $ac_executable_extensions; do
  5575. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5576. ac_cv_prog_ac_ct_LIPO="lipo"
  5577. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5578. break 2
  5579. fi
  5580. done
  5581. done
  5582. IFS=$as_save_IFS
  5583. fi
  5584. fi
  5585. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5586. if test -n "$ac_ct_LIPO"; then
  5587. { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
  5588. $as_echo "$ac_ct_LIPO" >&6; }
  5589. else
  5590. { $as_echo "$as_me:$LINENO: result: no" >&5
  5591. $as_echo "no" >&6; }
  5592. fi
  5593. if test "x$ac_ct_LIPO" = x; then
  5594. LIPO=":"
  5595. else
  5596. case $cross_compiling:$ac_tool_warned in
  5597. yes:)
  5598. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5599. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5600. ac_tool_warned=yes ;;
  5601. esac
  5602. LIPO=$ac_ct_LIPO
  5603. fi
  5604. else
  5605. LIPO="$ac_cv_prog_LIPO"
  5606. fi
  5607. if test -n "$ac_tool_prefix"; then
  5608. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5609. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5610. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5611. $as_echo_n "checking for $ac_word... " >&6; }
  5612. if test "${ac_cv_prog_OTOOL+set}" = set; then
  5613. $as_echo_n "(cached) " >&6
  5614. else
  5615. if test -n "$OTOOL"; then
  5616. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5617. else
  5618. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5619. for as_dir in $PATH
  5620. do
  5621. IFS=$as_save_IFS
  5622. test -z "$as_dir" && as_dir=.
  5623. for ac_exec_ext in '' $ac_executable_extensions; do
  5624. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5625. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5626. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5627. break 2
  5628. fi
  5629. done
  5630. done
  5631. IFS=$as_save_IFS
  5632. fi
  5633. fi
  5634. OTOOL=$ac_cv_prog_OTOOL
  5635. if test -n "$OTOOL"; then
  5636. { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
  5637. $as_echo "$OTOOL" >&6; }
  5638. else
  5639. { $as_echo "$as_me:$LINENO: result: no" >&5
  5640. $as_echo "no" >&6; }
  5641. fi
  5642. fi
  5643. if test -z "$ac_cv_prog_OTOOL"; then
  5644. ac_ct_OTOOL=$OTOOL
  5645. # Extract the first word of "otool", so it can be a program name with args.
  5646. set dummy otool; ac_word=$2
  5647. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5648. $as_echo_n "checking for $ac_word... " >&6; }
  5649. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
  5650. $as_echo_n "(cached) " >&6
  5651. else
  5652. if test -n "$ac_ct_OTOOL"; then
  5653. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5654. else
  5655. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5656. for as_dir in $PATH
  5657. do
  5658. IFS=$as_save_IFS
  5659. test -z "$as_dir" && as_dir=.
  5660. for ac_exec_ext in '' $ac_executable_extensions; do
  5661. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5662. ac_cv_prog_ac_ct_OTOOL="otool"
  5663. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5664. break 2
  5665. fi
  5666. done
  5667. done
  5668. IFS=$as_save_IFS
  5669. fi
  5670. fi
  5671. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5672. if test -n "$ac_ct_OTOOL"; then
  5673. { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
  5674. $as_echo "$ac_ct_OTOOL" >&6; }
  5675. else
  5676. { $as_echo "$as_me:$LINENO: result: no" >&5
  5677. $as_echo "no" >&6; }
  5678. fi
  5679. if test "x$ac_ct_OTOOL" = x; then
  5680. OTOOL=":"
  5681. else
  5682. case $cross_compiling:$ac_tool_warned in
  5683. yes:)
  5684. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5685. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5686. ac_tool_warned=yes ;;
  5687. esac
  5688. OTOOL=$ac_ct_OTOOL
  5689. fi
  5690. else
  5691. OTOOL="$ac_cv_prog_OTOOL"
  5692. fi
  5693. if test -n "$ac_tool_prefix"; then
  5694. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5695. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5696. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5697. $as_echo_n "checking for $ac_word... " >&6; }
  5698. if test "${ac_cv_prog_OTOOL64+set}" = set; then
  5699. $as_echo_n "(cached) " >&6
  5700. else
  5701. if test -n "$OTOOL64"; then
  5702. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5703. else
  5704. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5705. for as_dir in $PATH
  5706. do
  5707. IFS=$as_save_IFS
  5708. test -z "$as_dir" && as_dir=.
  5709. for ac_exec_ext in '' $ac_executable_extensions; do
  5710. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5711. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5712. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5713. break 2
  5714. fi
  5715. done
  5716. done
  5717. IFS=$as_save_IFS
  5718. fi
  5719. fi
  5720. OTOOL64=$ac_cv_prog_OTOOL64
  5721. if test -n "$OTOOL64"; then
  5722. { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
  5723. $as_echo "$OTOOL64" >&6; }
  5724. else
  5725. { $as_echo "$as_me:$LINENO: result: no" >&5
  5726. $as_echo "no" >&6; }
  5727. fi
  5728. fi
  5729. if test -z "$ac_cv_prog_OTOOL64"; then
  5730. ac_ct_OTOOL64=$OTOOL64
  5731. # Extract the first word of "otool64", so it can be a program name with args.
  5732. set dummy otool64; ac_word=$2
  5733. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5734. $as_echo_n "checking for $ac_word... " >&6; }
  5735. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
  5736. $as_echo_n "(cached) " >&6
  5737. else
  5738. if test -n "$ac_ct_OTOOL64"; then
  5739. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5740. else
  5741. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5742. for as_dir in $PATH
  5743. do
  5744. IFS=$as_save_IFS
  5745. test -z "$as_dir" && as_dir=.
  5746. for ac_exec_ext in '' $ac_executable_extensions; do
  5747. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5748. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5749. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5750. break 2
  5751. fi
  5752. done
  5753. done
  5754. IFS=$as_save_IFS
  5755. fi
  5756. fi
  5757. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  5758. if test -n "$ac_ct_OTOOL64"; then
  5759. { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
  5760. $as_echo "$ac_ct_OTOOL64" >&6; }
  5761. else
  5762. { $as_echo "$as_me:$LINENO: result: no" >&5
  5763. $as_echo "no" >&6; }
  5764. fi
  5765. if test "x$ac_ct_OTOOL64" = x; then
  5766. OTOOL64=":"
  5767. else
  5768. case $cross_compiling:$ac_tool_warned in
  5769. yes:)
  5770. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5771. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5772. ac_tool_warned=yes ;;
  5773. esac
  5774. OTOOL64=$ac_ct_OTOOL64
  5775. fi
  5776. else
  5777. OTOOL64="$ac_cv_prog_OTOOL64"
  5778. fi
  5779. { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
  5780. $as_echo_n "checking for -single_module linker flag... " >&6; }
  5781. if test "${lt_cv_apple_cc_single_mod+set}" = set; then
  5782. $as_echo_n "(cached) " >&6
  5783. else
  5784. lt_cv_apple_cc_single_mod=no
  5785. if test -z "${LT_MULTI_MODULE}"; then
  5786. # By default we will add the -single_module flag. You can override
  5787. # by either setting the environment variable LT_MULTI_MODULE
  5788. # non-empty at configure time, or by adding -multi_module to the
  5789. # link flags.
  5790. rm -rf libconftest.dylib*
  5791. echo "int foo(void){return 1;}" > conftest.c
  5792. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5793. -dynamiclib -Wl,-single_module conftest.c" >&5
  5794. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5795. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  5796. _lt_result=$?
  5797. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  5798. lt_cv_apple_cc_single_mod=yes
  5799. else
  5800. cat conftest.err >&5
  5801. fi
  5802. rm -rf libconftest.dylib*
  5803. rm -f conftest.*
  5804. fi
  5805. fi
  5806. { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
  5807. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  5808. { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
  5809. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  5810. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
  5811. $as_echo_n "(cached) " >&6
  5812. else
  5813. lt_cv_ld_exported_symbols_list=no
  5814. save_LDFLAGS=$LDFLAGS
  5815. echo "_main" > conftest.sym
  5816. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  5817. cat >conftest.$ac_ext <<_ACEOF
  5818. /* confdefs.h. */
  5819. _ACEOF
  5820. cat confdefs.h >>conftest.$ac_ext
  5821. cat >>conftest.$ac_ext <<_ACEOF
  5822. /* end confdefs.h. */
  5823. int
  5824. main ()
  5825. {
  5826. ;
  5827. return 0;
  5828. }
  5829. _ACEOF
  5830. rm -f conftest.$ac_objext conftest$ac_exeext
  5831. if { (ac_try="$ac_link"
  5832. case "(($ac_try" in
  5833. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5834. *) ac_try_echo=$ac_try;;
  5835. esac
  5836. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5837. $as_echo "$ac_try_echo") >&5
  5838. (eval "$ac_link") 2>conftest.er1
  5839. ac_status=$?
  5840. grep -v '^ *+' conftest.er1 >conftest.err
  5841. rm -f conftest.er1
  5842. cat conftest.err >&5
  5843. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5844. (exit $ac_status); } && {
  5845. test -z "$ac_c_werror_flag" ||
  5846. test ! -s conftest.err
  5847. } && test -s conftest$ac_exeext && {
  5848. test "$cross_compiling" = yes ||
  5849. $as_test_x conftest$ac_exeext
  5850. }; then
  5851. lt_cv_ld_exported_symbols_list=yes
  5852. else
  5853. $as_echo "$as_me: failed program was:" >&5
  5854. sed 's/^/| /' conftest.$ac_ext >&5
  5855. lt_cv_ld_exported_symbols_list=no
  5856. fi
  5857. rm -rf conftest.dSYM
  5858. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5859. conftest$ac_exeext conftest.$ac_ext
  5860. LDFLAGS="$save_LDFLAGS"
  5861. fi
  5862. { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
  5863. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  5864. case $host_os in
  5865. rhapsody* | darwin1.[012])
  5866. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  5867. darwin1.*)
  5868. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5869. darwin*) # darwin 5.x on
  5870. # if running on 10.5 or later, the deployment target defaults
  5871. # to the OS version, if on x86, and 10.4, the deployment
  5872. # target defaults to 10.4. Don't you love it?
  5873. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  5874. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  5875. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  5876. 10.[012]*)
  5877. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5878. 10.*)
  5879. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  5880. esac
  5881. ;;
  5882. esac
  5883. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  5884. _lt_dar_single_mod='$single_module'
  5885. fi
  5886. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  5887. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  5888. else
  5889. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  5890. fi
  5891. if test "$DSYMUTIL" != ":"; then
  5892. _lt_dsymutil='~$DSYMUTIL $lib || :'
  5893. else
  5894. _lt_dsymutil=
  5895. fi
  5896. ;;
  5897. esac
  5898. ac_ext=c
  5899. ac_cpp='$CPP $CPPFLAGS'
  5900. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5901. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5902. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5903. { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  5904. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  5905. # On Suns, sometimes $CPP names a directory.
  5906. if test -n "$CPP" && test -d "$CPP"; then
  5907. CPP=
  5908. fi
  5909. if test -z "$CPP"; then
  5910. if test "${ac_cv_prog_CPP+set}" = set; then
  5911. $as_echo_n "(cached) " >&6
  5912. else
  5913. # Double quotes because CPP needs to be expanded
  5914. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  5915. do
  5916. ac_preproc_ok=false
  5917. for ac_c_preproc_warn_flag in '' yes
  5918. do
  5919. # Use a header file that comes with gcc, so configuring glibc
  5920. # with a fresh cross-compiler works.
  5921. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5922. # <limits.h> exists even on freestanding compilers.
  5923. # On the NeXT, cc -E runs the code through the compiler's parser,
  5924. # not just through cpp. "Syntax error" is here to catch this case.
  5925. cat >conftest.$ac_ext <<_ACEOF
  5926. /* confdefs.h. */
  5927. _ACEOF
  5928. cat confdefs.h >>conftest.$ac_ext
  5929. cat >>conftest.$ac_ext <<_ACEOF
  5930. /* end confdefs.h. */
  5931. #ifdef __STDC__
  5932. # include <limits.h>
  5933. #else
  5934. # include <assert.h>
  5935. #endif
  5936. Syntax error
  5937. _ACEOF
  5938. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5939. case "(($ac_try" in
  5940. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5941. *) ac_try_echo=$ac_try;;
  5942. esac
  5943. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5944. $as_echo "$ac_try_echo") >&5
  5945. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5946. ac_status=$?
  5947. grep -v '^ *+' conftest.er1 >conftest.err
  5948. rm -f conftest.er1
  5949. cat conftest.err >&5
  5950. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5951. (exit $ac_status); } >/dev/null && {
  5952. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5953. test ! -s conftest.err
  5954. }; then
  5955. :
  5956. else
  5957. $as_echo "$as_me: failed program was:" >&5
  5958. sed 's/^/| /' conftest.$ac_ext >&5
  5959. # Broken: fails on valid input.
  5960. continue
  5961. fi
  5962. rm -f conftest.err conftest.$ac_ext
  5963. # OK, works on sane cases. Now check whether nonexistent headers
  5964. # can be detected and how.
  5965. cat >conftest.$ac_ext <<_ACEOF
  5966. /* confdefs.h. */
  5967. _ACEOF
  5968. cat confdefs.h >>conftest.$ac_ext
  5969. cat >>conftest.$ac_ext <<_ACEOF
  5970. /* end confdefs.h. */
  5971. #include <ac_nonexistent.h>
  5972. _ACEOF
  5973. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5974. case "(($ac_try" in
  5975. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5976. *) ac_try_echo=$ac_try;;
  5977. esac
  5978. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5979. $as_echo "$ac_try_echo") >&5
  5980. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5981. ac_status=$?
  5982. grep -v '^ *+' conftest.er1 >conftest.err
  5983. rm -f conftest.er1
  5984. cat conftest.err >&5
  5985. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5986. (exit $ac_status); } >/dev/null && {
  5987. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5988. test ! -s conftest.err
  5989. }; then
  5990. # Broken: success on invalid input.
  5991. continue
  5992. else
  5993. $as_echo "$as_me: failed program was:" >&5
  5994. sed 's/^/| /' conftest.$ac_ext >&5
  5995. # Passes both tests.
  5996. ac_preproc_ok=:
  5997. break
  5998. fi
  5999. rm -f conftest.err conftest.$ac_ext
  6000. done
  6001. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6002. rm -f conftest.err conftest.$ac_ext
  6003. if $ac_preproc_ok; then
  6004. break
  6005. fi
  6006. done
  6007. ac_cv_prog_CPP=$CPP
  6008. fi
  6009. CPP=$ac_cv_prog_CPP
  6010. else
  6011. ac_cv_prog_CPP=$CPP
  6012. fi
  6013. { $as_echo "$as_me:$LINENO: result: $CPP" >&5
  6014. $as_echo "$CPP" >&6; }
  6015. ac_preproc_ok=false
  6016. for ac_c_preproc_warn_flag in '' yes
  6017. do
  6018. # Use a header file that comes with gcc, so configuring glibc
  6019. # with a fresh cross-compiler works.
  6020. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6021. # <limits.h> exists even on freestanding compilers.
  6022. # On the NeXT, cc -E runs the code through the compiler's parser,
  6023. # not just through cpp. "Syntax error" is here to catch this case.
  6024. cat >conftest.$ac_ext <<_ACEOF
  6025. /* confdefs.h. */
  6026. _ACEOF
  6027. cat confdefs.h >>conftest.$ac_ext
  6028. cat >>conftest.$ac_ext <<_ACEOF
  6029. /* end confdefs.h. */
  6030. #ifdef __STDC__
  6031. # include <limits.h>
  6032. #else
  6033. # include <assert.h>
  6034. #endif
  6035. Syntax error
  6036. _ACEOF
  6037. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6038. case "(($ac_try" in
  6039. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6040. *) ac_try_echo=$ac_try;;
  6041. esac
  6042. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6043. $as_echo "$ac_try_echo") >&5
  6044. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6045. ac_status=$?
  6046. grep -v '^ *+' conftest.er1 >conftest.err
  6047. rm -f conftest.er1
  6048. cat conftest.err >&5
  6049. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6050. (exit $ac_status); } >/dev/null && {
  6051. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6052. test ! -s conftest.err
  6053. }; then
  6054. :
  6055. else
  6056. $as_echo "$as_me: failed program was:" >&5
  6057. sed 's/^/| /' conftest.$ac_ext >&5
  6058. # Broken: fails on valid input.
  6059. continue
  6060. fi
  6061. rm -f conftest.err conftest.$ac_ext
  6062. # OK, works on sane cases. Now check whether nonexistent headers
  6063. # can be detected and how.
  6064. cat >conftest.$ac_ext <<_ACEOF
  6065. /* confdefs.h. */
  6066. _ACEOF
  6067. cat confdefs.h >>conftest.$ac_ext
  6068. cat >>conftest.$ac_ext <<_ACEOF
  6069. /* end confdefs.h. */
  6070. #include <ac_nonexistent.h>
  6071. _ACEOF
  6072. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6073. case "(($ac_try" in
  6074. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6075. *) ac_try_echo=$ac_try;;
  6076. esac
  6077. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6078. $as_echo "$ac_try_echo") >&5
  6079. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6080. ac_status=$?
  6081. grep -v '^ *+' conftest.er1 >conftest.err
  6082. rm -f conftest.er1
  6083. cat conftest.err >&5
  6084. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6085. (exit $ac_status); } >/dev/null && {
  6086. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6087. test ! -s conftest.err
  6088. }; then
  6089. # Broken: success on invalid input.
  6090. continue
  6091. else
  6092. $as_echo "$as_me: failed program was:" >&5
  6093. sed 's/^/| /' conftest.$ac_ext >&5
  6094. # Passes both tests.
  6095. ac_preproc_ok=:
  6096. break
  6097. fi
  6098. rm -f conftest.err conftest.$ac_ext
  6099. done
  6100. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6101. rm -f conftest.err conftest.$ac_ext
  6102. if $ac_preproc_ok; then
  6103. :
  6104. else
  6105. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  6106. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6107. { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  6108. See \`config.log' for more details." >&5
  6109. $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  6110. See \`config.log' for more details." >&2;}
  6111. { (exit 1); exit 1; }; }; }
  6112. fi
  6113. ac_ext=c
  6114. ac_cpp='$CPP $CPPFLAGS'
  6115. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6116. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6117. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6118. { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  6119. $as_echo_n "checking for ANSI C header files... " >&6; }
  6120. if test "${ac_cv_header_stdc+set}" = set; then
  6121. $as_echo_n "(cached) " >&6
  6122. else
  6123. cat >conftest.$ac_ext <<_ACEOF
  6124. /* confdefs.h. */
  6125. _ACEOF
  6126. cat confdefs.h >>conftest.$ac_ext
  6127. cat >>conftest.$ac_ext <<_ACEOF
  6128. /* end confdefs.h. */
  6129. #include <stdlib.h>
  6130. #include <stdarg.h>
  6131. #include <string.h>
  6132. #include <float.h>
  6133. int
  6134. main ()
  6135. {
  6136. ;
  6137. return 0;
  6138. }
  6139. _ACEOF
  6140. rm -f conftest.$ac_objext
  6141. if { (ac_try="$ac_compile"
  6142. case "(($ac_try" in
  6143. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6144. *) ac_try_echo=$ac_try;;
  6145. esac
  6146. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6147. $as_echo "$ac_try_echo") >&5
  6148. (eval "$ac_compile") 2>conftest.er1
  6149. ac_status=$?
  6150. grep -v '^ *+' conftest.er1 >conftest.err
  6151. rm -f conftest.er1
  6152. cat conftest.err >&5
  6153. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6154. (exit $ac_status); } && {
  6155. test -z "$ac_c_werror_flag" ||
  6156. test ! -s conftest.err
  6157. } && test -s conftest.$ac_objext; then
  6158. ac_cv_header_stdc=yes
  6159. else
  6160. $as_echo "$as_me: failed program was:" >&5
  6161. sed 's/^/| /' conftest.$ac_ext >&5
  6162. ac_cv_header_stdc=no
  6163. fi
  6164. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6165. if test $ac_cv_header_stdc = yes; then
  6166. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6167. cat >conftest.$ac_ext <<_ACEOF
  6168. /* confdefs.h. */
  6169. _ACEOF
  6170. cat confdefs.h >>conftest.$ac_ext
  6171. cat >>conftest.$ac_ext <<_ACEOF
  6172. /* end confdefs.h. */
  6173. #include <string.h>
  6174. _ACEOF
  6175. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6176. $EGREP "memchr" >/dev/null 2>&1; then
  6177. :
  6178. else
  6179. ac_cv_header_stdc=no
  6180. fi
  6181. rm -f conftest*
  6182. fi
  6183. if test $ac_cv_header_stdc = yes; then
  6184. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6185. cat >conftest.$ac_ext <<_ACEOF
  6186. /* confdefs.h. */
  6187. _ACEOF
  6188. cat confdefs.h >>conftest.$ac_ext
  6189. cat >>conftest.$ac_ext <<_ACEOF
  6190. /* end confdefs.h. */
  6191. #include <stdlib.h>
  6192. _ACEOF
  6193. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6194. $EGREP "free" >/dev/null 2>&1; then
  6195. :
  6196. else
  6197. ac_cv_header_stdc=no
  6198. fi
  6199. rm -f conftest*
  6200. fi
  6201. if test $ac_cv_header_stdc = yes; then
  6202. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6203. if test "$cross_compiling" = yes; then
  6204. :
  6205. else
  6206. cat >conftest.$ac_ext <<_ACEOF
  6207. /* confdefs.h. */
  6208. _ACEOF
  6209. cat confdefs.h >>conftest.$ac_ext
  6210. cat >>conftest.$ac_ext <<_ACEOF
  6211. /* end confdefs.h. */
  6212. #include <ctype.h>
  6213. #include <stdlib.h>
  6214. #if ((' ' & 0x0FF) == 0x020)
  6215. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6216. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6217. #else
  6218. # define ISLOWER(c) \
  6219. (('a' <= (c) && (c) <= 'i') \
  6220. || ('j' <= (c) && (c) <= 'r') \
  6221. || ('s' <= (c) && (c) <= 'z'))
  6222. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6223. #endif
  6224. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6225. int
  6226. main ()
  6227. {
  6228. int i;
  6229. for (i = 0; i < 256; i++)
  6230. if (XOR (islower (i), ISLOWER (i))
  6231. || toupper (i) != TOUPPER (i))
  6232. return 2;
  6233. return 0;
  6234. }
  6235. _ACEOF
  6236. rm -f conftest$ac_exeext
  6237. if { (ac_try="$ac_link"
  6238. case "(($ac_try" in
  6239. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6240. *) ac_try_echo=$ac_try;;
  6241. esac
  6242. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6243. $as_echo "$ac_try_echo") >&5
  6244. (eval "$ac_link") 2>&5
  6245. ac_status=$?
  6246. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6247. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6248. { (case "(($ac_try" in
  6249. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6250. *) ac_try_echo=$ac_try;;
  6251. esac
  6252. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6253. $as_echo "$ac_try_echo") >&5
  6254. (eval "$ac_try") 2>&5
  6255. ac_status=$?
  6256. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6257. (exit $ac_status); }; }; then
  6258. :
  6259. else
  6260. $as_echo "$as_me: program exited with status $ac_status" >&5
  6261. $as_echo "$as_me: failed program was:" >&5
  6262. sed 's/^/| /' conftest.$ac_ext >&5
  6263. ( exit $ac_status )
  6264. ac_cv_header_stdc=no
  6265. fi
  6266. rm -rf conftest.dSYM
  6267. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6268. fi
  6269. fi
  6270. fi
  6271. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  6272. $as_echo "$ac_cv_header_stdc" >&6; }
  6273. if test $ac_cv_header_stdc = yes; then
  6274. cat >>confdefs.h <<\_ACEOF
  6275. #define STDC_HEADERS 1
  6276. _ACEOF
  6277. fi
  6278. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6279. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6280. inttypes.h stdint.h unistd.h
  6281. do
  6282. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6283. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  6284. $as_echo_n "checking for $ac_header... " >&6; }
  6285. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6286. $as_echo_n "(cached) " >&6
  6287. else
  6288. cat >conftest.$ac_ext <<_ACEOF
  6289. /* confdefs.h. */
  6290. _ACEOF
  6291. cat confdefs.h >>conftest.$ac_ext
  6292. cat >>conftest.$ac_ext <<_ACEOF
  6293. /* end confdefs.h. */
  6294. $ac_includes_default
  6295. #include <$ac_header>
  6296. _ACEOF
  6297. rm -f conftest.$ac_objext
  6298. if { (ac_try="$ac_compile"
  6299. case "(($ac_try" in
  6300. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6301. *) ac_try_echo=$ac_try;;
  6302. esac
  6303. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6304. $as_echo "$ac_try_echo") >&5
  6305. (eval "$ac_compile") 2>conftest.er1
  6306. ac_status=$?
  6307. grep -v '^ *+' conftest.er1 >conftest.err
  6308. rm -f conftest.er1
  6309. cat conftest.err >&5
  6310. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6311. (exit $ac_status); } && {
  6312. test -z "$ac_c_werror_flag" ||
  6313. test ! -s conftest.err
  6314. } && test -s conftest.$ac_objext; then
  6315. eval "$as_ac_Header=yes"
  6316. else
  6317. $as_echo "$as_me: failed program was:" >&5
  6318. sed 's/^/| /' conftest.$ac_ext >&5
  6319. eval "$as_ac_Header=no"
  6320. fi
  6321. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6322. fi
  6323. ac_res=`eval 'as_val=${'$as_ac_Header'}
  6324. $as_echo "$as_val"'`
  6325. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  6326. $as_echo "$ac_res" >&6; }
  6327. as_val=`eval 'as_val=${'$as_ac_Header'}
  6328. $as_echo "$as_val"'`
  6329. if test "x$as_val" = x""yes; then
  6330. cat >>confdefs.h <<_ACEOF
  6331. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6332. _ACEOF
  6333. fi
  6334. done
  6335. for ac_header in dlfcn.h
  6336. do
  6337. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6338. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  6339. $as_echo_n "checking for $ac_header... " >&6; }
  6340. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6341. $as_echo_n "(cached) " >&6
  6342. else
  6343. cat >conftest.$ac_ext <<_ACEOF
  6344. /* confdefs.h. */
  6345. _ACEOF
  6346. cat confdefs.h >>conftest.$ac_ext
  6347. cat >>conftest.$ac_ext <<_ACEOF
  6348. /* end confdefs.h. */
  6349. $ac_includes_default
  6350. #include <$ac_header>
  6351. _ACEOF
  6352. rm -f conftest.$ac_objext
  6353. if { (ac_try="$ac_compile"
  6354. case "(($ac_try" in
  6355. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6356. *) ac_try_echo=$ac_try;;
  6357. esac
  6358. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6359. $as_echo "$ac_try_echo") >&5
  6360. (eval "$ac_compile") 2>conftest.er1
  6361. ac_status=$?
  6362. grep -v '^ *+' conftest.er1 >conftest.err
  6363. rm -f conftest.er1
  6364. cat conftest.err >&5
  6365. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6366. (exit $ac_status); } && {
  6367. test -z "$ac_c_werror_flag" ||
  6368. test ! -s conftest.err
  6369. } && test -s conftest.$ac_objext; then
  6370. eval "$as_ac_Header=yes"
  6371. else
  6372. $as_echo "$as_me: failed program was:" >&5
  6373. sed 's/^/| /' conftest.$ac_ext >&5
  6374. eval "$as_ac_Header=no"
  6375. fi
  6376. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6377. fi
  6378. ac_res=`eval 'as_val=${'$as_ac_Header'}
  6379. $as_echo "$as_val"'`
  6380. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  6381. $as_echo "$ac_res" >&6; }
  6382. as_val=`eval 'as_val=${'$as_ac_Header'}
  6383. $as_echo "$as_val"'`
  6384. if test "x$as_val" = x""yes; then
  6385. cat >>confdefs.h <<_ACEOF
  6386. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6387. _ACEOF
  6388. fi
  6389. done
  6390. # Set options
  6391. enable_dlopen=no
  6392. enable_win32_dll=no
  6393. # Check whether --enable-shared was given.
  6394. if test "${enable_shared+set}" = set; then
  6395. enableval=$enable_shared; p=${PACKAGE-default}
  6396. case $enableval in
  6397. yes) enable_shared=yes ;;
  6398. no) enable_shared=no ;;
  6399. *)
  6400. enable_shared=no
  6401. # Look at the argument we got. We use all the common list separators.
  6402. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6403. for pkg in $enableval; do
  6404. IFS="$lt_save_ifs"
  6405. if test "X$pkg" = "X$p"; then
  6406. enable_shared=yes
  6407. fi
  6408. done
  6409. IFS="$lt_save_ifs"
  6410. ;;
  6411. esac
  6412. else
  6413. enable_shared=yes
  6414. fi
  6415. # Check whether --enable-static was given.
  6416. if test "${enable_static+set}" = set; then
  6417. enableval=$enable_static; p=${PACKAGE-default}
  6418. case $enableval in
  6419. yes) enable_static=yes ;;
  6420. no) enable_static=no ;;
  6421. *)
  6422. enable_static=no
  6423. # Look at the argument we got. We use all the common list separators.
  6424. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6425. for pkg in $enableval; do
  6426. IFS="$lt_save_ifs"
  6427. if test "X$pkg" = "X$p"; then
  6428. enable_static=yes
  6429. fi
  6430. done
  6431. IFS="$lt_save_ifs"
  6432. ;;
  6433. esac
  6434. else
  6435. enable_static=yes
  6436. fi
  6437. # Check whether --with-pic was given.
  6438. if test "${with_pic+set}" = set; then
  6439. withval=$with_pic; pic_mode="$withval"
  6440. else
  6441. pic_mode=default
  6442. fi
  6443. test -z "$pic_mode" && pic_mode=default
  6444. # Check whether --enable-fast-install was given.
  6445. if test "${enable_fast_install+set}" = set; then
  6446. enableval=$enable_fast_install; p=${PACKAGE-default}
  6447. case $enableval in
  6448. yes) enable_fast_install=yes ;;
  6449. no) enable_fast_install=no ;;
  6450. *)
  6451. enable_fast_install=no
  6452. # Look at the argument we got. We use all the common list separators.
  6453. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6454. for pkg in $enableval; do
  6455. IFS="$lt_save_ifs"
  6456. if test "X$pkg" = "X$p"; then
  6457. enable_fast_install=yes
  6458. fi
  6459. done
  6460. IFS="$lt_save_ifs"
  6461. ;;
  6462. esac
  6463. else
  6464. enable_fast_install=yes
  6465. fi
  6466. # This can be used to rebuild libtool when needed
  6467. LIBTOOL_DEPS="$ltmain"
  6468. # Always use our own libtool.
  6469. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6470. test -z "$LN_S" && LN_S="ln -s"
  6471. if test -n "${ZSH_VERSION+set}" ; then
  6472. setopt NO_GLOB_SUBST
  6473. fi
  6474. { $as_echo "$as_me:$LINENO: checking for objdir" >&5
  6475. $as_echo_n "checking for objdir... " >&6; }
  6476. if test "${lt_cv_objdir+set}" = set; then
  6477. $as_echo_n "(cached) " >&6
  6478. else
  6479. rm -f .libs 2>/dev/null
  6480. mkdir .libs 2>/dev/null
  6481. if test -d .libs; then
  6482. lt_cv_objdir=.libs
  6483. else
  6484. # MS-DOS does not allow filenames that begin with a dot.
  6485. lt_cv_objdir=_libs
  6486. fi
  6487. rmdir .libs 2>/dev/null
  6488. fi
  6489. { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  6490. $as_echo "$lt_cv_objdir" >&6; }
  6491. objdir=$lt_cv_objdir
  6492. cat >>confdefs.h <<_ACEOF
  6493. #define LT_OBJDIR "$lt_cv_objdir/"
  6494. _ACEOF
  6495. case $host_os in
  6496. aix3*)
  6497. # AIX sometimes has problems with the GCC collect2 program. For some
  6498. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6499. # vanish in a puff of smoke.
  6500. if test "X${COLLECT_NAMES+set}" != Xset; then
  6501. COLLECT_NAMES=
  6502. export COLLECT_NAMES
  6503. fi
  6504. ;;
  6505. esac
  6506. # Sed substitution that helps us do robust quoting. It backslashifies
  6507. # metacharacters that are still active within double-quoted strings.
  6508. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  6509. # Same as above, but do not quote variable references.
  6510. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  6511. # Sed substitution to delay expansion of an escaped shell variable in a
  6512. # double_quote_subst'ed string.
  6513. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  6514. # Sed substitution to delay expansion of an escaped single quote.
  6515. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  6516. # Sed substitution to avoid accidental globbing in evaled expressions
  6517. no_glob_subst='s/\*/\\\*/g'
  6518. # Global variables:
  6519. ofile=libtool
  6520. can_build_shared=yes
  6521. # All known linkers require a `.a' archive for static linking (except MSVC,
  6522. # which needs '.lib').
  6523. libext=a
  6524. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6525. old_CC="$CC"
  6526. old_CFLAGS="$CFLAGS"
  6527. # Set sane defaults for various variables
  6528. test -z "$CC" && CC=cc
  6529. test -z "$LTCC" && LTCC=$CC
  6530. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6531. test -z "$LD" && LD=ld
  6532. test -z "$ac_objext" && ac_objext=o
  6533. for cc_temp in $compiler""; do
  6534. case $cc_temp in
  6535. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6536. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6537. \-*) ;;
  6538. *) break;;
  6539. esac
  6540. done
  6541. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  6542. # Only perform the check for file, if the check method requires it
  6543. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6544. case $deplibs_check_method in
  6545. file_magic*)
  6546. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6547. { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  6548. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6549. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  6550. $as_echo_n "(cached) " >&6
  6551. else
  6552. case $MAGIC_CMD in
  6553. [\\/*] | ?:[\\/]*)
  6554. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6555. ;;
  6556. *)
  6557. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6558. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6559. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6560. for ac_dir in $ac_dummy; do
  6561. IFS="$lt_save_ifs"
  6562. test -z "$ac_dir" && ac_dir=.
  6563. if test -f $ac_dir/${ac_tool_prefix}file; then
  6564. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6565. if test -n "$file_magic_test_file"; then
  6566. case $deplibs_check_method in
  6567. "file_magic "*)
  6568. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6569. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6570. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6571. $EGREP "$file_magic_regex" > /dev/null; then
  6572. :
  6573. else
  6574. cat <<_LT_EOF 1>&2
  6575. *** Warning: the command libtool uses to detect shared libraries,
  6576. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6577. *** The result is that libtool may fail to recognize shared libraries
  6578. *** as such. This will affect the creation of libtool libraries that
  6579. *** depend on shared libraries, but programs linked with such libtool
  6580. *** libraries will work regardless of this problem. Nevertheless, you
  6581. *** may want to report the problem to your system manager and/or to
  6582. *** bug-libtool@gnu.org
  6583. _LT_EOF
  6584. fi ;;
  6585. esac
  6586. fi
  6587. break
  6588. fi
  6589. done
  6590. IFS="$lt_save_ifs"
  6591. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6592. ;;
  6593. esac
  6594. fi
  6595. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6596. if test -n "$MAGIC_CMD"; then
  6597. { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  6598. $as_echo "$MAGIC_CMD" >&6; }
  6599. else
  6600. { $as_echo "$as_me:$LINENO: result: no" >&5
  6601. $as_echo "no" >&6; }
  6602. fi
  6603. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6604. if test -n "$ac_tool_prefix"; then
  6605. { $as_echo "$as_me:$LINENO: checking for file" >&5
  6606. $as_echo_n "checking for file... " >&6; }
  6607. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  6608. $as_echo_n "(cached) " >&6
  6609. else
  6610. case $MAGIC_CMD in
  6611. [\\/*] | ?:[\\/]*)
  6612. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6613. ;;
  6614. *)
  6615. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6616. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6617. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6618. for ac_dir in $ac_dummy; do
  6619. IFS="$lt_save_ifs"
  6620. test -z "$ac_dir" && ac_dir=.
  6621. if test -f $ac_dir/file; then
  6622. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6623. if test -n "$file_magic_test_file"; then
  6624. case $deplibs_check_method in
  6625. "file_magic "*)
  6626. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6627. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6628. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6629. $EGREP "$file_magic_regex" > /dev/null; then
  6630. :
  6631. else
  6632. cat <<_LT_EOF 1>&2
  6633. *** Warning: the command libtool uses to detect shared libraries,
  6634. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6635. *** The result is that libtool may fail to recognize shared libraries
  6636. *** as such. This will affect the creation of libtool libraries that
  6637. *** depend on shared libraries, but programs linked with such libtool
  6638. *** libraries will work regardless of this problem. Nevertheless, you
  6639. *** may want to report the problem to your system manager and/or to
  6640. *** bug-libtool@gnu.org
  6641. _LT_EOF
  6642. fi ;;
  6643. esac
  6644. fi
  6645. break
  6646. fi
  6647. done
  6648. IFS="$lt_save_ifs"
  6649. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6650. ;;
  6651. esac
  6652. fi
  6653. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6654. if test -n "$MAGIC_CMD"; then
  6655. { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  6656. $as_echo "$MAGIC_CMD" >&6; }
  6657. else
  6658. { $as_echo "$as_me:$LINENO: result: no" >&5
  6659. $as_echo "no" >&6; }
  6660. fi
  6661. else
  6662. MAGIC_CMD=:
  6663. fi
  6664. fi
  6665. fi
  6666. ;;
  6667. esac
  6668. # Use C for the default configuration in the libtool script
  6669. lt_save_CC="$CC"
  6670. ac_ext=c
  6671. ac_cpp='$CPP $CPPFLAGS'
  6672. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6673. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6674. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6675. # Source file extension for C test sources.
  6676. ac_ext=c
  6677. # Object file extension for compiled C test sources.
  6678. objext=o
  6679. objext=$objext
  6680. # Code to be used in simple compile tests
  6681. lt_simple_compile_test_code="int some_variable = 0;"
  6682. # Code to be used in simple link tests
  6683. lt_simple_link_test_code='int main(){return(0);}'
  6684. # If no C compiler was specified, use CC.
  6685. LTCC=${LTCC-"$CC"}
  6686. # If no C compiler flags were specified, use CFLAGS.
  6687. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6688. # Allow CC to be a program name with arguments.
  6689. compiler=$CC
  6690. # Save the default compiler, since it gets overwritten when the other
  6691. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6692. compiler_DEFAULT=$CC
  6693. # save warnings/boilerplate of simple test code
  6694. ac_outfile=conftest.$ac_objext
  6695. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6696. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6697. _lt_compiler_boilerplate=`cat conftest.err`
  6698. $RM conftest*
  6699. ac_outfile=conftest.$ac_objext
  6700. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6701. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6702. _lt_linker_boilerplate=`cat conftest.err`
  6703. $RM -r conftest*
  6704. if test -n "$compiler"; then
  6705. lt_prog_compiler_no_builtin_flag=
  6706. if test "$GCC" = yes; then
  6707. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  6708. { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6709. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6710. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  6711. $as_echo_n "(cached) " >&6
  6712. else
  6713. lt_cv_prog_compiler_rtti_exceptions=no
  6714. ac_outfile=conftest.$ac_objext
  6715. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6716. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6717. # Insert the option either (1) after the last *FLAGS variable, or
  6718. # (2) before a word containing "conftest.", or (3) at the end.
  6719. # Note that $ac_compile itself does not contain backslashes and begins
  6720. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6721. # The option is referenced via a variable to avoid confusing sed.
  6722. lt_compile=`echo "$ac_compile" | $SED \
  6723. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6724. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6725. -e 's:$: $lt_compiler_flag:'`
  6726. (eval echo "\"\$as_me:7775: $lt_compile\"" >&5)
  6727. (eval "$lt_compile" 2>conftest.err)
  6728. ac_status=$?
  6729. cat conftest.err >&5
  6730. echo "$as_me:7779: \$? = $ac_status" >&5
  6731. if (exit $ac_status) && test -s "$ac_outfile"; then
  6732. # The compiler can only warn and ignore the option if not recognized
  6733. # So say no if there are warnings other than the usual output.
  6734. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6735. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6736. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6737. lt_cv_prog_compiler_rtti_exceptions=yes
  6738. fi
  6739. fi
  6740. $RM conftest*
  6741. fi
  6742. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6743. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6744. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6745. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6746. else
  6747. :
  6748. fi
  6749. fi
  6750. lt_prog_compiler_wl=
  6751. lt_prog_compiler_pic=
  6752. lt_prog_compiler_static=
  6753. { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  6754. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  6755. if test "$GCC" = yes; then
  6756. lt_prog_compiler_wl='-Wl,'
  6757. lt_prog_compiler_static='-static'
  6758. case $host_os in
  6759. aix*)
  6760. # All AIX code is PIC.
  6761. if test "$host_cpu" = ia64; then
  6762. # AIX 5 now supports IA64 processor
  6763. lt_prog_compiler_static='-Bstatic'
  6764. fi
  6765. ;;
  6766. amigaos*)
  6767. case $host_cpu in
  6768. powerpc)
  6769. # see comment about AmigaOS4 .so support
  6770. lt_prog_compiler_pic='-fPIC'
  6771. ;;
  6772. m68k)
  6773. # FIXME: we need at least 68020 code to build shared libraries, but
  6774. # adding the `-m68020' flag to GCC prevents building anything better,
  6775. # like `-m68040'.
  6776. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6777. ;;
  6778. esac
  6779. ;;
  6780. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6781. # PIC is the default for these OSes.
  6782. ;;
  6783. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6784. # This hack is so that the source file can tell whether it is being
  6785. # built for inclusion in a dll (and should export symbols for example).
  6786. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6787. # (--disable-auto-import) libraries
  6788. lt_prog_compiler_pic='-DDLL_EXPORT'
  6789. ;;
  6790. darwin* | rhapsody*)
  6791. # PIC is the default on this platform
  6792. # Common symbols not allowed in MH_DYLIB files
  6793. lt_prog_compiler_pic='-fno-common'
  6794. ;;
  6795. hpux*)
  6796. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6797. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6798. # sets the default TLS model and affects inlining.
  6799. case $host_cpu in
  6800. hppa*64*)
  6801. # +Z the default
  6802. ;;
  6803. *)
  6804. lt_prog_compiler_pic='-fPIC'
  6805. ;;
  6806. esac
  6807. ;;
  6808. interix[3-9]*)
  6809. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6810. # Instead, we relocate shared libraries at runtime.
  6811. ;;
  6812. msdosdjgpp*)
  6813. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6814. # on systems that don't support them.
  6815. lt_prog_compiler_can_build_shared=no
  6816. enable_shared=no
  6817. ;;
  6818. *nto* | *qnx*)
  6819. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6820. # it will coredump.
  6821. lt_prog_compiler_pic='-fPIC -shared'
  6822. ;;
  6823. sysv4*MP*)
  6824. if test -d /usr/nec; then
  6825. lt_prog_compiler_pic=-Kconform_pic
  6826. fi
  6827. ;;
  6828. *)
  6829. lt_prog_compiler_pic='-fPIC'
  6830. ;;
  6831. esac
  6832. else
  6833. # PORTME Check for flag to pass linker flags through the system compiler.
  6834. case $host_os in
  6835. aix*)
  6836. lt_prog_compiler_wl='-Wl,'
  6837. if test "$host_cpu" = ia64; then
  6838. # AIX 5 now supports IA64 processor
  6839. lt_prog_compiler_static='-Bstatic'
  6840. else
  6841. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6842. fi
  6843. ;;
  6844. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6845. # This hack is so that the source file can tell whether it is being
  6846. # built for inclusion in a dll (and should export symbols for example).
  6847. lt_prog_compiler_pic='-DDLL_EXPORT'
  6848. ;;
  6849. hpux9* | hpux10* | hpux11*)
  6850. lt_prog_compiler_wl='-Wl,'
  6851. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6852. # not for PA HP-UX.
  6853. case $host_cpu in
  6854. hppa*64*|ia64*)
  6855. # +Z the default
  6856. ;;
  6857. *)
  6858. lt_prog_compiler_pic='+Z'
  6859. ;;
  6860. esac
  6861. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6862. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6863. ;;
  6864. irix5* | irix6* | nonstopux*)
  6865. lt_prog_compiler_wl='-Wl,'
  6866. # PIC (with -KPIC) is the default.
  6867. lt_prog_compiler_static='-non_shared'
  6868. ;;
  6869. linux* | k*bsd*-gnu)
  6870. case $cc_basename in
  6871. # old Intel for x86_64 which still supported -KPIC.
  6872. ecc*)
  6873. lt_prog_compiler_wl='-Wl,'
  6874. lt_prog_compiler_pic='-KPIC'
  6875. lt_prog_compiler_static='-static'
  6876. ;;
  6877. # icc used to be incompatible with GCC.
  6878. # ICC 10 doesn't accept -KPIC any more.
  6879. icc* | ifort*)
  6880. lt_prog_compiler_wl='-Wl,'
  6881. lt_prog_compiler_pic='-fPIC'
  6882. lt_prog_compiler_static='-static'
  6883. ;;
  6884. # Lahey Fortran 8.1.
  6885. lf95*)
  6886. lt_prog_compiler_wl='-Wl,'
  6887. lt_prog_compiler_pic='--shared'
  6888. lt_prog_compiler_static='--static'
  6889. ;;
  6890. pgcc* | pgf77* | pgf90* | pgf95*)
  6891. # Portland Group compilers (*not* the Pentium gcc compiler,
  6892. # which looks to be a dead project)
  6893. lt_prog_compiler_wl='-Wl,'
  6894. lt_prog_compiler_pic='-fpic'
  6895. lt_prog_compiler_static='-Bstatic'
  6896. ;;
  6897. ccc*)
  6898. lt_prog_compiler_wl='-Wl,'
  6899. # All Alpha code is PIC.
  6900. lt_prog_compiler_static='-non_shared'
  6901. ;;
  6902. xl*)
  6903. # IBM XL C 8.0/Fortran 10.1 on PPC
  6904. lt_prog_compiler_wl='-Wl,'
  6905. lt_prog_compiler_pic='-qpic'
  6906. lt_prog_compiler_static='-qstaticlink'
  6907. ;;
  6908. *)
  6909. case `$CC -V 2>&1 | sed 5q` in
  6910. *Sun\ C*)
  6911. # Sun C 5.9
  6912. lt_prog_compiler_pic='-KPIC'
  6913. lt_prog_compiler_static='-Bstatic'
  6914. lt_prog_compiler_wl='-Wl,'
  6915. ;;
  6916. *Sun\ F*)
  6917. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  6918. lt_prog_compiler_pic='-KPIC'
  6919. lt_prog_compiler_static='-Bstatic'
  6920. lt_prog_compiler_wl=''
  6921. ;;
  6922. esac
  6923. ;;
  6924. esac
  6925. ;;
  6926. newsos6)
  6927. lt_prog_compiler_pic='-KPIC'
  6928. lt_prog_compiler_static='-Bstatic'
  6929. ;;
  6930. *nto* | *qnx*)
  6931. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6932. # it will coredump.
  6933. lt_prog_compiler_pic='-fPIC -shared'
  6934. ;;
  6935. osf3* | osf4* | osf5*)
  6936. lt_prog_compiler_wl='-Wl,'
  6937. # All OSF/1 code is PIC.
  6938. lt_prog_compiler_static='-non_shared'
  6939. ;;
  6940. rdos*)
  6941. lt_prog_compiler_static='-non_shared'
  6942. ;;
  6943. solaris*)
  6944. lt_prog_compiler_pic='-KPIC'
  6945. lt_prog_compiler_static='-Bstatic'
  6946. case $cc_basename in
  6947. f77* | f90* | f95*)
  6948. lt_prog_compiler_wl='-Qoption ld ';;
  6949. *)
  6950. lt_prog_compiler_wl='-Wl,';;
  6951. esac
  6952. ;;
  6953. sunos4*)
  6954. lt_prog_compiler_wl='-Qoption ld '
  6955. lt_prog_compiler_pic='-PIC'
  6956. lt_prog_compiler_static='-Bstatic'
  6957. ;;
  6958. sysv4 | sysv4.2uw2* | sysv4.3*)
  6959. lt_prog_compiler_wl='-Wl,'
  6960. lt_prog_compiler_pic='-KPIC'
  6961. lt_prog_compiler_static='-Bstatic'
  6962. ;;
  6963. sysv4*MP*)
  6964. if test -d /usr/nec ;then
  6965. lt_prog_compiler_pic='-Kconform_pic'
  6966. lt_prog_compiler_static='-Bstatic'
  6967. fi
  6968. ;;
  6969. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  6970. lt_prog_compiler_wl='-Wl,'
  6971. lt_prog_compiler_pic='-KPIC'
  6972. lt_prog_compiler_static='-Bstatic'
  6973. ;;
  6974. unicos*)
  6975. lt_prog_compiler_wl='-Wl,'
  6976. lt_prog_compiler_can_build_shared=no
  6977. ;;
  6978. uts4*)
  6979. lt_prog_compiler_pic='-pic'
  6980. lt_prog_compiler_static='-Bstatic'
  6981. ;;
  6982. *)
  6983. lt_prog_compiler_can_build_shared=no
  6984. ;;
  6985. esac
  6986. fi
  6987. case $host_os in
  6988. # For platforms which do not support PIC, -DPIC is meaningless:
  6989. *djgpp*)
  6990. lt_prog_compiler_pic=
  6991. ;;
  6992. *)
  6993. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  6994. ;;
  6995. esac
  6996. { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  6997. $as_echo "$lt_prog_compiler_pic" >&6; }
  6998. #
  6999. # Check to make sure the PIC flag actually works.
  7000. #
  7001. if test -n "$lt_prog_compiler_pic"; then
  7002. { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7003. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7004. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
  7005. $as_echo_n "(cached) " >&6
  7006. else
  7007. lt_cv_prog_compiler_pic_works=no
  7008. ac_outfile=conftest.$ac_objext
  7009. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7010. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7011. # Insert the option either (1) after the last *FLAGS variable, or
  7012. # (2) before a word containing "conftest.", or (3) at the end.
  7013. # Note that $ac_compile itself does not contain backslashes and begins
  7014. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7015. # The option is referenced via a variable to avoid confusing sed.
  7016. lt_compile=`echo "$ac_compile" | $SED \
  7017. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7018. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7019. -e 's:$: $lt_compiler_flag:'`
  7020. (eval echo "\"\$as_me:8114: $lt_compile\"" >&5)
  7021. (eval "$lt_compile" 2>conftest.err)
  7022. ac_status=$?
  7023. cat conftest.err >&5
  7024. echo "$as_me:8118: \$? = $ac_status" >&5
  7025. if (exit $ac_status) && test -s "$ac_outfile"; then
  7026. # The compiler can only warn and ignore the option if not recognized
  7027. # So say no if there are warnings other than the usual output.
  7028. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  7029. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7030. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7031. lt_cv_prog_compiler_pic_works=yes
  7032. fi
  7033. fi
  7034. $RM conftest*
  7035. fi
  7036. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
  7037. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7038. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7039. case $lt_prog_compiler_pic in
  7040. "" | " "*) ;;
  7041. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7042. esac
  7043. else
  7044. lt_prog_compiler_pic=
  7045. lt_prog_compiler_can_build_shared=no
  7046. fi
  7047. fi
  7048. #
  7049. # Check to make sure the static flag actually works.
  7050. #
  7051. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7052. { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7053. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7054. if test "${lt_cv_prog_compiler_static_works+set}" = set; then
  7055. $as_echo_n "(cached) " >&6
  7056. else
  7057. lt_cv_prog_compiler_static_works=no
  7058. save_LDFLAGS="$LDFLAGS"
  7059. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7060. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7061. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7062. # The linker can only warn and ignore the option if not recognized
  7063. # So say no if there are warnings
  7064. if test -s conftest.err; then
  7065. # Append any errors to the config.log.
  7066. cat conftest.err 1>&5
  7067. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  7068. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7069. if diff conftest.exp conftest.er2 >/dev/null; then
  7070. lt_cv_prog_compiler_static_works=yes
  7071. fi
  7072. else
  7073. lt_cv_prog_compiler_static_works=yes
  7074. fi
  7075. fi
  7076. $RM -r conftest*
  7077. LDFLAGS="$save_LDFLAGS"
  7078. fi
  7079. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
  7080. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7081. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7082. :
  7083. else
  7084. lt_prog_compiler_static=
  7085. fi
  7086. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  7087. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7088. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  7089. $as_echo_n "(cached) " >&6
  7090. else
  7091. lt_cv_prog_compiler_c_o=no
  7092. $RM -r conftest 2>/dev/null
  7093. mkdir conftest
  7094. cd conftest
  7095. mkdir out
  7096. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7097. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7098. # Insert the option either (1) after the last *FLAGS variable, or
  7099. # (2) before a word containing "conftest.", or (3) at the end.
  7100. # Note that $ac_compile itself does not contain backslashes and begins
  7101. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7102. lt_compile=`echo "$ac_compile" | $SED \
  7103. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7104. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7105. -e 's:$: $lt_compiler_flag:'`
  7106. (eval echo "\"\$as_me:8219: $lt_compile\"" >&5)
  7107. (eval "$lt_compile" 2>out/conftest.err)
  7108. ac_status=$?
  7109. cat out/conftest.err >&5
  7110. echo "$as_me:8223: \$? = $ac_status" >&5
  7111. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7112. then
  7113. # The compiler can only warn and ignore the option if not recognized
  7114. # So say no if there are warnings
  7115. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7116. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7117. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7118. lt_cv_prog_compiler_c_o=yes
  7119. fi
  7120. fi
  7121. chmod u+w . 2>&5
  7122. $RM conftest*
  7123. # SGI C++ compiler will create directory out/ii_files/ for
  7124. # template instantiation
  7125. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7126. $RM out/* && rmdir out
  7127. cd ..
  7128. $RM -r conftest
  7129. $RM conftest*
  7130. fi
  7131. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  7132. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7133. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  7134. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7135. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  7136. $as_echo_n "(cached) " >&6
  7137. else
  7138. lt_cv_prog_compiler_c_o=no
  7139. $RM -r conftest 2>/dev/null
  7140. mkdir conftest
  7141. cd conftest
  7142. mkdir out
  7143. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7144. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7145. # Insert the option either (1) after the last *FLAGS variable, or
  7146. # (2) before a word containing "conftest.", or (3) at the end.
  7147. # Note that $ac_compile itself does not contain backslashes and begins
  7148. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7149. lt_compile=`echo "$ac_compile" | $SED \
  7150. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7151. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7152. -e 's:$: $lt_compiler_flag:'`
  7153. (eval echo "\"\$as_me:8274: $lt_compile\"" >&5)
  7154. (eval "$lt_compile" 2>out/conftest.err)
  7155. ac_status=$?
  7156. cat out/conftest.err >&5
  7157. echo "$as_me:8278: \$? = $ac_status" >&5
  7158. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7159. then
  7160. # The compiler can only warn and ignore the option if not recognized
  7161. # So say no if there are warnings
  7162. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7163. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7164. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7165. lt_cv_prog_compiler_c_o=yes
  7166. fi
  7167. fi
  7168. chmod u+w . 2>&5
  7169. $RM conftest*
  7170. # SGI C++ compiler will create directory out/ii_files/ for
  7171. # template instantiation
  7172. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7173. $RM out/* && rmdir out
  7174. cd ..
  7175. $RM -r conftest
  7176. $RM conftest*
  7177. fi
  7178. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  7179. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7180. hard_links="nottested"
  7181. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7182. # do not overwrite the value of need_locks provided by the user
  7183. { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  7184. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7185. hard_links=yes
  7186. $RM conftest*
  7187. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7188. touch conftest.a
  7189. ln conftest.a conftest.b 2>&5 || hard_links=no
  7190. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7191. { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
  7192. $as_echo "$hard_links" >&6; }
  7193. if test "$hard_links" = no; then
  7194. { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7195. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7196. need_locks=warn
  7197. fi
  7198. else
  7199. need_locks=no
  7200. fi
  7201. { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7202. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7203. runpath_var=
  7204. allow_undefined_flag=
  7205. always_export_symbols=no
  7206. archive_cmds=
  7207. archive_expsym_cmds=
  7208. compiler_needs_object=no
  7209. enable_shared_with_static_runtimes=no
  7210. export_dynamic_flag_spec=
  7211. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7212. hardcode_automatic=no
  7213. hardcode_direct=no
  7214. hardcode_direct_absolute=no
  7215. hardcode_libdir_flag_spec=
  7216. hardcode_libdir_flag_spec_ld=
  7217. hardcode_libdir_separator=
  7218. hardcode_minus_L=no
  7219. hardcode_shlibpath_var=unsupported
  7220. inherit_rpath=no
  7221. link_all_deplibs=unknown
  7222. module_cmds=
  7223. module_expsym_cmds=
  7224. old_archive_from_new_cmds=
  7225. old_archive_from_expsyms_cmds=
  7226. thread_safe_flag_spec=
  7227. whole_archive_flag_spec=
  7228. # include_expsyms should be a list of space-separated symbols to be *always*
  7229. # included in the symbol list
  7230. include_expsyms=
  7231. # exclude_expsyms can be an extended regexp of symbols to exclude
  7232. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7233. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7234. # as well as any symbol that contains `d'.
  7235. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7236. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7237. # platforms (ab)use it in PIC code, but their linkers get confused if
  7238. # the symbol is explicitly referenced. Since portable code cannot
  7239. # rely on this symbol name, it's probably fine to never include it in
  7240. # preloaded symbol tables.
  7241. # Exclude shared library initialization/finalization symbols.
  7242. extract_expsyms_cmds=
  7243. case $host_os in
  7244. cygwin* | mingw* | pw32* | cegcc*)
  7245. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7246. # When not using gcc, we currently assume that we are using
  7247. # Microsoft Visual C++.
  7248. if test "$GCC" != yes; then
  7249. with_gnu_ld=no
  7250. fi
  7251. ;;
  7252. interix*)
  7253. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7254. with_gnu_ld=yes
  7255. ;;
  7256. openbsd*)
  7257. with_gnu_ld=no
  7258. ;;
  7259. esac
  7260. ld_shlibs=yes
  7261. if test "$with_gnu_ld" = yes; then
  7262. # If archive_cmds runs LD, not CC, wlarc should be empty
  7263. wlarc='${wl}'
  7264. # Set some defaults for GNU ld with shared library support. These
  7265. # are reset later if shared libraries are not supported. Putting them
  7266. # here allows them to be overridden if necessary.
  7267. runpath_var=LD_RUN_PATH
  7268. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7269. export_dynamic_flag_spec='${wl}--export-dynamic'
  7270. # ancient GNU ld didn't support --whole-archive et. al.
  7271. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7272. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7273. else
  7274. whole_archive_flag_spec=
  7275. fi
  7276. supports_anon_versioning=no
  7277. case `$LD -v 2>&1` in
  7278. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7279. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7280. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7281. *\ 2.11.*) ;; # other 2.11 versions
  7282. *) supports_anon_versioning=yes ;;
  7283. esac
  7284. # See if GNU ld supports shared libraries.
  7285. case $host_os in
  7286. aix[3-9]*)
  7287. # On AIX/PPC, the GNU linker is very broken
  7288. if test "$host_cpu" != ia64; then
  7289. ld_shlibs=no
  7290. cat <<_LT_EOF 1>&2
  7291. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  7292. *** to be unable to reliably create shared libraries on AIX.
  7293. *** Therefore, libtool is disabling shared libraries support. If you
  7294. *** really care for shared libraries, you may want to modify your PATH
  7295. *** so that a non-GNU linker is found, and then restart.
  7296. _LT_EOF
  7297. fi
  7298. ;;
  7299. amigaos*)
  7300. case $host_cpu in
  7301. powerpc)
  7302. # see comment about AmigaOS4 .so support
  7303. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7304. archive_expsym_cmds=''
  7305. ;;
  7306. m68k)
  7307. 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)'
  7308. hardcode_libdir_flag_spec='-L$libdir'
  7309. hardcode_minus_L=yes
  7310. ;;
  7311. esac
  7312. ;;
  7313. beos*)
  7314. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7315. allow_undefined_flag=unsupported
  7316. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7317. # support --undefined. This deserves some investigation. FIXME
  7318. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7319. else
  7320. ld_shlibs=no
  7321. fi
  7322. ;;
  7323. cygwin* | mingw* | pw32* | cegcc*)
  7324. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7325. # as there is no search path for DLLs.
  7326. hardcode_libdir_flag_spec='-L$libdir'
  7327. allow_undefined_flag=unsupported
  7328. always_export_symbols=no
  7329. enable_shared_with_static_runtimes=yes
  7330. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7331. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7332. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7333. # If the export-symbols file already is a .def file (1st line
  7334. # is EXPORTS), use it as is; otherwise, prepend...
  7335. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7336. cp $export_symbols $output_objdir/$soname.def;
  7337. else
  7338. echo EXPORTS > $output_objdir/$soname.def;
  7339. cat $export_symbols >> $output_objdir/$soname.def;
  7340. fi~
  7341. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7342. else
  7343. ld_shlibs=no
  7344. fi
  7345. ;;
  7346. interix[3-9]*)
  7347. hardcode_direct=no
  7348. hardcode_shlibpath_var=no
  7349. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7350. export_dynamic_flag_spec='${wl}-E'
  7351. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7352. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7353. # default) and relocated if they conflict, which is a slow very memory
  7354. # consuming and fragmenting process. To avoid this, we pick a random,
  7355. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7356. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7357. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7358. 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'
  7359. ;;
  7360. gnu* | linux* | tpf* | k*bsd*-gnu)
  7361. tmp_diet=no
  7362. if test "$host_os" = linux-dietlibc; then
  7363. case $cc_basename in
  7364. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7365. esac
  7366. fi
  7367. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7368. && test "$tmp_diet" = no
  7369. then
  7370. tmp_addflag=
  7371. tmp_sharedflag='-shared'
  7372. case $cc_basename,$host_cpu in
  7373. pgcc*) # Portland Group C compiler
  7374. 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'
  7375. tmp_addflag=' $pic_flag'
  7376. ;;
  7377. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  7378. 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'
  7379. tmp_addflag=' $pic_flag -Mnomain' ;;
  7380. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7381. tmp_addflag=' -i_dynamic' ;;
  7382. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7383. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7384. ifc* | ifort*) # Intel Fortran compiler
  7385. tmp_addflag=' -nofor_main' ;;
  7386. lf95*) # Lahey Fortran 8.1
  7387. whole_archive_flag_spec=
  7388. tmp_sharedflag='--shared' ;;
  7389. xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7390. tmp_sharedflag='-qmkshrobj'
  7391. tmp_addflag= ;;
  7392. esac
  7393. case `$CC -V 2>&1 | sed 5q` in
  7394. *Sun\ C*) # Sun C 5.9
  7395. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  7396. compiler_needs_object=yes
  7397. tmp_sharedflag='-G' ;;
  7398. *Sun\ F*) # Sun Fortran 8.3
  7399. tmp_sharedflag='-G' ;;
  7400. esac
  7401. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7402. if test "x$supports_anon_versioning" = xyes; then
  7403. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7404. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7405. echo "local: *; };" >> $output_objdir/$libname.ver~
  7406. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7407. fi
  7408. case $cc_basename in
  7409. xlf*)
  7410. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7411. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7412. hardcode_libdir_flag_spec=
  7413. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7414. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  7415. if test "x$supports_anon_versioning" = xyes; then
  7416. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7417. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7418. echo "local: *; };" >> $output_objdir/$libname.ver~
  7419. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7420. fi
  7421. ;;
  7422. esac
  7423. else
  7424. ld_shlibs=no
  7425. fi
  7426. ;;
  7427. netbsd*)
  7428. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7429. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7430. wlarc=
  7431. else
  7432. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7433. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7434. fi
  7435. ;;
  7436. solaris*)
  7437. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7438. ld_shlibs=no
  7439. cat <<_LT_EOF 1>&2
  7440. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7441. *** create shared libraries on Solaris systems. Therefore, libtool
  7442. *** is disabling shared libraries support. We urge you to upgrade GNU
  7443. *** binutils to release 2.9.1 or newer. Another option is to modify
  7444. *** your PATH or compiler configuration so that the native linker is
  7445. *** used, and then restart.
  7446. _LT_EOF
  7447. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7448. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7449. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7450. else
  7451. ld_shlibs=no
  7452. fi
  7453. ;;
  7454. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7455. case `$LD -v 2>&1` in
  7456. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7457. ld_shlibs=no
  7458. cat <<_LT_EOF 1>&2
  7459. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7460. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7461. *** is disabling shared libraries support. We urge you to upgrade GNU
  7462. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7463. *** your PATH or compiler configuration so that the native linker is
  7464. *** used, and then restart.
  7465. _LT_EOF
  7466. ;;
  7467. *)
  7468. # For security reasons, it is highly recommended that you always
  7469. # use absolute paths for naming shared libraries, and exclude the
  7470. # DT_RUNPATH tag from executables and libraries. But doing so
  7471. # requires that you compile everything twice, which is a pain.
  7472. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7473. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7474. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7475. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7476. else
  7477. ld_shlibs=no
  7478. fi
  7479. ;;
  7480. esac
  7481. ;;
  7482. sunos4*)
  7483. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7484. wlarc=
  7485. hardcode_direct=yes
  7486. hardcode_shlibpath_var=no
  7487. ;;
  7488. *)
  7489. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7490. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7491. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7492. else
  7493. ld_shlibs=no
  7494. fi
  7495. ;;
  7496. esac
  7497. if test "$ld_shlibs" = no; then
  7498. runpath_var=
  7499. hardcode_libdir_flag_spec=
  7500. export_dynamic_flag_spec=
  7501. whole_archive_flag_spec=
  7502. fi
  7503. else
  7504. # PORTME fill in a description of your system's linker (not GNU ld)
  7505. case $host_os in
  7506. aix3*)
  7507. allow_undefined_flag=unsupported
  7508. always_export_symbols=yes
  7509. 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'
  7510. # Note: this linker hardcodes the directories in LIBPATH if there
  7511. # are no directories specified by -L.
  7512. hardcode_minus_L=yes
  7513. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7514. # Neither direct hardcoding nor static linking is supported with a
  7515. # broken collect2.
  7516. hardcode_direct=unsupported
  7517. fi
  7518. ;;
  7519. aix[4-9]*)
  7520. if test "$host_cpu" = ia64; then
  7521. # On IA64, the linker does run time linking by default, so we don't
  7522. # have to do anything special.
  7523. aix_use_runtimelinking=no
  7524. exp_sym_flag='-Bexport'
  7525. no_entry_flag=""
  7526. else
  7527. # If we're using GNU nm, then we don't want the "-C" option.
  7528. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7529. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7530. 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'
  7531. else
  7532. 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'
  7533. fi
  7534. aix_use_runtimelinking=no
  7535. # Test if we are trying to use run time linking or normal
  7536. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7537. # need to do runtime linking.
  7538. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7539. for ld_flag in $LDFLAGS; do
  7540. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7541. aix_use_runtimelinking=yes
  7542. break
  7543. fi
  7544. done
  7545. ;;
  7546. esac
  7547. exp_sym_flag='-bexport'
  7548. no_entry_flag='-bnoentry'
  7549. fi
  7550. # When large executables or shared objects are built, AIX ld can
  7551. # have problems creating the table of contents. If linking a library
  7552. # or program results in "error TOC overflow" add -mminimal-toc to
  7553. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7554. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7555. archive_cmds=''
  7556. hardcode_direct=yes
  7557. hardcode_direct_absolute=yes
  7558. hardcode_libdir_separator=':'
  7559. link_all_deplibs=yes
  7560. file_list_spec='${wl}-f,'
  7561. if test "$GCC" = yes; then
  7562. case $host_os in aix4.[012]|aix4.[012].*)
  7563. # We only want to do this on AIX 4.2 and lower, the check
  7564. # below for broken collect2 doesn't work under 4.3+
  7565. collect2name=`${CC} -print-prog-name=collect2`
  7566. if test -f "$collect2name" &&
  7567. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7568. then
  7569. # We have reworked collect2
  7570. :
  7571. else
  7572. # We have old collect2
  7573. hardcode_direct=unsupported
  7574. # It fails to find uninstalled libraries when the uninstalled
  7575. # path is not listed in the libpath. Setting hardcode_minus_L
  7576. # to unsupported forces relinking
  7577. hardcode_minus_L=yes
  7578. hardcode_libdir_flag_spec='-L$libdir'
  7579. hardcode_libdir_separator=
  7580. fi
  7581. ;;
  7582. esac
  7583. shared_flag='-shared'
  7584. if test "$aix_use_runtimelinking" = yes; then
  7585. shared_flag="$shared_flag "'${wl}-G'
  7586. fi
  7587. else
  7588. # not using gcc
  7589. if test "$host_cpu" = ia64; then
  7590. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7591. # chokes on -Wl,-G. The following line is correct:
  7592. shared_flag='-G'
  7593. else
  7594. if test "$aix_use_runtimelinking" = yes; then
  7595. shared_flag='${wl}-G'
  7596. else
  7597. shared_flag='${wl}-bM:SRE'
  7598. fi
  7599. fi
  7600. fi
  7601. export_dynamic_flag_spec='${wl}-bexpall'
  7602. # It seems that -bexpall does not export symbols beginning with
  7603. # underscore (_), so it is better to generate a list of symbols to export.
  7604. always_export_symbols=yes
  7605. if test "$aix_use_runtimelinking" = yes; then
  7606. # Warning - without using the other runtime loading flags (-brtl),
  7607. # -berok will link without error, but may produce a broken library.
  7608. allow_undefined_flag='-berok'
  7609. # Determine the default libpath from the value encoded in an
  7610. # empty executable.
  7611. cat >conftest.$ac_ext <<_ACEOF
  7612. /* confdefs.h. */
  7613. _ACEOF
  7614. cat confdefs.h >>conftest.$ac_ext
  7615. cat >>conftest.$ac_ext <<_ACEOF
  7616. /* end confdefs.h. */
  7617. int
  7618. main ()
  7619. {
  7620. ;
  7621. return 0;
  7622. }
  7623. _ACEOF
  7624. rm -f conftest.$ac_objext conftest$ac_exeext
  7625. if { (ac_try="$ac_link"
  7626. case "(($ac_try" in
  7627. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7628. *) ac_try_echo=$ac_try;;
  7629. esac
  7630. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7631. $as_echo "$ac_try_echo") >&5
  7632. (eval "$ac_link") 2>conftest.er1
  7633. ac_status=$?
  7634. grep -v '^ *+' conftest.er1 >conftest.err
  7635. rm -f conftest.er1
  7636. cat conftest.err >&5
  7637. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7638. (exit $ac_status); } && {
  7639. test -z "$ac_c_werror_flag" ||
  7640. test ! -s conftest.err
  7641. } && test -s conftest$ac_exeext && {
  7642. test "$cross_compiling" = yes ||
  7643. $as_test_x conftest$ac_exeext
  7644. }; then
  7645. lt_aix_libpath_sed='
  7646. /Import File Strings/,/^$/ {
  7647. /^0/ {
  7648. s/^0 *\(.*\)$/\1/
  7649. p
  7650. }
  7651. }'
  7652. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7653. # Check for a 64-bit object if we didn't find anything.
  7654. if test -z "$aix_libpath"; then
  7655. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7656. fi
  7657. else
  7658. $as_echo "$as_me: failed program was:" >&5
  7659. sed 's/^/| /' conftest.$ac_ext >&5
  7660. fi
  7661. rm -rf conftest.dSYM
  7662. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7663. conftest$ac_exeext conftest.$ac_ext
  7664. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7665. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7666. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  7667. else
  7668. if test "$host_cpu" = ia64; then
  7669. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7670. allow_undefined_flag="-z nodefs"
  7671. 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"
  7672. else
  7673. # Determine the default libpath from the value encoded in an
  7674. # empty executable.
  7675. cat >conftest.$ac_ext <<_ACEOF
  7676. /* confdefs.h. */
  7677. _ACEOF
  7678. cat confdefs.h >>conftest.$ac_ext
  7679. cat >>conftest.$ac_ext <<_ACEOF
  7680. /* end confdefs.h. */
  7681. int
  7682. main ()
  7683. {
  7684. ;
  7685. return 0;
  7686. }
  7687. _ACEOF
  7688. rm -f conftest.$ac_objext conftest$ac_exeext
  7689. if { (ac_try="$ac_link"
  7690. case "(($ac_try" in
  7691. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7692. *) ac_try_echo=$ac_try;;
  7693. esac
  7694. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7695. $as_echo "$ac_try_echo") >&5
  7696. (eval "$ac_link") 2>conftest.er1
  7697. ac_status=$?
  7698. grep -v '^ *+' conftest.er1 >conftest.err
  7699. rm -f conftest.er1
  7700. cat conftest.err >&5
  7701. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7702. (exit $ac_status); } && {
  7703. test -z "$ac_c_werror_flag" ||
  7704. test ! -s conftest.err
  7705. } && test -s conftest$ac_exeext && {
  7706. test "$cross_compiling" = yes ||
  7707. $as_test_x conftest$ac_exeext
  7708. }; then
  7709. lt_aix_libpath_sed='
  7710. /Import File Strings/,/^$/ {
  7711. /^0/ {
  7712. s/^0 *\(.*\)$/\1/
  7713. p
  7714. }
  7715. }'
  7716. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7717. # Check for a 64-bit object if we didn't find anything.
  7718. if test -z "$aix_libpath"; then
  7719. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7720. fi
  7721. else
  7722. $as_echo "$as_me: failed program was:" >&5
  7723. sed 's/^/| /' conftest.$ac_ext >&5
  7724. fi
  7725. rm -rf conftest.dSYM
  7726. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7727. conftest$ac_exeext conftest.$ac_ext
  7728. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7729. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7730. # Warning - without using the other run time loading flags,
  7731. # -berok will link without error, but may produce a broken library.
  7732. no_undefined_flag=' ${wl}-bernotok'
  7733. allow_undefined_flag=' ${wl}-berok'
  7734. # Exported symbols can be pulled into shared objects from archives
  7735. whole_archive_flag_spec='$convenience'
  7736. archive_cmds_need_lc=yes
  7737. # This is similar to how AIX traditionally builds its shared libraries.
  7738. 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'
  7739. fi
  7740. fi
  7741. ;;
  7742. amigaos*)
  7743. case $host_cpu in
  7744. powerpc)
  7745. # see comment about AmigaOS4 .so support
  7746. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7747. archive_expsym_cmds=''
  7748. ;;
  7749. m68k)
  7750. 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)'
  7751. hardcode_libdir_flag_spec='-L$libdir'
  7752. hardcode_minus_L=yes
  7753. ;;
  7754. esac
  7755. ;;
  7756. bsdi[45]*)
  7757. export_dynamic_flag_spec=-rdynamic
  7758. ;;
  7759. cygwin* | mingw* | pw32* | cegcc*)
  7760. # When not using gcc, we currently assume that we are using
  7761. # Microsoft Visual C++.
  7762. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7763. # no search path for DLLs.
  7764. hardcode_libdir_flag_spec=' '
  7765. allow_undefined_flag=unsupported
  7766. # Tell ltmain to make .lib files, not .a files.
  7767. libext=lib
  7768. # Tell ltmain to make .dll files, not .so files.
  7769. shrext_cmds=".dll"
  7770. # FIXME: Setting linknames here is a bad hack.
  7771. archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  7772. # The linker will automatically build a .lib file if we build a DLL.
  7773. old_archive_from_new_cmds='true'
  7774. # FIXME: Should let the user specify the lib program.
  7775. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  7776. fix_srcfile_path='`cygpath -w "$srcfile"`'
  7777. enable_shared_with_static_runtimes=yes
  7778. ;;
  7779. darwin* | rhapsody*)
  7780. archive_cmds_need_lc=no
  7781. hardcode_direct=no
  7782. hardcode_automatic=yes
  7783. hardcode_shlibpath_var=unsupported
  7784. whole_archive_flag_spec=''
  7785. link_all_deplibs=yes
  7786. allow_undefined_flag="$_lt_dar_allow_undefined"
  7787. case $cc_basename in
  7788. ifort*) _lt_dar_can_shared=yes ;;
  7789. *) _lt_dar_can_shared=$GCC ;;
  7790. esac
  7791. if test "$_lt_dar_can_shared" = "yes"; then
  7792. output_verbose_link_cmd=echo
  7793. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  7794. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  7795. archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  7796. module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  7797. else
  7798. ld_shlibs=no
  7799. fi
  7800. ;;
  7801. dgux*)
  7802. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7803. hardcode_libdir_flag_spec='-L$libdir'
  7804. hardcode_shlibpath_var=no
  7805. ;;
  7806. freebsd1*)
  7807. ld_shlibs=no
  7808. ;;
  7809. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7810. # support. Future versions do this automatically, but an explicit c++rt0.o
  7811. # does not break anything, and helps significantly (at the cost of a little
  7812. # extra space).
  7813. freebsd2.2*)
  7814. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7815. hardcode_libdir_flag_spec='-R$libdir'
  7816. hardcode_direct=yes
  7817. hardcode_shlibpath_var=no
  7818. ;;
  7819. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  7820. freebsd2*)
  7821. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7822. hardcode_direct=yes
  7823. hardcode_minus_L=yes
  7824. hardcode_shlibpath_var=no
  7825. ;;
  7826. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  7827. freebsd* | dragonfly*)
  7828. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  7829. hardcode_libdir_flag_spec='-R$libdir'
  7830. hardcode_direct=yes
  7831. hardcode_shlibpath_var=no
  7832. ;;
  7833. hpux9*)
  7834. if test "$GCC" = yes; then
  7835. 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'
  7836. else
  7837. 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'
  7838. fi
  7839. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7840. hardcode_libdir_separator=:
  7841. hardcode_direct=yes
  7842. # hardcode_minus_L: Not really in the search PATH,
  7843. # but as the default location of the library.
  7844. hardcode_minus_L=yes
  7845. export_dynamic_flag_spec='${wl}-E'
  7846. ;;
  7847. hpux10*)
  7848. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7849. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7850. else
  7851. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7852. fi
  7853. if test "$with_gnu_ld" = no; then
  7854. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7855. hardcode_libdir_flag_spec_ld='+b $libdir'
  7856. hardcode_libdir_separator=:
  7857. hardcode_direct=yes
  7858. hardcode_direct_absolute=yes
  7859. export_dynamic_flag_spec='${wl}-E'
  7860. # hardcode_minus_L: Not really in the search PATH,
  7861. # but as the default location of the library.
  7862. hardcode_minus_L=yes
  7863. fi
  7864. ;;
  7865. hpux11*)
  7866. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7867. case $host_cpu in
  7868. hppa*64*)
  7869. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7870. ;;
  7871. ia64*)
  7872. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7873. ;;
  7874. *)
  7875. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7876. ;;
  7877. esac
  7878. else
  7879. case $host_cpu in
  7880. hppa*64*)
  7881. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7882. ;;
  7883. ia64*)
  7884. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7885. ;;
  7886. *)
  7887. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7888. ;;
  7889. esac
  7890. fi
  7891. if test "$with_gnu_ld" = no; then
  7892. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7893. hardcode_libdir_separator=:
  7894. case $host_cpu in
  7895. hppa*64*|ia64*)
  7896. hardcode_direct=no
  7897. hardcode_shlibpath_var=no
  7898. ;;
  7899. *)
  7900. hardcode_direct=yes
  7901. hardcode_direct_absolute=yes
  7902. export_dynamic_flag_spec='${wl}-E'
  7903. # hardcode_minus_L: Not really in the search PATH,
  7904. # but as the default location of the library.
  7905. hardcode_minus_L=yes
  7906. ;;
  7907. esac
  7908. fi
  7909. ;;
  7910. irix5* | irix6* | nonstopux*)
  7911. if test "$GCC" = yes; then
  7912. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7913. # Try to use the -exported_symbol ld option, if it does not
  7914. # work, assume that -exports_file does not work either and
  7915. # implicitly export all symbols.
  7916. save_LDFLAGS="$LDFLAGS"
  7917. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  7918. cat >conftest.$ac_ext <<_ACEOF
  7919. int foo(void) {}
  7920. _ACEOF
  7921. rm -f conftest.$ac_objext conftest$ac_exeext
  7922. if { (ac_try="$ac_link"
  7923. case "(($ac_try" in
  7924. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7925. *) ac_try_echo=$ac_try;;
  7926. esac
  7927. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7928. $as_echo "$ac_try_echo") >&5
  7929. (eval "$ac_link") 2>conftest.er1
  7930. ac_status=$?
  7931. grep -v '^ *+' conftest.er1 >conftest.err
  7932. rm -f conftest.er1
  7933. cat conftest.err >&5
  7934. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7935. (exit $ac_status); } && {
  7936. test -z "$ac_c_werror_flag" ||
  7937. test ! -s conftest.err
  7938. } && test -s conftest$ac_exeext && {
  7939. test "$cross_compiling" = yes ||
  7940. $as_test_x conftest$ac_exeext
  7941. }; then
  7942. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  7943. else
  7944. $as_echo "$as_me: failed program was:" >&5
  7945. sed 's/^/| /' conftest.$ac_ext >&5
  7946. fi
  7947. rm -rf conftest.dSYM
  7948. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7949. conftest$ac_exeext conftest.$ac_ext
  7950. LDFLAGS="$save_LDFLAGS"
  7951. else
  7952. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  7953. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  7954. fi
  7955. archive_cmds_need_lc='no'
  7956. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7957. hardcode_libdir_separator=:
  7958. inherit_rpath=yes
  7959. link_all_deplibs=yes
  7960. ;;
  7961. netbsd*)
  7962. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7963. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  7964. else
  7965. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  7966. fi
  7967. hardcode_libdir_flag_spec='-R$libdir'
  7968. hardcode_direct=yes
  7969. hardcode_shlibpath_var=no
  7970. ;;
  7971. newsos6)
  7972. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7973. hardcode_direct=yes
  7974. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7975. hardcode_libdir_separator=:
  7976. hardcode_shlibpath_var=no
  7977. ;;
  7978. *nto* | *qnx*)
  7979. ;;
  7980. openbsd*)
  7981. if test -f /usr/libexec/ld.so; then
  7982. hardcode_direct=yes
  7983. hardcode_shlibpath_var=no
  7984. hardcode_direct_absolute=yes
  7985. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7986. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7987. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  7988. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7989. export_dynamic_flag_spec='${wl}-E'
  7990. else
  7991. case $host_os in
  7992. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  7993. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7994. hardcode_libdir_flag_spec='-R$libdir'
  7995. ;;
  7996. *)
  7997. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7998. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7999. ;;
  8000. esac
  8001. fi
  8002. else
  8003. ld_shlibs=no
  8004. fi
  8005. ;;
  8006. os2*)
  8007. hardcode_libdir_flag_spec='-L$libdir'
  8008. hardcode_minus_L=yes
  8009. allow_undefined_flag=unsupported
  8010. 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'
  8011. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8012. ;;
  8013. osf3*)
  8014. if test "$GCC" = yes; then
  8015. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8016. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8017. else
  8018. allow_undefined_flag=' -expect_unresolved \*'
  8019. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8020. fi
  8021. archive_cmds_need_lc='no'
  8022. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8023. hardcode_libdir_separator=:
  8024. ;;
  8025. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8026. if test "$GCC" = yes; then
  8027. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8028. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8029. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8030. else
  8031. allow_undefined_flag=' -expect_unresolved \*'
  8032. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8033. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  8034. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  8035. # Both c and cxx compiler support -rpath directly
  8036. hardcode_libdir_flag_spec='-rpath $libdir'
  8037. fi
  8038. archive_cmds_need_lc='no'
  8039. hardcode_libdir_separator=:
  8040. ;;
  8041. solaris*)
  8042. no_undefined_flag=' -z defs'
  8043. if test "$GCC" = yes; then
  8044. wlarc='${wl}'
  8045. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8046. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8047. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8048. else
  8049. case `$CC -V 2>&1` in
  8050. *"Compilers 5.0"*)
  8051. wlarc=''
  8052. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8053. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8054. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8055. ;;
  8056. *)
  8057. wlarc='${wl}'
  8058. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8059. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8060. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8061. ;;
  8062. esac
  8063. fi
  8064. hardcode_libdir_flag_spec='-R$libdir'
  8065. hardcode_shlibpath_var=no
  8066. case $host_os in
  8067. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8068. *)
  8069. # The compiler driver will combine and reorder linker options,
  8070. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8071. # but is careful enough not to reorder.
  8072. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8073. if test "$GCC" = yes; then
  8074. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8075. else
  8076. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8077. fi
  8078. ;;
  8079. esac
  8080. link_all_deplibs=yes
  8081. ;;
  8082. sunos4*)
  8083. if test "x$host_vendor" = xsequent; then
  8084. # Use $CC to link under sequent, because it throws in some extra .o
  8085. # files that make .init and .fini sections work.
  8086. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8087. else
  8088. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8089. fi
  8090. hardcode_libdir_flag_spec='-L$libdir'
  8091. hardcode_direct=yes
  8092. hardcode_minus_L=yes
  8093. hardcode_shlibpath_var=no
  8094. ;;
  8095. sysv4)
  8096. case $host_vendor in
  8097. sni)
  8098. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8099. hardcode_direct=yes # is this really true???
  8100. ;;
  8101. siemens)
  8102. ## LD is ld it makes a PLAMLIB
  8103. ## CC just makes a GrossModule.
  8104. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8105. reload_cmds='$CC -r -o $output$reload_objs'
  8106. hardcode_direct=no
  8107. ;;
  8108. motorola)
  8109. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8110. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8111. ;;
  8112. esac
  8113. runpath_var='LD_RUN_PATH'
  8114. hardcode_shlibpath_var=no
  8115. ;;
  8116. sysv4.3*)
  8117. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8118. hardcode_shlibpath_var=no
  8119. export_dynamic_flag_spec='-Bexport'
  8120. ;;
  8121. sysv4*MP*)
  8122. if test -d /usr/nec; then
  8123. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8124. hardcode_shlibpath_var=no
  8125. runpath_var=LD_RUN_PATH
  8126. hardcode_runpath_var=yes
  8127. ld_shlibs=yes
  8128. fi
  8129. ;;
  8130. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8131. no_undefined_flag='${wl}-z,text'
  8132. archive_cmds_need_lc=no
  8133. hardcode_shlibpath_var=no
  8134. runpath_var='LD_RUN_PATH'
  8135. if test "$GCC" = yes; then
  8136. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8137. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8138. else
  8139. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8140. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8141. fi
  8142. ;;
  8143. sysv5* | sco3.2v5* | sco5v6*)
  8144. # Note: We can NOT use -z defs as we might desire, because we do not
  8145. # link with -lc, and that would cause any symbols used from libc to
  8146. # always be unresolved, which means just about no library would
  8147. # ever link correctly. If we're not using GNU ld we use -z text
  8148. # though, which does catch some bad symbols but isn't as heavy-handed
  8149. # as -z defs.
  8150. no_undefined_flag='${wl}-z,text'
  8151. allow_undefined_flag='${wl}-z,nodefs'
  8152. archive_cmds_need_lc=no
  8153. hardcode_shlibpath_var=no
  8154. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8155. hardcode_libdir_separator=':'
  8156. link_all_deplibs=yes
  8157. export_dynamic_flag_spec='${wl}-Bexport'
  8158. runpath_var='LD_RUN_PATH'
  8159. if test "$GCC" = yes; then
  8160. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8161. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8162. else
  8163. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8164. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8165. fi
  8166. ;;
  8167. uts4*)
  8168. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8169. hardcode_libdir_flag_spec='-L$libdir'
  8170. hardcode_shlibpath_var=no
  8171. ;;
  8172. *)
  8173. ld_shlibs=no
  8174. ;;
  8175. esac
  8176. if test x$host_vendor = xsni; then
  8177. case $host in
  8178. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8179. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8180. ;;
  8181. esac
  8182. fi
  8183. fi
  8184. { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  8185. $as_echo "$ld_shlibs" >&6; }
  8186. test "$ld_shlibs" = no && can_build_shared=no
  8187. with_gnu_ld=$with_gnu_ld
  8188. #
  8189. # Do we need to explicitly link libc?
  8190. #
  8191. case "x$archive_cmds_need_lc" in
  8192. x|xyes)
  8193. # Assume -lc should be added
  8194. archive_cmds_need_lc=yes
  8195. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8196. case $archive_cmds in
  8197. *'~'*)
  8198. # FIXME: we may have to deal with multi-command sequences.
  8199. ;;
  8200. '$CC '*)
  8201. # Test whether the compiler implicitly links with -lc since on some
  8202. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8203. # to ld, don't add -lc before -lgcc.
  8204. { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  8205. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8206. $RM conftest*
  8207. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8208. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8209. (eval $ac_compile) 2>&5
  8210. ac_status=$?
  8211. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8212. (exit $ac_status); } 2>conftest.err; then
  8213. soname=conftest
  8214. lib=conftest
  8215. libobjs=conftest.$ac_objext
  8216. deplibs=
  8217. wl=$lt_prog_compiler_wl
  8218. pic_flag=$lt_prog_compiler_pic
  8219. compiler_flags=-v
  8220. linker_flags=-v
  8221. verstring=
  8222. output_objdir=.
  8223. libname=conftest
  8224. lt_save_allow_undefined_flag=$allow_undefined_flag
  8225. allow_undefined_flag=
  8226. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
  8227. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8228. ac_status=$?
  8229. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8230. (exit $ac_status); }
  8231. then
  8232. archive_cmds_need_lc=no
  8233. else
  8234. archive_cmds_need_lc=yes
  8235. fi
  8236. allow_undefined_flag=$lt_save_allow_undefined_flag
  8237. else
  8238. cat conftest.err 1>&5
  8239. fi
  8240. $RM conftest*
  8241. { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  8242. $as_echo "$archive_cmds_need_lc" >&6; }
  8243. ;;
  8244. esac
  8245. fi
  8246. ;;
  8247. esac
  8248. { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  8249. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8250. if test "$GCC" = yes; then
  8251. case $host_os in
  8252. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8253. *) lt_awk_arg="/^libraries:/" ;;
  8254. esac
  8255. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8256. if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  8257. # if the path contains ";" then we assume it to be the separator
  8258. # otherwise default to the standard path separator (i.e. ":") - it is
  8259. # assumed that no part of a normal pathname contains ";" but that should
  8260. # okay in the real world where ";" in dirpaths is itself problematic.
  8261. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  8262. else
  8263. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8264. fi
  8265. # Ok, now we have the path, separated by spaces, we can step through it
  8266. # and add multilib dir if necessary.
  8267. lt_tmp_lt_search_path_spec=
  8268. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8269. for lt_sys_path in $lt_search_path_spec; do
  8270. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8271. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8272. else
  8273. test -d "$lt_sys_path" && \
  8274. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8275. fi
  8276. done
  8277. lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  8278. BEGIN {RS=" "; FS="/|\n";} {
  8279. lt_foo="";
  8280. lt_count=0;
  8281. for (lt_i = NF; lt_i > 0; lt_i--) {
  8282. if ($lt_i != "" && $lt_i != ".") {
  8283. if ($lt_i == "..") {
  8284. lt_count++;
  8285. } else {
  8286. if (lt_count == 0) {
  8287. lt_foo="/" $lt_i lt_foo;
  8288. } else {
  8289. lt_count--;
  8290. }
  8291. }
  8292. }
  8293. }
  8294. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8295. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8296. }'`
  8297. sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  8298. else
  8299. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8300. fi
  8301. library_names_spec=
  8302. libname_spec='lib$name'
  8303. soname_spec=
  8304. shrext_cmds=".so"
  8305. postinstall_cmds=
  8306. postuninstall_cmds=
  8307. finish_cmds=
  8308. finish_eval=
  8309. shlibpath_var=
  8310. shlibpath_overrides_runpath=unknown
  8311. version_type=none
  8312. dynamic_linker="$host_os ld.so"
  8313. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8314. need_lib_prefix=unknown
  8315. hardcode_into_libs=no
  8316. # when you set need_version to no, make sure it does not cause -set_version
  8317. # flags to be left without arguments
  8318. need_version=unknown
  8319. case $host_os in
  8320. aix3*)
  8321. version_type=linux
  8322. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8323. shlibpath_var=LIBPATH
  8324. # AIX 3 has no versioning support, so we append a major version to the name.
  8325. soname_spec='${libname}${release}${shared_ext}$major'
  8326. ;;
  8327. aix[4-9]*)
  8328. version_type=linux
  8329. need_lib_prefix=no
  8330. need_version=no
  8331. hardcode_into_libs=yes
  8332. if test "$host_cpu" = ia64; then
  8333. # AIX 5 supports IA64
  8334. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8335. shlibpath_var=LD_LIBRARY_PATH
  8336. else
  8337. # With GCC up to 2.95.x, collect2 would create an import file
  8338. # for dependence libraries. The import file would start with
  8339. # the line `#! .'. This would cause the generated library to
  8340. # depend on `.', always an invalid library. This was fixed in
  8341. # development snapshots of GCC prior to 3.0.
  8342. case $host_os in
  8343. aix4 | aix4.[01] | aix4.[01].*)
  8344. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8345. echo ' yes '
  8346. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8347. :
  8348. else
  8349. can_build_shared=no
  8350. fi
  8351. ;;
  8352. esac
  8353. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8354. # soname into executable. Probably we can add versioning support to
  8355. # collect2, so additional links can be useful in future.
  8356. if test "$aix_use_runtimelinking" = yes; then
  8357. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8358. # instead of lib<name>.a to let people know that these are not
  8359. # typical AIX shared libraries.
  8360. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8361. else
  8362. # We preserve .a as extension for shared libraries through AIX4.2
  8363. # and later when we are not doing run time linking.
  8364. library_names_spec='${libname}${release}.a $libname.a'
  8365. soname_spec='${libname}${release}${shared_ext}$major'
  8366. fi
  8367. shlibpath_var=LIBPATH
  8368. fi
  8369. ;;
  8370. amigaos*)
  8371. case $host_cpu in
  8372. powerpc)
  8373. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8374. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8375. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8376. ;;
  8377. m68k)
  8378. library_names_spec='$libname.ixlibrary $libname.a'
  8379. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8380. 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'
  8381. ;;
  8382. esac
  8383. ;;
  8384. beos*)
  8385. library_names_spec='${libname}${shared_ext}'
  8386. dynamic_linker="$host_os ld.so"
  8387. shlibpath_var=LIBRARY_PATH
  8388. ;;
  8389. bsdi[45]*)
  8390. version_type=linux
  8391. need_version=no
  8392. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8393. soname_spec='${libname}${release}${shared_ext}$major'
  8394. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8395. shlibpath_var=LD_LIBRARY_PATH
  8396. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8397. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8398. # the default ld.so.conf also contains /usr/contrib/lib and
  8399. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8400. # libtool to hard-code these into programs
  8401. ;;
  8402. cygwin* | mingw* | pw32* | cegcc*)
  8403. version_type=windows
  8404. shrext_cmds=".dll"
  8405. need_version=no
  8406. need_lib_prefix=no
  8407. case $GCC,$host_os in
  8408. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  8409. library_names_spec='$libname.dll.a'
  8410. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8411. postinstall_cmds='base_file=`basename \${file}`~
  8412. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8413. dldir=$destdir/`dirname \$dlpath`~
  8414. test -d \$dldir || mkdir -p \$dldir~
  8415. $install_prog $dir/$dlname \$dldir/$dlname~
  8416. chmod a+x \$dldir/$dlname~
  8417. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8418. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8419. fi'
  8420. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8421. dlpath=$dir/\$dldll~
  8422. $RM \$dlpath'
  8423. shlibpath_overrides_runpath=yes
  8424. case $host_os in
  8425. cygwin*)
  8426. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8427. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8428. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  8429. ;;
  8430. mingw* | cegcc*)
  8431. # MinGW DLLs use traditional 'lib' prefix
  8432. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8433. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8434. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8435. # It is most probably a Windows format PATH printed by
  8436. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  8437. # path with ; separators, and with drive letters. We can handle the
  8438. # drive letters (cygwin fileutils understands them), so leave them,
  8439. # especially as we might pass files found there to a mingw objdump,
  8440. # which wouldn't understand a cygwinified path. Ahh.
  8441. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8442. else
  8443. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8444. fi
  8445. ;;
  8446. pw32*)
  8447. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8448. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8449. ;;
  8450. esac
  8451. ;;
  8452. *)
  8453. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8454. ;;
  8455. esac
  8456. dynamic_linker='Win32 ld.exe'
  8457. # FIXME: first we should search . and the directory the executable is in
  8458. shlibpath_var=PATH
  8459. ;;
  8460. darwin* | rhapsody*)
  8461. dynamic_linker="$host_os dyld"
  8462. version_type=darwin
  8463. need_lib_prefix=no
  8464. need_version=no
  8465. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8466. soname_spec='${libname}${release}${major}$shared_ext'
  8467. shlibpath_overrides_runpath=yes
  8468. shlibpath_var=DYLD_LIBRARY_PATH
  8469. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8470. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8471. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8472. ;;
  8473. dgux*)
  8474. version_type=linux
  8475. need_lib_prefix=no
  8476. need_version=no
  8477. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8478. soname_spec='${libname}${release}${shared_ext}$major'
  8479. shlibpath_var=LD_LIBRARY_PATH
  8480. ;;
  8481. freebsd1*)
  8482. dynamic_linker=no
  8483. ;;
  8484. freebsd* | dragonfly*)
  8485. # DragonFly does not have aout. When/if they implement a new
  8486. # versioning mechanism, adjust this.
  8487. if test -x /usr/bin/objformat; then
  8488. objformat=`/usr/bin/objformat`
  8489. else
  8490. case $host_os in
  8491. freebsd[123]*) objformat=aout ;;
  8492. *) objformat=elf ;;
  8493. esac
  8494. fi
  8495. version_type=freebsd-$objformat
  8496. case $version_type in
  8497. freebsd-elf*)
  8498. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8499. need_version=no
  8500. need_lib_prefix=no
  8501. ;;
  8502. freebsd-*)
  8503. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8504. need_version=yes
  8505. ;;
  8506. esac
  8507. shlibpath_var=LD_LIBRARY_PATH
  8508. case $host_os in
  8509. freebsd2*)
  8510. shlibpath_overrides_runpath=yes
  8511. ;;
  8512. freebsd3.[01]* | freebsdelf3.[01]*)
  8513. shlibpath_overrides_runpath=yes
  8514. hardcode_into_libs=yes
  8515. ;;
  8516. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8517. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8518. shlibpath_overrides_runpath=no
  8519. hardcode_into_libs=yes
  8520. ;;
  8521. *) # from 4.6 on, and DragonFly
  8522. shlibpath_overrides_runpath=yes
  8523. hardcode_into_libs=yes
  8524. ;;
  8525. esac
  8526. ;;
  8527. gnu*)
  8528. version_type=linux
  8529. need_lib_prefix=no
  8530. need_version=no
  8531. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8532. soname_spec='${libname}${release}${shared_ext}$major'
  8533. shlibpath_var=LD_LIBRARY_PATH
  8534. hardcode_into_libs=yes
  8535. ;;
  8536. hpux9* | hpux10* | hpux11*)
  8537. # Give a soname corresponding to the major version so that dld.sl refuses to
  8538. # link against other versions.
  8539. version_type=sunos
  8540. need_lib_prefix=no
  8541. need_version=no
  8542. case $host_cpu in
  8543. ia64*)
  8544. shrext_cmds='.so'
  8545. hardcode_into_libs=yes
  8546. dynamic_linker="$host_os dld.so"
  8547. shlibpath_var=LD_LIBRARY_PATH
  8548. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8549. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8550. soname_spec='${libname}${release}${shared_ext}$major'
  8551. if test "X$HPUX_IA64_MODE" = X32; then
  8552. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8553. else
  8554. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8555. fi
  8556. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8557. ;;
  8558. hppa*64*)
  8559. shrext_cmds='.sl'
  8560. hardcode_into_libs=yes
  8561. dynamic_linker="$host_os dld.sl"
  8562. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8563. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8564. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8565. soname_spec='${libname}${release}${shared_ext}$major'
  8566. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8567. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8568. ;;
  8569. *)
  8570. shrext_cmds='.sl'
  8571. dynamic_linker="$host_os dld.sl"
  8572. shlibpath_var=SHLIB_PATH
  8573. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8574. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8575. soname_spec='${libname}${release}${shared_ext}$major'
  8576. ;;
  8577. esac
  8578. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  8579. postinstall_cmds='chmod 555 $lib'
  8580. ;;
  8581. interix[3-9]*)
  8582. version_type=linux
  8583. need_lib_prefix=no
  8584. need_version=no
  8585. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8586. soname_spec='${libname}${release}${shared_ext}$major'
  8587. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8588. shlibpath_var=LD_LIBRARY_PATH
  8589. shlibpath_overrides_runpath=no
  8590. hardcode_into_libs=yes
  8591. ;;
  8592. irix5* | irix6* | nonstopux*)
  8593. case $host_os in
  8594. nonstopux*) version_type=nonstopux ;;
  8595. *)
  8596. if test "$lt_cv_prog_gnu_ld" = yes; then
  8597. version_type=linux
  8598. else
  8599. version_type=irix
  8600. fi ;;
  8601. esac
  8602. need_lib_prefix=no
  8603. need_version=no
  8604. soname_spec='${libname}${release}${shared_ext}$major'
  8605. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8606. case $host_os in
  8607. irix5* | nonstopux*)
  8608. libsuff= shlibsuff=
  8609. ;;
  8610. *)
  8611. case $LD in # libtool.m4 will add one of these switches to LD
  8612. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8613. libsuff= shlibsuff= libmagic=32-bit;;
  8614. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8615. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8616. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8617. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8618. *) libsuff= shlibsuff= libmagic=never-match;;
  8619. esac
  8620. ;;
  8621. esac
  8622. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8623. shlibpath_overrides_runpath=no
  8624. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8625. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8626. hardcode_into_libs=yes
  8627. ;;
  8628. # No shared lib support for Linux oldld, aout, or coff.
  8629. linux*oldld* | linux*aout* | linux*coff*)
  8630. dynamic_linker=no
  8631. ;;
  8632. # This must be Linux ELF.
  8633. linux* | k*bsd*-gnu)
  8634. version_type=linux
  8635. need_lib_prefix=no
  8636. need_version=no
  8637. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8638. soname_spec='${libname}${release}${shared_ext}$major'
  8639. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8640. shlibpath_var=LD_LIBRARY_PATH
  8641. shlibpath_overrides_runpath=no
  8642. # Some binutils ld are patched to set DT_RUNPATH
  8643. save_LDFLAGS=$LDFLAGS
  8644. save_libdir=$libdir
  8645. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  8646. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  8647. cat >conftest.$ac_ext <<_ACEOF
  8648. /* confdefs.h. */
  8649. _ACEOF
  8650. cat confdefs.h >>conftest.$ac_ext
  8651. cat >>conftest.$ac_ext <<_ACEOF
  8652. /* end confdefs.h. */
  8653. int
  8654. main ()
  8655. {
  8656. ;
  8657. return 0;
  8658. }
  8659. _ACEOF
  8660. rm -f conftest.$ac_objext conftest$ac_exeext
  8661. if { (ac_try="$ac_link"
  8662. case "(($ac_try" in
  8663. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8664. *) ac_try_echo=$ac_try;;
  8665. esac
  8666. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8667. $as_echo "$ac_try_echo") >&5
  8668. (eval "$ac_link") 2>conftest.er1
  8669. ac_status=$?
  8670. grep -v '^ *+' conftest.er1 >conftest.err
  8671. rm -f conftest.er1
  8672. cat conftest.err >&5
  8673. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8674. (exit $ac_status); } && {
  8675. test -z "$ac_c_werror_flag" ||
  8676. test ! -s conftest.err
  8677. } && test -s conftest$ac_exeext && {
  8678. test "$cross_compiling" = yes ||
  8679. $as_test_x conftest$ac_exeext
  8680. }; then
  8681. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
  8682. shlibpath_overrides_runpath=yes
  8683. fi
  8684. else
  8685. $as_echo "$as_me: failed program was:" >&5
  8686. sed 's/^/| /' conftest.$ac_ext >&5
  8687. fi
  8688. rm -rf conftest.dSYM
  8689. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8690. conftest$ac_exeext conftest.$ac_ext
  8691. LDFLAGS=$save_LDFLAGS
  8692. libdir=$save_libdir
  8693. # This implies no fast_install, which is unacceptable.
  8694. # Some rework will be needed to allow for fast_install
  8695. # before this can be enabled.
  8696. hardcode_into_libs=yes
  8697. # Append ld.so.conf contents to the search path
  8698. if test -f /etc/ld.so.conf; then
  8699. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  8700. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  8701. fi
  8702. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8703. # powerpc, because MkLinux only supported shared libraries with the
  8704. # GNU dynamic linker. Since this was broken with cross compilers,
  8705. # most powerpc-linux boxes support dynamic linking these days and
  8706. # people can always --disable-shared, the test was removed, and we
  8707. # assume the GNU/Linux dynamic linker is in use.
  8708. dynamic_linker='GNU/Linux ld.so'
  8709. ;;
  8710. netbsd*)
  8711. version_type=sunos
  8712. need_lib_prefix=no
  8713. need_version=no
  8714. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8715. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8716. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8717. dynamic_linker='NetBSD (a.out) ld.so'
  8718. else
  8719. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8720. soname_spec='${libname}${release}${shared_ext}$major'
  8721. dynamic_linker='NetBSD ld.elf_so'
  8722. fi
  8723. shlibpath_var=LD_LIBRARY_PATH
  8724. shlibpath_overrides_runpath=yes
  8725. hardcode_into_libs=yes
  8726. ;;
  8727. newsos6)
  8728. version_type=linux
  8729. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8730. shlibpath_var=LD_LIBRARY_PATH
  8731. shlibpath_overrides_runpath=yes
  8732. ;;
  8733. *nto* | *qnx*)
  8734. version_type=qnx
  8735. need_lib_prefix=no
  8736. need_version=no
  8737. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8738. soname_spec='${libname}${release}${shared_ext}$major'
  8739. shlibpath_var=LD_LIBRARY_PATH
  8740. shlibpath_overrides_runpath=no
  8741. hardcode_into_libs=yes
  8742. dynamic_linker='ldqnx.so'
  8743. ;;
  8744. openbsd*)
  8745. version_type=sunos
  8746. sys_lib_dlsearch_path_spec="/usr/lib"
  8747. need_lib_prefix=no
  8748. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  8749. case $host_os in
  8750. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  8751. *) need_version=no ;;
  8752. esac
  8753. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8754. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8755. shlibpath_var=LD_LIBRARY_PATH
  8756. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8757. case $host_os in
  8758. openbsd2.[89] | openbsd2.[89].*)
  8759. shlibpath_overrides_runpath=no
  8760. ;;
  8761. *)
  8762. shlibpath_overrides_runpath=yes
  8763. ;;
  8764. esac
  8765. else
  8766. shlibpath_overrides_runpath=yes
  8767. fi
  8768. ;;
  8769. os2*)
  8770. libname_spec='$name'
  8771. shrext_cmds=".dll"
  8772. need_lib_prefix=no
  8773. library_names_spec='$libname${shared_ext} $libname.a'
  8774. dynamic_linker='OS/2 ld.exe'
  8775. shlibpath_var=LIBPATH
  8776. ;;
  8777. osf3* | osf4* | osf5*)
  8778. version_type=osf
  8779. need_lib_prefix=no
  8780. need_version=no
  8781. soname_spec='${libname}${release}${shared_ext}$major'
  8782. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8783. shlibpath_var=LD_LIBRARY_PATH
  8784. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  8785. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  8786. ;;
  8787. rdos*)
  8788. dynamic_linker=no
  8789. ;;
  8790. solaris*)
  8791. version_type=linux
  8792. need_lib_prefix=no
  8793. need_version=no
  8794. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8795. soname_spec='${libname}${release}${shared_ext}$major'
  8796. shlibpath_var=LD_LIBRARY_PATH
  8797. shlibpath_overrides_runpath=yes
  8798. hardcode_into_libs=yes
  8799. # ldd complains unless libraries are executable
  8800. postinstall_cmds='chmod +x $lib'
  8801. ;;
  8802. sunos4*)
  8803. version_type=sunos
  8804. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8805. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  8806. shlibpath_var=LD_LIBRARY_PATH
  8807. shlibpath_overrides_runpath=yes
  8808. if test "$with_gnu_ld" = yes; then
  8809. need_lib_prefix=no
  8810. fi
  8811. need_version=yes
  8812. ;;
  8813. sysv4 | sysv4.3*)
  8814. version_type=linux
  8815. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8816. soname_spec='${libname}${release}${shared_ext}$major'
  8817. shlibpath_var=LD_LIBRARY_PATH
  8818. case $host_vendor in
  8819. sni)
  8820. shlibpath_overrides_runpath=no
  8821. need_lib_prefix=no
  8822. runpath_var=LD_RUN_PATH
  8823. ;;
  8824. siemens)
  8825. need_lib_prefix=no
  8826. ;;
  8827. motorola)
  8828. need_lib_prefix=no
  8829. need_version=no
  8830. shlibpath_overrides_runpath=no
  8831. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  8832. ;;
  8833. esac
  8834. ;;
  8835. sysv4*MP*)
  8836. if test -d /usr/nec ;then
  8837. version_type=linux
  8838. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  8839. soname_spec='$libname${shared_ext}.$major'
  8840. shlibpath_var=LD_LIBRARY_PATH
  8841. fi
  8842. ;;
  8843. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  8844. version_type=freebsd-elf
  8845. need_lib_prefix=no
  8846. need_version=no
  8847. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8848. soname_spec='${libname}${release}${shared_ext}$major'
  8849. shlibpath_var=LD_LIBRARY_PATH
  8850. shlibpath_overrides_runpath=yes
  8851. hardcode_into_libs=yes
  8852. if test "$with_gnu_ld" = yes; then
  8853. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  8854. else
  8855. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  8856. case $host_os in
  8857. sco3.2v5*)
  8858. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  8859. ;;
  8860. esac
  8861. fi
  8862. sys_lib_dlsearch_path_spec='/usr/lib'
  8863. ;;
  8864. tpf*)
  8865. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  8866. version_type=linux
  8867. need_lib_prefix=no
  8868. need_version=no
  8869. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8870. shlibpath_var=LD_LIBRARY_PATH
  8871. shlibpath_overrides_runpath=no
  8872. hardcode_into_libs=yes
  8873. ;;
  8874. uts4*)
  8875. version_type=linux
  8876. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8877. soname_spec='${libname}${release}${shared_ext}$major'
  8878. shlibpath_var=LD_LIBRARY_PATH
  8879. ;;
  8880. *)
  8881. dynamic_linker=no
  8882. ;;
  8883. esac
  8884. { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  8885. $as_echo "$dynamic_linker" >&6; }
  8886. test "$dynamic_linker" = no && can_build_shared=no
  8887. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  8888. if test "$GCC" = yes; then
  8889. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  8890. fi
  8891. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  8892. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  8893. fi
  8894. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  8895. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  8896. fi
  8897. { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  8898. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  8899. hardcode_action=
  8900. if test -n "$hardcode_libdir_flag_spec" ||
  8901. test -n "$runpath_var" ||
  8902. test "X$hardcode_automatic" = "Xyes" ; then
  8903. # We can hardcode non-existent directories.
  8904. if test "$hardcode_direct" != no &&
  8905. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  8906. # have to relink, otherwise we might link with an installed library
  8907. # when we should be linking with a yet-to-be-installed one
  8908. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  8909. test "$hardcode_minus_L" != no; then
  8910. # Linking always hardcodes the temporary library directory.
  8911. hardcode_action=relink
  8912. else
  8913. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  8914. hardcode_action=immediate
  8915. fi
  8916. else
  8917. # We cannot hardcode anything, or else we can only hardcode existing
  8918. # directories.
  8919. hardcode_action=unsupported
  8920. fi
  8921. { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
  8922. $as_echo "$hardcode_action" >&6; }
  8923. if test "$hardcode_action" = relink ||
  8924. test "$inherit_rpath" = yes; then
  8925. # Fast installation is not supported
  8926. enable_fast_install=no
  8927. elif test "$shlibpath_overrides_runpath" = yes ||
  8928. test "$enable_shared" = no; then
  8929. # Fast installation is not necessary
  8930. enable_fast_install=needless
  8931. fi
  8932. if test "x$enable_dlopen" != xyes; then
  8933. enable_dlopen=unknown
  8934. enable_dlopen_self=unknown
  8935. enable_dlopen_self_static=unknown
  8936. else
  8937. lt_cv_dlopen=no
  8938. lt_cv_dlopen_libs=
  8939. case $host_os in
  8940. beos*)
  8941. lt_cv_dlopen="load_add_on"
  8942. lt_cv_dlopen_libs=
  8943. lt_cv_dlopen_self=yes
  8944. ;;
  8945. mingw* | pw32* | cegcc*)
  8946. lt_cv_dlopen="LoadLibrary"
  8947. lt_cv_dlopen_libs=
  8948. ;;
  8949. cygwin*)
  8950. lt_cv_dlopen="dlopen"
  8951. lt_cv_dlopen_libs=
  8952. ;;
  8953. darwin*)
  8954. # if libdl is installed we need to link against it
  8955. { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8956. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  8957. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  8958. $as_echo_n "(cached) " >&6
  8959. else
  8960. ac_check_lib_save_LIBS=$LIBS
  8961. LIBS="-ldl $LIBS"
  8962. cat >conftest.$ac_ext <<_ACEOF
  8963. /* confdefs.h. */
  8964. _ACEOF
  8965. cat confdefs.h >>conftest.$ac_ext
  8966. cat >>conftest.$ac_ext <<_ACEOF
  8967. /* end confdefs.h. */
  8968. /* Override any GCC internal prototype to avoid an error.
  8969. Use char because int might match the return type of a GCC
  8970. builtin and then its argument prototype would still apply. */
  8971. #ifdef __cplusplus
  8972. extern "C"
  8973. #endif
  8974. char dlopen ();
  8975. int
  8976. main ()
  8977. {
  8978. return dlopen ();
  8979. ;
  8980. return 0;
  8981. }
  8982. _ACEOF
  8983. rm -f conftest.$ac_objext conftest$ac_exeext
  8984. if { (ac_try="$ac_link"
  8985. case "(($ac_try" in
  8986. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8987. *) ac_try_echo=$ac_try;;
  8988. esac
  8989. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8990. $as_echo "$ac_try_echo") >&5
  8991. (eval "$ac_link") 2>conftest.er1
  8992. ac_status=$?
  8993. grep -v '^ *+' conftest.er1 >conftest.err
  8994. rm -f conftest.er1
  8995. cat conftest.err >&5
  8996. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8997. (exit $ac_status); } && {
  8998. test -z "$ac_c_werror_flag" ||
  8999. test ! -s conftest.err
  9000. } && test -s conftest$ac_exeext && {
  9001. test "$cross_compiling" = yes ||
  9002. $as_test_x conftest$ac_exeext
  9003. }; then
  9004. ac_cv_lib_dl_dlopen=yes
  9005. else
  9006. $as_echo "$as_me: failed program was:" >&5
  9007. sed 's/^/| /' conftest.$ac_ext >&5
  9008. ac_cv_lib_dl_dlopen=no
  9009. fi
  9010. rm -rf conftest.dSYM
  9011. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9012. conftest$ac_exeext conftest.$ac_ext
  9013. LIBS=$ac_check_lib_save_LIBS
  9014. fi
  9015. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  9016. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9017. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
  9018. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9019. else
  9020. lt_cv_dlopen="dyld"
  9021. lt_cv_dlopen_libs=
  9022. lt_cv_dlopen_self=yes
  9023. fi
  9024. ;;
  9025. *)
  9026. { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
  9027. $as_echo_n "checking for shl_load... " >&6; }
  9028. if test "${ac_cv_func_shl_load+set}" = set; then
  9029. $as_echo_n "(cached) " >&6
  9030. else
  9031. cat >conftest.$ac_ext <<_ACEOF
  9032. /* confdefs.h. */
  9033. _ACEOF
  9034. cat confdefs.h >>conftest.$ac_ext
  9035. cat >>conftest.$ac_ext <<_ACEOF
  9036. /* end confdefs.h. */
  9037. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  9038. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9039. #define shl_load innocuous_shl_load
  9040. /* System header to define __stub macros and hopefully few prototypes,
  9041. which can conflict with char shl_load (); below.
  9042. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9043. <limits.h> exists even on freestanding compilers. */
  9044. #ifdef __STDC__
  9045. # include <limits.h>
  9046. #else
  9047. # include <assert.h>
  9048. #endif
  9049. #undef shl_load
  9050. /* Override any GCC internal prototype to avoid an error.
  9051. Use char because int might match the return type of a GCC
  9052. builtin and then its argument prototype would still apply. */
  9053. #ifdef __cplusplus
  9054. extern "C"
  9055. #endif
  9056. char shl_load ();
  9057. /* The GNU C library defines this for functions which it implements
  9058. to always fail with ENOSYS. Some functions are actually named
  9059. something starting with __ and the normal name is an alias. */
  9060. #if defined __stub_shl_load || defined __stub___shl_load
  9061. choke me
  9062. #endif
  9063. int
  9064. main ()
  9065. {
  9066. return shl_load ();
  9067. ;
  9068. return 0;
  9069. }
  9070. _ACEOF
  9071. rm -f conftest.$ac_objext conftest$ac_exeext
  9072. if { (ac_try="$ac_link"
  9073. case "(($ac_try" in
  9074. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9075. *) ac_try_echo=$ac_try;;
  9076. esac
  9077. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9078. $as_echo "$ac_try_echo") >&5
  9079. (eval "$ac_link") 2>conftest.er1
  9080. ac_status=$?
  9081. grep -v '^ *+' conftest.er1 >conftest.err
  9082. rm -f conftest.er1
  9083. cat conftest.err >&5
  9084. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9085. (exit $ac_status); } && {
  9086. test -z "$ac_c_werror_flag" ||
  9087. test ! -s conftest.err
  9088. } && test -s conftest$ac_exeext && {
  9089. test "$cross_compiling" = yes ||
  9090. $as_test_x conftest$ac_exeext
  9091. }; then
  9092. ac_cv_func_shl_load=yes
  9093. else
  9094. $as_echo "$as_me: failed program was:" >&5
  9095. sed 's/^/| /' conftest.$ac_ext >&5
  9096. ac_cv_func_shl_load=no
  9097. fi
  9098. rm -rf conftest.dSYM
  9099. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9100. conftest$ac_exeext conftest.$ac_ext
  9101. fi
  9102. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  9103. $as_echo "$ac_cv_func_shl_load" >&6; }
  9104. if test "x$ac_cv_func_shl_load" = x""yes; then
  9105. lt_cv_dlopen="shl_load"
  9106. else
  9107. { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  9108. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9109. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  9110. $as_echo_n "(cached) " >&6
  9111. else
  9112. ac_check_lib_save_LIBS=$LIBS
  9113. LIBS="-ldld $LIBS"
  9114. cat >conftest.$ac_ext <<_ACEOF
  9115. /* confdefs.h. */
  9116. _ACEOF
  9117. cat confdefs.h >>conftest.$ac_ext
  9118. cat >>conftest.$ac_ext <<_ACEOF
  9119. /* end confdefs.h. */
  9120. /* Override any GCC internal prototype to avoid an error.
  9121. Use char because int might match the return type of a GCC
  9122. builtin and then its argument prototype would still apply. */
  9123. #ifdef __cplusplus
  9124. extern "C"
  9125. #endif
  9126. char shl_load ();
  9127. int
  9128. main ()
  9129. {
  9130. return shl_load ();
  9131. ;
  9132. return 0;
  9133. }
  9134. _ACEOF
  9135. rm -f conftest.$ac_objext conftest$ac_exeext
  9136. if { (ac_try="$ac_link"
  9137. case "(($ac_try" in
  9138. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9139. *) ac_try_echo=$ac_try;;
  9140. esac
  9141. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9142. $as_echo "$ac_try_echo") >&5
  9143. (eval "$ac_link") 2>conftest.er1
  9144. ac_status=$?
  9145. grep -v '^ *+' conftest.er1 >conftest.err
  9146. rm -f conftest.er1
  9147. cat conftest.err >&5
  9148. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9149. (exit $ac_status); } && {
  9150. test -z "$ac_c_werror_flag" ||
  9151. test ! -s conftest.err
  9152. } && test -s conftest$ac_exeext && {
  9153. test "$cross_compiling" = yes ||
  9154. $as_test_x conftest$ac_exeext
  9155. }; then
  9156. ac_cv_lib_dld_shl_load=yes
  9157. else
  9158. $as_echo "$as_me: failed program was:" >&5
  9159. sed 's/^/| /' conftest.$ac_ext >&5
  9160. ac_cv_lib_dld_shl_load=no
  9161. fi
  9162. rm -rf conftest.dSYM
  9163. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9164. conftest$ac_exeext conftest.$ac_ext
  9165. LIBS=$ac_check_lib_save_LIBS
  9166. fi
  9167. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  9168. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9169. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
  9170. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9171. else
  9172. { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
  9173. $as_echo_n "checking for dlopen... " >&6; }
  9174. if test "${ac_cv_func_dlopen+set}" = set; then
  9175. $as_echo_n "(cached) " >&6
  9176. else
  9177. cat >conftest.$ac_ext <<_ACEOF
  9178. /* confdefs.h. */
  9179. _ACEOF
  9180. cat confdefs.h >>conftest.$ac_ext
  9181. cat >>conftest.$ac_ext <<_ACEOF
  9182. /* end confdefs.h. */
  9183. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  9184. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9185. #define dlopen innocuous_dlopen
  9186. /* System header to define __stub macros and hopefully few prototypes,
  9187. which can conflict with char dlopen (); below.
  9188. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9189. <limits.h> exists even on freestanding compilers. */
  9190. #ifdef __STDC__
  9191. # include <limits.h>
  9192. #else
  9193. # include <assert.h>
  9194. #endif
  9195. #undef dlopen
  9196. /* Override any GCC internal prototype to avoid an error.
  9197. Use char because int might match the return type of a GCC
  9198. builtin and then its argument prototype would still apply. */
  9199. #ifdef __cplusplus
  9200. extern "C"
  9201. #endif
  9202. char dlopen ();
  9203. /* The GNU C library defines this for functions which it implements
  9204. to always fail with ENOSYS. Some functions are actually named
  9205. something starting with __ and the normal name is an alias. */
  9206. #if defined __stub_dlopen || defined __stub___dlopen
  9207. choke me
  9208. #endif
  9209. int
  9210. main ()
  9211. {
  9212. return dlopen ();
  9213. ;
  9214. return 0;
  9215. }
  9216. _ACEOF
  9217. rm -f conftest.$ac_objext conftest$ac_exeext
  9218. if { (ac_try="$ac_link"
  9219. case "(($ac_try" in
  9220. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9221. *) ac_try_echo=$ac_try;;
  9222. esac
  9223. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9224. $as_echo "$ac_try_echo") >&5
  9225. (eval "$ac_link") 2>conftest.er1
  9226. ac_status=$?
  9227. grep -v '^ *+' conftest.er1 >conftest.err
  9228. rm -f conftest.er1
  9229. cat conftest.err >&5
  9230. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9231. (exit $ac_status); } && {
  9232. test -z "$ac_c_werror_flag" ||
  9233. test ! -s conftest.err
  9234. } && test -s conftest$ac_exeext && {
  9235. test "$cross_compiling" = yes ||
  9236. $as_test_x conftest$ac_exeext
  9237. }; then
  9238. ac_cv_func_dlopen=yes
  9239. else
  9240. $as_echo "$as_me: failed program was:" >&5
  9241. sed 's/^/| /' conftest.$ac_ext >&5
  9242. ac_cv_func_dlopen=no
  9243. fi
  9244. rm -rf conftest.dSYM
  9245. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9246. conftest$ac_exeext conftest.$ac_ext
  9247. fi
  9248. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  9249. $as_echo "$ac_cv_func_dlopen" >&6; }
  9250. if test "x$ac_cv_func_dlopen" = x""yes; then
  9251. lt_cv_dlopen="dlopen"
  9252. else
  9253. { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  9254. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9255. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  9256. $as_echo_n "(cached) " >&6
  9257. else
  9258. ac_check_lib_save_LIBS=$LIBS
  9259. LIBS="-ldl $LIBS"
  9260. cat >conftest.$ac_ext <<_ACEOF
  9261. /* confdefs.h. */
  9262. _ACEOF
  9263. cat confdefs.h >>conftest.$ac_ext
  9264. cat >>conftest.$ac_ext <<_ACEOF
  9265. /* end confdefs.h. */
  9266. /* Override any GCC internal prototype to avoid an error.
  9267. Use char because int might match the return type of a GCC
  9268. builtin and then its argument prototype would still apply. */
  9269. #ifdef __cplusplus
  9270. extern "C"
  9271. #endif
  9272. char dlopen ();
  9273. int
  9274. main ()
  9275. {
  9276. return dlopen ();
  9277. ;
  9278. return 0;
  9279. }
  9280. _ACEOF
  9281. rm -f conftest.$ac_objext conftest$ac_exeext
  9282. if { (ac_try="$ac_link"
  9283. case "(($ac_try" in
  9284. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9285. *) ac_try_echo=$ac_try;;
  9286. esac
  9287. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9288. $as_echo "$ac_try_echo") >&5
  9289. (eval "$ac_link") 2>conftest.er1
  9290. ac_status=$?
  9291. grep -v '^ *+' conftest.er1 >conftest.err
  9292. rm -f conftest.er1
  9293. cat conftest.err >&5
  9294. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9295. (exit $ac_status); } && {
  9296. test -z "$ac_c_werror_flag" ||
  9297. test ! -s conftest.err
  9298. } && test -s conftest$ac_exeext && {
  9299. test "$cross_compiling" = yes ||
  9300. $as_test_x conftest$ac_exeext
  9301. }; then
  9302. ac_cv_lib_dl_dlopen=yes
  9303. else
  9304. $as_echo "$as_me: failed program was:" >&5
  9305. sed 's/^/| /' conftest.$ac_ext >&5
  9306. ac_cv_lib_dl_dlopen=no
  9307. fi
  9308. rm -rf conftest.dSYM
  9309. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9310. conftest$ac_exeext conftest.$ac_ext
  9311. LIBS=$ac_check_lib_save_LIBS
  9312. fi
  9313. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  9314. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9315. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
  9316. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9317. else
  9318. { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  9319. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9320. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  9321. $as_echo_n "(cached) " >&6
  9322. else
  9323. ac_check_lib_save_LIBS=$LIBS
  9324. LIBS="-lsvld $LIBS"
  9325. cat >conftest.$ac_ext <<_ACEOF
  9326. /* confdefs.h. */
  9327. _ACEOF
  9328. cat confdefs.h >>conftest.$ac_ext
  9329. cat >>conftest.$ac_ext <<_ACEOF
  9330. /* end confdefs.h. */
  9331. /* Override any GCC internal prototype to avoid an error.
  9332. Use char because int might match the return type of a GCC
  9333. builtin and then its argument prototype would still apply. */
  9334. #ifdef __cplusplus
  9335. extern "C"
  9336. #endif
  9337. char dlopen ();
  9338. int
  9339. main ()
  9340. {
  9341. return dlopen ();
  9342. ;
  9343. return 0;
  9344. }
  9345. _ACEOF
  9346. rm -f conftest.$ac_objext conftest$ac_exeext
  9347. if { (ac_try="$ac_link"
  9348. case "(($ac_try" in
  9349. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9350. *) ac_try_echo=$ac_try;;
  9351. esac
  9352. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9353. $as_echo "$ac_try_echo") >&5
  9354. (eval "$ac_link") 2>conftest.er1
  9355. ac_status=$?
  9356. grep -v '^ *+' conftest.er1 >conftest.err
  9357. rm -f conftest.er1
  9358. cat conftest.err >&5
  9359. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9360. (exit $ac_status); } && {
  9361. test -z "$ac_c_werror_flag" ||
  9362. test ! -s conftest.err
  9363. } && test -s conftest$ac_exeext && {
  9364. test "$cross_compiling" = yes ||
  9365. $as_test_x conftest$ac_exeext
  9366. }; then
  9367. ac_cv_lib_svld_dlopen=yes
  9368. else
  9369. $as_echo "$as_me: failed program was:" >&5
  9370. sed 's/^/| /' conftest.$ac_ext >&5
  9371. ac_cv_lib_svld_dlopen=no
  9372. fi
  9373. rm -rf conftest.dSYM
  9374. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9375. conftest$ac_exeext conftest.$ac_ext
  9376. LIBS=$ac_check_lib_save_LIBS
  9377. fi
  9378. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  9379. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9380. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
  9381. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9382. else
  9383. { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  9384. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9385. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  9386. $as_echo_n "(cached) " >&6
  9387. else
  9388. ac_check_lib_save_LIBS=$LIBS
  9389. LIBS="-ldld $LIBS"
  9390. cat >conftest.$ac_ext <<_ACEOF
  9391. /* confdefs.h. */
  9392. _ACEOF
  9393. cat confdefs.h >>conftest.$ac_ext
  9394. cat >>conftest.$ac_ext <<_ACEOF
  9395. /* end confdefs.h. */
  9396. /* Override any GCC internal prototype to avoid an error.
  9397. Use char because int might match the return type of a GCC
  9398. builtin and then its argument prototype would still apply. */
  9399. #ifdef __cplusplus
  9400. extern "C"
  9401. #endif
  9402. char dld_link ();
  9403. int
  9404. main ()
  9405. {
  9406. return dld_link ();
  9407. ;
  9408. return 0;
  9409. }
  9410. _ACEOF
  9411. rm -f conftest.$ac_objext conftest$ac_exeext
  9412. if { (ac_try="$ac_link"
  9413. case "(($ac_try" in
  9414. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9415. *) ac_try_echo=$ac_try;;
  9416. esac
  9417. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9418. $as_echo "$ac_try_echo") >&5
  9419. (eval "$ac_link") 2>conftest.er1
  9420. ac_status=$?
  9421. grep -v '^ *+' conftest.er1 >conftest.err
  9422. rm -f conftest.er1
  9423. cat conftest.err >&5
  9424. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9425. (exit $ac_status); } && {
  9426. test -z "$ac_c_werror_flag" ||
  9427. test ! -s conftest.err
  9428. } && test -s conftest$ac_exeext && {
  9429. test "$cross_compiling" = yes ||
  9430. $as_test_x conftest$ac_exeext
  9431. }; then
  9432. ac_cv_lib_dld_dld_link=yes
  9433. else
  9434. $as_echo "$as_me: failed program was:" >&5
  9435. sed 's/^/| /' conftest.$ac_ext >&5
  9436. ac_cv_lib_dld_dld_link=no
  9437. fi
  9438. rm -rf conftest.dSYM
  9439. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9440. conftest$ac_exeext conftest.$ac_ext
  9441. LIBS=$ac_check_lib_save_LIBS
  9442. fi
  9443. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  9444. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9445. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
  9446. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9447. fi
  9448. fi
  9449. fi
  9450. fi
  9451. fi
  9452. fi
  9453. ;;
  9454. esac
  9455. if test "x$lt_cv_dlopen" != xno; then
  9456. enable_dlopen=yes
  9457. else
  9458. enable_dlopen=no
  9459. fi
  9460. case $lt_cv_dlopen in
  9461. dlopen)
  9462. save_CPPFLAGS="$CPPFLAGS"
  9463. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9464. save_LDFLAGS="$LDFLAGS"
  9465. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9466. save_LIBS="$LIBS"
  9467. LIBS="$lt_cv_dlopen_libs $LIBS"
  9468. { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  9469. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9470. if test "${lt_cv_dlopen_self+set}" = set; then
  9471. $as_echo_n "(cached) " >&6
  9472. else
  9473. if test "$cross_compiling" = yes; then :
  9474. lt_cv_dlopen_self=cross
  9475. else
  9476. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9477. lt_status=$lt_dlunknown
  9478. cat > conftest.$ac_ext <<_LT_EOF
  9479. #line 11074 "configure"
  9480. #include "confdefs.h"
  9481. #if HAVE_DLFCN_H
  9482. #include <dlfcn.h>
  9483. #endif
  9484. #include <stdio.h>
  9485. #ifdef RTLD_GLOBAL
  9486. # define LT_DLGLOBAL RTLD_GLOBAL
  9487. #else
  9488. # ifdef DL_GLOBAL
  9489. # define LT_DLGLOBAL DL_GLOBAL
  9490. # else
  9491. # define LT_DLGLOBAL 0
  9492. # endif
  9493. #endif
  9494. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9495. find out it does not work in some platform. */
  9496. #ifndef LT_DLLAZY_OR_NOW
  9497. # ifdef RTLD_LAZY
  9498. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9499. # else
  9500. # ifdef DL_LAZY
  9501. # define LT_DLLAZY_OR_NOW DL_LAZY
  9502. # else
  9503. # ifdef RTLD_NOW
  9504. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9505. # else
  9506. # ifdef DL_NOW
  9507. # define LT_DLLAZY_OR_NOW DL_NOW
  9508. # else
  9509. # define LT_DLLAZY_OR_NOW 0
  9510. # endif
  9511. # endif
  9512. # endif
  9513. # endif
  9514. #endif
  9515. void fnord() { int i=42;}
  9516. int main ()
  9517. {
  9518. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9519. int status = $lt_dlunknown;
  9520. if (self)
  9521. {
  9522. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9523. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9524. /* dlclose (self); */
  9525. }
  9526. else
  9527. puts (dlerror ());
  9528. return status;
  9529. }
  9530. _LT_EOF
  9531. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9532. (eval $ac_link) 2>&5
  9533. ac_status=$?
  9534. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9535. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  9536. (./conftest; exit; ) >&5 2>/dev/null
  9537. lt_status=$?
  9538. case x$lt_status in
  9539. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9540. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9541. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9542. esac
  9543. else :
  9544. # compilation failed
  9545. lt_cv_dlopen_self=no
  9546. fi
  9547. fi
  9548. rm -fr conftest*
  9549. fi
  9550. { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  9551. $as_echo "$lt_cv_dlopen_self" >&6; }
  9552. if test "x$lt_cv_dlopen_self" = xyes; then
  9553. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9554. { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  9555. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9556. if test "${lt_cv_dlopen_self_static+set}" = set; then
  9557. $as_echo_n "(cached) " >&6
  9558. else
  9559. if test "$cross_compiling" = yes; then :
  9560. lt_cv_dlopen_self_static=cross
  9561. else
  9562. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9563. lt_status=$lt_dlunknown
  9564. cat > conftest.$ac_ext <<_LT_EOF
  9565. #line 11170 "configure"
  9566. #include "confdefs.h"
  9567. #if HAVE_DLFCN_H
  9568. #include <dlfcn.h>
  9569. #endif
  9570. #include <stdio.h>
  9571. #ifdef RTLD_GLOBAL
  9572. # define LT_DLGLOBAL RTLD_GLOBAL
  9573. #else
  9574. # ifdef DL_GLOBAL
  9575. # define LT_DLGLOBAL DL_GLOBAL
  9576. # else
  9577. # define LT_DLGLOBAL 0
  9578. # endif
  9579. #endif
  9580. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9581. find out it does not work in some platform. */
  9582. #ifndef LT_DLLAZY_OR_NOW
  9583. # ifdef RTLD_LAZY
  9584. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9585. # else
  9586. # ifdef DL_LAZY
  9587. # define LT_DLLAZY_OR_NOW DL_LAZY
  9588. # else
  9589. # ifdef RTLD_NOW
  9590. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9591. # else
  9592. # ifdef DL_NOW
  9593. # define LT_DLLAZY_OR_NOW DL_NOW
  9594. # else
  9595. # define LT_DLLAZY_OR_NOW 0
  9596. # endif
  9597. # endif
  9598. # endif
  9599. # endif
  9600. #endif
  9601. void fnord() { int i=42;}
  9602. int main ()
  9603. {
  9604. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9605. int status = $lt_dlunknown;
  9606. if (self)
  9607. {
  9608. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9609. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9610. /* dlclose (self); */
  9611. }
  9612. else
  9613. puts (dlerror ());
  9614. return status;
  9615. }
  9616. _LT_EOF
  9617. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9618. (eval $ac_link) 2>&5
  9619. ac_status=$?
  9620. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9621. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  9622. (./conftest; exit; ) >&5 2>/dev/null
  9623. lt_status=$?
  9624. case x$lt_status in
  9625. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9626. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9627. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9628. esac
  9629. else :
  9630. # compilation failed
  9631. lt_cv_dlopen_self_static=no
  9632. fi
  9633. fi
  9634. rm -fr conftest*
  9635. fi
  9636. { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  9637. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9638. fi
  9639. CPPFLAGS="$save_CPPFLAGS"
  9640. LDFLAGS="$save_LDFLAGS"
  9641. LIBS="$save_LIBS"
  9642. ;;
  9643. esac
  9644. case $lt_cv_dlopen_self in
  9645. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9646. *) enable_dlopen_self=unknown ;;
  9647. esac
  9648. case $lt_cv_dlopen_self_static in
  9649. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9650. *) enable_dlopen_self_static=unknown ;;
  9651. esac
  9652. fi
  9653. striplib=
  9654. old_striplib=
  9655. { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  9656. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9657. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9658. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9659. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9660. { $as_echo "$as_me:$LINENO: result: yes" >&5
  9661. $as_echo "yes" >&6; }
  9662. else
  9663. # FIXME - insert some real tests, host_os isn't really good enough
  9664. case $host_os in
  9665. darwin*)
  9666. if test -n "$STRIP" ; then
  9667. striplib="$STRIP -x"
  9668. old_striplib="$STRIP -S"
  9669. { $as_echo "$as_me:$LINENO: result: yes" >&5
  9670. $as_echo "yes" >&6; }
  9671. else
  9672. { $as_echo "$as_me:$LINENO: result: no" >&5
  9673. $as_echo "no" >&6; }
  9674. fi
  9675. ;;
  9676. *)
  9677. { $as_echo "$as_me:$LINENO: result: no" >&5
  9678. $as_echo "no" >&6; }
  9679. ;;
  9680. esac
  9681. fi
  9682. # Report which library types will actually be built
  9683. { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  9684. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9685. { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
  9686. $as_echo "$can_build_shared" >&6; }
  9687. { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  9688. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9689. test "$can_build_shared" = "no" && enable_shared=no
  9690. # On AIX, shared libraries and static libraries use the same namespace, and
  9691. # are all built from PIC.
  9692. case $host_os in
  9693. aix3*)
  9694. test "$enable_shared" = yes && enable_static=no
  9695. if test -n "$RANLIB"; then
  9696. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9697. postinstall_cmds='$RANLIB $lib'
  9698. fi
  9699. ;;
  9700. aix[4-9]*)
  9701. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9702. test "$enable_shared" = yes && enable_static=no
  9703. fi
  9704. ;;
  9705. esac
  9706. { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
  9707. $as_echo "$enable_shared" >&6; }
  9708. { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  9709. $as_echo_n "checking whether to build static libraries... " >&6; }
  9710. # Make sure either enable_shared or enable_static is yes.
  9711. test "$enable_shared" = yes || enable_static=yes
  9712. { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
  9713. $as_echo "$enable_static" >&6; }
  9714. fi
  9715. ac_ext=c
  9716. ac_cpp='$CPP $CPPFLAGS'
  9717. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9718. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9719. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9720. CC="$lt_save_CC"
  9721. ac_config_commands="$ac_config_commands libtool"
  9722. # Only expand once:
  9723. if test "x$CC" != xcc; then
  9724. { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
  9725. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  9726. else
  9727. { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
  9728. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  9729. fi
  9730. set dummy $CC; ac_cc=`$as_echo "$2" |
  9731. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  9732. if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
  9733. $as_echo_n "(cached) " >&6
  9734. else
  9735. cat >conftest.$ac_ext <<_ACEOF
  9736. /* confdefs.h. */
  9737. _ACEOF
  9738. cat confdefs.h >>conftest.$ac_ext
  9739. cat >>conftest.$ac_ext <<_ACEOF
  9740. /* end confdefs.h. */
  9741. int
  9742. main ()
  9743. {
  9744. ;
  9745. return 0;
  9746. }
  9747. _ACEOF
  9748. # Make sure it works both with $CC and with simple cc.
  9749. # We do the test twice because some compilers refuse to overwrite an
  9750. # existing .o file with -o, though they will create one.
  9751. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  9752. rm -f conftest2.*
  9753. if { (case "(($ac_try" in
  9754. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9755. *) ac_try_echo=$ac_try;;
  9756. esac
  9757. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9758. $as_echo "$ac_try_echo") >&5
  9759. (eval "$ac_try") 2>&5
  9760. ac_status=$?
  9761. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9762. (exit $ac_status); } &&
  9763. test -f conftest2.$ac_objext && { (case "(($ac_try" in
  9764. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9765. *) ac_try_echo=$ac_try;;
  9766. esac
  9767. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9768. $as_echo "$ac_try_echo") >&5
  9769. (eval "$ac_try") 2>&5
  9770. ac_status=$?
  9771. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9772. (exit $ac_status); };
  9773. then
  9774. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  9775. if test "x$CC" != xcc; then
  9776. # Test first that cc exists at all.
  9777. if { ac_try='cc -c conftest.$ac_ext >&5'
  9778. { (case "(($ac_try" in
  9779. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9780. *) ac_try_echo=$ac_try;;
  9781. esac
  9782. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9783. $as_echo "$ac_try_echo") >&5
  9784. (eval "$ac_try") 2>&5
  9785. ac_status=$?
  9786. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9787. (exit $ac_status); }; }; then
  9788. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  9789. rm -f conftest2.*
  9790. if { (case "(($ac_try" in
  9791. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9792. *) ac_try_echo=$ac_try;;
  9793. esac
  9794. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9795. $as_echo "$ac_try_echo") >&5
  9796. (eval "$ac_try") 2>&5
  9797. ac_status=$?
  9798. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9799. (exit $ac_status); } &&
  9800. test -f conftest2.$ac_objext && { (case "(($ac_try" in
  9801. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9802. *) ac_try_echo=$ac_try;;
  9803. esac
  9804. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9805. $as_echo "$ac_try_echo") >&5
  9806. (eval "$ac_try") 2>&5
  9807. ac_status=$?
  9808. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9809. (exit $ac_status); };
  9810. then
  9811. # cc works too.
  9812. :
  9813. else
  9814. # cc exists but doesn't like -o.
  9815. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  9816. fi
  9817. fi
  9818. fi
  9819. else
  9820. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  9821. fi
  9822. rm -f core conftest*
  9823. fi
  9824. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  9825. { $as_echo "$as_me:$LINENO: result: yes" >&5
  9826. $as_echo "yes" >&6; }
  9827. else
  9828. { $as_echo "$as_me:$LINENO: result: no" >&5
  9829. $as_echo "no" >&6; }
  9830. cat >>confdefs.h <<\_ACEOF
  9831. #define NO_MINUS_C_MINUS_O 1
  9832. _ACEOF
  9833. fi
  9834. # FIXME: we rely on the cache variable name because
  9835. # there is no other way.
  9836. set dummy $CC
  9837. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  9838. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  9839. if test "$am_t" != yes; then
  9840. # Losing compiler, so override with the script.
  9841. # FIXME: It is wrong to rewrite CC.
  9842. # But if we don't then we get into trouble of one sort or another.
  9843. # A longer-term fix would be to have automake use am__CC in this case,
  9844. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  9845. CC="$am_aux_dir/compile $CC"
  9846. fi
  9847. case $ac_cv_prog_cc_stdc in
  9848. no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
  9849. *) { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
  9850. $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  9851. if test "${ac_cv_prog_cc_c99+set}" = set; then
  9852. $as_echo_n "(cached) " >&6
  9853. else
  9854. ac_cv_prog_cc_c99=no
  9855. ac_save_CC=$CC
  9856. cat >conftest.$ac_ext <<_ACEOF
  9857. /* confdefs.h. */
  9858. _ACEOF
  9859. cat confdefs.h >>conftest.$ac_ext
  9860. cat >>conftest.$ac_ext <<_ACEOF
  9861. /* end confdefs.h. */
  9862. #include <stdarg.h>
  9863. #include <stdbool.h>
  9864. #include <stdlib.h>
  9865. #include <wchar.h>
  9866. #include <stdio.h>
  9867. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  9868. #define debug(...) fprintf (stderr, __VA_ARGS__)
  9869. #define showlist(...) puts (#__VA_ARGS__)
  9870. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  9871. static void
  9872. test_varargs_macros (void)
  9873. {
  9874. int x = 1234;
  9875. int y = 5678;
  9876. debug ("Flag");
  9877. debug ("X = %d\n", x);
  9878. showlist (The first, second, and third items.);
  9879. report (x>y, "x is %d but y is %d", x, y);
  9880. }
  9881. // Check long long types.
  9882. #define BIG64 18446744073709551615ull
  9883. #define BIG32 4294967295ul
  9884. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  9885. #if !BIG_OK
  9886. your preprocessor is broken;
  9887. #endif
  9888. #if BIG_OK
  9889. #else
  9890. your preprocessor is broken;
  9891. #endif
  9892. static long long int bignum = -9223372036854775807LL;
  9893. static unsigned long long int ubignum = BIG64;
  9894. struct incomplete_array
  9895. {
  9896. int datasize;
  9897. double data[];
  9898. };
  9899. struct named_init {
  9900. int number;
  9901. const wchar_t *name;
  9902. double average;
  9903. };
  9904. typedef const char *ccp;
  9905. static inline int
  9906. test_restrict (ccp restrict text)
  9907. {
  9908. // See if C++-style comments work.
  9909. // Iterate through items via the restricted pointer.
  9910. // Also check for declarations in for loops.
  9911. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  9912. continue;
  9913. return 0;
  9914. }
  9915. // Check varargs and va_copy.
  9916. static void
  9917. test_varargs (const char *format, ...)
  9918. {
  9919. va_list args;
  9920. va_start (args, format);
  9921. va_list args_copy;
  9922. va_copy (args_copy, args);
  9923. const char *str;
  9924. int number;
  9925. float fnumber;
  9926. while (*format)
  9927. {
  9928. switch (*format++)
  9929. {
  9930. case 's': // string
  9931. str = va_arg (args_copy, const char *);
  9932. break;
  9933. case 'd': // int
  9934. number = va_arg (args_copy, int);
  9935. break;
  9936. case 'f': // float
  9937. fnumber = va_arg (args_copy, double);
  9938. break;
  9939. default:
  9940. break;
  9941. }
  9942. }
  9943. va_end (args_copy);
  9944. va_end (args);
  9945. }
  9946. int
  9947. main ()
  9948. {
  9949. // Check bool.
  9950. _Bool success = false;
  9951. // Check restrict.
  9952. if (test_restrict ("String literal") == 0)
  9953. success = true;
  9954. char *restrict newvar = "Another string";
  9955. // Check varargs.
  9956. test_varargs ("s, d' f .", "string", 65, 34.234);
  9957. test_varargs_macros ();
  9958. // Check flexible array members.
  9959. struct incomplete_array *ia =
  9960. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  9961. ia->datasize = 10;
  9962. for (int i = 0; i < ia->datasize; ++i)
  9963. ia->data[i] = i * 1.234;
  9964. // Check named initializers.
  9965. struct named_init ni = {
  9966. .number = 34,
  9967. .name = L"Test wide string",
  9968. .average = 543.34343,
  9969. };
  9970. ni.number = 58;
  9971. int dynamic_array[ni.number];
  9972. dynamic_array[ni.number - 1] = 543;
  9973. // work around unused variable warnings
  9974. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  9975. || dynamic_array[ni.number - 1] != 543);
  9976. ;
  9977. return 0;
  9978. }
  9979. _ACEOF
  9980. for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
  9981. do
  9982. CC="$ac_save_CC $ac_arg"
  9983. rm -f conftest.$ac_objext
  9984. if { (ac_try="$ac_compile"
  9985. case "(($ac_try" in
  9986. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9987. *) ac_try_echo=$ac_try;;
  9988. esac
  9989. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9990. $as_echo "$ac_try_echo") >&5
  9991. (eval "$ac_compile") 2>conftest.er1
  9992. ac_status=$?
  9993. grep -v '^ *+' conftest.er1 >conftest.err
  9994. rm -f conftest.er1
  9995. cat conftest.err >&5
  9996. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9997. (exit $ac_status); } && {
  9998. test -z "$ac_c_werror_flag" ||
  9999. test ! -s conftest.err
  10000. } && test -s conftest.$ac_objext; then
  10001. ac_cv_prog_cc_c99=$ac_arg
  10002. else
  10003. $as_echo "$as_me: failed program was:" >&5
  10004. sed 's/^/| /' conftest.$ac_ext >&5
  10005. fi
  10006. rm -f core conftest.err conftest.$ac_objext
  10007. test "x$ac_cv_prog_cc_c99" != "xno" && break
  10008. done
  10009. rm -f conftest.$ac_ext
  10010. CC=$ac_save_CC
  10011. fi
  10012. # AC_CACHE_VAL
  10013. case "x$ac_cv_prog_cc_c99" in
  10014. x)
  10015. { $as_echo "$as_me:$LINENO: result: none needed" >&5
  10016. $as_echo "none needed" >&6; } ;;
  10017. xno)
  10018. { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  10019. $as_echo "unsupported" >&6; } ;;
  10020. *)
  10021. CC="$CC $ac_cv_prog_cc_c99"
  10022. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
  10023. $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  10024. esac
  10025. if test "x$ac_cv_prog_cc_c99" != xno; then
  10026. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  10027. else
  10028. { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  10029. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10030. if test "${ac_cv_prog_cc_c89+set}" = set; then
  10031. $as_echo_n "(cached) " >&6
  10032. else
  10033. ac_cv_prog_cc_c89=no
  10034. ac_save_CC=$CC
  10035. cat >conftest.$ac_ext <<_ACEOF
  10036. /* confdefs.h. */
  10037. _ACEOF
  10038. cat confdefs.h >>conftest.$ac_ext
  10039. cat >>conftest.$ac_ext <<_ACEOF
  10040. /* end confdefs.h. */
  10041. #include <stdarg.h>
  10042. #include <stdio.h>
  10043. #include <sys/types.h>
  10044. #include <sys/stat.h>
  10045. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10046. struct buf { int x; };
  10047. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10048. static char *e (p, i)
  10049. char **p;
  10050. int i;
  10051. {
  10052. return p[i];
  10053. }
  10054. static char *f (char * (*g) (char **, int), char **p, ...)
  10055. {
  10056. char *s;
  10057. va_list v;
  10058. va_start (v,p);
  10059. s = g (p, va_arg (v,int));
  10060. va_end (v);
  10061. return s;
  10062. }
  10063. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10064. function prototypes and stuff, but not '\xHH' hex character constants.
  10065. These don't provoke an error unfortunately, instead are silently treated
  10066. as 'x'. The following induces an error, until -std is added to get
  10067. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10068. array size at least. It's necessary to write '\x00'==0 to get something
  10069. that's true only with -std. */
  10070. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10071. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10072. inside strings and character constants. */
  10073. #define FOO(x) 'x'
  10074. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10075. int test (int i, double x);
  10076. struct s1 {int (*f) (int a);};
  10077. struct s2 {int (*f) (double a);};
  10078. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  10079. int argc;
  10080. char **argv;
  10081. int
  10082. main ()
  10083. {
  10084. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  10085. ;
  10086. return 0;
  10087. }
  10088. _ACEOF
  10089. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  10090. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  10091. do
  10092. CC="$ac_save_CC $ac_arg"
  10093. rm -f conftest.$ac_objext
  10094. if { (ac_try="$ac_compile"
  10095. case "(($ac_try" in
  10096. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10097. *) ac_try_echo=$ac_try;;
  10098. esac
  10099. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10100. $as_echo "$ac_try_echo") >&5
  10101. (eval "$ac_compile") 2>conftest.er1
  10102. ac_status=$?
  10103. grep -v '^ *+' conftest.er1 >conftest.err
  10104. rm -f conftest.er1
  10105. cat conftest.err >&5
  10106. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10107. (exit $ac_status); } && {
  10108. test -z "$ac_c_werror_flag" ||
  10109. test ! -s conftest.err
  10110. } && test -s conftest.$ac_objext; then
  10111. ac_cv_prog_cc_c89=$ac_arg
  10112. else
  10113. $as_echo "$as_me: failed program was:" >&5
  10114. sed 's/^/| /' conftest.$ac_ext >&5
  10115. fi
  10116. rm -f core conftest.err conftest.$ac_objext
  10117. test "x$ac_cv_prog_cc_c89" != "xno" && break
  10118. done
  10119. rm -f conftest.$ac_ext
  10120. CC=$ac_save_CC
  10121. fi
  10122. # AC_CACHE_VAL
  10123. case "x$ac_cv_prog_cc_c89" in
  10124. x)
  10125. { $as_echo "$as_me:$LINENO: result: none needed" >&5
  10126. $as_echo "none needed" >&6; } ;;
  10127. xno)
  10128. { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  10129. $as_echo "unsupported" >&6; } ;;
  10130. *)
  10131. CC="$CC $ac_cv_prog_cc_c89"
  10132. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  10133. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  10134. esac
  10135. if test "x$ac_cv_prog_cc_c89" != xno; then
  10136. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  10137. else
  10138. ac_cv_prog_cc_stdc=no
  10139. fi
  10140. fi
  10141. ;;
  10142. esac
  10143. { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
  10144. $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
  10145. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  10146. $as_echo_n "(cached) " >&6
  10147. fi
  10148. case $ac_cv_prog_cc_stdc in
  10149. no) { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  10150. $as_echo "unsupported" >&6; } ;;
  10151. '') { $as_echo "$as_me:$LINENO: result: none needed" >&5
  10152. $as_echo "none needed" >&6; } ;;
  10153. *) { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  10154. $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
  10155. esac
  10156. ac_ext=cpp
  10157. ac_cpp='$CXXCPP $CPPFLAGS'
  10158. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10159. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10160. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10161. if test -z "$CXX"; then
  10162. if test -n "$CCC"; then
  10163. CXX=$CCC
  10164. else
  10165. if test -n "$ac_tool_prefix"; then
  10166. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10167. do
  10168. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10169. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10170. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  10171. $as_echo_n "checking for $ac_word... " >&6; }
  10172. if test "${ac_cv_prog_CXX+set}" = set; then
  10173. $as_echo_n "(cached) " >&6
  10174. else
  10175. if test -n "$CXX"; then
  10176. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10177. else
  10178. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10179. for as_dir in $PATH
  10180. do
  10181. IFS=$as_save_IFS
  10182. test -z "$as_dir" && as_dir=.
  10183. for ac_exec_ext in '' $ac_executable_extensions; do
  10184. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10185. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  10186. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  10187. break 2
  10188. fi
  10189. done
  10190. done
  10191. IFS=$as_save_IFS
  10192. fi
  10193. fi
  10194. CXX=$ac_cv_prog_CXX
  10195. if test -n "$CXX"; then
  10196. { $as_echo "$as_me:$LINENO: result: $CXX" >&5
  10197. $as_echo "$CXX" >&6; }
  10198. else
  10199. { $as_echo "$as_me:$LINENO: result: no" >&5
  10200. $as_echo "no" >&6; }
  10201. fi
  10202. test -n "$CXX" && break
  10203. done
  10204. fi
  10205. if test -z "$CXX"; then
  10206. ac_ct_CXX=$CXX
  10207. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10208. do
  10209. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10210. set dummy $ac_prog; ac_word=$2
  10211. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  10212. $as_echo_n "checking for $ac_word... " >&6; }
  10213. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  10214. $as_echo_n "(cached) " >&6
  10215. else
  10216. if test -n "$ac_ct_CXX"; then
  10217. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  10218. else
  10219. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10220. for as_dir in $PATH
  10221. do
  10222. IFS=$as_save_IFS
  10223. test -z "$as_dir" && as_dir=.
  10224. for ac_exec_ext in '' $ac_executable_extensions; do
  10225. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10226. ac_cv_prog_ac_ct_CXX="$ac_prog"
  10227. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  10228. break 2
  10229. fi
  10230. done
  10231. done
  10232. IFS=$as_save_IFS
  10233. fi
  10234. fi
  10235. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  10236. if test -n "$ac_ct_CXX"; then
  10237. { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  10238. $as_echo "$ac_ct_CXX" >&6; }
  10239. else
  10240. { $as_echo "$as_me:$LINENO: result: no" >&5
  10241. $as_echo "no" >&6; }
  10242. fi
  10243. test -n "$ac_ct_CXX" && break
  10244. done
  10245. if test "x$ac_ct_CXX" = x; then
  10246. CXX="g++"
  10247. else
  10248. case $cross_compiling:$ac_tool_warned in
  10249. yes:)
  10250. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  10251. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10252. ac_tool_warned=yes ;;
  10253. esac
  10254. CXX=$ac_ct_CXX
  10255. fi
  10256. fi
  10257. fi
  10258. fi
  10259. # Provide some information about the compiler.
  10260. $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  10261. set X $ac_compile
  10262. ac_compiler=$2
  10263. { (ac_try="$ac_compiler --version >&5"
  10264. case "(($ac_try" in
  10265. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10266. *) ac_try_echo=$ac_try;;
  10267. esac
  10268. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10269. $as_echo "$ac_try_echo") >&5
  10270. (eval "$ac_compiler --version >&5") 2>&5
  10271. ac_status=$?
  10272. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10273. (exit $ac_status); }
  10274. { (ac_try="$ac_compiler -v >&5"
  10275. case "(($ac_try" in
  10276. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10277. *) ac_try_echo=$ac_try;;
  10278. esac
  10279. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10280. $as_echo "$ac_try_echo") >&5
  10281. (eval "$ac_compiler -v >&5") 2>&5
  10282. ac_status=$?
  10283. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10284. (exit $ac_status); }
  10285. { (ac_try="$ac_compiler -V >&5"
  10286. case "(($ac_try" in
  10287. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10288. *) ac_try_echo=$ac_try;;
  10289. esac
  10290. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10291. $as_echo "$ac_try_echo") >&5
  10292. (eval "$ac_compiler -V >&5") 2>&5
  10293. ac_status=$?
  10294. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10295. (exit $ac_status); }
  10296. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  10297. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  10298. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  10299. $as_echo_n "(cached) " >&6
  10300. else
  10301. cat >conftest.$ac_ext <<_ACEOF
  10302. /* confdefs.h. */
  10303. _ACEOF
  10304. cat confdefs.h >>conftest.$ac_ext
  10305. cat >>conftest.$ac_ext <<_ACEOF
  10306. /* end confdefs.h. */
  10307. int
  10308. main ()
  10309. {
  10310. #ifndef __GNUC__
  10311. choke me
  10312. #endif
  10313. ;
  10314. return 0;
  10315. }
  10316. _ACEOF
  10317. rm -f conftest.$ac_objext
  10318. if { (ac_try="$ac_compile"
  10319. case "(($ac_try" in
  10320. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10321. *) ac_try_echo=$ac_try;;
  10322. esac
  10323. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10324. $as_echo "$ac_try_echo") >&5
  10325. (eval "$ac_compile") 2>conftest.er1
  10326. ac_status=$?
  10327. grep -v '^ *+' conftest.er1 >conftest.err
  10328. rm -f conftest.er1
  10329. cat conftest.err >&5
  10330. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10331. (exit $ac_status); } && {
  10332. test -z "$ac_cxx_werror_flag" ||
  10333. test ! -s conftest.err
  10334. } && test -s conftest.$ac_objext; then
  10335. ac_compiler_gnu=yes
  10336. else
  10337. $as_echo "$as_me: failed program was:" >&5
  10338. sed 's/^/| /' conftest.$ac_ext >&5
  10339. ac_compiler_gnu=no
  10340. fi
  10341. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10342. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  10343. fi
  10344. { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  10345. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  10346. if test $ac_compiler_gnu = yes; then
  10347. GXX=yes
  10348. else
  10349. GXX=
  10350. fi
  10351. ac_test_CXXFLAGS=${CXXFLAGS+set}
  10352. ac_save_CXXFLAGS=$CXXFLAGS
  10353. { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  10354. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  10355. if test "${ac_cv_prog_cxx_g+set}" = set; then
  10356. $as_echo_n "(cached) " >&6
  10357. else
  10358. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  10359. ac_cxx_werror_flag=yes
  10360. ac_cv_prog_cxx_g=no
  10361. CXXFLAGS="-g"
  10362. cat >conftest.$ac_ext <<_ACEOF
  10363. /* confdefs.h. */
  10364. _ACEOF
  10365. cat confdefs.h >>conftest.$ac_ext
  10366. cat >>conftest.$ac_ext <<_ACEOF
  10367. /* end confdefs.h. */
  10368. int
  10369. main ()
  10370. {
  10371. ;
  10372. return 0;
  10373. }
  10374. _ACEOF
  10375. rm -f conftest.$ac_objext
  10376. if { (ac_try="$ac_compile"
  10377. case "(($ac_try" in
  10378. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10379. *) ac_try_echo=$ac_try;;
  10380. esac
  10381. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10382. $as_echo "$ac_try_echo") >&5
  10383. (eval "$ac_compile") 2>conftest.er1
  10384. ac_status=$?
  10385. grep -v '^ *+' conftest.er1 >conftest.err
  10386. rm -f conftest.er1
  10387. cat conftest.err >&5
  10388. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10389. (exit $ac_status); } && {
  10390. test -z "$ac_cxx_werror_flag" ||
  10391. test ! -s conftest.err
  10392. } && test -s conftest.$ac_objext; then
  10393. ac_cv_prog_cxx_g=yes
  10394. else
  10395. $as_echo "$as_me: failed program was:" >&5
  10396. sed 's/^/| /' conftest.$ac_ext >&5
  10397. CXXFLAGS=""
  10398. cat >conftest.$ac_ext <<_ACEOF
  10399. /* confdefs.h. */
  10400. _ACEOF
  10401. cat confdefs.h >>conftest.$ac_ext
  10402. cat >>conftest.$ac_ext <<_ACEOF
  10403. /* end confdefs.h. */
  10404. int
  10405. main ()
  10406. {
  10407. ;
  10408. return 0;
  10409. }
  10410. _ACEOF
  10411. rm -f conftest.$ac_objext
  10412. if { (ac_try="$ac_compile"
  10413. case "(($ac_try" in
  10414. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10415. *) ac_try_echo=$ac_try;;
  10416. esac
  10417. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10418. $as_echo "$ac_try_echo") >&5
  10419. (eval "$ac_compile") 2>conftest.er1
  10420. ac_status=$?
  10421. grep -v '^ *+' conftest.er1 >conftest.err
  10422. rm -f conftest.er1
  10423. cat conftest.err >&5
  10424. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10425. (exit $ac_status); } && {
  10426. test -z "$ac_cxx_werror_flag" ||
  10427. test ! -s conftest.err
  10428. } && test -s conftest.$ac_objext; then
  10429. :
  10430. else
  10431. $as_echo "$as_me: failed program was:" >&5
  10432. sed 's/^/| /' conftest.$ac_ext >&5
  10433. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10434. CXXFLAGS="-g"
  10435. cat >conftest.$ac_ext <<_ACEOF
  10436. /* confdefs.h. */
  10437. _ACEOF
  10438. cat confdefs.h >>conftest.$ac_ext
  10439. cat >>conftest.$ac_ext <<_ACEOF
  10440. /* end confdefs.h. */
  10441. int
  10442. main ()
  10443. {
  10444. ;
  10445. return 0;
  10446. }
  10447. _ACEOF
  10448. rm -f conftest.$ac_objext
  10449. if { (ac_try="$ac_compile"
  10450. case "(($ac_try" in
  10451. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10452. *) ac_try_echo=$ac_try;;
  10453. esac
  10454. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10455. $as_echo "$ac_try_echo") >&5
  10456. (eval "$ac_compile") 2>conftest.er1
  10457. ac_status=$?
  10458. grep -v '^ *+' conftest.er1 >conftest.err
  10459. rm -f conftest.er1
  10460. cat conftest.err >&5
  10461. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10462. (exit $ac_status); } && {
  10463. test -z "$ac_cxx_werror_flag" ||
  10464. test ! -s conftest.err
  10465. } && test -s conftest.$ac_objext; then
  10466. ac_cv_prog_cxx_g=yes
  10467. else
  10468. $as_echo "$as_me: failed program was:" >&5
  10469. sed 's/^/| /' conftest.$ac_ext >&5
  10470. fi
  10471. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10472. fi
  10473. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10474. fi
  10475. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10476. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10477. fi
  10478. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  10479. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  10480. if test "$ac_test_CXXFLAGS" = set; then
  10481. CXXFLAGS=$ac_save_CXXFLAGS
  10482. elif test $ac_cv_prog_cxx_g = yes; then
  10483. if test "$GXX" = yes; then
  10484. CXXFLAGS="-g -O2"
  10485. else
  10486. CXXFLAGS="-g"
  10487. fi
  10488. else
  10489. if test "$GXX" = yes; then
  10490. CXXFLAGS="-O2"
  10491. else
  10492. CXXFLAGS=
  10493. fi
  10494. fi
  10495. ac_ext=c
  10496. ac_cpp='$CPP $CPPFLAGS'
  10497. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10498. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10499. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10500. depcc="$CXX" am_compiler_list=
  10501. { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  10502. $as_echo_n "checking dependency style of $depcc... " >&6; }
  10503. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  10504. $as_echo_n "(cached) " >&6
  10505. else
  10506. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  10507. # We make a subdir and do the tests there. Otherwise we can end up
  10508. # making bogus files that we don't know about and never remove. For
  10509. # instance it was reported that on HP-UX the gcc test will end up
  10510. # making a dummy file named `D' -- because `-MD' means `put the output
  10511. # in D'.
  10512. mkdir conftest.dir
  10513. # Copy depcomp to subdir because otherwise we won't find it if we're
  10514. # using a relative directory.
  10515. cp "$am_depcomp" conftest.dir
  10516. cd conftest.dir
  10517. # We will build objects and dependencies in a subdirectory because
  10518. # it helps to detect inapplicable dependency modes. For instance
  10519. # both Tru64's cc and ICC support -MD to output dependencies as a
  10520. # side effect of compilation, but ICC will put the dependencies in
  10521. # the current directory while Tru64 will put them in the object
  10522. # directory.
  10523. mkdir sub
  10524. am_cv_CXX_dependencies_compiler_type=none
  10525. if test "$am_compiler_list" = ""; then
  10526. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  10527. fi
  10528. am__universal=false
  10529. case " $depcc " in #(
  10530. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  10531. esac
  10532. for depmode in $am_compiler_list; do
  10533. # Setup a source with many dependencies, because some compilers
  10534. # like to wrap large dependency lists on column 80 (with \), and
  10535. # we should not choose a depcomp mode which is confused by this.
  10536. #
  10537. # We need to recreate these files for each test, as the compiler may
  10538. # overwrite some of them when testing with obscure command lines.
  10539. # This happens at least with the AIX C compiler.
  10540. : > sub/conftest.c
  10541. for i in 1 2 3 4 5 6; do
  10542. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  10543. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  10544. # Solaris 8's {/usr,}/bin/sh.
  10545. touch sub/conftst$i.h
  10546. done
  10547. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  10548. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  10549. # mode. It turns out that the SunPro C++ compiler does not properly
  10550. # handle `-M -o', and we need to detect this. Also, some Intel
  10551. # versions had trouble with output in subdirs
  10552. am__obj=sub/conftest.${OBJEXT-o}
  10553. am__minus_obj="-o $am__obj"
  10554. case $depmode in
  10555. gcc)
  10556. # This depmode causes a compiler race in universal mode.
  10557. test "$am__universal" = false || continue
  10558. ;;
  10559. nosideeffect)
  10560. # after this tag, mechanisms are not by side-effect, so they'll
  10561. # only be used when explicitly requested
  10562. if test "x$enable_dependency_tracking" = xyes; then
  10563. continue
  10564. else
  10565. break
  10566. fi
  10567. ;;
  10568. msvisualcpp | msvcmsys)
  10569. # This compiler won't grok `-c -o', but also, the minuso test has
  10570. # not run yet. These depmodes are late enough in the game, and
  10571. # so weak that their functioning should not be impacted.
  10572. am__obj=conftest.${OBJEXT-o}
  10573. am__minus_obj=
  10574. ;;
  10575. none) break ;;
  10576. esac
  10577. if depmode=$depmode \
  10578. source=sub/conftest.c object=$am__obj \
  10579. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  10580. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  10581. >/dev/null 2>conftest.err &&
  10582. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  10583. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  10584. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  10585. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  10586. # icc doesn't choke on unknown options, it will just issue warnings
  10587. # or remarks (even with -Werror). So we grep stderr for any message
  10588. # that says an option was ignored or not supported.
  10589. # When given -MP, icc 7.0 and 7.1 complain thusly:
  10590. # icc: Command line warning: ignoring option '-M'; no argument required
  10591. # The diagnosis changed in icc 8.0:
  10592. # icc: Command line remark: option '-MP' not supported
  10593. if (grep 'ignoring option' conftest.err ||
  10594. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  10595. am_cv_CXX_dependencies_compiler_type=$depmode
  10596. break
  10597. fi
  10598. fi
  10599. done
  10600. cd ..
  10601. rm -rf conftest.dir
  10602. else
  10603. am_cv_CXX_dependencies_compiler_type=none
  10604. fi
  10605. fi
  10606. { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  10607. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  10608. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  10609. if
  10610. test "x$enable_dependency_tracking" != xno \
  10611. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  10612. am__fastdepCXX_TRUE=
  10613. am__fastdepCXX_FALSE='#'
  10614. else
  10615. am__fastdepCXX_TRUE='#'
  10616. am__fastdepCXX_FALSE=
  10617. fi
  10618. ac_ext=cpp
  10619. ac_cpp='$CXXCPP $CPPFLAGS'
  10620. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10621. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10622. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10623. if test -z "$CXX"; then
  10624. if test -n "$CCC"; then
  10625. CXX=$CCC
  10626. else
  10627. if test -n "$ac_tool_prefix"; then
  10628. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10629. do
  10630. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10631. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10632. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  10633. $as_echo_n "checking for $ac_word... " >&6; }
  10634. if test "${ac_cv_prog_CXX+set}" = set; then
  10635. $as_echo_n "(cached) " >&6
  10636. else
  10637. if test -n "$CXX"; then
  10638. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10639. else
  10640. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10641. for as_dir in $PATH
  10642. do
  10643. IFS=$as_save_IFS
  10644. test -z "$as_dir" && as_dir=.
  10645. for ac_exec_ext in '' $ac_executable_extensions; do
  10646. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10647. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  10648. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  10649. break 2
  10650. fi
  10651. done
  10652. done
  10653. IFS=$as_save_IFS
  10654. fi
  10655. fi
  10656. CXX=$ac_cv_prog_CXX
  10657. if test -n "$CXX"; then
  10658. { $as_echo "$as_me:$LINENO: result: $CXX" >&5
  10659. $as_echo "$CXX" >&6; }
  10660. else
  10661. { $as_echo "$as_me:$LINENO: result: no" >&5
  10662. $as_echo "no" >&6; }
  10663. fi
  10664. test -n "$CXX" && break
  10665. done
  10666. fi
  10667. if test -z "$CXX"; then
  10668. ac_ct_CXX=$CXX
  10669. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10670. do
  10671. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10672. set dummy $ac_prog; ac_word=$2
  10673. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  10674. $as_echo_n "checking for $ac_word... " >&6; }
  10675. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  10676. $as_echo_n "(cached) " >&6
  10677. else
  10678. if test -n "$ac_ct_CXX"; then
  10679. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  10680. else
  10681. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10682. for as_dir in $PATH
  10683. do
  10684. IFS=$as_save_IFS
  10685. test -z "$as_dir" && as_dir=.
  10686. for ac_exec_ext in '' $ac_executable_extensions; do
  10687. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10688. ac_cv_prog_ac_ct_CXX="$ac_prog"
  10689. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  10690. break 2
  10691. fi
  10692. done
  10693. done
  10694. IFS=$as_save_IFS
  10695. fi
  10696. fi
  10697. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  10698. if test -n "$ac_ct_CXX"; then
  10699. { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  10700. $as_echo "$ac_ct_CXX" >&6; }
  10701. else
  10702. { $as_echo "$as_me:$LINENO: result: no" >&5
  10703. $as_echo "no" >&6; }
  10704. fi
  10705. test -n "$ac_ct_CXX" && break
  10706. done
  10707. if test "x$ac_ct_CXX" = x; then
  10708. CXX="g++"
  10709. else
  10710. case $cross_compiling:$ac_tool_warned in
  10711. yes:)
  10712. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  10713. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10714. ac_tool_warned=yes ;;
  10715. esac
  10716. CXX=$ac_ct_CXX
  10717. fi
  10718. fi
  10719. fi
  10720. fi
  10721. # Provide some information about the compiler.
  10722. $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  10723. set X $ac_compile
  10724. ac_compiler=$2
  10725. { (ac_try="$ac_compiler --version >&5"
  10726. case "(($ac_try" in
  10727. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10728. *) ac_try_echo=$ac_try;;
  10729. esac
  10730. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10731. $as_echo "$ac_try_echo") >&5
  10732. (eval "$ac_compiler --version >&5") 2>&5
  10733. ac_status=$?
  10734. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10735. (exit $ac_status); }
  10736. { (ac_try="$ac_compiler -v >&5"
  10737. case "(($ac_try" in
  10738. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10739. *) ac_try_echo=$ac_try;;
  10740. esac
  10741. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10742. $as_echo "$ac_try_echo") >&5
  10743. (eval "$ac_compiler -v >&5") 2>&5
  10744. ac_status=$?
  10745. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10746. (exit $ac_status); }
  10747. { (ac_try="$ac_compiler -V >&5"
  10748. case "(($ac_try" in
  10749. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10750. *) ac_try_echo=$ac_try;;
  10751. esac
  10752. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10753. $as_echo "$ac_try_echo") >&5
  10754. (eval "$ac_compiler -V >&5") 2>&5
  10755. ac_status=$?
  10756. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10757. (exit $ac_status); }
  10758. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  10759. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  10760. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  10761. $as_echo_n "(cached) " >&6
  10762. else
  10763. cat >conftest.$ac_ext <<_ACEOF
  10764. /* confdefs.h. */
  10765. _ACEOF
  10766. cat confdefs.h >>conftest.$ac_ext
  10767. cat >>conftest.$ac_ext <<_ACEOF
  10768. /* end confdefs.h. */
  10769. int
  10770. main ()
  10771. {
  10772. #ifndef __GNUC__
  10773. choke me
  10774. #endif
  10775. ;
  10776. return 0;
  10777. }
  10778. _ACEOF
  10779. rm -f conftest.$ac_objext
  10780. if { (ac_try="$ac_compile"
  10781. case "(($ac_try" in
  10782. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10783. *) ac_try_echo=$ac_try;;
  10784. esac
  10785. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10786. $as_echo "$ac_try_echo") >&5
  10787. (eval "$ac_compile") 2>conftest.er1
  10788. ac_status=$?
  10789. grep -v '^ *+' conftest.er1 >conftest.err
  10790. rm -f conftest.er1
  10791. cat conftest.err >&5
  10792. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10793. (exit $ac_status); } && {
  10794. test -z "$ac_cxx_werror_flag" ||
  10795. test ! -s conftest.err
  10796. } && test -s conftest.$ac_objext; then
  10797. ac_compiler_gnu=yes
  10798. else
  10799. $as_echo "$as_me: failed program was:" >&5
  10800. sed 's/^/| /' conftest.$ac_ext >&5
  10801. ac_compiler_gnu=no
  10802. fi
  10803. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10804. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  10805. fi
  10806. { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  10807. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  10808. if test $ac_compiler_gnu = yes; then
  10809. GXX=yes
  10810. else
  10811. GXX=
  10812. fi
  10813. ac_test_CXXFLAGS=${CXXFLAGS+set}
  10814. ac_save_CXXFLAGS=$CXXFLAGS
  10815. { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  10816. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  10817. if test "${ac_cv_prog_cxx_g+set}" = set; then
  10818. $as_echo_n "(cached) " >&6
  10819. else
  10820. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  10821. ac_cxx_werror_flag=yes
  10822. ac_cv_prog_cxx_g=no
  10823. CXXFLAGS="-g"
  10824. cat >conftest.$ac_ext <<_ACEOF
  10825. /* confdefs.h. */
  10826. _ACEOF
  10827. cat confdefs.h >>conftest.$ac_ext
  10828. cat >>conftest.$ac_ext <<_ACEOF
  10829. /* end confdefs.h. */
  10830. int
  10831. main ()
  10832. {
  10833. ;
  10834. return 0;
  10835. }
  10836. _ACEOF
  10837. rm -f conftest.$ac_objext
  10838. if { (ac_try="$ac_compile"
  10839. case "(($ac_try" in
  10840. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10841. *) ac_try_echo=$ac_try;;
  10842. esac
  10843. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10844. $as_echo "$ac_try_echo") >&5
  10845. (eval "$ac_compile") 2>conftest.er1
  10846. ac_status=$?
  10847. grep -v '^ *+' conftest.er1 >conftest.err
  10848. rm -f conftest.er1
  10849. cat conftest.err >&5
  10850. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10851. (exit $ac_status); } && {
  10852. test -z "$ac_cxx_werror_flag" ||
  10853. test ! -s conftest.err
  10854. } && test -s conftest.$ac_objext; then
  10855. ac_cv_prog_cxx_g=yes
  10856. else
  10857. $as_echo "$as_me: failed program was:" >&5
  10858. sed 's/^/| /' conftest.$ac_ext >&5
  10859. CXXFLAGS=""
  10860. cat >conftest.$ac_ext <<_ACEOF
  10861. /* confdefs.h. */
  10862. _ACEOF
  10863. cat confdefs.h >>conftest.$ac_ext
  10864. cat >>conftest.$ac_ext <<_ACEOF
  10865. /* end confdefs.h. */
  10866. int
  10867. main ()
  10868. {
  10869. ;
  10870. return 0;
  10871. }
  10872. _ACEOF
  10873. rm -f conftest.$ac_objext
  10874. if { (ac_try="$ac_compile"
  10875. case "(($ac_try" in
  10876. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10877. *) ac_try_echo=$ac_try;;
  10878. esac
  10879. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10880. $as_echo "$ac_try_echo") >&5
  10881. (eval "$ac_compile") 2>conftest.er1
  10882. ac_status=$?
  10883. grep -v '^ *+' conftest.er1 >conftest.err
  10884. rm -f conftest.er1
  10885. cat conftest.err >&5
  10886. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10887. (exit $ac_status); } && {
  10888. test -z "$ac_cxx_werror_flag" ||
  10889. test ! -s conftest.err
  10890. } && test -s conftest.$ac_objext; then
  10891. :
  10892. else
  10893. $as_echo "$as_me: failed program was:" >&5
  10894. sed 's/^/| /' conftest.$ac_ext >&5
  10895. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10896. CXXFLAGS="-g"
  10897. cat >conftest.$ac_ext <<_ACEOF
  10898. /* confdefs.h. */
  10899. _ACEOF
  10900. cat confdefs.h >>conftest.$ac_ext
  10901. cat >>conftest.$ac_ext <<_ACEOF
  10902. /* end confdefs.h. */
  10903. int
  10904. main ()
  10905. {
  10906. ;
  10907. return 0;
  10908. }
  10909. _ACEOF
  10910. rm -f conftest.$ac_objext
  10911. if { (ac_try="$ac_compile"
  10912. case "(($ac_try" in
  10913. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10914. *) ac_try_echo=$ac_try;;
  10915. esac
  10916. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10917. $as_echo "$ac_try_echo") >&5
  10918. (eval "$ac_compile") 2>conftest.er1
  10919. ac_status=$?
  10920. grep -v '^ *+' conftest.er1 >conftest.err
  10921. rm -f conftest.er1
  10922. cat conftest.err >&5
  10923. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10924. (exit $ac_status); } && {
  10925. test -z "$ac_cxx_werror_flag" ||
  10926. test ! -s conftest.err
  10927. } && test -s conftest.$ac_objext; then
  10928. ac_cv_prog_cxx_g=yes
  10929. else
  10930. $as_echo "$as_me: failed program was:" >&5
  10931. sed 's/^/| /' conftest.$ac_ext >&5
  10932. fi
  10933. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10934. fi
  10935. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10936. fi
  10937. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10938. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10939. fi
  10940. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  10941. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  10942. if test "$ac_test_CXXFLAGS" = set; then
  10943. CXXFLAGS=$ac_save_CXXFLAGS
  10944. elif test $ac_cv_prog_cxx_g = yes; then
  10945. if test "$GXX" = yes; then
  10946. CXXFLAGS="-g -O2"
  10947. else
  10948. CXXFLAGS="-g"
  10949. fi
  10950. else
  10951. if test "$GXX" = yes; then
  10952. CXXFLAGS="-O2"
  10953. else
  10954. CXXFLAGS=
  10955. fi
  10956. fi
  10957. ac_ext=c
  10958. ac_cpp='$CPP $CPPFLAGS'
  10959. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10960. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10961. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10962. depcc="$CXX" am_compiler_list=
  10963. { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  10964. $as_echo_n "checking dependency style of $depcc... " >&6; }
  10965. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  10966. $as_echo_n "(cached) " >&6
  10967. else
  10968. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  10969. # We make a subdir and do the tests there. Otherwise we can end up
  10970. # making bogus files that we don't know about and never remove. For
  10971. # instance it was reported that on HP-UX the gcc test will end up
  10972. # making a dummy file named `D' -- because `-MD' means `put the output
  10973. # in D'.
  10974. mkdir conftest.dir
  10975. # Copy depcomp to subdir because otherwise we won't find it if we're
  10976. # using a relative directory.
  10977. cp "$am_depcomp" conftest.dir
  10978. cd conftest.dir
  10979. # We will build objects and dependencies in a subdirectory because
  10980. # it helps to detect inapplicable dependency modes. For instance
  10981. # both Tru64's cc and ICC support -MD to output dependencies as a
  10982. # side effect of compilation, but ICC will put the dependencies in
  10983. # the current directory while Tru64 will put them in the object
  10984. # directory.
  10985. mkdir sub
  10986. am_cv_CXX_dependencies_compiler_type=none
  10987. if test "$am_compiler_list" = ""; then
  10988. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  10989. fi
  10990. am__universal=false
  10991. case " $depcc " in #(
  10992. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  10993. esac
  10994. for depmode in $am_compiler_list; do
  10995. # Setup a source with many dependencies, because some compilers
  10996. # like to wrap large dependency lists on column 80 (with \), and
  10997. # we should not choose a depcomp mode which is confused by this.
  10998. #
  10999. # We need to recreate these files for each test, as the compiler may
  11000. # overwrite some of them when testing with obscure command lines.
  11001. # This happens at least with the AIX C compiler.
  11002. : > sub/conftest.c
  11003. for i in 1 2 3 4 5 6; do
  11004. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  11005. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  11006. # Solaris 8's {/usr,}/bin/sh.
  11007. touch sub/conftst$i.h
  11008. done
  11009. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  11010. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  11011. # mode. It turns out that the SunPro C++ compiler does not properly
  11012. # handle `-M -o', and we need to detect this. Also, some Intel
  11013. # versions had trouble with output in subdirs
  11014. am__obj=sub/conftest.${OBJEXT-o}
  11015. am__minus_obj="-o $am__obj"
  11016. case $depmode in
  11017. gcc)
  11018. # This depmode causes a compiler race in universal mode.
  11019. test "$am__universal" = false || continue
  11020. ;;
  11021. nosideeffect)
  11022. # after this tag, mechanisms are not by side-effect, so they'll
  11023. # only be used when explicitly requested
  11024. if test "x$enable_dependency_tracking" = xyes; then
  11025. continue
  11026. else
  11027. break
  11028. fi
  11029. ;;
  11030. msvisualcpp | msvcmsys)
  11031. # This compiler won't grok `-c -o', but also, the minuso test has
  11032. # not run yet. These depmodes are late enough in the game, and
  11033. # so weak that their functioning should not be impacted.
  11034. am__obj=conftest.${OBJEXT-o}
  11035. am__minus_obj=
  11036. ;;
  11037. none) break ;;
  11038. esac
  11039. if depmode=$depmode \
  11040. source=sub/conftest.c object=$am__obj \
  11041. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  11042. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  11043. >/dev/null 2>conftest.err &&
  11044. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  11045. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  11046. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  11047. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  11048. # icc doesn't choke on unknown options, it will just issue warnings
  11049. # or remarks (even with -Werror). So we grep stderr for any message
  11050. # that says an option was ignored or not supported.
  11051. # When given -MP, icc 7.0 and 7.1 complain thusly:
  11052. # icc: Command line warning: ignoring option '-M'; no argument required
  11053. # The diagnosis changed in icc 8.0:
  11054. # icc: Command line remark: option '-MP' not supported
  11055. if (grep 'ignoring option' conftest.err ||
  11056. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  11057. am_cv_CXX_dependencies_compiler_type=$depmode
  11058. break
  11059. fi
  11060. fi
  11061. done
  11062. cd ..
  11063. rm -rf conftest.dir
  11064. else
  11065. am_cv_CXX_dependencies_compiler_type=none
  11066. fi
  11067. fi
  11068. { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  11069. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  11070. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  11071. if
  11072. test "x$enable_dependency_tracking" != xno \
  11073. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  11074. am__fastdepCXX_TRUE=
  11075. am__fastdepCXX_FALSE='#'
  11076. else
  11077. am__fastdepCXX_TRUE='#'
  11078. am__fastdepCXX_FALSE=
  11079. fi
  11080. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  11081. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  11082. (test "X$CXX" != "Xg++"))) ; then
  11083. ac_ext=cpp
  11084. ac_cpp='$CXXCPP $CPPFLAGS'
  11085. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11086. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11087. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11088. { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  11089. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  11090. if test -z "$CXXCPP"; then
  11091. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  11092. $as_echo_n "(cached) " >&6
  11093. else
  11094. # Double quotes because CXXCPP needs to be expanded
  11095. for CXXCPP in "$CXX -E" "/lib/cpp"
  11096. do
  11097. ac_preproc_ok=false
  11098. for ac_cxx_preproc_warn_flag in '' yes
  11099. do
  11100. # Use a header file that comes with gcc, so configuring glibc
  11101. # with a fresh cross-compiler works.
  11102. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11103. # <limits.h> exists even on freestanding compilers.
  11104. # On the NeXT, cc -E runs the code through the compiler's parser,
  11105. # not just through cpp. "Syntax error" is here to catch this case.
  11106. cat >conftest.$ac_ext <<_ACEOF
  11107. /* confdefs.h. */
  11108. _ACEOF
  11109. cat confdefs.h >>conftest.$ac_ext
  11110. cat >>conftest.$ac_ext <<_ACEOF
  11111. /* end confdefs.h. */
  11112. #ifdef __STDC__
  11113. # include <limits.h>
  11114. #else
  11115. # include <assert.h>
  11116. #endif
  11117. Syntax error
  11118. _ACEOF
  11119. if { (ac_try="$ac_cpp conftest.$ac_ext"
  11120. case "(($ac_try" in
  11121. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11122. *) ac_try_echo=$ac_try;;
  11123. esac
  11124. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11125. $as_echo "$ac_try_echo") >&5
  11126. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  11127. ac_status=$?
  11128. grep -v '^ *+' conftest.er1 >conftest.err
  11129. rm -f conftest.er1
  11130. cat conftest.err >&5
  11131. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11132. (exit $ac_status); } >/dev/null && {
  11133. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  11134. test ! -s conftest.err
  11135. }; then
  11136. :
  11137. else
  11138. $as_echo "$as_me: failed program was:" >&5
  11139. sed 's/^/| /' conftest.$ac_ext >&5
  11140. # Broken: fails on valid input.
  11141. continue
  11142. fi
  11143. rm -f conftest.err conftest.$ac_ext
  11144. # OK, works on sane cases. Now check whether nonexistent headers
  11145. # can be detected and how.
  11146. cat >conftest.$ac_ext <<_ACEOF
  11147. /* confdefs.h. */
  11148. _ACEOF
  11149. cat confdefs.h >>conftest.$ac_ext
  11150. cat >>conftest.$ac_ext <<_ACEOF
  11151. /* end confdefs.h. */
  11152. #include <ac_nonexistent.h>
  11153. _ACEOF
  11154. if { (ac_try="$ac_cpp conftest.$ac_ext"
  11155. case "(($ac_try" in
  11156. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11157. *) ac_try_echo=$ac_try;;
  11158. esac
  11159. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11160. $as_echo "$ac_try_echo") >&5
  11161. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  11162. ac_status=$?
  11163. grep -v '^ *+' conftest.er1 >conftest.err
  11164. rm -f conftest.er1
  11165. cat conftest.err >&5
  11166. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11167. (exit $ac_status); } >/dev/null && {
  11168. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  11169. test ! -s conftest.err
  11170. }; then
  11171. # Broken: success on invalid input.
  11172. continue
  11173. else
  11174. $as_echo "$as_me: failed program was:" >&5
  11175. sed 's/^/| /' conftest.$ac_ext >&5
  11176. # Passes both tests.
  11177. ac_preproc_ok=:
  11178. break
  11179. fi
  11180. rm -f conftest.err conftest.$ac_ext
  11181. done
  11182. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11183. rm -f conftest.err conftest.$ac_ext
  11184. if $ac_preproc_ok; then
  11185. break
  11186. fi
  11187. done
  11188. ac_cv_prog_CXXCPP=$CXXCPP
  11189. fi
  11190. CXXCPP=$ac_cv_prog_CXXCPP
  11191. else
  11192. ac_cv_prog_CXXCPP=$CXXCPP
  11193. fi
  11194. { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
  11195. $as_echo "$CXXCPP" >&6; }
  11196. ac_preproc_ok=false
  11197. for ac_cxx_preproc_warn_flag in '' yes
  11198. do
  11199. # Use a header file that comes with gcc, so configuring glibc
  11200. # with a fresh cross-compiler works.
  11201. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11202. # <limits.h> exists even on freestanding compilers.
  11203. # On the NeXT, cc -E runs the code through the compiler's parser,
  11204. # not just through cpp. "Syntax error" is here to catch this case.
  11205. cat >conftest.$ac_ext <<_ACEOF
  11206. /* confdefs.h. */
  11207. _ACEOF
  11208. cat confdefs.h >>conftest.$ac_ext
  11209. cat >>conftest.$ac_ext <<_ACEOF
  11210. /* end confdefs.h. */
  11211. #ifdef __STDC__
  11212. # include <limits.h>
  11213. #else
  11214. # include <assert.h>
  11215. #endif
  11216. Syntax error
  11217. _ACEOF
  11218. if { (ac_try="$ac_cpp conftest.$ac_ext"
  11219. case "(($ac_try" in
  11220. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11221. *) ac_try_echo=$ac_try;;
  11222. esac
  11223. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11224. $as_echo "$ac_try_echo") >&5
  11225. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  11226. ac_status=$?
  11227. grep -v '^ *+' conftest.er1 >conftest.err
  11228. rm -f conftest.er1
  11229. cat conftest.err >&5
  11230. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11231. (exit $ac_status); } >/dev/null && {
  11232. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  11233. test ! -s conftest.err
  11234. }; then
  11235. :
  11236. else
  11237. $as_echo "$as_me: failed program was:" >&5
  11238. sed 's/^/| /' conftest.$ac_ext >&5
  11239. # Broken: fails on valid input.
  11240. continue
  11241. fi
  11242. rm -f conftest.err conftest.$ac_ext
  11243. # OK, works on sane cases. Now check whether nonexistent headers
  11244. # can be detected and how.
  11245. cat >conftest.$ac_ext <<_ACEOF
  11246. /* confdefs.h. */
  11247. _ACEOF
  11248. cat confdefs.h >>conftest.$ac_ext
  11249. cat >>conftest.$ac_ext <<_ACEOF
  11250. /* end confdefs.h. */
  11251. #include <ac_nonexistent.h>
  11252. _ACEOF
  11253. if { (ac_try="$ac_cpp conftest.$ac_ext"
  11254. case "(($ac_try" in
  11255. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11256. *) ac_try_echo=$ac_try;;
  11257. esac
  11258. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11259. $as_echo "$ac_try_echo") >&5
  11260. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  11261. ac_status=$?
  11262. grep -v '^ *+' conftest.er1 >conftest.err
  11263. rm -f conftest.er1
  11264. cat conftest.err >&5
  11265. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11266. (exit $ac_status); } >/dev/null && {
  11267. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  11268. test ! -s conftest.err
  11269. }; then
  11270. # Broken: success on invalid input.
  11271. continue
  11272. else
  11273. $as_echo "$as_me: failed program was:" >&5
  11274. sed 's/^/| /' conftest.$ac_ext >&5
  11275. # Passes both tests.
  11276. ac_preproc_ok=:
  11277. break
  11278. fi
  11279. rm -f conftest.err conftest.$ac_ext
  11280. done
  11281. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11282. rm -f conftest.err conftest.$ac_ext
  11283. if $ac_preproc_ok; then
  11284. :
  11285. else
  11286. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  11287. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11288. _lt_caught_CXX_error=yes; }
  11289. fi
  11290. ac_ext=c
  11291. ac_cpp='$CPP $CPPFLAGS'
  11292. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11293. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11294. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11295. else
  11296. _lt_caught_CXX_error=yes
  11297. fi
  11298. ac_ext=cpp
  11299. ac_cpp='$CXXCPP $CPPFLAGS'
  11300. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11301. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11302. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11303. archive_cmds_need_lc_CXX=no
  11304. allow_undefined_flag_CXX=
  11305. always_export_symbols_CXX=no
  11306. archive_expsym_cmds_CXX=
  11307. compiler_needs_object_CXX=no
  11308. export_dynamic_flag_spec_CXX=
  11309. hardcode_direct_CXX=no
  11310. hardcode_direct_absolute_CXX=no
  11311. hardcode_libdir_flag_spec_CXX=
  11312. hardcode_libdir_flag_spec_ld_CXX=
  11313. hardcode_libdir_separator_CXX=
  11314. hardcode_minus_L_CXX=no
  11315. hardcode_shlibpath_var_CXX=unsupported
  11316. hardcode_automatic_CXX=no
  11317. inherit_rpath_CXX=no
  11318. module_cmds_CXX=
  11319. module_expsym_cmds_CXX=
  11320. link_all_deplibs_CXX=unknown
  11321. old_archive_cmds_CXX=$old_archive_cmds
  11322. no_undefined_flag_CXX=
  11323. whole_archive_flag_spec_CXX=
  11324. enable_shared_with_static_runtimes_CXX=no
  11325. # Source file extension for C++ test sources.
  11326. ac_ext=cpp
  11327. # Object file extension for compiled C++ test sources.
  11328. objext=o
  11329. objext_CXX=$objext
  11330. # No sense in running all these tests if we already determined that
  11331. # the CXX compiler isn't working. Some variables (like enable_shared)
  11332. # are currently assumed to apply to all compilers on this platform,
  11333. # and will be corrupted by setting them based on a non-working compiler.
  11334. if test "$_lt_caught_CXX_error" != yes; then
  11335. # Code to be used in simple compile tests
  11336. lt_simple_compile_test_code="int some_variable = 0;"
  11337. # Code to be used in simple link tests
  11338. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  11339. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11340. # If no C compiler was specified, use CC.
  11341. LTCC=${LTCC-"$CC"}
  11342. # If no C compiler flags were specified, use CFLAGS.
  11343. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11344. # Allow CC to be a program name with arguments.
  11345. compiler=$CC
  11346. # save warnings/boilerplate of simple test code
  11347. ac_outfile=conftest.$ac_objext
  11348. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11349. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11350. _lt_compiler_boilerplate=`cat conftest.err`
  11351. $RM conftest*
  11352. ac_outfile=conftest.$ac_objext
  11353. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11354. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11355. _lt_linker_boilerplate=`cat conftest.err`
  11356. $RM -r conftest*
  11357. # Allow CC to be a program name with arguments.
  11358. lt_save_CC=$CC
  11359. lt_save_LD=$LD
  11360. lt_save_GCC=$GCC
  11361. GCC=$GXX
  11362. lt_save_with_gnu_ld=$with_gnu_ld
  11363. lt_save_path_LD=$lt_cv_path_LD
  11364. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  11365. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  11366. else
  11367. $as_unset lt_cv_prog_gnu_ld
  11368. fi
  11369. if test -n "${lt_cv_path_LDCXX+set}"; then
  11370. lt_cv_path_LD=$lt_cv_path_LDCXX
  11371. else
  11372. $as_unset lt_cv_path_LD
  11373. fi
  11374. test -z "${LDCXX+set}" || LD=$LDCXX
  11375. CC=${CXX-"c++"}
  11376. compiler=$CC
  11377. compiler_CXX=$CC
  11378. for cc_temp in $compiler""; do
  11379. case $cc_temp in
  11380. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11381. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11382. \-*) ;;
  11383. *) break;;
  11384. esac
  11385. done
  11386. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  11387. if test -n "$compiler"; then
  11388. # We don't want -fno-exception when compiling C++ code, so set the
  11389. # no_builtin_flag separately
  11390. if test "$GXX" = yes; then
  11391. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  11392. else
  11393. lt_prog_compiler_no_builtin_flag_CXX=
  11394. fi
  11395. if test "$GXX" = yes; then
  11396. # Set up default GNU C++ configuration
  11397. # Check whether --with-gnu-ld was given.
  11398. if test "${with_gnu_ld+set}" = set; then
  11399. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  11400. else
  11401. with_gnu_ld=no
  11402. fi
  11403. ac_prog=ld
  11404. if test "$GCC" = yes; then
  11405. # Check if gcc -print-prog-name=ld gives a path.
  11406. { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  11407. $as_echo_n "checking for ld used by $CC... " >&6; }
  11408. case $host in
  11409. *-*-mingw*)
  11410. # gcc leaves a trailing carriage return which upsets mingw
  11411. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11412. *)
  11413. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11414. esac
  11415. case $ac_prog in
  11416. # Accept absolute paths.
  11417. [\\/]* | ?:[\\/]*)
  11418. re_direlt='/[^/][^/]*/\.\./'
  11419. # Canonicalize the pathname of ld
  11420. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  11421. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  11422. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  11423. done
  11424. test -z "$LD" && LD="$ac_prog"
  11425. ;;
  11426. "")
  11427. # If it fails, then pretend we aren't using GCC.
  11428. ac_prog=ld
  11429. ;;
  11430. *)
  11431. # If it is relative, then search for the first ld in PATH.
  11432. with_gnu_ld=unknown
  11433. ;;
  11434. esac
  11435. elif test "$with_gnu_ld" = yes; then
  11436. { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
  11437. $as_echo_n "checking for GNU ld... " >&6; }
  11438. else
  11439. { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  11440. $as_echo_n "checking for non-GNU ld... " >&6; }
  11441. fi
  11442. if test "${lt_cv_path_LD+set}" = set; then
  11443. $as_echo_n "(cached) " >&6
  11444. else
  11445. if test -z "$LD"; then
  11446. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  11447. for ac_dir in $PATH; do
  11448. IFS="$lt_save_ifs"
  11449. test -z "$ac_dir" && ac_dir=.
  11450. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11451. lt_cv_path_LD="$ac_dir/$ac_prog"
  11452. # Check to see if the program is GNU ld. I'd rather use --version,
  11453. # but apparently some variants of GNU ld only accept -v.
  11454. # Break only if it was the GNU/non-GNU ld that we prefer.
  11455. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  11456. *GNU* | *'with BFD'*)
  11457. test "$with_gnu_ld" != no && break
  11458. ;;
  11459. *)
  11460. test "$with_gnu_ld" != yes && break
  11461. ;;
  11462. esac
  11463. fi
  11464. done
  11465. IFS="$lt_save_ifs"
  11466. else
  11467. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  11468. fi
  11469. fi
  11470. LD="$lt_cv_path_LD"
  11471. if test -n "$LD"; then
  11472. { $as_echo "$as_me:$LINENO: result: $LD" >&5
  11473. $as_echo "$LD" >&6; }
  11474. else
  11475. { $as_echo "$as_me:$LINENO: result: no" >&5
  11476. $as_echo "no" >&6; }
  11477. fi
  11478. test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  11479. $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  11480. { (exit 1); exit 1; }; }
  11481. { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  11482. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11483. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  11484. $as_echo_n "(cached) " >&6
  11485. else
  11486. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11487. case `$LD -v 2>&1 </dev/null` in
  11488. *GNU* | *'with BFD'*)
  11489. lt_cv_prog_gnu_ld=yes
  11490. ;;
  11491. *)
  11492. lt_cv_prog_gnu_ld=no
  11493. ;;
  11494. esac
  11495. fi
  11496. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  11497. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  11498. with_gnu_ld=$lt_cv_prog_gnu_ld
  11499. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  11500. # archiving commands below assume that GNU ld is being used.
  11501. if test "$with_gnu_ld" = yes; then
  11502. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11503. 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'
  11504. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11505. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11506. # If archive_cmds runs LD, not CC, wlarc should be empty
  11507. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11508. # investigate it a little bit more. (MM)
  11509. wlarc='${wl}'
  11510. # ancient GNU ld didn't support --whole-archive et. al.
  11511. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11512. $GREP 'no-whole-archive' > /dev/null; then
  11513. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11514. else
  11515. whole_archive_flag_spec_CXX=
  11516. fi
  11517. else
  11518. with_gnu_ld=no
  11519. wlarc=
  11520. # A generic and very simple default shared library creation
  11521. # command for GNU C++ for the case where it uses the native
  11522. # linker, instead of GNU ld. If possible, this setting should
  11523. # overridden to take advantage of the native linker features on
  11524. # the platform it is being used on.
  11525. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11526. fi
  11527. # Commands to make compiler produce verbose output that lists
  11528. # what "hidden" libraries, object files and flags are used when
  11529. # linking a shared library.
  11530. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  11531. else
  11532. GXX=no
  11533. with_gnu_ld=no
  11534. wlarc=
  11535. fi
  11536. # PORTME: fill in a description of your system's C++ link characteristics
  11537. { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11538. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11539. ld_shlibs_CXX=yes
  11540. case $host_os in
  11541. aix3*)
  11542. # FIXME: insert proper C++ library support
  11543. ld_shlibs_CXX=no
  11544. ;;
  11545. aix[4-9]*)
  11546. if test "$host_cpu" = ia64; then
  11547. # On IA64, the linker does run time linking by default, so we don't
  11548. # have to do anything special.
  11549. aix_use_runtimelinking=no
  11550. exp_sym_flag='-Bexport'
  11551. no_entry_flag=""
  11552. else
  11553. aix_use_runtimelinking=no
  11554. # Test if we are trying to use run time linking or normal
  11555. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11556. # need to do runtime linking.
  11557. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11558. for ld_flag in $LDFLAGS; do
  11559. case $ld_flag in
  11560. *-brtl*)
  11561. aix_use_runtimelinking=yes
  11562. break
  11563. ;;
  11564. esac
  11565. done
  11566. ;;
  11567. esac
  11568. exp_sym_flag='-bexport'
  11569. no_entry_flag='-bnoentry'
  11570. fi
  11571. # When large executables or shared objects are built, AIX ld can
  11572. # have problems creating the table of contents. If linking a library
  11573. # or program results in "error TOC overflow" add -mminimal-toc to
  11574. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11575. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11576. archive_cmds_CXX=''
  11577. hardcode_direct_CXX=yes
  11578. hardcode_direct_absolute_CXX=yes
  11579. hardcode_libdir_separator_CXX=':'
  11580. link_all_deplibs_CXX=yes
  11581. file_list_spec_CXX='${wl}-f,'
  11582. if test "$GXX" = yes; then
  11583. case $host_os in aix4.[012]|aix4.[012].*)
  11584. # We only want to do this on AIX 4.2 and lower, the check
  11585. # below for broken collect2 doesn't work under 4.3+
  11586. collect2name=`${CC} -print-prog-name=collect2`
  11587. if test -f "$collect2name" &&
  11588. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11589. then
  11590. # We have reworked collect2
  11591. :
  11592. else
  11593. # We have old collect2
  11594. hardcode_direct_CXX=unsupported
  11595. # It fails to find uninstalled libraries when the uninstalled
  11596. # path is not listed in the libpath. Setting hardcode_minus_L
  11597. # to unsupported forces relinking
  11598. hardcode_minus_L_CXX=yes
  11599. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11600. hardcode_libdir_separator_CXX=
  11601. fi
  11602. esac
  11603. shared_flag='-shared'
  11604. if test "$aix_use_runtimelinking" = yes; then
  11605. shared_flag="$shared_flag "'${wl}-G'
  11606. fi
  11607. else
  11608. # not using gcc
  11609. if test "$host_cpu" = ia64; then
  11610. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11611. # chokes on -Wl,-G. The following line is correct:
  11612. shared_flag='-G'
  11613. else
  11614. if test "$aix_use_runtimelinking" = yes; then
  11615. shared_flag='${wl}-G'
  11616. else
  11617. shared_flag='${wl}-bM:SRE'
  11618. fi
  11619. fi
  11620. fi
  11621. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  11622. # It seems that -bexpall does not export symbols beginning with
  11623. # underscore (_), so it is better to generate a list of symbols to
  11624. # export.
  11625. always_export_symbols_CXX=yes
  11626. if test "$aix_use_runtimelinking" = yes; then
  11627. # Warning - without using the other runtime loading flags (-brtl),
  11628. # -berok will link without error, but may produce a broken library.
  11629. allow_undefined_flag_CXX='-berok'
  11630. # Determine the default libpath from the value encoded in an empty
  11631. # executable.
  11632. cat >conftest.$ac_ext <<_ACEOF
  11633. /* confdefs.h. */
  11634. _ACEOF
  11635. cat confdefs.h >>conftest.$ac_ext
  11636. cat >>conftest.$ac_ext <<_ACEOF
  11637. /* end confdefs.h. */
  11638. int
  11639. main ()
  11640. {
  11641. ;
  11642. return 0;
  11643. }
  11644. _ACEOF
  11645. rm -f conftest.$ac_objext conftest$ac_exeext
  11646. if { (ac_try="$ac_link"
  11647. case "(($ac_try" in
  11648. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11649. *) ac_try_echo=$ac_try;;
  11650. esac
  11651. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11652. $as_echo "$ac_try_echo") >&5
  11653. (eval "$ac_link") 2>conftest.er1
  11654. ac_status=$?
  11655. grep -v '^ *+' conftest.er1 >conftest.err
  11656. rm -f conftest.er1
  11657. cat conftest.err >&5
  11658. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11659. (exit $ac_status); } && {
  11660. test -z "$ac_cxx_werror_flag" ||
  11661. test ! -s conftest.err
  11662. } && test -s conftest$ac_exeext && {
  11663. test "$cross_compiling" = yes ||
  11664. $as_test_x conftest$ac_exeext
  11665. }; then
  11666. lt_aix_libpath_sed='
  11667. /Import File Strings/,/^$/ {
  11668. /^0/ {
  11669. s/^0 *\(.*\)$/\1/
  11670. p
  11671. }
  11672. }'
  11673. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11674. # Check for a 64-bit object if we didn't find anything.
  11675. if test -z "$aix_libpath"; then
  11676. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11677. fi
  11678. else
  11679. $as_echo "$as_me: failed program was:" >&5
  11680. sed 's/^/| /' conftest.$ac_ext >&5
  11681. fi
  11682. rm -rf conftest.dSYM
  11683. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11684. conftest$ac_exeext conftest.$ac_ext
  11685. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  11686. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11687. 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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  11688. else
  11689. if test "$host_cpu" = ia64; then
  11690. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11691. allow_undefined_flag_CXX="-z nodefs"
  11692. 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"
  11693. else
  11694. # Determine the default libpath from the value encoded in an
  11695. # empty executable.
  11696. cat >conftest.$ac_ext <<_ACEOF
  11697. /* confdefs.h. */
  11698. _ACEOF
  11699. cat confdefs.h >>conftest.$ac_ext
  11700. cat >>conftest.$ac_ext <<_ACEOF
  11701. /* end confdefs.h. */
  11702. int
  11703. main ()
  11704. {
  11705. ;
  11706. return 0;
  11707. }
  11708. _ACEOF
  11709. rm -f conftest.$ac_objext conftest$ac_exeext
  11710. if { (ac_try="$ac_link"
  11711. case "(($ac_try" in
  11712. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11713. *) ac_try_echo=$ac_try;;
  11714. esac
  11715. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11716. $as_echo "$ac_try_echo") >&5
  11717. (eval "$ac_link") 2>conftest.er1
  11718. ac_status=$?
  11719. grep -v '^ *+' conftest.er1 >conftest.err
  11720. rm -f conftest.er1
  11721. cat conftest.err >&5
  11722. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11723. (exit $ac_status); } && {
  11724. test -z "$ac_cxx_werror_flag" ||
  11725. test ! -s conftest.err
  11726. } && test -s conftest$ac_exeext && {
  11727. test "$cross_compiling" = yes ||
  11728. $as_test_x conftest$ac_exeext
  11729. }; then
  11730. lt_aix_libpath_sed='
  11731. /Import File Strings/,/^$/ {
  11732. /^0/ {
  11733. s/^0 *\(.*\)$/\1/
  11734. p
  11735. }
  11736. }'
  11737. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11738. # Check for a 64-bit object if we didn't find anything.
  11739. if test -z "$aix_libpath"; then
  11740. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11741. fi
  11742. else
  11743. $as_echo "$as_me: failed program was:" >&5
  11744. sed 's/^/| /' conftest.$ac_ext >&5
  11745. fi
  11746. rm -rf conftest.dSYM
  11747. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11748. conftest$ac_exeext conftest.$ac_ext
  11749. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  11750. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11751. # Warning - without using the other run time loading flags,
  11752. # -berok will link without error, but may produce a broken library.
  11753. no_undefined_flag_CXX=' ${wl}-bernotok'
  11754. allow_undefined_flag_CXX=' ${wl}-berok'
  11755. # Exported symbols can be pulled into shared objects from archives
  11756. whole_archive_flag_spec_CXX='$convenience'
  11757. archive_cmds_need_lc_CXX=yes
  11758. # This is similar to how AIX traditionally builds its shared
  11759. # libraries.
  11760. 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'
  11761. fi
  11762. fi
  11763. ;;
  11764. beos*)
  11765. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11766. allow_undefined_flag_CXX=unsupported
  11767. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11768. # support --undefined. This deserves some investigation. FIXME
  11769. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11770. else
  11771. ld_shlibs_CXX=no
  11772. fi
  11773. ;;
  11774. chorus*)
  11775. case $cc_basename in
  11776. *)
  11777. # FIXME: insert proper C++ library support
  11778. ld_shlibs_CXX=no
  11779. ;;
  11780. esac
  11781. ;;
  11782. cygwin* | mingw* | pw32* | cegcc*)
  11783. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11784. # as there is no search path for DLLs.
  11785. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11786. allow_undefined_flag_CXX=unsupported
  11787. always_export_symbols_CXX=no
  11788. enable_shared_with_static_runtimes_CXX=yes
  11789. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11790. 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'
  11791. # If the export-symbols file already is a .def file (1st line
  11792. # is EXPORTS), use it as is; otherwise, prepend...
  11793. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11794. cp $export_symbols $output_objdir/$soname.def;
  11795. else
  11796. echo EXPORTS > $output_objdir/$soname.def;
  11797. cat $export_symbols >> $output_objdir/$soname.def;
  11798. fi~
  11799. $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'
  11800. else
  11801. ld_shlibs_CXX=no
  11802. fi
  11803. ;;
  11804. darwin* | rhapsody*)
  11805. archive_cmds_need_lc_CXX=no
  11806. hardcode_direct_CXX=no
  11807. hardcode_automatic_CXX=yes
  11808. hardcode_shlibpath_var_CXX=unsupported
  11809. whole_archive_flag_spec_CXX=''
  11810. link_all_deplibs_CXX=yes
  11811. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11812. case $cc_basename in
  11813. ifort*) _lt_dar_can_shared=yes ;;
  11814. *) _lt_dar_can_shared=$GCC ;;
  11815. esac
  11816. if test "$_lt_dar_can_shared" = "yes"; then
  11817. output_verbose_link_cmd=echo
  11818. archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  11819. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11820. archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  11821. module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  11822. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11823. 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${_lt_dsymutil}"
  11824. archive_expsym_cmds_CXX="sed '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${_lt_dar_export_syms}${_lt_dsymutil}"
  11825. fi
  11826. else
  11827. ld_shlibs_CXX=no
  11828. fi
  11829. ;;
  11830. dgux*)
  11831. case $cc_basename in
  11832. ec++*)
  11833. # FIXME: insert proper C++ library support
  11834. ld_shlibs_CXX=no
  11835. ;;
  11836. ghcx*)
  11837. # Green Hills C++ Compiler
  11838. # FIXME: insert proper C++ library support
  11839. ld_shlibs_CXX=no
  11840. ;;
  11841. *)
  11842. # FIXME: insert proper C++ library support
  11843. ld_shlibs_CXX=no
  11844. ;;
  11845. esac
  11846. ;;
  11847. freebsd[12]*)
  11848. # C++ shared libraries reported to be fairly broken before
  11849. # switch to ELF
  11850. ld_shlibs_CXX=no
  11851. ;;
  11852. freebsd-elf*)
  11853. archive_cmds_need_lc_CXX=no
  11854. ;;
  11855. freebsd* | dragonfly*)
  11856. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11857. # conventions
  11858. ld_shlibs_CXX=yes
  11859. ;;
  11860. gnu*)
  11861. ;;
  11862. hpux9*)
  11863. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11864. hardcode_libdir_separator_CXX=:
  11865. export_dynamic_flag_spec_CXX='${wl}-E'
  11866. hardcode_direct_CXX=yes
  11867. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11868. # but as the default
  11869. # location of the library.
  11870. case $cc_basename in
  11871. CC*)
  11872. # FIXME: insert proper C++ library support
  11873. ld_shlibs_CXX=no
  11874. ;;
  11875. aCC*)
  11876. 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'
  11877. # Commands to make compiler produce verbose output that lists
  11878. # what "hidden" libraries, object files and flags are used when
  11879. # linking a shared library.
  11880. #
  11881. # There doesn't appear to be a way to prevent this compiler from
  11882. # explicitly linking system object files so we need to strip them
  11883. # from the output so that they don't get included in the library
  11884. # dependencies.
  11885. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  11886. ;;
  11887. *)
  11888. if test "$GXX" = yes; then
  11889. 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'
  11890. else
  11891. # FIXME: insert proper C++ library support
  11892. ld_shlibs_CXX=no
  11893. fi
  11894. ;;
  11895. esac
  11896. ;;
  11897. hpux10*|hpux11*)
  11898. if test $with_gnu_ld = no; then
  11899. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11900. hardcode_libdir_separator_CXX=:
  11901. case $host_cpu in
  11902. hppa*64*|ia64*)
  11903. ;;
  11904. *)
  11905. export_dynamic_flag_spec_CXX='${wl}-E'
  11906. ;;
  11907. esac
  11908. fi
  11909. case $host_cpu in
  11910. hppa*64*|ia64*)
  11911. hardcode_direct_CXX=no
  11912. hardcode_shlibpath_var_CXX=no
  11913. ;;
  11914. *)
  11915. hardcode_direct_CXX=yes
  11916. hardcode_direct_absolute_CXX=yes
  11917. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11918. # but as the default
  11919. # location of the library.
  11920. ;;
  11921. esac
  11922. case $cc_basename in
  11923. CC*)
  11924. # FIXME: insert proper C++ library support
  11925. ld_shlibs_CXX=no
  11926. ;;
  11927. aCC*)
  11928. case $host_cpu in
  11929. hppa*64*)
  11930. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11931. ;;
  11932. ia64*)
  11933. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11934. ;;
  11935. *)
  11936. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11937. ;;
  11938. esac
  11939. # Commands to make compiler produce verbose output that lists
  11940. # what "hidden" libraries, object files and flags are used when
  11941. # linking a shared library.
  11942. #
  11943. # There doesn't appear to be a way to prevent this compiler from
  11944. # explicitly linking system object files so we need to strip them
  11945. # from the output so that they don't get included in the library
  11946. # dependencies.
  11947. 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 "X$list" | $Xsed'
  11948. ;;
  11949. *)
  11950. if test "$GXX" = yes; then
  11951. if test $with_gnu_ld = no; then
  11952. case $host_cpu in
  11953. hppa*64*)
  11954. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11955. ;;
  11956. ia64*)
  11957. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11958. ;;
  11959. *)
  11960. 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'
  11961. ;;
  11962. esac
  11963. fi
  11964. else
  11965. # FIXME: insert proper C++ library support
  11966. ld_shlibs_CXX=no
  11967. fi
  11968. ;;
  11969. esac
  11970. ;;
  11971. interix[3-9]*)
  11972. hardcode_direct_CXX=no
  11973. hardcode_shlibpath_var_CXX=no
  11974. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11975. export_dynamic_flag_spec_CXX='${wl}-E'
  11976. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11977. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11978. # default) and relocated if they conflict, which is a slow very memory
  11979. # consuming and fragmenting process. To avoid this, we pick a random,
  11980. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11981. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11982. 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'
  11983. 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'
  11984. ;;
  11985. irix5* | irix6*)
  11986. case $cc_basename in
  11987. CC*)
  11988. # SGI C++
  11989. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  11990. # Archives containing C++ object files must be created using
  11991. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11992. # necessary to make sure instantiated templates are included
  11993. # in the archive.
  11994. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11995. ;;
  11996. *)
  11997. if test "$GXX" = yes; then
  11998. if test "$with_gnu_ld" = no; then
  11999. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  12000. else
  12001. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
  12002. fi
  12003. fi
  12004. link_all_deplibs_CXX=yes
  12005. ;;
  12006. esac
  12007. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  12008. hardcode_libdir_separator_CXX=:
  12009. inherit_rpath_CXX=yes
  12010. ;;
  12011. linux* | k*bsd*-gnu)
  12012. case $cc_basename in
  12013. KCC*)
  12014. # Kuck and Associates, Inc. (KAI) C++ Compiler
  12015. # KCC will only create a shared library if the output file
  12016. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  12017. # to its proper name (with version) after linking.
  12018. 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'
  12019. 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'
  12020. # Commands to make compiler produce verbose output that lists
  12021. # what "hidden" libraries, object files and flags are used when
  12022. # linking a shared library.
  12023. #
  12024. # There doesn't appear to be a way to prevent this compiler from
  12025. # explicitly linking system object files so we need to strip them
  12026. # from the output so that they don't get included in the library
  12027. # dependencies.
  12028. 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 "X$list" | $Xsed'
  12029. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  12030. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  12031. # Archives containing C++ object files must be created using
  12032. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  12033. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  12034. ;;
  12035. icpc* | ecpc* )
  12036. # Intel C++
  12037. with_gnu_ld=yes
  12038. # version 8.0 and above of icpc choke on multiply defined symbols
  12039. # if we add $predep_objects and $postdep_objects, however 7.1 and
  12040. # earlier do not add the objects themselves.
  12041. case `$CC -V 2>&1` in
  12042. *"Version 7."*)
  12043. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12044. 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'
  12045. ;;
  12046. *) # Version 8.0 or newer
  12047. tmp_idyn=
  12048. case $host_cpu in
  12049. ia64*) tmp_idyn=' -i_dynamic';;
  12050. esac
  12051. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12052. 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'
  12053. ;;
  12054. esac
  12055. archive_cmds_need_lc_CXX=no
  12056. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  12057. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  12058. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  12059. ;;
  12060. pgCC* | pgcpp*)
  12061. # Portland Group C++ compiler
  12062. case `$CC -V` in
  12063. *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
  12064. prelink_cmds_CXX='tpldir=Template.dir~
  12065. rm -rf $tpldir~
  12066. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  12067. compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  12068. old_archive_cmds_CXX='tpldir=Template.dir~
  12069. rm -rf $tpldir~
  12070. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  12071. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  12072. $RANLIB $oldlib'
  12073. archive_cmds_CXX='tpldir=Template.dir~
  12074. rm -rf $tpldir~
  12075. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  12076. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  12077. archive_expsym_cmds_CXX='tpldir=Template.dir~
  12078. rm -rf $tpldir~
  12079. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  12080. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  12081. ;;
  12082. *) # Version 6 will use weak symbols
  12083. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  12084. 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'
  12085. ;;
  12086. esac
  12087. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  12088. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  12089. 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'
  12090. ;;
  12091. cxx*)
  12092. # Compaq C++
  12093. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12094. 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'
  12095. runpath_var=LD_RUN_PATH
  12096. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  12097. hardcode_libdir_separator_CXX=:
  12098. # Commands to make compiler produce verbose output that lists
  12099. # what "hidden" libraries, object files and flags are used when
  12100. # linking a shared library.
  12101. #
  12102. # There doesn't appear to be a way to prevent this compiler from
  12103. # explicitly linking system object files so we need to strip them
  12104. # from the output so that they don't get included in the library
  12105. # dependencies.
  12106. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
  12107. ;;
  12108. xl*)
  12109. # IBM XL 8.0 on PPC, with GNU ld
  12110. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  12111. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  12112. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12113. if test "x$supports_anon_versioning" = xyes; then
  12114. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  12115. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  12116. echo "local: *; };" >> $output_objdir/$libname.ver~
  12117. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  12118. fi
  12119. ;;
  12120. *)
  12121. case `$CC -V 2>&1 | sed 5q` in
  12122. *Sun\ C*)
  12123. # Sun C++ 5.9
  12124. no_undefined_flag_CXX=' -zdefs'
  12125. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12126. archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
  12127. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12128. whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  12129. compiler_needs_object_CXX=yes
  12130. # Not sure whether something based on
  12131. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  12132. # would be better.
  12133. output_verbose_link_cmd='echo'
  12134. # Archives containing C++ object files must be created using
  12135. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12136. # necessary to make sure instantiated templates are included
  12137. # in the archive.
  12138. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12139. ;;
  12140. esac
  12141. ;;
  12142. esac
  12143. ;;
  12144. lynxos*)
  12145. # FIXME: insert proper C++ library support
  12146. ld_shlibs_CXX=no
  12147. ;;
  12148. m88k*)
  12149. # FIXME: insert proper C++ library support
  12150. ld_shlibs_CXX=no
  12151. ;;
  12152. mvs*)
  12153. case $cc_basename in
  12154. cxx*)
  12155. # FIXME: insert proper C++ library support
  12156. ld_shlibs_CXX=no
  12157. ;;
  12158. *)
  12159. # FIXME: insert proper C++ library support
  12160. ld_shlibs_CXX=no
  12161. ;;
  12162. esac
  12163. ;;
  12164. netbsd*)
  12165. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12166. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  12167. wlarc=
  12168. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12169. hardcode_direct_CXX=yes
  12170. hardcode_shlibpath_var_CXX=no
  12171. fi
  12172. # Workaround some broken pre-1.5 toolchains
  12173. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  12174. ;;
  12175. *nto* | *qnx*)
  12176. ld_shlibs_CXX=yes
  12177. ;;
  12178. openbsd2*)
  12179. # C++ shared libraries are fairly broken
  12180. ld_shlibs_CXX=no
  12181. ;;
  12182. openbsd*)
  12183. if test -f /usr/libexec/ld.so; then
  12184. hardcode_direct_CXX=yes
  12185. hardcode_shlibpath_var_CXX=no
  12186. hardcode_direct_absolute_CXX=yes
  12187. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12188. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  12189. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12190. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  12191. export_dynamic_flag_spec_CXX='${wl}-E'
  12192. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  12193. fi
  12194. output_verbose_link_cmd=echo
  12195. else
  12196. ld_shlibs_CXX=no
  12197. fi
  12198. ;;
  12199. osf3* | osf4* | osf5*)
  12200. case $cc_basename in
  12201. KCC*)
  12202. # Kuck and Associates, Inc. (KAI) C++ Compiler
  12203. # KCC will only create a shared library if the output file
  12204. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  12205. # to its proper name (with version) after linking.
  12206. 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'
  12207. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  12208. hardcode_libdir_separator_CXX=:
  12209. # Archives containing C++ object files must be created using
  12210. # the KAI C++ compiler.
  12211. case $host in
  12212. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  12213. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  12214. esac
  12215. ;;
  12216. RCC*)
  12217. # Rational C++ 2.4.1
  12218. # FIXME: insert proper C++ library support
  12219. ld_shlibs_CXX=no
  12220. ;;
  12221. cxx*)
  12222. case $host in
  12223. osf3*)
  12224. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  12225. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  12226. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  12227. ;;
  12228. *)
  12229. allow_undefined_flag_CXX=' -expect_unresolved \*'
  12230. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  12231. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  12232. echo "-hidden">> $lib.exp~
  12233. $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
  12234. $RM $lib.exp'
  12235. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  12236. ;;
  12237. esac
  12238. hardcode_libdir_separator_CXX=:
  12239. # Commands to make compiler produce verbose output that lists
  12240. # what "hidden" libraries, object files and flags are used when
  12241. # linking a shared library.
  12242. #
  12243. # There doesn't appear to be a way to prevent this compiler from
  12244. # explicitly linking system object files so we need to strip them
  12245. # from the output so that they don't get included in the library
  12246. # dependencies.
  12247. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
  12248. ;;
  12249. *)
  12250. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  12251. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  12252. case $host in
  12253. osf3*)
  12254. 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 "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  12255. ;;
  12256. *)
  12257. 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" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  12258. ;;
  12259. esac
  12260. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  12261. hardcode_libdir_separator_CXX=:
  12262. # Commands to make compiler produce verbose output that lists
  12263. # what "hidden" libraries, object files and flags are used when
  12264. # linking a shared library.
  12265. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  12266. else
  12267. # FIXME: insert proper C++ library support
  12268. ld_shlibs_CXX=no
  12269. fi
  12270. ;;
  12271. esac
  12272. ;;
  12273. psos*)
  12274. # FIXME: insert proper C++ library support
  12275. ld_shlibs_CXX=no
  12276. ;;
  12277. sunos4*)
  12278. case $cc_basename in
  12279. CC*)
  12280. # Sun C++ 4.x
  12281. # FIXME: insert proper C++ library support
  12282. ld_shlibs_CXX=no
  12283. ;;
  12284. lcc*)
  12285. # Lucid
  12286. # FIXME: insert proper C++ library support
  12287. ld_shlibs_CXX=no
  12288. ;;
  12289. *)
  12290. # FIXME: insert proper C++ library support
  12291. ld_shlibs_CXX=no
  12292. ;;
  12293. esac
  12294. ;;
  12295. solaris*)
  12296. case $cc_basename in
  12297. CC*)
  12298. # Sun C++ 4.2, 5.x and Centerline C++
  12299. archive_cmds_need_lc_CXX=yes
  12300. no_undefined_flag_CXX=' -zdefs'
  12301. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12302. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12303. $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'
  12304. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12305. hardcode_shlibpath_var_CXX=no
  12306. case $host_os in
  12307. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12308. *)
  12309. # The compiler driver will combine and reorder linker options,
  12310. # but understands `-z linker_flag'.
  12311. # Supported since Solaris 2.6 (maybe 2.5.1?)
  12312. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  12313. ;;
  12314. esac
  12315. link_all_deplibs_CXX=yes
  12316. output_verbose_link_cmd='echo'
  12317. # Archives containing C++ object files must be created using
  12318. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12319. # necessary to make sure instantiated templates are included
  12320. # in the archive.
  12321. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12322. ;;
  12323. gcx*)
  12324. # Green Hills C++ Compiler
  12325. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12326. # The C++ compiler must be used to create the archive.
  12327. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  12328. ;;
  12329. *)
  12330. # GNU C++ compiler with Solaris linker
  12331. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  12332. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  12333. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  12334. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12335. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12336. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12337. # Commands to make compiler produce verbose output that lists
  12338. # what "hidden" libraries, object files and flags are used when
  12339. # linking a shared library.
  12340. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  12341. else
  12342. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  12343. # platform.
  12344. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12345. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12346. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12347. # Commands to make compiler produce verbose output that lists
  12348. # what "hidden" libraries, object files and flags are used when
  12349. # linking a shared library.
  12350. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  12351. fi
  12352. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  12353. case $host_os in
  12354. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12355. *)
  12356. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  12357. ;;
  12358. esac
  12359. fi
  12360. ;;
  12361. esac
  12362. ;;
  12363. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  12364. no_undefined_flag_CXX='${wl}-z,text'
  12365. archive_cmds_need_lc_CXX=no
  12366. hardcode_shlibpath_var_CXX=no
  12367. runpath_var='LD_RUN_PATH'
  12368. case $cc_basename in
  12369. CC*)
  12370. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12371. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12372. ;;
  12373. *)
  12374. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12375. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12376. ;;
  12377. esac
  12378. ;;
  12379. sysv5* | sco3.2v5* | sco5v6*)
  12380. # Note: We can NOT use -z defs as we might desire, because we do not
  12381. # link with -lc, and that would cause any symbols used from libc to
  12382. # always be unresolved, which means just about no library would
  12383. # ever link correctly. If we're not using GNU ld we use -z text
  12384. # though, which does catch some bad symbols but isn't as heavy-handed
  12385. # as -z defs.
  12386. no_undefined_flag_CXX='${wl}-z,text'
  12387. allow_undefined_flag_CXX='${wl}-z,nodefs'
  12388. archive_cmds_need_lc_CXX=no
  12389. hardcode_shlibpath_var_CXX=no
  12390. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  12391. hardcode_libdir_separator_CXX=':'
  12392. link_all_deplibs_CXX=yes
  12393. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  12394. runpath_var='LD_RUN_PATH'
  12395. case $cc_basename in
  12396. CC*)
  12397. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12398. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12399. ;;
  12400. *)
  12401. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12402. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12403. ;;
  12404. esac
  12405. ;;
  12406. tandem*)
  12407. case $cc_basename in
  12408. NCC*)
  12409. # NonStop-UX NCC 3.20
  12410. # FIXME: insert proper C++ library support
  12411. ld_shlibs_CXX=no
  12412. ;;
  12413. *)
  12414. # FIXME: insert proper C++ library support
  12415. ld_shlibs_CXX=no
  12416. ;;
  12417. esac
  12418. ;;
  12419. vxworks*)
  12420. # FIXME: insert proper C++ library support
  12421. ld_shlibs_CXX=no
  12422. ;;
  12423. *)
  12424. # FIXME: insert proper C++ library support
  12425. ld_shlibs_CXX=no
  12426. ;;
  12427. esac
  12428. { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  12429. $as_echo "$ld_shlibs_CXX" >&6; }
  12430. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12431. GCC_CXX="$GXX"
  12432. LD_CXX="$LD"
  12433. ## CAVEAT EMPTOR:
  12434. ## There is no encapsulation within the following macros, do not change
  12435. ## the running order or otherwise move them around unless you know exactly
  12436. ## what you are doing...
  12437. # Dependencies to place before and after the object being linked:
  12438. predep_objects_CXX=
  12439. postdep_objects_CXX=
  12440. predeps_CXX=
  12441. postdeps_CXX=
  12442. compiler_lib_search_path_CXX=
  12443. cat > conftest.$ac_ext <<_LT_EOF
  12444. class Foo
  12445. {
  12446. public:
  12447. Foo (void) { a = 0; }
  12448. private:
  12449. int a;
  12450. };
  12451. _LT_EOF
  12452. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12453. (eval $ac_compile) 2>&5
  12454. ac_status=$?
  12455. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12456. (exit $ac_status); }; then
  12457. # Parse the compiler output and extract the necessary
  12458. # objects, libraries and library flags.
  12459. # Sentinel used to keep track of whether or not we are before
  12460. # the conftest object file.
  12461. pre_test_object_deps_done=no
  12462. for p in `eval "$output_verbose_link_cmd"`; do
  12463. case $p in
  12464. -L* | -R* | -l*)
  12465. # Some compilers place space between "-{L,R}" and the path.
  12466. # Remove the space.
  12467. if test $p = "-L" ||
  12468. test $p = "-R"; then
  12469. prev=$p
  12470. continue
  12471. else
  12472. prev=
  12473. fi
  12474. if test "$pre_test_object_deps_done" = no; then
  12475. case $p in
  12476. -L* | -R*)
  12477. # Internal compiler library paths should come after those
  12478. # provided the user. The postdeps already come after the
  12479. # user supplied libs so there is no need to process them.
  12480. if test -z "$compiler_lib_search_path_CXX"; then
  12481. compiler_lib_search_path_CXX="${prev}${p}"
  12482. else
  12483. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  12484. fi
  12485. ;;
  12486. # The "-l" case would never come before the object being
  12487. # linked, so don't bother handling this case.
  12488. esac
  12489. else
  12490. if test -z "$postdeps_CXX"; then
  12491. postdeps_CXX="${prev}${p}"
  12492. else
  12493. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  12494. fi
  12495. fi
  12496. ;;
  12497. *.$objext)
  12498. # This assumes that the test object file only shows up
  12499. # once in the compiler output.
  12500. if test "$p" = "conftest.$objext"; then
  12501. pre_test_object_deps_done=yes
  12502. continue
  12503. fi
  12504. if test "$pre_test_object_deps_done" = no; then
  12505. if test -z "$predep_objects_CXX"; then
  12506. predep_objects_CXX="$p"
  12507. else
  12508. predep_objects_CXX="$predep_objects_CXX $p"
  12509. fi
  12510. else
  12511. if test -z "$postdep_objects_CXX"; then
  12512. postdep_objects_CXX="$p"
  12513. else
  12514. postdep_objects_CXX="$postdep_objects_CXX $p"
  12515. fi
  12516. fi
  12517. ;;
  12518. *) ;; # Ignore the rest.
  12519. esac
  12520. done
  12521. # Clean up.
  12522. rm -f a.out a.exe
  12523. else
  12524. echo "libtool.m4: error: problem compiling CXX test program"
  12525. fi
  12526. $RM -f confest.$objext
  12527. # PORTME: override above test on systems where it is broken
  12528. case $host_os in
  12529. interix[3-9]*)
  12530. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12531. # hack all around it, let's just trust "g++" to DTRT.
  12532. predep_objects_CXX=
  12533. postdep_objects_CXX=
  12534. postdeps_CXX=
  12535. ;;
  12536. linux*)
  12537. case `$CC -V 2>&1 | sed 5q` in
  12538. *Sun\ C*)
  12539. # Sun C++ 5.9
  12540. # The more standards-conforming stlport4 library is
  12541. # incompatible with the Cstd library. Avoid specifying
  12542. # it if it's in CXXFLAGS. Ignore libCrun as
  12543. # -library=stlport4 depends on it.
  12544. case " $CXX $CXXFLAGS " in
  12545. *" -library=stlport4 "*)
  12546. solaris_use_stlport4=yes
  12547. ;;
  12548. esac
  12549. if test "$solaris_use_stlport4" != yes; then
  12550. postdeps_CXX='-library=Cstd -library=Crun'
  12551. fi
  12552. ;;
  12553. esac
  12554. ;;
  12555. solaris*)
  12556. case $cc_basename in
  12557. CC*)
  12558. # The more standards-conforming stlport4 library is
  12559. # incompatible with the Cstd library. Avoid specifying
  12560. # it if it's in CXXFLAGS. Ignore libCrun as
  12561. # -library=stlport4 depends on it.
  12562. case " $CXX $CXXFLAGS " in
  12563. *" -library=stlport4 "*)
  12564. solaris_use_stlport4=yes
  12565. ;;
  12566. esac
  12567. # Adding this requires a known-good setup of shared libraries for
  12568. # Sun compiler versions before 5.6, else PIC objects from an old
  12569. # archive will be linked into the output, leading to subtle bugs.
  12570. if test "$solaris_use_stlport4" != yes; then
  12571. postdeps_CXX='-library=Cstd -library=Crun'
  12572. fi
  12573. ;;
  12574. esac
  12575. ;;
  12576. esac
  12577. case " $postdeps_CXX " in
  12578. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12579. esac
  12580. compiler_lib_search_dirs_CXX=
  12581. if test -n "${compiler_lib_search_path_CXX}"; then
  12582. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12583. fi
  12584. lt_prog_compiler_wl_CXX=
  12585. lt_prog_compiler_pic_CXX=
  12586. lt_prog_compiler_static_CXX=
  12587. { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  12588. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12589. # C++ specific cases for pic, static, wl, etc.
  12590. if test "$GXX" = yes; then
  12591. lt_prog_compiler_wl_CXX='-Wl,'
  12592. lt_prog_compiler_static_CXX='-static'
  12593. case $host_os in
  12594. aix*)
  12595. # All AIX code is PIC.
  12596. if test "$host_cpu" = ia64; then
  12597. # AIX 5 now supports IA64 processor
  12598. lt_prog_compiler_static_CXX='-Bstatic'
  12599. fi
  12600. ;;
  12601. amigaos*)
  12602. case $host_cpu in
  12603. powerpc)
  12604. # see comment about AmigaOS4 .so support
  12605. lt_prog_compiler_pic_CXX='-fPIC'
  12606. ;;
  12607. m68k)
  12608. # FIXME: we need at least 68020 code to build shared libraries, but
  12609. # adding the `-m68020' flag to GCC prevents building anything better,
  12610. # like `-m68040'.
  12611. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12612. ;;
  12613. esac
  12614. ;;
  12615. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12616. # PIC is the default for these OSes.
  12617. ;;
  12618. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12619. # This hack is so that the source file can tell whether it is being
  12620. # built for inclusion in a dll (and should export symbols for example).
  12621. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12622. # (--disable-auto-import) libraries
  12623. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12624. ;;
  12625. darwin* | rhapsody*)
  12626. # PIC is the default on this platform
  12627. # Common symbols not allowed in MH_DYLIB files
  12628. lt_prog_compiler_pic_CXX='-fno-common'
  12629. ;;
  12630. *djgpp*)
  12631. # DJGPP does not support shared libraries at all
  12632. lt_prog_compiler_pic_CXX=
  12633. ;;
  12634. interix[3-9]*)
  12635. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12636. # Instead, we relocate shared libraries at runtime.
  12637. ;;
  12638. sysv4*MP*)
  12639. if test -d /usr/nec; then
  12640. lt_prog_compiler_pic_CXX=-Kconform_pic
  12641. fi
  12642. ;;
  12643. hpux*)
  12644. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12645. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12646. # sets the default TLS model and affects inlining.
  12647. case $host_cpu in
  12648. hppa*64*)
  12649. ;;
  12650. *)
  12651. lt_prog_compiler_pic_CXX='-fPIC'
  12652. ;;
  12653. esac
  12654. ;;
  12655. *qnx* | *nto*)
  12656. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12657. # it will coredump.
  12658. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12659. ;;
  12660. *)
  12661. lt_prog_compiler_pic_CXX='-fPIC'
  12662. ;;
  12663. esac
  12664. else
  12665. case $host_os in
  12666. aix[4-9]*)
  12667. # All AIX code is PIC.
  12668. if test "$host_cpu" = ia64; then
  12669. # AIX 5 now supports IA64 processor
  12670. lt_prog_compiler_static_CXX='-Bstatic'
  12671. else
  12672. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12673. fi
  12674. ;;
  12675. chorus*)
  12676. case $cc_basename in
  12677. cxch68*)
  12678. # Green Hills C++ Compiler
  12679. # _LT_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"
  12680. ;;
  12681. esac
  12682. ;;
  12683. dgux*)
  12684. case $cc_basename in
  12685. ec++*)
  12686. lt_prog_compiler_pic_CXX='-KPIC'
  12687. ;;
  12688. ghcx*)
  12689. # Green Hills C++ Compiler
  12690. lt_prog_compiler_pic_CXX='-pic'
  12691. ;;
  12692. *)
  12693. ;;
  12694. esac
  12695. ;;
  12696. freebsd* | dragonfly*)
  12697. # FreeBSD uses GNU C++
  12698. ;;
  12699. hpux9* | hpux10* | hpux11*)
  12700. case $cc_basename in
  12701. CC*)
  12702. lt_prog_compiler_wl_CXX='-Wl,'
  12703. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12704. if test "$host_cpu" != ia64; then
  12705. lt_prog_compiler_pic_CXX='+Z'
  12706. fi
  12707. ;;
  12708. aCC*)
  12709. lt_prog_compiler_wl_CXX='-Wl,'
  12710. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12711. case $host_cpu in
  12712. hppa*64*|ia64*)
  12713. # +Z the default
  12714. ;;
  12715. *)
  12716. lt_prog_compiler_pic_CXX='+Z'
  12717. ;;
  12718. esac
  12719. ;;
  12720. *)
  12721. ;;
  12722. esac
  12723. ;;
  12724. interix*)
  12725. # This is c89, which is MS Visual C++ (no shared libs)
  12726. # Anyone wants to do a port?
  12727. ;;
  12728. irix5* | irix6* | nonstopux*)
  12729. case $cc_basename in
  12730. CC*)
  12731. lt_prog_compiler_wl_CXX='-Wl,'
  12732. lt_prog_compiler_static_CXX='-non_shared'
  12733. # CC pic flag -KPIC is the default.
  12734. ;;
  12735. *)
  12736. ;;
  12737. esac
  12738. ;;
  12739. linux* | k*bsd*-gnu)
  12740. case $cc_basename in
  12741. KCC*)
  12742. # KAI C++ Compiler
  12743. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12744. lt_prog_compiler_pic_CXX='-fPIC'
  12745. ;;
  12746. ecpc* )
  12747. # old Intel C++ for x86_64 which still supported -KPIC.
  12748. lt_prog_compiler_wl_CXX='-Wl,'
  12749. lt_prog_compiler_pic_CXX='-KPIC'
  12750. lt_prog_compiler_static_CXX='-static'
  12751. ;;
  12752. icpc* )
  12753. # Intel C++, used to be incompatible with GCC.
  12754. # ICC 10 doesn't accept -KPIC any more.
  12755. lt_prog_compiler_wl_CXX='-Wl,'
  12756. lt_prog_compiler_pic_CXX='-fPIC'
  12757. lt_prog_compiler_static_CXX='-static'
  12758. ;;
  12759. pgCC* | pgcpp*)
  12760. # Portland Group C++ compiler
  12761. lt_prog_compiler_wl_CXX='-Wl,'
  12762. lt_prog_compiler_pic_CXX='-fpic'
  12763. lt_prog_compiler_static_CXX='-Bstatic'
  12764. ;;
  12765. cxx*)
  12766. # Compaq C++
  12767. # Make sure the PIC flag is empty. It appears that all Alpha
  12768. # Linux and Compaq Tru64 Unix objects are PIC.
  12769. lt_prog_compiler_pic_CXX=
  12770. lt_prog_compiler_static_CXX='-non_shared'
  12771. ;;
  12772. xlc* | xlC*)
  12773. # IBM XL 8.0 on PPC
  12774. lt_prog_compiler_wl_CXX='-Wl,'
  12775. lt_prog_compiler_pic_CXX='-qpic'
  12776. lt_prog_compiler_static_CXX='-qstaticlink'
  12777. ;;
  12778. *)
  12779. case `$CC -V 2>&1 | sed 5q` in
  12780. *Sun\ C*)
  12781. # Sun C++ 5.9
  12782. lt_prog_compiler_pic_CXX='-KPIC'
  12783. lt_prog_compiler_static_CXX='-Bstatic'
  12784. lt_prog_compiler_wl_CXX='-Qoption ld '
  12785. ;;
  12786. esac
  12787. ;;
  12788. esac
  12789. ;;
  12790. lynxos*)
  12791. ;;
  12792. m88k*)
  12793. ;;
  12794. mvs*)
  12795. case $cc_basename in
  12796. cxx*)
  12797. lt_prog_compiler_pic_CXX='-W c,exportall'
  12798. ;;
  12799. *)
  12800. ;;
  12801. esac
  12802. ;;
  12803. netbsd*)
  12804. ;;
  12805. *qnx* | *nto*)
  12806. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12807. # it will coredump.
  12808. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12809. ;;
  12810. osf3* | osf4* | osf5*)
  12811. case $cc_basename in
  12812. KCC*)
  12813. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12814. ;;
  12815. RCC*)
  12816. # Rational C++ 2.4.1
  12817. lt_prog_compiler_pic_CXX='-pic'
  12818. ;;
  12819. cxx*)
  12820. # Digital/Compaq C++
  12821. lt_prog_compiler_wl_CXX='-Wl,'
  12822. # Make sure the PIC flag is empty. It appears that all Alpha
  12823. # Linux and Compaq Tru64 Unix objects are PIC.
  12824. lt_prog_compiler_pic_CXX=
  12825. lt_prog_compiler_static_CXX='-non_shared'
  12826. ;;
  12827. *)
  12828. ;;
  12829. esac
  12830. ;;
  12831. psos*)
  12832. ;;
  12833. solaris*)
  12834. case $cc_basename in
  12835. CC*)
  12836. # Sun C++ 4.2, 5.x and Centerline C++
  12837. lt_prog_compiler_pic_CXX='-KPIC'
  12838. lt_prog_compiler_static_CXX='-Bstatic'
  12839. lt_prog_compiler_wl_CXX='-Qoption ld '
  12840. ;;
  12841. gcx*)
  12842. # Green Hills C++ Compiler
  12843. lt_prog_compiler_pic_CXX='-PIC'
  12844. ;;
  12845. *)
  12846. ;;
  12847. esac
  12848. ;;
  12849. sunos4*)
  12850. case $cc_basename in
  12851. CC*)
  12852. # Sun C++ 4.x
  12853. lt_prog_compiler_pic_CXX='-pic'
  12854. lt_prog_compiler_static_CXX='-Bstatic'
  12855. ;;
  12856. lcc*)
  12857. # Lucid
  12858. lt_prog_compiler_pic_CXX='-pic'
  12859. ;;
  12860. *)
  12861. ;;
  12862. esac
  12863. ;;
  12864. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12865. case $cc_basename in
  12866. CC*)
  12867. lt_prog_compiler_wl_CXX='-Wl,'
  12868. lt_prog_compiler_pic_CXX='-KPIC'
  12869. lt_prog_compiler_static_CXX='-Bstatic'
  12870. ;;
  12871. esac
  12872. ;;
  12873. tandem*)
  12874. case $cc_basename in
  12875. NCC*)
  12876. # NonStop-UX NCC 3.20
  12877. lt_prog_compiler_pic_CXX='-KPIC'
  12878. ;;
  12879. *)
  12880. ;;
  12881. esac
  12882. ;;
  12883. vxworks*)
  12884. ;;
  12885. *)
  12886. lt_prog_compiler_can_build_shared_CXX=no
  12887. ;;
  12888. esac
  12889. fi
  12890. case $host_os in
  12891. # For platforms which do not support PIC, -DPIC is meaningless:
  12892. *djgpp*)
  12893. lt_prog_compiler_pic_CXX=
  12894. ;;
  12895. *)
  12896. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12897. ;;
  12898. esac
  12899. { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  12900. $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
  12901. #
  12902. # Check to make sure the PIC flag actually works.
  12903. #
  12904. if test -n "$lt_prog_compiler_pic_CXX"; then
  12905. { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12906. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12907. if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
  12908. $as_echo_n "(cached) " >&6
  12909. else
  12910. lt_cv_prog_compiler_pic_works_CXX=no
  12911. ac_outfile=conftest.$ac_objext
  12912. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12913. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12914. # Insert the option either (1) after the last *FLAGS variable, or
  12915. # (2) before a word containing "conftest.", or (3) at the end.
  12916. # Note that $ac_compile itself does not contain backslashes and begins
  12917. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12918. # The option is referenced via a variable to avoid confusing sed.
  12919. lt_compile=`echo "$ac_compile" | $SED \
  12920. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12921. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12922. -e 's:$: $lt_compiler_flag:'`
  12923. (eval echo "\"\$as_me:14923: $lt_compile\"" >&5)
  12924. (eval "$lt_compile" 2>conftest.err)
  12925. ac_status=$?
  12926. cat conftest.err >&5
  12927. echo "$as_me:14927: \$? = $ac_status" >&5
  12928. if (exit $ac_status) && test -s "$ac_outfile"; then
  12929. # The compiler can only warn and ignore the option if not recognized
  12930. # So say no if there are warnings other than the usual output.
  12931. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  12932. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12933. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12934. lt_cv_prog_compiler_pic_works_CXX=yes
  12935. fi
  12936. fi
  12937. $RM conftest*
  12938. fi
  12939. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12940. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12941. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12942. case $lt_prog_compiler_pic_CXX in
  12943. "" | " "*) ;;
  12944. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12945. esac
  12946. else
  12947. lt_prog_compiler_pic_CXX=
  12948. lt_prog_compiler_can_build_shared_CXX=no
  12949. fi
  12950. fi
  12951. #
  12952. # Check to make sure the static flag actually works.
  12953. #
  12954. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12955. { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12956. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12957. if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
  12958. $as_echo_n "(cached) " >&6
  12959. else
  12960. lt_cv_prog_compiler_static_works_CXX=no
  12961. save_LDFLAGS="$LDFLAGS"
  12962. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12963. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12964. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12965. # The linker can only warn and ignore the option if not recognized
  12966. # So say no if there are warnings
  12967. if test -s conftest.err; then
  12968. # Append any errors to the config.log.
  12969. cat conftest.err 1>&5
  12970. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  12971. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12972. if diff conftest.exp conftest.er2 >/dev/null; then
  12973. lt_cv_prog_compiler_static_works_CXX=yes
  12974. fi
  12975. else
  12976. lt_cv_prog_compiler_static_works_CXX=yes
  12977. fi
  12978. fi
  12979. $RM -r conftest*
  12980. LDFLAGS="$save_LDFLAGS"
  12981. fi
  12982. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12983. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12984. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12985. :
  12986. else
  12987. lt_prog_compiler_static_CXX=
  12988. fi
  12989. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  12990. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12991. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  12992. $as_echo_n "(cached) " >&6
  12993. else
  12994. lt_cv_prog_compiler_c_o_CXX=no
  12995. $RM -r conftest 2>/dev/null
  12996. mkdir conftest
  12997. cd conftest
  12998. mkdir out
  12999. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13000. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13001. # Insert the option either (1) after the last *FLAGS variable, or
  13002. # (2) before a word containing "conftest.", or (3) at the end.
  13003. # Note that $ac_compile itself does not contain backslashes and begins
  13004. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13005. lt_compile=`echo "$ac_compile" | $SED \
  13006. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13007. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13008. -e 's:$: $lt_compiler_flag:'`
  13009. (eval echo "\"\$as_me:15022: $lt_compile\"" >&5)
  13010. (eval "$lt_compile" 2>out/conftest.err)
  13011. ac_status=$?
  13012. cat out/conftest.err >&5
  13013. echo "$as_me:15026: \$? = $ac_status" >&5
  13014. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13015. then
  13016. # The compiler can only warn and ignore the option if not recognized
  13017. # So say no if there are warnings
  13018. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  13019. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13020. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13021. lt_cv_prog_compiler_c_o_CXX=yes
  13022. fi
  13023. fi
  13024. chmod u+w . 2>&5
  13025. $RM conftest*
  13026. # SGI C++ compiler will create directory out/ii_files/ for
  13027. # template instantiation
  13028. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  13029. $RM out/* && rmdir out
  13030. cd ..
  13031. $RM -r conftest
  13032. $RM conftest*
  13033. fi
  13034. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  13035. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  13036. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  13037. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  13038. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  13039. $as_echo_n "(cached) " >&6
  13040. else
  13041. lt_cv_prog_compiler_c_o_CXX=no
  13042. $RM -r conftest 2>/dev/null
  13043. mkdir conftest
  13044. cd conftest
  13045. mkdir out
  13046. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13047. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13048. # Insert the option either (1) after the last *FLAGS variable, or
  13049. # (2) before a word containing "conftest.", or (3) at the end.
  13050. # Note that $ac_compile itself does not contain backslashes and begins
  13051. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13052. lt_compile=`echo "$ac_compile" | $SED \
  13053. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13054. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13055. -e 's:$: $lt_compiler_flag:'`
  13056. (eval echo "\"\$as_me:15074: $lt_compile\"" >&5)
  13057. (eval "$lt_compile" 2>out/conftest.err)
  13058. ac_status=$?
  13059. cat out/conftest.err >&5
  13060. echo "$as_me:15078: \$? = $ac_status" >&5
  13061. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13062. then
  13063. # The compiler can only warn and ignore the option if not recognized
  13064. # So say no if there are warnings
  13065. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  13066. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13067. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13068. lt_cv_prog_compiler_c_o_CXX=yes
  13069. fi
  13070. fi
  13071. chmod u+w . 2>&5
  13072. $RM conftest*
  13073. # SGI C++ compiler will create directory out/ii_files/ for
  13074. # template instantiation
  13075. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  13076. $RM out/* && rmdir out
  13077. cd ..
  13078. $RM -r conftest
  13079. $RM conftest*
  13080. fi
  13081. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  13082. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  13083. hard_links="nottested"
  13084. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  13085. # do not overwrite the value of need_locks provided by the user
  13086. { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  13087. $as_echo_n "checking if we can lock with hard links... " >&6; }
  13088. hard_links=yes
  13089. $RM conftest*
  13090. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13091. touch conftest.a
  13092. ln conftest.a conftest.b 2>&5 || hard_links=no
  13093. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13094. { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
  13095. $as_echo "$hard_links" >&6; }
  13096. if test "$hard_links" = no; then
  13097. { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  13098. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  13099. need_locks=warn
  13100. fi
  13101. else
  13102. need_locks=no
  13103. fi
  13104. { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  13105. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  13106. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13107. case $host_os in
  13108. aix[4-9]*)
  13109. # If we're using GNU nm, then we don't want the "-C" option.
  13110. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  13111. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  13112. 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'
  13113. else
  13114. 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'
  13115. fi
  13116. ;;
  13117. pw32*)
  13118. export_symbols_cmds_CXX="$ltdll_cmds"
  13119. ;;
  13120. cygwin* | mingw* | cegcc*)
  13121. 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'
  13122. ;;
  13123. *)
  13124. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13125. ;;
  13126. esac
  13127. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  13128. { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  13129. $as_echo "$ld_shlibs_CXX" >&6; }
  13130. test "$ld_shlibs_CXX" = no && can_build_shared=no
  13131. with_gnu_ld_CXX=$with_gnu_ld
  13132. #
  13133. # Do we need to explicitly link libc?
  13134. #
  13135. case "x$archive_cmds_need_lc_CXX" in
  13136. x|xyes)
  13137. # Assume -lc should be added
  13138. archive_cmds_need_lc_CXX=yes
  13139. if test "$enable_shared" = yes && test "$GCC" = yes; then
  13140. case $archive_cmds_CXX in
  13141. *'~'*)
  13142. # FIXME: we may have to deal with multi-command sequences.
  13143. ;;
  13144. '$CC '*)
  13145. # Test whether the compiler implicitly links with -lc since on some
  13146. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  13147. # to ld, don't add -lc before -lgcc.
  13148. { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  13149. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  13150. $RM conftest*
  13151. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13152. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13153. (eval $ac_compile) 2>&5
  13154. ac_status=$?
  13155. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13156. (exit $ac_status); } 2>conftest.err; then
  13157. soname=conftest
  13158. lib=conftest
  13159. libobjs=conftest.$ac_objext
  13160. deplibs=
  13161. wl=$lt_prog_compiler_wl_CXX
  13162. pic_flag=$lt_prog_compiler_pic_CXX
  13163. compiler_flags=-v
  13164. linker_flags=-v
  13165. verstring=
  13166. output_objdir=.
  13167. libname=conftest
  13168. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  13169. allow_undefined_flag_CXX=
  13170. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
  13171. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  13172. ac_status=$?
  13173. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13174. (exit $ac_status); }
  13175. then
  13176. archive_cmds_need_lc_CXX=no
  13177. else
  13178. archive_cmds_need_lc_CXX=yes
  13179. fi
  13180. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  13181. else
  13182. cat conftest.err 1>&5
  13183. fi
  13184. $RM conftest*
  13185. { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  13186. $as_echo "$archive_cmds_need_lc_CXX" >&6; }
  13187. ;;
  13188. esac
  13189. fi
  13190. ;;
  13191. esac
  13192. { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  13193. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  13194. library_names_spec=
  13195. libname_spec='lib$name'
  13196. soname_spec=
  13197. shrext_cmds=".so"
  13198. postinstall_cmds=
  13199. postuninstall_cmds=
  13200. finish_cmds=
  13201. finish_eval=
  13202. shlibpath_var=
  13203. shlibpath_overrides_runpath=unknown
  13204. version_type=none
  13205. dynamic_linker="$host_os ld.so"
  13206. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  13207. need_lib_prefix=unknown
  13208. hardcode_into_libs=no
  13209. # when you set need_version to no, make sure it does not cause -set_version
  13210. # flags to be left without arguments
  13211. need_version=unknown
  13212. case $host_os in
  13213. aix3*)
  13214. version_type=linux
  13215. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  13216. shlibpath_var=LIBPATH
  13217. # AIX 3 has no versioning support, so we append a major version to the name.
  13218. soname_spec='${libname}${release}${shared_ext}$major'
  13219. ;;
  13220. aix[4-9]*)
  13221. version_type=linux
  13222. need_lib_prefix=no
  13223. need_version=no
  13224. hardcode_into_libs=yes
  13225. if test "$host_cpu" = ia64; then
  13226. # AIX 5 supports IA64
  13227. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  13228. shlibpath_var=LD_LIBRARY_PATH
  13229. else
  13230. # With GCC up to 2.95.x, collect2 would create an import file
  13231. # for dependence libraries. The import file would start with
  13232. # the line `#! .'. This would cause the generated library to
  13233. # depend on `.', always an invalid library. This was fixed in
  13234. # development snapshots of GCC prior to 3.0.
  13235. case $host_os in
  13236. aix4 | aix4.[01] | aix4.[01].*)
  13237. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  13238. echo ' yes '
  13239. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  13240. :
  13241. else
  13242. can_build_shared=no
  13243. fi
  13244. ;;
  13245. esac
  13246. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  13247. # soname into executable. Probably we can add versioning support to
  13248. # collect2, so additional links can be useful in future.
  13249. if test "$aix_use_runtimelinking" = yes; then
  13250. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  13251. # instead of lib<name>.a to let people know that these are not
  13252. # typical AIX shared libraries.
  13253. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13254. else
  13255. # We preserve .a as extension for shared libraries through AIX4.2
  13256. # and later when we are not doing run time linking.
  13257. library_names_spec='${libname}${release}.a $libname.a'
  13258. soname_spec='${libname}${release}${shared_ext}$major'
  13259. fi
  13260. shlibpath_var=LIBPATH
  13261. fi
  13262. ;;
  13263. amigaos*)
  13264. case $host_cpu in
  13265. powerpc)
  13266. # Since July 2007 AmigaOS4 officially supports .so libraries.
  13267. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  13268. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13269. ;;
  13270. m68k)
  13271. library_names_spec='$libname.ixlibrary $libname.a'
  13272. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13273. 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'
  13274. ;;
  13275. esac
  13276. ;;
  13277. beos*)
  13278. library_names_spec='${libname}${shared_ext}'
  13279. dynamic_linker="$host_os ld.so"
  13280. shlibpath_var=LIBRARY_PATH
  13281. ;;
  13282. bsdi[45]*)
  13283. version_type=linux
  13284. need_version=no
  13285. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13286. soname_spec='${libname}${release}${shared_ext}$major'
  13287. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13288. shlibpath_var=LD_LIBRARY_PATH
  13289. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13290. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13291. # the default ld.so.conf also contains /usr/contrib/lib and
  13292. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13293. # libtool to hard-code these into programs
  13294. ;;
  13295. cygwin* | mingw* | pw32* | cegcc*)
  13296. version_type=windows
  13297. shrext_cmds=".dll"
  13298. need_version=no
  13299. need_lib_prefix=no
  13300. case $GCC,$host_os in
  13301. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  13302. library_names_spec='$libname.dll.a'
  13303. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13304. postinstall_cmds='base_file=`basename \${file}`~
  13305. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13306. dldir=$destdir/`dirname \$dlpath`~
  13307. test -d \$dldir || mkdir -p \$dldir~
  13308. $install_prog $dir/$dlname \$dldir/$dlname~
  13309. chmod a+x \$dldir/$dlname~
  13310. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13311. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13312. fi'
  13313. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13314. dlpath=$dir/\$dldll~
  13315. $RM \$dlpath'
  13316. shlibpath_overrides_runpath=yes
  13317. case $host_os in
  13318. cygwin*)
  13319. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13320. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13321. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  13322. ;;
  13323. mingw* | cegcc*)
  13324. # MinGW DLLs use traditional 'lib' prefix
  13325. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13326. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  13327. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  13328. # It is most probably a Windows format PATH printed by
  13329. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  13330. # path with ; separators, and with drive letters. We can handle the
  13331. # drive letters (cygwin fileutils understands them), so leave them,
  13332. # especially as we might pass files found there to a mingw objdump,
  13333. # which wouldn't understand a cygwinified path. Ahh.
  13334. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13335. else
  13336. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13337. fi
  13338. ;;
  13339. pw32*)
  13340. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13341. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13342. ;;
  13343. esac
  13344. ;;
  13345. *)
  13346. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  13347. ;;
  13348. esac
  13349. dynamic_linker='Win32 ld.exe'
  13350. # FIXME: first we should search . and the directory the executable is in
  13351. shlibpath_var=PATH
  13352. ;;
  13353. darwin* | rhapsody*)
  13354. dynamic_linker="$host_os dyld"
  13355. version_type=darwin
  13356. need_lib_prefix=no
  13357. need_version=no
  13358. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  13359. soname_spec='${libname}${release}${major}$shared_ext'
  13360. shlibpath_overrides_runpath=yes
  13361. shlibpath_var=DYLD_LIBRARY_PATH
  13362. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13363. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13364. ;;
  13365. dgux*)
  13366. version_type=linux
  13367. need_lib_prefix=no
  13368. need_version=no
  13369. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  13370. soname_spec='${libname}${release}${shared_ext}$major'
  13371. shlibpath_var=LD_LIBRARY_PATH
  13372. ;;
  13373. freebsd1*)
  13374. dynamic_linker=no
  13375. ;;
  13376. freebsd* | dragonfly*)
  13377. # DragonFly does not have aout. When/if they implement a new
  13378. # versioning mechanism, adjust this.
  13379. if test -x /usr/bin/objformat; then
  13380. objformat=`/usr/bin/objformat`
  13381. else
  13382. case $host_os in
  13383. freebsd[123]*) objformat=aout ;;
  13384. *) objformat=elf ;;
  13385. esac
  13386. fi
  13387. version_type=freebsd-$objformat
  13388. case $version_type in
  13389. freebsd-elf*)
  13390. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13391. need_version=no
  13392. need_lib_prefix=no
  13393. ;;
  13394. freebsd-*)
  13395. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13396. need_version=yes
  13397. ;;
  13398. esac
  13399. shlibpath_var=LD_LIBRARY_PATH
  13400. case $host_os in
  13401. freebsd2*)
  13402. shlibpath_overrides_runpath=yes
  13403. ;;
  13404. freebsd3.[01]* | freebsdelf3.[01]*)
  13405. shlibpath_overrides_runpath=yes
  13406. hardcode_into_libs=yes
  13407. ;;
  13408. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13409. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13410. shlibpath_overrides_runpath=no
  13411. hardcode_into_libs=yes
  13412. ;;
  13413. *) # from 4.6 on, and DragonFly
  13414. shlibpath_overrides_runpath=yes
  13415. hardcode_into_libs=yes
  13416. ;;
  13417. esac
  13418. ;;
  13419. gnu*)
  13420. version_type=linux
  13421. need_lib_prefix=no
  13422. need_version=no
  13423. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13424. soname_spec='${libname}${release}${shared_ext}$major'
  13425. shlibpath_var=LD_LIBRARY_PATH
  13426. hardcode_into_libs=yes
  13427. ;;
  13428. hpux9* | hpux10* | hpux11*)
  13429. # Give a soname corresponding to the major version so that dld.sl refuses to
  13430. # link against other versions.
  13431. version_type=sunos
  13432. need_lib_prefix=no
  13433. need_version=no
  13434. case $host_cpu in
  13435. ia64*)
  13436. shrext_cmds='.so'
  13437. hardcode_into_libs=yes
  13438. dynamic_linker="$host_os dld.so"
  13439. shlibpath_var=LD_LIBRARY_PATH
  13440. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13441. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13442. soname_spec='${libname}${release}${shared_ext}$major'
  13443. if test "X$HPUX_IA64_MODE" = X32; then
  13444. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13445. else
  13446. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13447. fi
  13448. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13449. ;;
  13450. hppa*64*)
  13451. shrext_cmds='.sl'
  13452. hardcode_into_libs=yes
  13453. dynamic_linker="$host_os dld.sl"
  13454. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13455. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13456. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13457. soname_spec='${libname}${release}${shared_ext}$major'
  13458. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13459. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13460. ;;
  13461. *)
  13462. shrext_cmds='.sl'
  13463. dynamic_linker="$host_os dld.sl"
  13464. shlibpath_var=SHLIB_PATH
  13465. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13466. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13467. soname_spec='${libname}${release}${shared_ext}$major'
  13468. ;;
  13469. esac
  13470. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  13471. postinstall_cmds='chmod 555 $lib'
  13472. ;;
  13473. interix[3-9]*)
  13474. version_type=linux
  13475. need_lib_prefix=no
  13476. need_version=no
  13477. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13478. soname_spec='${libname}${release}${shared_ext}$major'
  13479. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13480. shlibpath_var=LD_LIBRARY_PATH
  13481. shlibpath_overrides_runpath=no
  13482. hardcode_into_libs=yes
  13483. ;;
  13484. irix5* | irix6* | nonstopux*)
  13485. case $host_os in
  13486. nonstopux*) version_type=nonstopux ;;
  13487. *)
  13488. if test "$lt_cv_prog_gnu_ld" = yes; then
  13489. version_type=linux
  13490. else
  13491. version_type=irix
  13492. fi ;;
  13493. esac
  13494. need_lib_prefix=no
  13495. need_version=no
  13496. soname_spec='${libname}${release}${shared_ext}$major'
  13497. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13498. case $host_os in
  13499. irix5* | nonstopux*)
  13500. libsuff= shlibsuff=
  13501. ;;
  13502. *)
  13503. case $LD in # libtool.m4 will add one of these switches to LD
  13504. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13505. libsuff= shlibsuff= libmagic=32-bit;;
  13506. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13507. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13508. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13509. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13510. *) libsuff= shlibsuff= libmagic=never-match;;
  13511. esac
  13512. ;;
  13513. esac
  13514. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13515. shlibpath_overrides_runpath=no
  13516. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13517. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13518. hardcode_into_libs=yes
  13519. ;;
  13520. # No shared lib support for Linux oldld, aout, or coff.
  13521. linux*oldld* | linux*aout* | linux*coff*)
  13522. dynamic_linker=no
  13523. ;;
  13524. # This must be Linux ELF.
  13525. linux* | k*bsd*-gnu)
  13526. version_type=linux
  13527. need_lib_prefix=no
  13528. need_version=no
  13529. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13530. soname_spec='${libname}${release}${shared_ext}$major'
  13531. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13532. shlibpath_var=LD_LIBRARY_PATH
  13533. shlibpath_overrides_runpath=no
  13534. # Some binutils ld are patched to set DT_RUNPATH
  13535. save_LDFLAGS=$LDFLAGS
  13536. save_libdir=$libdir
  13537. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13538. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13539. cat >conftest.$ac_ext <<_ACEOF
  13540. /* confdefs.h. */
  13541. _ACEOF
  13542. cat confdefs.h >>conftest.$ac_ext
  13543. cat >>conftest.$ac_ext <<_ACEOF
  13544. /* end confdefs.h. */
  13545. int
  13546. main ()
  13547. {
  13548. ;
  13549. return 0;
  13550. }
  13551. _ACEOF
  13552. rm -f conftest.$ac_objext conftest$ac_exeext
  13553. if { (ac_try="$ac_link"
  13554. case "(($ac_try" in
  13555. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13556. *) ac_try_echo=$ac_try;;
  13557. esac
  13558. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13559. $as_echo "$ac_try_echo") >&5
  13560. (eval "$ac_link") 2>conftest.er1
  13561. ac_status=$?
  13562. grep -v '^ *+' conftest.er1 >conftest.err
  13563. rm -f conftest.er1
  13564. cat conftest.err >&5
  13565. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13566. (exit $ac_status); } && {
  13567. test -z "$ac_cxx_werror_flag" ||
  13568. test ! -s conftest.err
  13569. } && test -s conftest$ac_exeext && {
  13570. test "$cross_compiling" = yes ||
  13571. $as_test_x conftest$ac_exeext
  13572. }; then
  13573. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
  13574. shlibpath_overrides_runpath=yes
  13575. fi
  13576. else
  13577. $as_echo "$as_me: failed program was:" >&5
  13578. sed 's/^/| /' conftest.$ac_ext >&5
  13579. fi
  13580. rm -rf conftest.dSYM
  13581. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13582. conftest$ac_exeext conftest.$ac_ext
  13583. LDFLAGS=$save_LDFLAGS
  13584. libdir=$save_libdir
  13585. # This implies no fast_install, which is unacceptable.
  13586. # Some rework will be needed to allow for fast_install
  13587. # before this can be enabled.
  13588. hardcode_into_libs=yes
  13589. # Append ld.so.conf contents to the search path
  13590. if test -f /etc/ld.so.conf; then
  13591. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  13592. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13593. fi
  13594. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13595. # powerpc, because MkLinux only supported shared libraries with the
  13596. # GNU dynamic linker. Since this was broken with cross compilers,
  13597. # most powerpc-linux boxes support dynamic linking these days and
  13598. # people can always --disable-shared, the test was removed, and we
  13599. # assume the GNU/Linux dynamic linker is in use.
  13600. dynamic_linker='GNU/Linux ld.so'
  13601. ;;
  13602. netbsd*)
  13603. version_type=sunos
  13604. need_lib_prefix=no
  13605. need_version=no
  13606. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13607. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13608. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13609. dynamic_linker='NetBSD (a.out) ld.so'
  13610. else
  13611. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13612. soname_spec='${libname}${release}${shared_ext}$major'
  13613. dynamic_linker='NetBSD ld.elf_so'
  13614. fi
  13615. shlibpath_var=LD_LIBRARY_PATH
  13616. shlibpath_overrides_runpath=yes
  13617. hardcode_into_libs=yes
  13618. ;;
  13619. newsos6)
  13620. version_type=linux
  13621. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13622. shlibpath_var=LD_LIBRARY_PATH
  13623. shlibpath_overrides_runpath=yes
  13624. ;;
  13625. *nto* | *qnx*)
  13626. version_type=qnx
  13627. need_lib_prefix=no
  13628. need_version=no
  13629. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13630. soname_spec='${libname}${release}${shared_ext}$major'
  13631. shlibpath_var=LD_LIBRARY_PATH
  13632. shlibpath_overrides_runpath=no
  13633. hardcode_into_libs=yes
  13634. dynamic_linker='ldqnx.so'
  13635. ;;
  13636. openbsd*)
  13637. version_type=sunos
  13638. sys_lib_dlsearch_path_spec="/usr/lib"
  13639. need_lib_prefix=no
  13640. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13641. case $host_os in
  13642. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13643. *) need_version=no ;;
  13644. esac
  13645. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13646. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13647. shlibpath_var=LD_LIBRARY_PATH
  13648. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13649. case $host_os in
  13650. openbsd2.[89] | openbsd2.[89].*)
  13651. shlibpath_overrides_runpath=no
  13652. ;;
  13653. *)
  13654. shlibpath_overrides_runpath=yes
  13655. ;;
  13656. esac
  13657. else
  13658. shlibpath_overrides_runpath=yes
  13659. fi
  13660. ;;
  13661. os2*)
  13662. libname_spec='$name'
  13663. shrext_cmds=".dll"
  13664. need_lib_prefix=no
  13665. library_names_spec='$libname${shared_ext} $libname.a'
  13666. dynamic_linker='OS/2 ld.exe'
  13667. shlibpath_var=LIBPATH
  13668. ;;
  13669. osf3* | osf4* | osf5*)
  13670. version_type=osf
  13671. need_lib_prefix=no
  13672. need_version=no
  13673. soname_spec='${libname}${release}${shared_ext}$major'
  13674. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13675. shlibpath_var=LD_LIBRARY_PATH
  13676. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13677. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13678. ;;
  13679. rdos*)
  13680. dynamic_linker=no
  13681. ;;
  13682. solaris*)
  13683. version_type=linux
  13684. need_lib_prefix=no
  13685. need_version=no
  13686. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13687. soname_spec='${libname}${release}${shared_ext}$major'
  13688. shlibpath_var=LD_LIBRARY_PATH
  13689. shlibpath_overrides_runpath=yes
  13690. hardcode_into_libs=yes
  13691. # ldd complains unless libraries are executable
  13692. postinstall_cmds='chmod +x $lib'
  13693. ;;
  13694. sunos4*)
  13695. version_type=sunos
  13696. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13697. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13698. shlibpath_var=LD_LIBRARY_PATH
  13699. shlibpath_overrides_runpath=yes
  13700. if test "$with_gnu_ld" = yes; then
  13701. need_lib_prefix=no
  13702. fi
  13703. need_version=yes
  13704. ;;
  13705. sysv4 | sysv4.3*)
  13706. version_type=linux
  13707. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13708. soname_spec='${libname}${release}${shared_ext}$major'
  13709. shlibpath_var=LD_LIBRARY_PATH
  13710. case $host_vendor in
  13711. sni)
  13712. shlibpath_overrides_runpath=no
  13713. need_lib_prefix=no
  13714. runpath_var=LD_RUN_PATH
  13715. ;;
  13716. siemens)
  13717. need_lib_prefix=no
  13718. ;;
  13719. motorola)
  13720. need_lib_prefix=no
  13721. need_version=no
  13722. shlibpath_overrides_runpath=no
  13723. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13724. ;;
  13725. esac
  13726. ;;
  13727. sysv4*MP*)
  13728. if test -d /usr/nec ;then
  13729. version_type=linux
  13730. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13731. soname_spec='$libname${shared_ext}.$major'
  13732. shlibpath_var=LD_LIBRARY_PATH
  13733. fi
  13734. ;;
  13735. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13736. version_type=freebsd-elf
  13737. need_lib_prefix=no
  13738. need_version=no
  13739. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13740. soname_spec='${libname}${release}${shared_ext}$major'
  13741. shlibpath_var=LD_LIBRARY_PATH
  13742. shlibpath_overrides_runpath=yes
  13743. hardcode_into_libs=yes
  13744. if test "$with_gnu_ld" = yes; then
  13745. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13746. else
  13747. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13748. case $host_os in
  13749. sco3.2v5*)
  13750. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13751. ;;
  13752. esac
  13753. fi
  13754. sys_lib_dlsearch_path_spec='/usr/lib'
  13755. ;;
  13756. tpf*)
  13757. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13758. version_type=linux
  13759. need_lib_prefix=no
  13760. need_version=no
  13761. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13762. shlibpath_var=LD_LIBRARY_PATH
  13763. shlibpath_overrides_runpath=no
  13764. hardcode_into_libs=yes
  13765. ;;
  13766. uts4*)
  13767. version_type=linux
  13768. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13769. soname_spec='${libname}${release}${shared_ext}$major'
  13770. shlibpath_var=LD_LIBRARY_PATH
  13771. ;;
  13772. *)
  13773. dynamic_linker=no
  13774. ;;
  13775. esac
  13776. { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  13777. $as_echo "$dynamic_linker" >&6; }
  13778. test "$dynamic_linker" = no && can_build_shared=no
  13779. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13780. if test "$GCC" = yes; then
  13781. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13782. fi
  13783. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13784. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13785. fi
  13786. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13787. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13788. fi
  13789. { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  13790. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13791. hardcode_action_CXX=
  13792. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13793. test -n "$runpath_var_CXX" ||
  13794. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13795. # We can hardcode non-existent directories.
  13796. if test "$hardcode_direct_CXX" != no &&
  13797. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13798. # have to relink, otherwise we might link with an installed library
  13799. # when we should be linking with a yet-to-be-installed one
  13800. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13801. test "$hardcode_minus_L_CXX" != no; then
  13802. # Linking always hardcodes the temporary library directory.
  13803. hardcode_action_CXX=relink
  13804. else
  13805. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13806. hardcode_action_CXX=immediate
  13807. fi
  13808. else
  13809. # We cannot hardcode anything, or else we can only hardcode existing
  13810. # directories.
  13811. hardcode_action_CXX=unsupported
  13812. fi
  13813. { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  13814. $as_echo "$hardcode_action_CXX" >&6; }
  13815. if test "$hardcode_action_CXX" = relink ||
  13816. test "$inherit_rpath_CXX" = yes; then
  13817. # Fast installation is not supported
  13818. enable_fast_install=no
  13819. elif test "$shlibpath_overrides_runpath" = yes ||
  13820. test "$enable_shared" = no; then
  13821. # Fast installation is not necessary
  13822. enable_fast_install=needless
  13823. fi
  13824. fi # test -n "$compiler"
  13825. CC=$lt_save_CC
  13826. LDCXX=$LD
  13827. LD=$lt_save_LD
  13828. GCC=$lt_save_GCC
  13829. with_gnu_ld=$lt_save_with_gnu_ld
  13830. lt_cv_path_LDCXX=$lt_cv_path_LD
  13831. lt_cv_path_LD=$lt_save_path_LD
  13832. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13833. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13834. fi # test "$_lt_caught_CXX_error" != yes
  13835. ac_ext=c
  13836. ac_cpp='$CPP $CPPFLAGS'
  13837. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13838. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13839. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13840. ac_ext=c
  13841. ac_cpp='$CPP $CPPFLAGS'
  13842. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13843. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13844. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13845. { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  13846. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  13847. # On Suns, sometimes $CPP names a directory.
  13848. if test -n "$CPP" && test -d "$CPP"; then
  13849. CPP=
  13850. fi
  13851. if test -z "$CPP"; then
  13852. if test "${ac_cv_prog_CPP+set}" = set; then
  13853. $as_echo_n "(cached) " >&6
  13854. else
  13855. # Double quotes because CPP needs to be expanded
  13856. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  13857. do
  13858. ac_preproc_ok=false
  13859. for ac_c_preproc_warn_flag in '' yes
  13860. do
  13861. # Use a header file that comes with gcc, so configuring glibc
  13862. # with a fresh cross-compiler works.
  13863. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  13864. # <limits.h> exists even on freestanding compilers.
  13865. # On the NeXT, cc -E runs the code through the compiler's parser,
  13866. # not just through cpp. "Syntax error" is here to catch this case.
  13867. cat >conftest.$ac_ext <<_ACEOF
  13868. /* confdefs.h. */
  13869. _ACEOF
  13870. cat confdefs.h >>conftest.$ac_ext
  13871. cat >>conftest.$ac_ext <<_ACEOF
  13872. /* end confdefs.h. */
  13873. #ifdef __STDC__
  13874. # include <limits.h>
  13875. #else
  13876. # include <assert.h>
  13877. #endif
  13878. Syntax error
  13879. _ACEOF
  13880. if { (ac_try="$ac_cpp conftest.$ac_ext"
  13881. case "(($ac_try" in
  13882. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13883. *) ac_try_echo=$ac_try;;
  13884. esac
  13885. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13886. $as_echo "$ac_try_echo") >&5
  13887. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  13888. ac_status=$?
  13889. grep -v '^ *+' conftest.er1 >conftest.err
  13890. rm -f conftest.er1
  13891. cat conftest.err >&5
  13892. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13893. (exit $ac_status); } >/dev/null && {
  13894. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  13895. test ! -s conftest.err
  13896. }; then
  13897. :
  13898. else
  13899. $as_echo "$as_me: failed program was:" >&5
  13900. sed 's/^/| /' conftest.$ac_ext >&5
  13901. # Broken: fails on valid input.
  13902. continue
  13903. fi
  13904. rm -f conftest.err conftest.$ac_ext
  13905. # OK, works on sane cases. Now check whether nonexistent headers
  13906. # can be detected and how.
  13907. cat >conftest.$ac_ext <<_ACEOF
  13908. /* confdefs.h. */
  13909. _ACEOF
  13910. cat confdefs.h >>conftest.$ac_ext
  13911. cat >>conftest.$ac_ext <<_ACEOF
  13912. /* end confdefs.h. */
  13913. #include <ac_nonexistent.h>
  13914. _ACEOF
  13915. if { (ac_try="$ac_cpp conftest.$ac_ext"
  13916. case "(($ac_try" in
  13917. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13918. *) ac_try_echo=$ac_try;;
  13919. esac
  13920. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13921. $as_echo "$ac_try_echo") >&5
  13922. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  13923. ac_status=$?
  13924. grep -v '^ *+' conftest.er1 >conftest.err
  13925. rm -f conftest.er1
  13926. cat conftest.err >&5
  13927. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13928. (exit $ac_status); } >/dev/null && {
  13929. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  13930. test ! -s conftest.err
  13931. }; then
  13932. # Broken: success on invalid input.
  13933. continue
  13934. else
  13935. $as_echo "$as_me: failed program was:" >&5
  13936. sed 's/^/| /' conftest.$ac_ext >&5
  13937. # Passes both tests.
  13938. ac_preproc_ok=:
  13939. break
  13940. fi
  13941. rm -f conftest.err conftest.$ac_ext
  13942. done
  13943. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  13944. rm -f conftest.err conftest.$ac_ext
  13945. if $ac_preproc_ok; then
  13946. break
  13947. fi
  13948. done
  13949. ac_cv_prog_CPP=$CPP
  13950. fi
  13951. CPP=$ac_cv_prog_CPP
  13952. else
  13953. ac_cv_prog_CPP=$CPP
  13954. fi
  13955. { $as_echo "$as_me:$LINENO: result: $CPP" >&5
  13956. $as_echo "$CPP" >&6; }
  13957. ac_preproc_ok=false
  13958. for ac_c_preproc_warn_flag in '' yes
  13959. do
  13960. # Use a header file that comes with gcc, so configuring glibc
  13961. # with a fresh cross-compiler works.
  13962. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  13963. # <limits.h> exists even on freestanding compilers.
  13964. # On the NeXT, cc -E runs the code through the compiler's parser,
  13965. # not just through cpp. "Syntax error" is here to catch this case.
  13966. cat >conftest.$ac_ext <<_ACEOF
  13967. /* confdefs.h. */
  13968. _ACEOF
  13969. cat confdefs.h >>conftest.$ac_ext
  13970. cat >>conftest.$ac_ext <<_ACEOF
  13971. /* end confdefs.h. */
  13972. #ifdef __STDC__
  13973. # include <limits.h>
  13974. #else
  13975. # include <assert.h>
  13976. #endif
  13977. Syntax error
  13978. _ACEOF
  13979. if { (ac_try="$ac_cpp conftest.$ac_ext"
  13980. case "(($ac_try" in
  13981. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13982. *) ac_try_echo=$ac_try;;
  13983. esac
  13984. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13985. $as_echo "$ac_try_echo") >&5
  13986. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  13987. ac_status=$?
  13988. grep -v '^ *+' conftest.er1 >conftest.err
  13989. rm -f conftest.er1
  13990. cat conftest.err >&5
  13991. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13992. (exit $ac_status); } >/dev/null && {
  13993. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  13994. test ! -s conftest.err
  13995. }; then
  13996. :
  13997. else
  13998. $as_echo "$as_me: failed program was:" >&5
  13999. sed 's/^/| /' conftest.$ac_ext >&5
  14000. # Broken: fails on valid input.
  14001. continue
  14002. fi
  14003. rm -f conftest.err conftest.$ac_ext
  14004. # OK, works on sane cases. Now check whether nonexistent headers
  14005. # can be detected and how.
  14006. cat >conftest.$ac_ext <<_ACEOF
  14007. /* confdefs.h. */
  14008. _ACEOF
  14009. cat confdefs.h >>conftest.$ac_ext
  14010. cat >>conftest.$ac_ext <<_ACEOF
  14011. /* end confdefs.h. */
  14012. #include <ac_nonexistent.h>
  14013. _ACEOF
  14014. if { (ac_try="$ac_cpp conftest.$ac_ext"
  14015. case "(($ac_try" in
  14016. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14017. *) ac_try_echo=$ac_try;;
  14018. esac
  14019. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14020. $as_echo "$ac_try_echo") >&5
  14021. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  14022. ac_status=$?
  14023. grep -v '^ *+' conftest.er1 >conftest.err
  14024. rm -f conftest.er1
  14025. cat conftest.err >&5
  14026. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14027. (exit $ac_status); } >/dev/null && {
  14028. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  14029. test ! -s conftest.err
  14030. }; then
  14031. # Broken: success on invalid input.
  14032. continue
  14033. else
  14034. $as_echo "$as_me: failed program was:" >&5
  14035. sed 's/^/| /' conftest.$ac_ext >&5
  14036. # Passes both tests.
  14037. ac_preproc_ok=:
  14038. break
  14039. fi
  14040. rm -f conftest.err conftest.$ac_ext
  14041. done
  14042. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  14043. rm -f conftest.err conftest.$ac_ext
  14044. if $ac_preproc_ok; then
  14045. :
  14046. else
  14047. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  14048. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14049. { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  14050. See \`config.log' for more details." >&5
  14051. $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  14052. See \`config.log' for more details." >&2;}
  14053. { (exit 1); exit 1; }; }; }
  14054. fi
  14055. ac_ext=c
  14056. ac_cpp='$CPP $CPPFLAGS'
  14057. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14058. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14059. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14060. { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
  14061. $as_echo_n "checking whether ln -s works... " >&6; }
  14062. LN_S=$as_ln_s
  14063. if test "$LN_S" = "ln -s"; then
  14064. { $as_echo "$as_me:$LINENO: result: yes" >&5
  14065. $as_echo "yes" >&6; }
  14066. else
  14067. { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  14068. $as_echo "no, using $LN_S" >&6; }
  14069. fi
  14070. for ac_prog in gawk mawk nawk awk
  14071. do
  14072. # Extract the first word of "$ac_prog", so it can be a program name with args.
  14073. set dummy $ac_prog; ac_word=$2
  14074. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  14075. $as_echo_n "checking for $ac_word... " >&6; }
  14076. if test "${ac_cv_prog_AWK+set}" = set; then
  14077. $as_echo_n "(cached) " >&6
  14078. else
  14079. if test -n "$AWK"; then
  14080. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  14081. else
  14082. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14083. for as_dir in $PATH
  14084. do
  14085. IFS=$as_save_IFS
  14086. test -z "$as_dir" && as_dir=.
  14087. for ac_exec_ext in '' $ac_executable_extensions; do
  14088. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14089. ac_cv_prog_AWK="$ac_prog"
  14090. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  14091. break 2
  14092. fi
  14093. done
  14094. done
  14095. IFS=$as_save_IFS
  14096. fi
  14097. fi
  14098. AWK=$ac_cv_prog_AWK
  14099. if test -n "$AWK"; then
  14100. { $as_echo "$as_me:$LINENO: result: $AWK" >&5
  14101. $as_echo "$AWK" >&6; }
  14102. else
  14103. { $as_echo "$as_me:$LINENO: result: no" >&5
  14104. $as_echo "no" >&6; }
  14105. fi
  14106. test -n "$AWK" && break
  14107. done
  14108. { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  14109. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  14110. if test "${ac_cv_path_SED+set}" = set; then
  14111. $as_echo_n "(cached) " >&6
  14112. else
  14113. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  14114. for ac_i in 1 2 3 4 5 6 7; do
  14115. ac_script="$ac_script$as_nl$ac_script"
  14116. done
  14117. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  14118. $as_unset ac_script || ac_script=
  14119. if test -z "$SED"; then
  14120. ac_path_SED_found=false
  14121. # Loop through the user's path and test for each of PROGNAME-LIST
  14122. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14123. for as_dir in $PATH
  14124. do
  14125. IFS=$as_save_IFS
  14126. test -z "$as_dir" && as_dir=.
  14127. for ac_prog in sed gsed; do
  14128. for ac_exec_ext in '' $ac_executable_extensions; do
  14129. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  14130. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  14131. # Check for GNU ac_path_SED and select it if it is found.
  14132. # Check for GNU $ac_path_SED
  14133. case `"$ac_path_SED" --version 2>&1` in
  14134. *GNU*)
  14135. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  14136. *)
  14137. ac_count=0
  14138. $as_echo_n 0123456789 >"conftest.in"
  14139. while :
  14140. do
  14141. cat "conftest.in" "conftest.in" >"conftest.tmp"
  14142. mv "conftest.tmp" "conftest.in"
  14143. cp "conftest.in" "conftest.nl"
  14144. $as_echo '' >> "conftest.nl"
  14145. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  14146. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  14147. ac_count=`expr $ac_count + 1`
  14148. if test $ac_count -gt ${ac_path_SED_max-0}; then
  14149. # Best one so far, save it but keep looking for a better one
  14150. ac_cv_path_SED="$ac_path_SED"
  14151. ac_path_SED_max=$ac_count
  14152. fi
  14153. # 10*(2^10) chars as input seems more than enough
  14154. test $ac_count -gt 10 && break
  14155. done
  14156. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  14157. esac
  14158. $ac_path_SED_found && break 3
  14159. done
  14160. done
  14161. done
  14162. IFS=$as_save_IFS
  14163. if test -z "$ac_cv_path_SED"; then
  14164. { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
  14165. $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
  14166. { (exit 1); exit 1; }; }
  14167. fi
  14168. else
  14169. ac_cv_path_SED=$SED
  14170. fi
  14171. fi
  14172. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
  14173. $as_echo "$ac_cv_path_SED" >&6; }
  14174. SED="$ac_cv_path_SED"
  14175. rm -f conftest.sed
  14176. { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  14177. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  14178. set x ${MAKE-make}
  14179. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  14180. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  14181. $as_echo_n "(cached) " >&6
  14182. else
  14183. cat >conftest.make <<\_ACEOF
  14184. SHELL = /bin/sh
  14185. all:
  14186. @echo '@@@%%%=$(MAKE)=@@@%%%'
  14187. _ACEOF
  14188. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  14189. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  14190. *@@@%%%=?*=@@@%%%*)
  14191. eval ac_cv_prog_make_${ac_make}_set=yes;;
  14192. *)
  14193. eval ac_cv_prog_make_${ac_make}_set=no;;
  14194. esac
  14195. rm -f conftest.make
  14196. fi
  14197. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  14198. { $as_echo "$as_me:$LINENO: result: yes" >&5
  14199. $as_echo "yes" >&6; }
  14200. SET_MAKE=
  14201. else
  14202. { $as_echo "$as_me:$LINENO: result: no" >&5
  14203. $as_echo "no" >&6; }
  14204. SET_MAKE="MAKE=${MAKE-make}"
  14205. fi
  14206. # Extract the first word of "printf", so it can be a program name with args.
  14207. set dummy printf; ac_word=$2
  14208. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  14209. $as_echo_n "checking for $ac_word... " >&6; }
  14210. if test "${ac_cv_path_PRINTF+set}" = set; then
  14211. $as_echo_n "(cached) " >&6
  14212. else
  14213. case $PRINTF in
  14214. [\\/]* | ?:[\\/]*)
  14215. ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
  14216. ;;
  14217. *)
  14218. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14219. for as_dir in $PATH
  14220. do
  14221. IFS=$as_save_IFS
  14222. test -z "$as_dir" && as_dir=.
  14223. for ac_exec_ext in '' $ac_executable_extensions; do
  14224. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14225. ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
  14226. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  14227. break 2
  14228. fi
  14229. done
  14230. done
  14231. IFS=$as_save_IFS
  14232. ;;
  14233. esac
  14234. fi
  14235. PRINTF=$ac_cv_path_PRINTF
  14236. if test -n "$PRINTF"; then
  14237. { $as_echo "$as_me:$LINENO: result: $PRINTF" >&5
  14238. $as_echo "$PRINTF" >&6; }
  14239. else
  14240. { $as_echo "$as_me:$LINENO: result: no" >&5
  14241. $as_echo "no" >&6; }
  14242. fi
  14243. # Extract the first word of "echo", so it can be a program name with args.
  14244. set dummy echo; ac_word=$2
  14245. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  14246. $as_echo_n "checking for $ac_word... " >&6; }
  14247. if test "${ac_cv_path_ECHO+set}" = set; then
  14248. $as_echo_n "(cached) " >&6
  14249. else
  14250. case $ECHO in
  14251. [\\/]* | ?:[\\/]*)
  14252. ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
  14253. ;;
  14254. *)
  14255. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14256. for as_dir in $PATH
  14257. do
  14258. IFS=$as_save_IFS
  14259. test -z "$as_dir" && as_dir=.
  14260. for ac_exec_ext in '' $ac_executable_extensions; do
  14261. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14262. ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
  14263. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  14264. break 2
  14265. fi
  14266. done
  14267. done
  14268. IFS=$as_save_IFS
  14269. ;;
  14270. esac
  14271. fi
  14272. ECHO=$ac_cv_path_ECHO
  14273. if test -n "$ECHO"; then
  14274. { $as_echo "$as_me:$LINENO: result: $ECHO" >&5
  14275. $as_echo "$ECHO" >&6; }
  14276. else
  14277. { $as_echo "$as_me:$LINENO: result: no" >&5
  14278. $as_echo "no" >&6; }
  14279. fi
  14280. # Extract the first word of "cut", so it can be a program name with args.
  14281. set dummy cut; ac_word=$2
  14282. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  14283. $as_echo_n "checking for $ac_word... " >&6; }
  14284. if test "${ac_cv_path_CUT+set}" = set; then
  14285. $as_echo_n "(cached) " >&6
  14286. else
  14287. case $CUT in
  14288. [\\/]* | ?:[\\/]*)
  14289. ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
  14290. ;;
  14291. *)
  14292. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14293. for as_dir in $PATH
  14294. do
  14295. IFS=$as_save_IFS
  14296. test -z "$as_dir" && as_dir=.
  14297. for ac_exec_ext in '' $ac_executable_extensions; do
  14298. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14299. ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
  14300. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  14301. break 2
  14302. fi
  14303. done
  14304. done
  14305. IFS=$as_save_IFS
  14306. ;;
  14307. esac
  14308. fi
  14309. CUT=$ac_cv_path_CUT
  14310. if test -n "$CUT"; then
  14311. { $as_echo "$as_me:$LINENO: result: $CUT" >&5
  14312. $as_echo "$CUT" >&6; }
  14313. else
  14314. { $as_echo "$as_me:$LINENO: result: no" >&5
  14315. $as_echo "no" >&6; }
  14316. fi
  14317. # Extract the first word of "autogen", so it can be a program name with args.
  14318. set dummy autogen; ac_word=$2
  14319. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  14320. $as_echo_n "checking for $ac_word... " >&6; }
  14321. if test "${ac_cv_path_AUTOGEN+set}" = set; then
  14322. $as_echo_n "(cached) " >&6
  14323. else
  14324. case $AUTOGEN in
  14325. [\\/]* | ?:[\\/]*)
  14326. ac_cv_path_AUTOGEN="$AUTOGEN" # Let the user override the test with a path.
  14327. ;;
  14328. *)
  14329. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14330. for as_dir in $PATH
  14331. do
  14332. IFS=$as_save_IFS
  14333. test -z "$as_dir" && as_dir=.
  14334. for ac_exec_ext in '' $ac_executable_extensions; do
  14335. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14336. ac_cv_path_AUTOGEN="$as_dir/$ac_word$ac_exec_ext"
  14337. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  14338. break 2
  14339. fi
  14340. done
  14341. done
  14342. IFS=$as_save_IFS
  14343. ;;
  14344. esac
  14345. fi
  14346. AUTOGEN=$ac_cv_path_AUTOGEN
  14347. if test -n "$AUTOGEN"; then
  14348. { $as_echo "$as_me:$LINENO: result: $AUTOGEN" >&5
  14349. $as_echo "$AUTOGEN" >&6; }
  14350. else
  14351. { $as_echo "$as_me:$LINENO: result: no" >&5
  14352. $as_echo "no" >&6; }
  14353. fi
  14354. # Extract the first word of "groff", so it can be a program name with args.
  14355. set dummy groff; ac_word=$2
  14356. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  14357. $as_echo_n "checking for $ac_word... " >&6; }
  14358. if test "${ac_cv_path_GROFF+set}" = set; then
  14359. $as_echo_n "(cached) " >&6
  14360. else
  14361. case $GROFF in
  14362. [\\/]* | ?:[\\/]*)
  14363. ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
  14364. ;;
  14365. *)
  14366. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14367. for as_dir in $PATH
  14368. do
  14369. IFS=$as_save_IFS
  14370. test -z "$as_dir" && as_dir=.
  14371. for ac_exec_ext in '' $ac_executable_extensions; do
  14372. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14373. ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
  14374. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  14375. break 2
  14376. fi
  14377. done
  14378. done
  14379. IFS=$as_save_IFS
  14380. ;;
  14381. esac
  14382. fi
  14383. GROFF=$ac_cv_path_GROFF
  14384. if test -n "$GROFF"; then
  14385. { $as_echo "$as_me:$LINENO: result: $GROFF" >&5
  14386. $as_echo "$GROFF" >&6; }
  14387. else
  14388. { $as_echo "$as_me:$LINENO: result: no" >&5
  14389. $as_echo "no" >&6; }
  14390. fi
  14391. AUTOGEN_VERSION=unknown
  14392. if test -n "${AUTOGEN}" ; then
  14393. { $as_echo "$as_me:$LINENO: checking for autogen version >= 5.9.x" >&5
  14394. $as_echo_n "checking for autogen version >= 5.9.x... " >&6; }
  14395. ${AUTOGEN} -v >autogen.version
  14396. AUTOGEN_VERSION=`cat autogen.version | ${SED} 's|.*\([0-9\.]\{5,\}\).*|\1|'`
  14397. AUTOGEN_MAJOR=`echo ${AUTOGEN_VERSION} | ${CUT} -d '.' -f 1`
  14398. AUTOGEN_MINOR=`echo ${AUTOGEN_VERSION} | ${CUT} -d '.' -f 2`
  14399. if ( test ${AUTOGEN_MAJOR} -eq 5 && test ${AUTOGEN_MINOR} -lt 9 ) || test ${AUTOGEN_MAJOR} -lt 5 ; then
  14400. { $as_echo "$as_me:$LINENO: result: no" >&5
  14401. $as_echo "no" >&6; }
  14402. { $as_echo "$as_me:$LINENO: WARNING: ${AUTOGEN} is too old (${AUTOGEN_VERSION}) for building from SVN. Please upgrade to 5.9.x)" >&5
  14403. $as_echo "$as_me: WARNING: ${AUTOGEN} is too old (${AUTOGEN_VERSION}) for building from SVN. Please upgrade to 5.9.x)" >&2;}
  14404. else
  14405. { $as_echo "$as_me:$LINENO: result: yes" >&5
  14406. $as_echo "yes" >&6; }
  14407. fi
  14408. rm -f autogen.version
  14409. if test ! -f src/tcpreplay_opts.c && test "x$enable_local_libopts" = "xyes" ; then
  14410. if test $MAINTAINER_AUTOGEN_VERSION != $AUTOGEN_VERSION ; then
  14411. { { $as_echo "$as_me:$LINENO: error: Your version of autogen ($AUTOGEN_VERSION) != libopts tear off ($MAINTAINER_AUTOGEN_VERSION) Either install the correct version or specify --disable-local-libopts" >&5
  14412. $as_echo "$as_me: error: Your version of autogen ($AUTOGEN_VERSION) != libopts tear off ($MAINTAINER_AUTOGEN_VERSION) Either install the correct version or specify --disable-local-libopts" >&2;}
  14413. { (exit 1); exit 1; }; }
  14414. fi
  14415. fi
  14416. else
  14417. if test ! -f src/tcpreplay_opts.c ; then
  14418. { { $as_echo "$as_me:$LINENO: error: Please install GNU autogen >= 5.9.x if you are building from SVN" >&5
  14419. $as_echo "$as_me: error: Please install GNU autogen >= 5.9.x if you are building from SVN" >&2;}
  14420. { (exit 1); exit 1; }; }
  14421. fi
  14422. fi
  14423. cat >>confdefs.h <<\_ACEOF
  14424. #define AUTOGEN_VERSION ${AUTOGEN_VERSION}
  14425. _ACEOF
  14426. if test "x$enable_local_libopts" = "xyes" ; then
  14427. { $as_echo "$as_me:$LINENO: Using included libopts tearoff" >&5
  14428. $as_echo "$as_me: Using included libopts tearoff" >&6;}
  14429. else
  14430. { $as_echo "$as_me:$LINENO: Using system libopts" >&5
  14431. $as_echo "$as_me: Using system libopts" >&6;}
  14432. fi
  14433. { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  14434. $as_echo_n "checking for ANSI C header files... " >&6; }
  14435. if test "${ac_cv_header_stdc+set}" = set; then
  14436. $as_echo_n "(cached) " >&6
  14437. else
  14438. cat >conftest.$ac_ext <<_ACEOF
  14439. /* confdefs.h. */
  14440. _ACEOF
  14441. cat confdefs.h >>conftest.$ac_ext
  14442. cat >>conftest.$ac_ext <<_ACEOF
  14443. /* end confdefs.h. */
  14444. #include <stdlib.h>
  14445. #include <stdarg.h>
  14446. #include <string.h>
  14447. #include <float.h>
  14448. int
  14449. main ()
  14450. {
  14451. ;
  14452. return 0;
  14453. }
  14454. _ACEOF
  14455. rm -f conftest.$ac_objext
  14456. if { (ac_try="$ac_compile"
  14457. case "(($ac_try" in
  14458. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14459. *) ac_try_echo=$ac_try;;
  14460. esac
  14461. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14462. $as_echo "$ac_try_echo") >&5
  14463. (eval "$ac_compile") 2>conftest.er1
  14464. ac_status=$?
  14465. grep -v '^ *+' conftest.er1 >conftest.err
  14466. rm -f conftest.er1
  14467. cat conftest.err >&5
  14468. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14469. (exit $ac_status); } && {
  14470. test -z "$ac_c_werror_flag" ||
  14471. test ! -s conftest.err
  14472. } && test -s conftest.$ac_objext; then
  14473. ac_cv_header_stdc=yes
  14474. else
  14475. $as_echo "$as_me: failed program was:" >&5
  14476. sed 's/^/| /' conftest.$ac_ext >&5
  14477. ac_cv_header_stdc=no
  14478. fi
  14479. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14480. if test $ac_cv_header_stdc = yes; then
  14481. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  14482. cat >conftest.$ac_ext <<_ACEOF
  14483. /* confdefs.h. */
  14484. _ACEOF
  14485. cat confdefs.h >>conftest.$ac_ext
  14486. cat >>conftest.$ac_ext <<_ACEOF
  14487. /* end confdefs.h. */
  14488. #include <string.h>
  14489. _ACEOF
  14490. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14491. $EGREP "memchr" >/dev/null 2>&1; then
  14492. :
  14493. else
  14494. ac_cv_header_stdc=no
  14495. fi
  14496. rm -f conftest*
  14497. fi
  14498. if test $ac_cv_header_stdc = yes; then
  14499. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  14500. cat >conftest.$ac_ext <<_ACEOF
  14501. /* confdefs.h. */
  14502. _ACEOF
  14503. cat confdefs.h >>conftest.$ac_ext
  14504. cat >>conftest.$ac_ext <<_ACEOF
  14505. /* end confdefs.h. */
  14506. #include <stdlib.h>
  14507. _ACEOF
  14508. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14509. $EGREP "free" >/dev/null 2>&1; then
  14510. :
  14511. else
  14512. ac_cv_header_stdc=no
  14513. fi
  14514. rm -f conftest*
  14515. fi
  14516. if test $ac_cv_header_stdc = yes; then
  14517. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  14518. if test "$cross_compiling" = yes; then
  14519. :
  14520. else
  14521. cat >conftest.$ac_ext <<_ACEOF
  14522. /* confdefs.h. */
  14523. _ACEOF
  14524. cat confdefs.h >>conftest.$ac_ext
  14525. cat >>conftest.$ac_ext <<_ACEOF
  14526. /* end confdefs.h. */
  14527. #include <ctype.h>
  14528. #include <stdlib.h>
  14529. #if ((' ' & 0x0FF) == 0x020)
  14530. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  14531. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  14532. #else
  14533. # define ISLOWER(c) \
  14534. (('a' <= (c) && (c) <= 'i') \
  14535. || ('j' <= (c) && (c) <= 'r') \
  14536. || ('s' <= (c) && (c) <= 'z'))
  14537. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  14538. #endif
  14539. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  14540. int
  14541. main ()
  14542. {
  14543. int i;
  14544. for (i = 0; i < 256; i++)
  14545. if (XOR (islower (i), ISLOWER (i))
  14546. || toupper (i) != TOUPPER (i))
  14547. return 2;
  14548. return 0;
  14549. }
  14550. _ACEOF
  14551. rm -f conftest$ac_exeext
  14552. if { (ac_try="$ac_link"
  14553. case "(($ac_try" in
  14554. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14555. *) ac_try_echo=$ac_try;;
  14556. esac
  14557. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14558. $as_echo "$ac_try_echo") >&5
  14559. (eval "$ac_link") 2>&5
  14560. ac_status=$?
  14561. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14562. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  14563. { (case "(($ac_try" in
  14564. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14565. *) ac_try_echo=$ac_try;;
  14566. esac
  14567. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14568. $as_echo "$ac_try_echo") >&5
  14569. (eval "$ac_try") 2>&5
  14570. ac_status=$?
  14571. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14572. (exit $ac_status); }; }; then
  14573. :
  14574. else
  14575. $as_echo "$as_me: program exited with status $ac_status" >&5
  14576. $as_echo "$as_me: failed program was:" >&5
  14577. sed 's/^/| /' conftest.$ac_ext >&5
  14578. ( exit $ac_status )
  14579. ac_cv_header_stdc=no
  14580. fi
  14581. rm -rf conftest.dSYM
  14582. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14583. fi
  14584. fi
  14585. fi
  14586. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  14587. $as_echo "$ac_cv_header_stdc" >&6; }
  14588. if test $ac_cv_header_stdc = yes; then
  14589. cat >>confdefs.h <<\_ACEOF
  14590. #define STDC_HEADERS 1
  14591. _ACEOF
  14592. fi
  14593. { $as_echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
  14594. $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
  14595. if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
  14596. $as_echo_n "(cached) " >&6
  14597. else
  14598. cat >conftest.$ac_ext <<_ACEOF
  14599. /* confdefs.h. */
  14600. _ACEOF
  14601. cat confdefs.h >>conftest.$ac_ext
  14602. cat >>conftest.$ac_ext <<_ACEOF
  14603. /* end confdefs.h. */
  14604. #include <sys/types.h>
  14605. int
  14606. main ()
  14607. {
  14608. return makedev(0, 0);
  14609. ;
  14610. return 0;
  14611. }
  14612. _ACEOF
  14613. rm -f conftest.$ac_objext conftest$ac_exeext
  14614. if { (ac_try="$ac_link"
  14615. case "(($ac_try" in
  14616. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14617. *) ac_try_echo=$ac_try;;
  14618. esac
  14619. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14620. $as_echo "$ac_try_echo") >&5
  14621. (eval "$ac_link") 2>conftest.er1
  14622. ac_status=$?
  14623. grep -v '^ *+' conftest.er1 >conftest.err
  14624. rm -f conftest.er1
  14625. cat conftest.err >&5
  14626. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14627. (exit $ac_status); } && {
  14628. test -z "$ac_c_werror_flag" ||
  14629. test ! -s conftest.err
  14630. } && test -s conftest$ac_exeext && {
  14631. test "$cross_compiling" = yes ||
  14632. $as_test_x conftest$ac_exeext
  14633. }; then
  14634. ac_cv_header_sys_types_h_makedev=yes
  14635. else
  14636. $as_echo "$as_me: failed program was:" >&5
  14637. sed 's/^/| /' conftest.$ac_ext >&5
  14638. ac_cv_header_sys_types_h_makedev=no
  14639. fi
  14640. rm -rf conftest.dSYM
  14641. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14642. conftest$ac_exeext conftest.$ac_ext
  14643. fi
  14644. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
  14645. $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
  14646. if test $ac_cv_header_sys_types_h_makedev = no; then
  14647. if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
  14648. { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
  14649. $as_echo_n "checking for sys/mkdev.h... " >&6; }
  14650. if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
  14651. $as_echo_n "(cached) " >&6
  14652. fi
  14653. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
  14654. $as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
  14655. else
  14656. # Is the header compilable?
  14657. { $as_echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
  14658. $as_echo_n "checking sys/mkdev.h usability... " >&6; }
  14659. cat >conftest.$ac_ext <<_ACEOF
  14660. /* confdefs.h. */
  14661. _ACEOF
  14662. cat confdefs.h >>conftest.$ac_ext
  14663. cat >>conftest.$ac_ext <<_ACEOF
  14664. /* end confdefs.h. */
  14665. $ac_includes_default
  14666. #include <sys/mkdev.h>
  14667. _ACEOF
  14668. rm -f conftest.$ac_objext
  14669. if { (ac_try="$ac_compile"
  14670. case "(($ac_try" in
  14671. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14672. *) ac_try_echo=$ac_try;;
  14673. esac
  14674. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14675. $as_echo "$ac_try_echo") >&5
  14676. (eval "$ac_compile") 2>conftest.er1
  14677. ac_status=$?
  14678. grep -v '^ *+' conftest.er1 >conftest.err
  14679. rm -f conftest.er1
  14680. cat conftest.err >&5
  14681. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14682. (exit $ac_status); } && {
  14683. test -z "$ac_c_werror_flag" ||
  14684. test ! -s conftest.err
  14685. } && test -s conftest.$ac_objext; then
  14686. ac_header_compiler=yes
  14687. else
  14688. $as_echo "$as_me: failed program was:" >&5
  14689. sed 's/^/| /' conftest.$ac_ext >&5
  14690. ac_header_compiler=no
  14691. fi
  14692. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14693. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  14694. $as_echo "$ac_header_compiler" >&6; }
  14695. # Is the header present?
  14696. { $as_echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
  14697. $as_echo_n "checking sys/mkdev.h presence... " >&6; }
  14698. cat >conftest.$ac_ext <<_ACEOF
  14699. /* confdefs.h. */
  14700. _ACEOF
  14701. cat confdefs.h >>conftest.$ac_ext
  14702. cat >>conftest.$ac_ext <<_ACEOF
  14703. /* end confdefs.h. */
  14704. #include <sys/mkdev.h>
  14705. _ACEOF
  14706. if { (ac_try="$ac_cpp conftest.$ac_ext"
  14707. case "(($ac_try" in
  14708. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14709. *) ac_try_echo=$ac_try;;
  14710. esac
  14711. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14712. $as_echo "$ac_try_echo") >&5
  14713. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  14714. ac_status=$?
  14715. grep -v '^ *+' conftest.er1 >conftest.err
  14716. rm -f conftest.er1
  14717. cat conftest.err >&5
  14718. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14719. (exit $ac_status); } >/dev/null && {
  14720. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  14721. test ! -s conftest.err
  14722. }; then
  14723. ac_header_preproc=yes
  14724. else
  14725. $as_echo "$as_me: failed program was:" >&5
  14726. sed 's/^/| /' conftest.$ac_ext >&5
  14727. ac_header_preproc=no
  14728. fi
  14729. rm -f conftest.err conftest.$ac_ext
  14730. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  14731. $as_echo "$ac_header_preproc" >&6; }
  14732. # So? What about this header?
  14733. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  14734. yes:no: )
  14735. { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
  14736. $as_echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  14737. { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
  14738. $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
  14739. ac_header_preproc=yes
  14740. ;;
  14741. no:yes:* )
  14742. { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
  14743. $as_echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
  14744. { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
  14745. $as_echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
  14746. { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
  14747. $as_echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
  14748. { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
  14749. $as_echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
  14750. { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
  14751. $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
  14752. { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
  14753. $as_echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
  14754. ;;
  14755. esac
  14756. { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
  14757. $as_echo_n "checking for sys/mkdev.h... " >&6; }
  14758. if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
  14759. $as_echo_n "(cached) " >&6
  14760. else
  14761. ac_cv_header_sys_mkdev_h=$ac_header_preproc
  14762. fi
  14763. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
  14764. $as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
  14765. fi
  14766. if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then
  14767. cat >>confdefs.h <<\_ACEOF
  14768. #define MAJOR_IN_MKDEV 1
  14769. _ACEOF
  14770. fi
  14771. if test $ac_cv_header_sys_mkdev_h = no; then
  14772. if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
  14773. { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
  14774. $as_echo_n "checking for sys/sysmacros.h... " >&6; }
  14775. if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
  14776. $as_echo_n "(cached) " >&6
  14777. fi
  14778. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
  14779. $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
  14780. else
  14781. # Is the header compilable?
  14782. { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
  14783. $as_echo_n "checking sys/sysmacros.h usability... " >&6; }
  14784. cat >conftest.$ac_ext <<_ACEOF
  14785. /* confdefs.h. */
  14786. _ACEOF
  14787. cat confdefs.h >>conftest.$ac_ext
  14788. cat >>conftest.$ac_ext <<_ACEOF
  14789. /* end confdefs.h. */
  14790. $ac_includes_default
  14791. #include <sys/sysmacros.h>
  14792. _ACEOF
  14793. rm -f conftest.$ac_objext
  14794. if { (ac_try="$ac_compile"
  14795. case "(($ac_try" in
  14796. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14797. *) ac_try_echo=$ac_try;;
  14798. esac
  14799. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14800. $as_echo "$ac_try_echo") >&5
  14801. (eval "$ac_compile") 2>conftest.er1
  14802. ac_status=$?
  14803. grep -v '^ *+' conftest.er1 >conftest.err
  14804. rm -f conftest.er1
  14805. cat conftest.err >&5
  14806. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14807. (exit $ac_status); } && {
  14808. test -z "$ac_c_werror_flag" ||
  14809. test ! -s conftest.err
  14810. } && test -s conftest.$ac_objext; then
  14811. ac_header_compiler=yes
  14812. else
  14813. $as_echo "$as_me: failed program was:" >&5
  14814. sed 's/^/| /' conftest.$ac_ext >&5
  14815. ac_header_compiler=no
  14816. fi
  14817. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14818. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  14819. $as_echo "$ac_header_compiler" >&6; }
  14820. # Is the header present?
  14821. { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
  14822. $as_echo_n "checking sys/sysmacros.h presence... " >&6; }
  14823. cat >conftest.$ac_ext <<_ACEOF
  14824. /* confdefs.h. */
  14825. _ACEOF
  14826. cat confdefs.h >>conftest.$ac_ext
  14827. cat >>conftest.$ac_ext <<_ACEOF
  14828. /* end confdefs.h. */
  14829. #include <sys/sysmacros.h>
  14830. _ACEOF
  14831. if { (ac_try="$ac_cpp conftest.$ac_ext"
  14832. case "(($ac_try" in
  14833. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14834. *) ac_try_echo=$ac_try;;
  14835. esac
  14836. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14837. $as_echo "$ac_try_echo") >&5
  14838. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  14839. ac_status=$?
  14840. grep -v '^ *+' conftest.er1 >conftest.err
  14841. rm -f conftest.er1
  14842. cat conftest.err >&5
  14843. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14844. (exit $ac_status); } >/dev/null && {
  14845. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  14846. test ! -s conftest.err
  14847. }; then
  14848. ac_header_preproc=yes
  14849. else
  14850. $as_echo "$as_me: failed program was:" >&5
  14851. sed 's/^/| /' conftest.$ac_ext >&5
  14852. ac_header_preproc=no
  14853. fi
  14854. rm -f conftest.err conftest.$ac_ext
  14855. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  14856. $as_echo "$ac_header_preproc" >&6; }
  14857. # So? What about this header?
  14858. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  14859. yes:no: )
  14860. { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
  14861. $as_echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  14862. { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
  14863. $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
  14864. ac_header_preproc=yes
  14865. ;;
  14866. no:yes:* )
  14867. { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
  14868. $as_echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
  14869. { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
  14870. $as_echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
  14871. { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
  14872. $as_echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
  14873. { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
  14874. $as_echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
  14875. { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
  14876. $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
  14877. { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
  14878. $as_echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
  14879. ;;
  14880. esac
  14881. { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
  14882. $as_echo_n "checking for sys/sysmacros.h... " >&6; }
  14883. if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
  14884. $as_echo_n "(cached) " >&6
  14885. else
  14886. ac_cv_header_sys_sysmacros_h=$ac_header_preproc
  14887. fi
  14888. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
  14889. $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
  14890. fi
  14891. if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then
  14892. cat >>confdefs.h <<\_ACEOF
  14893. #define MAJOR_IN_SYSMACROS 1
  14894. _ACEOF
  14895. fi
  14896. fi
  14897. fi
  14898. { $as_echo "$as_me:$LINENO: checking for size_t" >&5
  14899. $as_echo_n "checking for size_t... " >&6; }
  14900. if test "${ac_cv_type_size_t+set}" = set; then
  14901. $as_echo_n "(cached) " >&6
  14902. else
  14903. ac_cv_type_size_t=no
  14904. cat >conftest.$ac_ext <<_ACEOF
  14905. /* confdefs.h. */
  14906. _ACEOF
  14907. cat confdefs.h >>conftest.$ac_ext
  14908. cat >>conftest.$ac_ext <<_ACEOF
  14909. /* end confdefs.h. */
  14910. $ac_includes_default
  14911. int
  14912. main ()
  14913. {
  14914. if (sizeof (size_t))
  14915. return 0;
  14916. ;
  14917. return 0;
  14918. }
  14919. _ACEOF
  14920. rm -f conftest.$ac_objext
  14921. if { (ac_try="$ac_compile"
  14922. case "(($ac_try" in
  14923. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14924. *) ac_try_echo=$ac_try;;
  14925. esac
  14926. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14927. $as_echo "$ac_try_echo") >&5
  14928. (eval "$ac_compile") 2>conftest.er1
  14929. ac_status=$?
  14930. grep -v '^ *+' conftest.er1 >conftest.err
  14931. rm -f conftest.er1
  14932. cat conftest.err >&5
  14933. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14934. (exit $ac_status); } && {
  14935. test -z "$ac_c_werror_flag" ||
  14936. test ! -s conftest.err
  14937. } && test -s conftest.$ac_objext; then
  14938. cat >conftest.$ac_ext <<_ACEOF
  14939. /* confdefs.h. */
  14940. _ACEOF
  14941. cat confdefs.h >>conftest.$ac_ext
  14942. cat >>conftest.$ac_ext <<_ACEOF
  14943. /* end confdefs.h. */
  14944. $ac_includes_default
  14945. int
  14946. main ()
  14947. {
  14948. if (sizeof ((size_t)))
  14949. return 0;
  14950. ;
  14951. return 0;
  14952. }
  14953. _ACEOF
  14954. rm -f conftest.$ac_objext
  14955. if { (ac_try="$ac_compile"
  14956. case "(($ac_try" in
  14957. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14958. *) ac_try_echo=$ac_try;;
  14959. esac
  14960. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14961. $as_echo "$ac_try_echo") >&5
  14962. (eval "$ac_compile") 2>conftest.er1
  14963. ac_status=$?
  14964. grep -v '^ *+' conftest.er1 >conftest.err
  14965. rm -f conftest.er1
  14966. cat conftest.err >&5
  14967. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14968. (exit $ac_status); } && {
  14969. test -z "$ac_c_werror_flag" ||
  14970. test ! -s conftest.err
  14971. } && test -s conftest.$ac_objext; then
  14972. :
  14973. else
  14974. $as_echo "$as_me: failed program was:" >&5
  14975. sed 's/^/| /' conftest.$ac_ext >&5
  14976. ac_cv_type_size_t=yes
  14977. fi
  14978. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14979. else
  14980. $as_echo "$as_me: failed program was:" >&5
  14981. sed 's/^/| /' conftest.$ac_ext >&5
  14982. fi
  14983. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14984. fi
  14985. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  14986. $as_echo "$ac_cv_type_size_t" >&6; }
  14987. if test "x$ac_cv_type_size_t" = x""yes; then
  14988. :
  14989. else
  14990. cat >>confdefs.h <<_ACEOF
  14991. #define size_t unsigned int
  14992. _ACEOF
  14993. fi
  14994. { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  14995. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  14996. if test "${ac_cv_header_time+set}" = set; then
  14997. $as_echo_n "(cached) " >&6
  14998. else
  14999. cat >conftest.$ac_ext <<_ACEOF
  15000. /* confdefs.h. */
  15001. _ACEOF
  15002. cat confdefs.h >>conftest.$ac_ext
  15003. cat >>conftest.$ac_ext <<_ACEOF
  15004. /* end confdefs.h. */
  15005. #include <sys/types.h>
  15006. #include <sys/time.h>
  15007. #include <time.h>
  15008. int
  15009. main ()
  15010. {
  15011. if ((struct tm *) 0)
  15012. return 0;
  15013. ;
  15014. return 0;
  15015. }
  15016. _ACEOF
  15017. rm -f conftest.$ac_objext
  15018. if { (ac_try="$ac_compile"
  15019. case "(($ac_try" in
  15020. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15021. *) ac_try_echo=$ac_try;;
  15022. esac
  15023. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15024. $as_echo "$ac_try_echo") >&5
  15025. (eval "$ac_compile") 2>conftest.er1
  15026. ac_status=$?
  15027. grep -v '^ *+' conftest.er1 >conftest.err
  15028. rm -f conftest.er1
  15029. cat conftest.err >&5
  15030. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15031. (exit $ac_status); } && {
  15032. test -z "$ac_c_werror_flag" ||
  15033. test ! -s conftest.err
  15034. } && test -s conftest.$ac_objext; then
  15035. ac_cv_header_time=yes
  15036. else
  15037. $as_echo "$as_me: failed program was:" >&5
  15038. sed 's/^/| /' conftest.$ac_ext >&5
  15039. ac_cv_header_time=no
  15040. fi
  15041. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15042. fi
  15043. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  15044. $as_echo "$ac_cv_header_time" >&6; }
  15045. if test $ac_cv_header_time = yes; then
  15046. cat >>confdefs.h <<\_ACEOF
  15047. #define TIME_WITH_SYS_TIME 1
  15048. _ACEOF
  15049. fi
  15050. { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  15051. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  15052. if test "${ac_cv_c_const+set}" = set; then
  15053. $as_echo_n "(cached) " >&6
  15054. else
  15055. cat >conftest.$ac_ext <<_ACEOF
  15056. /* confdefs.h. */
  15057. _ACEOF
  15058. cat confdefs.h >>conftest.$ac_ext
  15059. cat >>conftest.$ac_ext <<_ACEOF
  15060. /* end confdefs.h. */
  15061. int
  15062. main ()
  15063. {
  15064. /* FIXME: Include the comments suggested by Paul. */
  15065. #ifndef __cplusplus
  15066. /* Ultrix mips cc rejects this. */
  15067. typedef int charset[2];
  15068. const charset cs;
  15069. /* SunOS 4.1.1 cc rejects this. */
  15070. char const *const *pcpcc;
  15071. char **ppc;
  15072. /* NEC SVR4.0.2 mips cc rejects this. */
  15073. struct point {int x, y;};
  15074. static struct point const zero = {0,0};
  15075. /* AIX XL C 1.02.0.0 rejects this.
  15076. It does not let you subtract one const X* pointer from another in
  15077. an arm of an if-expression whose if-part is not a constant
  15078. expression */
  15079. const char *g = "string";
  15080. pcpcc = &g + (g ? g-g : 0);
  15081. /* HPUX 7.0 cc rejects these. */
  15082. ++pcpcc;
  15083. ppc = (char**) pcpcc;
  15084. pcpcc = (char const *const *) ppc;
  15085. { /* SCO 3.2v4 cc rejects this. */
  15086. char *t;
  15087. char const *s = 0 ? (char *) 0 : (char const *) 0;
  15088. *t++ = 0;
  15089. if (s) return 0;
  15090. }
  15091. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  15092. int x[] = {25, 17};
  15093. const int *foo = &x[0];
  15094. ++foo;
  15095. }
  15096. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  15097. typedef const int *iptr;
  15098. iptr p = 0;
  15099. ++p;
  15100. }
  15101. { /* AIX XL C 1.02.0.0 rejects this saying
  15102. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  15103. struct s { int j; const int *ap[3]; };
  15104. struct s *b; b->j = 5;
  15105. }
  15106. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  15107. const int foo = 10;
  15108. if (!foo) return 0;
  15109. }
  15110. return !cs[0] && !zero.x;
  15111. #endif
  15112. ;
  15113. return 0;
  15114. }
  15115. _ACEOF
  15116. rm -f conftest.$ac_objext
  15117. if { (ac_try="$ac_compile"
  15118. case "(($ac_try" in
  15119. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15120. *) ac_try_echo=$ac_try;;
  15121. esac
  15122. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15123. $as_echo "$ac_try_echo") >&5
  15124. (eval "$ac_compile") 2>conftest.er1
  15125. ac_status=$?
  15126. grep -v '^ *+' conftest.er1 >conftest.err
  15127. rm -f conftest.er1
  15128. cat conftest.err >&5
  15129. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15130. (exit $ac_status); } && {
  15131. test -z "$ac_c_werror_flag" ||
  15132. test ! -s conftest.err
  15133. } && test -s conftest.$ac_objext; then
  15134. ac_cv_c_const=yes
  15135. else
  15136. $as_echo "$as_me: failed program was:" >&5
  15137. sed 's/^/| /' conftest.$ac_ext >&5
  15138. ac_cv_c_const=no
  15139. fi
  15140. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15141. fi
  15142. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  15143. $as_echo "$ac_cv_c_const" >&6; }
  15144. if test $ac_cv_c_const = no; then
  15145. cat >>confdefs.h <<\_ACEOF
  15146. #define const /**/
  15147. _ACEOF
  15148. fi
  15149. { $as_echo "$as_me:$LINENO: checking for inline" >&5
  15150. $as_echo_n "checking for inline... " >&6; }
  15151. if test "${ac_cv_c_inline+set}" = set; then
  15152. $as_echo_n "(cached) " >&6
  15153. else
  15154. ac_cv_c_inline=no
  15155. for ac_kw in inline __inline__ __inline; do
  15156. cat >conftest.$ac_ext <<_ACEOF
  15157. /* confdefs.h. */
  15158. _ACEOF
  15159. cat confdefs.h >>conftest.$ac_ext
  15160. cat >>conftest.$ac_ext <<_ACEOF
  15161. /* end confdefs.h. */
  15162. #ifndef __cplusplus
  15163. typedef int foo_t;
  15164. static $ac_kw foo_t static_foo () {return 0; }
  15165. $ac_kw foo_t foo () {return 0; }
  15166. #endif
  15167. _ACEOF
  15168. rm -f conftest.$ac_objext
  15169. if { (ac_try="$ac_compile"
  15170. case "(($ac_try" in
  15171. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15172. *) ac_try_echo=$ac_try;;
  15173. esac
  15174. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15175. $as_echo "$ac_try_echo") >&5
  15176. (eval "$ac_compile") 2>conftest.er1
  15177. ac_status=$?
  15178. grep -v '^ *+' conftest.er1 >conftest.err
  15179. rm -f conftest.er1
  15180. cat conftest.err >&5
  15181. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15182. (exit $ac_status); } && {
  15183. test -z "$ac_c_werror_flag" ||
  15184. test ! -s conftest.err
  15185. } && test -s conftest.$ac_objext; then
  15186. ac_cv_c_inline=$ac_kw
  15187. else
  15188. $as_echo "$as_me: failed program was:" >&5
  15189. sed 's/^/| /' conftest.$ac_ext >&5
  15190. fi
  15191. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15192. test "$ac_cv_c_inline" != no && break
  15193. done
  15194. fi
  15195. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  15196. $as_echo "$ac_cv_c_inline" >&6; }
  15197. case $ac_cv_c_inline in
  15198. inline | yes) ;;
  15199. *)
  15200. case $ac_cv_c_inline in
  15201. no) ac_val=;;
  15202. *) ac_val=$ac_cv_c_inline;;
  15203. esac
  15204. cat >>confdefs.h <<_ACEOF
  15205. #ifndef __cplusplus
  15206. #define inline $ac_val
  15207. #endif
  15208. _ACEOF
  15209. ;;
  15210. esac
  15211. # Check whether --enable-largefile was given.
  15212. if test "${enable_largefile+set}" = set; then
  15213. enableval=$enable_largefile;
  15214. fi
  15215. if test "$enable_largefile" != no; then
  15216. { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
  15217. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  15218. if test "${ac_cv_sys_largefile_CC+set}" = set; then
  15219. $as_echo_n "(cached) " >&6
  15220. else
  15221. ac_cv_sys_largefile_CC=no
  15222. if test "$GCC" != yes; then
  15223. ac_save_CC=$CC
  15224. while :; do
  15225. # IRIX 6.2 and later do not support large files by default,
  15226. # so use the C compiler's -n32 option if that helps.
  15227. cat >conftest.$ac_ext <<_ACEOF
  15228. /* confdefs.h. */
  15229. _ACEOF
  15230. cat confdefs.h >>conftest.$ac_ext
  15231. cat >>conftest.$ac_ext <<_ACEOF
  15232. /* end confdefs.h. */
  15233. #include <sys/types.h>
  15234. /* Check that off_t can represent 2**63 - 1 correctly.
  15235. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15236. since some C++ compilers masquerading as C compilers
  15237. incorrectly reject 9223372036854775807. */
  15238. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  15239. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15240. && LARGE_OFF_T % 2147483647 == 1)
  15241. ? 1 : -1];
  15242. int
  15243. main ()
  15244. {
  15245. ;
  15246. return 0;
  15247. }
  15248. _ACEOF
  15249. rm -f conftest.$ac_objext
  15250. if { (ac_try="$ac_compile"
  15251. case "(($ac_try" in
  15252. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15253. *) ac_try_echo=$ac_try;;
  15254. esac
  15255. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15256. $as_echo "$ac_try_echo") >&5
  15257. (eval "$ac_compile") 2>conftest.er1
  15258. ac_status=$?
  15259. grep -v '^ *+' conftest.er1 >conftest.err
  15260. rm -f conftest.er1
  15261. cat conftest.err >&5
  15262. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15263. (exit $ac_status); } && {
  15264. test -z "$ac_c_werror_flag" ||
  15265. test ! -s conftest.err
  15266. } && test -s conftest.$ac_objext; then
  15267. break
  15268. else
  15269. $as_echo "$as_me: failed program was:" >&5
  15270. sed 's/^/| /' conftest.$ac_ext >&5
  15271. fi
  15272. rm -f core conftest.err conftest.$ac_objext
  15273. CC="$CC -n32"
  15274. rm -f conftest.$ac_objext
  15275. if { (ac_try="$ac_compile"
  15276. case "(($ac_try" in
  15277. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15278. *) ac_try_echo=$ac_try;;
  15279. esac
  15280. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15281. $as_echo "$ac_try_echo") >&5
  15282. (eval "$ac_compile") 2>conftest.er1
  15283. ac_status=$?
  15284. grep -v '^ *+' conftest.er1 >conftest.err
  15285. rm -f conftest.er1
  15286. cat conftest.err >&5
  15287. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15288. (exit $ac_status); } && {
  15289. test -z "$ac_c_werror_flag" ||
  15290. test ! -s conftest.err
  15291. } && test -s conftest.$ac_objext; then
  15292. ac_cv_sys_largefile_CC=' -n32'; break
  15293. else
  15294. $as_echo "$as_me: failed program was:" >&5
  15295. sed 's/^/| /' conftest.$ac_ext >&5
  15296. fi
  15297. rm -f core conftest.err conftest.$ac_objext
  15298. break
  15299. done
  15300. CC=$ac_save_CC
  15301. rm -f conftest.$ac_ext
  15302. fi
  15303. fi
  15304. { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
  15305. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  15306. if test "$ac_cv_sys_largefile_CC" != no; then
  15307. CC=$CC$ac_cv_sys_largefile_CC
  15308. fi
  15309. { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  15310. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  15311. if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  15312. $as_echo_n "(cached) " >&6
  15313. else
  15314. while :; do
  15315. cat >conftest.$ac_ext <<_ACEOF
  15316. /* confdefs.h. */
  15317. _ACEOF
  15318. cat confdefs.h >>conftest.$ac_ext
  15319. cat >>conftest.$ac_ext <<_ACEOF
  15320. /* end confdefs.h. */
  15321. #include <sys/types.h>
  15322. /* Check that off_t can represent 2**63 - 1 correctly.
  15323. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15324. since some C++ compilers masquerading as C compilers
  15325. incorrectly reject 9223372036854775807. */
  15326. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  15327. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15328. && LARGE_OFF_T % 2147483647 == 1)
  15329. ? 1 : -1];
  15330. int
  15331. main ()
  15332. {
  15333. ;
  15334. return 0;
  15335. }
  15336. _ACEOF
  15337. rm -f conftest.$ac_objext
  15338. if { (ac_try="$ac_compile"
  15339. case "(($ac_try" in
  15340. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15341. *) ac_try_echo=$ac_try;;
  15342. esac
  15343. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15344. $as_echo "$ac_try_echo") >&5
  15345. (eval "$ac_compile") 2>conftest.er1
  15346. ac_status=$?
  15347. grep -v '^ *+' conftest.er1 >conftest.err
  15348. rm -f conftest.er1
  15349. cat conftest.err >&5
  15350. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15351. (exit $ac_status); } && {
  15352. test -z "$ac_c_werror_flag" ||
  15353. test ! -s conftest.err
  15354. } && test -s conftest.$ac_objext; then
  15355. ac_cv_sys_file_offset_bits=no; break
  15356. else
  15357. $as_echo "$as_me: failed program was:" >&5
  15358. sed 's/^/| /' conftest.$ac_ext >&5
  15359. fi
  15360. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15361. cat >conftest.$ac_ext <<_ACEOF
  15362. /* confdefs.h. */
  15363. _ACEOF
  15364. cat confdefs.h >>conftest.$ac_ext
  15365. cat >>conftest.$ac_ext <<_ACEOF
  15366. /* end confdefs.h. */
  15367. #define _FILE_OFFSET_BITS 64
  15368. #include <sys/types.h>
  15369. /* Check that off_t can represent 2**63 - 1 correctly.
  15370. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15371. since some C++ compilers masquerading as C compilers
  15372. incorrectly reject 9223372036854775807. */
  15373. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  15374. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15375. && LARGE_OFF_T % 2147483647 == 1)
  15376. ? 1 : -1];
  15377. int
  15378. main ()
  15379. {
  15380. ;
  15381. return 0;
  15382. }
  15383. _ACEOF
  15384. rm -f conftest.$ac_objext
  15385. if { (ac_try="$ac_compile"
  15386. case "(($ac_try" in
  15387. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15388. *) ac_try_echo=$ac_try;;
  15389. esac
  15390. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15391. $as_echo "$ac_try_echo") >&5
  15392. (eval "$ac_compile") 2>conftest.er1
  15393. ac_status=$?
  15394. grep -v '^ *+' conftest.er1 >conftest.err
  15395. rm -f conftest.er1
  15396. cat conftest.err >&5
  15397. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15398. (exit $ac_status); } && {
  15399. test -z "$ac_c_werror_flag" ||
  15400. test ! -s conftest.err
  15401. } && test -s conftest.$ac_objext; then
  15402. ac_cv_sys_file_offset_bits=64; break
  15403. else
  15404. $as_echo "$as_me: failed program was:" >&5
  15405. sed 's/^/| /' conftest.$ac_ext >&5
  15406. fi
  15407. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15408. ac_cv_sys_file_offset_bits=unknown
  15409. break
  15410. done
  15411. fi
  15412. { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
  15413. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  15414. case $ac_cv_sys_file_offset_bits in #(
  15415. no | unknown) ;;
  15416. *)
  15417. cat >>confdefs.h <<_ACEOF
  15418. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  15419. _ACEOF
  15420. ;;
  15421. esac
  15422. rm -rf conftest*
  15423. if test $ac_cv_sys_file_offset_bits = unknown; then
  15424. { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
  15425. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  15426. if test "${ac_cv_sys_large_files+set}" = set; then
  15427. $as_echo_n "(cached) " >&6
  15428. else
  15429. while :; do
  15430. cat >conftest.$ac_ext <<_ACEOF
  15431. /* confdefs.h. */
  15432. _ACEOF
  15433. cat confdefs.h >>conftest.$ac_ext
  15434. cat >>conftest.$ac_ext <<_ACEOF
  15435. /* end confdefs.h. */
  15436. #include <sys/types.h>
  15437. /* Check that off_t can represent 2**63 - 1 correctly.
  15438. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15439. since some C++ compilers masquerading as C compilers
  15440. incorrectly reject 9223372036854775807. */
  15441. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  15442. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15443. && LARGE_OFF_T % 2147483647 == 1)
  15444. ? 1 : -1];
  15445. int
  15446. main ()
  15447. {
  15448. ;
  15449. return 0;
  15450. }
  15451. _ACEOF
  15452. rm -f conftest.$ac_objext
  15453. if { (ac_try="$ac_compile"
  15454. case "(($ac_try" in
  15455. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15456. *) ac_try_echo=$ac_try;;
  15457. esac
  15458. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15459. $as_echo "$ac_try_echo") >&5
  15460. (eval "$ac_compile") 2>conftest.er1
  15461. ac_status=$?
  15462. grep -v '^ *+' conftest.er1 >conftest.err
  15463. rm -f conftest.er1
  15464. cat conftest.err >&5
  15465. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15466. (exit $ac_status); } && {
  15467. test -z "$ac_c_werror_flag" ||
  15468. test ! -s conftest.err
  15469. } && test -s conftest.$ac_objext; then
  15470. ac_cv_sys_large_files=no; break
  15471. else
  15472. $as_echo "$as_me: failed program was:" >&5
  15473. sed 's/^/| /' conftest.$ac_ext >&5
  15474. fi
  15475. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15476. cat >conftest.$ac_ext <<_ACEOF
  15477. /* confdefs.h. */
  15478. _ACEOF
  15479. cat confdefs.h >>conftest.$ac_ext
  15480. cat >>conftest.$ac_ext <<_ACEOF
  15481. /* end confdefs.h. */
  15482. #define _LARGE_FILES 1
  15483. #include <sys/types.h>
  15484. /* Check that off_t can represent 2**63 - 1 correctly.
  15485. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15486. since some C++ compilers masquerading as C compilers
  15487. incorrectly reject 9223372036854775807. */
  15488. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  15489. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15490. && LARGE_OFF_T % 2147483647 == 1)
  15491. ? 1 : -1];
  15492. int
  15493. main ()
  15494. {
  15495. ;
  15496. return 0;
  15497. }
  15498. _ACEOF
  15499. rm -f conftest.$ac_objext
  15500. if { (ac_try="$ac_compile"
  15501. case "(($ac_try" in
  15502. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15503. *) ac_try_echo=$ac_try;;
  15504. esac
  15505. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15506. $as_echo "$ac_try_echo") >&5
  15507. (eval "$ac_compile") 2>conftest.er1
  15508. ac_status=$?
  15509. grep -v '^ *+' conftest.er1 >conftest.err
  15510. rm -f conftest.er1
  15511. cat conftest.err >&5
  15512. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15513. (exit $ac_status); } && {
  15514. test -z "$ac_c_werror_flag" ||
  15515. test ! -s conftest.err
  15516. } && test -s conftest.$ac_objext; then
  15517. ac_cv_sys_large_files=1; break
  15518. else
  15519. $as_echo "$as_me: failed program was:" >&5
  15520. sed 's/^/| /' conftest.$ac_ext >&5
  15521. fi
  15522. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15523. ac_cv_sys_large_files=unknown
  15524. break
  15525. done
  15526. fi
  15527. { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
  15528. $as_echo "$ac_cv_sys_large_files" >&6; }
  15529. case $ac_cv_sys_large_files in #(
  15530. no | unknown) ;;
  15531. *)
  15532. cat >>confdefs.h <<_ACEOF
  15533. #define _LARGE_FILES $ac_cv_sys_large_files
  15534. _ACEOF
  15535. ;;
  15536. esac
  15537. rm -rf conftest*
  15538. fi
  15539. fi
  15540. { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  15541. $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
  15542. if test "${ac_cv_sys_largefile_source+set}" = set; then
  15543. $as_echo_n "(cached) " >&6
  15544. else
  15545. while :; do
  15546. cat >conftest.$ac_ext <<_ACEOF
  15547. /* confdefs.h. */
  15548. _ACEOF
  15549. cat confdefs.h >>conftest.$ac_ext
  15550. cat >>conftest.$ac_ext <<_ACEOF
  15551. /* end confdefs.h. */
  15552. #include <sys/types.h> /* for off_t */
  15553. #include <stdio.h>
  15554. int
  15555. main ()
  15556. {
  15557. int (*fp) (FILE *, off_t, int) = fseeko;
  15558. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  15559. ;
  15560. return 0;
  15561. }
  15562. _ACEOF
  15563. rm -f conftest.$ac_objext conftest$ac_exeext
  15564. if { (ac_try="$ac_link"
  15565. case "(($ac_try" in
  15566. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15567. *) ac_try_echo=$ac_try;;
  15568. esac
  15569. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15570. $as_echo "$ac_try_echo") >&5
  15571. (eval "$ac_link") 2>conftest.er1
  15572. ac_status=$?
  15573. grep -v '^ *+' conftest.er1 >conftest.err
  15574. rm -f conftest.er1
  15575. cat conftest.err >&5
  15576. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15577. (exit $ac_status); } && {
  15578. test -z "$ac_c_werror_flag" ||
  15579. test ! -s conftest.err
  15580. } && test -s conftest$ac_exeext && {
  15581. test "$cross_compiling" = yes ||
  15582. $as_test_x conftest$ac_exeext
  15583. }; then
  15584. ac_cv_sys_largefile_source=no; break
  15585. else
  15586. $as_echo "$as_me: failed program was:" >&5
  15587. sed 's/^/| /' conftest.$ac_ext >&5
  15588. fi
  15589. rm -rf conftest.dSYM
  15590. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15591. conftest$ac_exeext conftest.$ac_ext
  15592. cat >conftest.$ac_ext <<_ACEOF
  15593. /* confdefs.h. */
  15594. _ACEOF
  15595. cat confdefs.h >>conftest.$ac_ext
  15596. cat >>conftest.$ac_ext <<_ACEOF
  15597. /* end confdefs.h. */
  15598. #define _LARGEFILE_SOURCE 1
  15599. #include <sys/types.h> /* for off_t */
  15600. #include <stdio.h>
  15601. int
  15602. main ()
  15603. {
  15604. int (*fp) (FILE *, off_t, int) = fseeko;
  15605. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  15606. ;
  15607. return 0;
  15608. }
  15609. _ACEOF
  15610. rm -f conftest.$ac_objext conftest$ac_exeext
  15611. if { (ac_try="$ac_link"
  15612. case "(($ac_try" in
  15613. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15614. *) ac_try_echo=$ac_try;;
  15615. esac
  15616. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15617. $as_echo "$ac_try_echo") >&5
  15618. (eval "$ac_link") 2>conftest.er1
  15619. ac_status=$?
  15620. grep -v '^ *+' conftest.er1 >conftest.err
  15621. rm -f conftest.er1
  15622. cat conftest.err >&5
  15623. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15624. (exit $ac_status); } && {
  15625. test -z "$ac_c_werror_flag" ||
  15626. test ! -s conftest.err
  15627. } && test -s conftest$ac_exeext && {
  15628. test "$cross_compiling" = yes ||
  15629. $as_test_x conftest$ac_exeext
  15630. }; then
  15631. ac_cv_sys_largefile_source=1; break
  15632. else
  15633. $as_echo "$as_me: failed program was:" >&5
  15634. sed 's/^/| /' conftest.$ac_ext >&5
  15635. fi
  15636. rm -rf conftest.dSYM
  15637. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15638. conftest$ac_exeext conftest.$ac_ext
  15639. ac_cv_sys_largefile_source=unknown
  15640. break
  15641. done
  15642. fi
  15643. { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
  15644. $as_echo "$ac_cv_sys_largefile_source" >&6; }
  15645. case $ac_cv_sys_largefile_source in #(
  15646. no | unknown) ;;
  15647. *)
  15648. cat >>confdefs.h <<_ACEOF
  15649. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  15650. _ACEOF
  15651. ;;
  15652. esac
  15653. rm -rf conftest*
  15654. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  15655. # in glibc 2.1.3, but that breaks too many other things.
  15656. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  15657. if test $ac_cv_sys_largefile_source != unknown; then
  15658. cat >>confdefs.h <<\_ACEOF
  15659. #define HAVE_FSEEKO 1
  15660. _ACEOF
  15661. fi
  15662. { $as_echo "$as_me:$LINENO: checking for u_int8_t" >&5
  15663. $as_echo_n "checking for u_int8_t... " >&6; }
  15664. if test "${ac_cv_type_u_int8_t+set}" = set; then
  15665. $as_echo_n "(cached) " >&6
  15666. else
  15667. ac_cv_type_u_int8_t=no
  15668. cat >conftest.$ac_ext <<_ACEOF
  15669. /* confdefs.h. */
  15670. _ACEOF
  15671. cat confdefs.h >>conftest.$ac_ext
  15672. cat >>conftest.$ac_ext <<_ACEOF
  15673. /* end confdefs.h. */
  15674. $ac_includes_default
  15675. int
  15676. main ()
  15677. {
  15678. if (sizeof (u_int8_t))
  15679. return 0;
  15680. ;
  15681. return 0;
  15682. }
  15683. _ACEOF
  15684. rm -f conftest.$ac_objext
  15685. if { (ac_try="$ac_compile"
  15686. case "(($ac_try" in
  15687. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15688. *) ac_try_echo=$ac_try;;
  15689. esac
  15690. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15691. $as_echo "$ac_try_echo") >&5
  15692. (eval "$ac_compile") 2>conftest.er1
  15693. ac_status=$?
  15694. grep -v '^ *+' conftest.er1 >conftest.err
  15695. rm -f conftest.er1
  15696. cat conftest.err >&5
  15697. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15698. (exit $ac_status); } && {
  15699. test -z "$ac_c_werror_flag" ||
  15700. test ! -s conftest.err
  15701. } && test -s conftest.$ac_objext; then
  15702. cat >conftest.$ac_ext <<_ACEOF
  15703. /* confdefs.h. */
  15704. _ACEOF
  15705. cat confdefs.h >>conftest.$ac_ext
  15706. cat >>conftest.$ac_ext <<_ACEOF
  15707. /* end confdefs.h. */
  15708. $ac_includes_default
  15709. int
  15710. main ()
  15711. {
  15712. if (sizeof ((u_int8_t)))
  15713. return 0;
  15714. ;
  15715. return 0;
  15716. }
  15717. _ACEOF
  15718. rm -f conftest.$ac_objext
  15719. if { (ac_try="$ac_compile"
  15720. case "(($ac_try" in
  15721. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15722. *) ac_try_echo=$ac_try;;
  15723. esac
  15724. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15725. $as_echo "$ac_try_echo") >&5
  15726. (eval "$ac_compile") 2>conftest.er1
  15727. ac_status=$?
  15728. grep -v '^ *+' conftest.er1 >conftest.err
  15729. rm -f conftest.er1
  15730. cat conftest.err >&5
  15731. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15732. (exit $ac_status); } && {
  15733. test -z "$ac_c_werror_flag" ||
  15734. test ! -s conftest.err
  15735. } && test -s conftest.$ac_objext; then
  15736. :
  15737. else
  15738. $as_echo "$as_me: failed program was:" >&5
  15739. sed 's/^/| /' conftest.$ac_ext >&5
  15740. ac_cv_type_u_int8_t=yes
  15741. fi
  15742. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15743. else
  15744. $as_echo "$as_me: failed program was:" >&5
  15745. sed 's/^/| /' conftest.$ac_ext >&5
  15746. fi
  15747. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15748. fi
  15749. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
  15750. $as_echo "$ac_cv_type_u_int8_t" >&6; }
  15751. if test "x$ac_cv_type_u_int8_t" = x""yes; then
  15752. :
  15753. else
  15754. cat >>confdefs.h <<_ACEOF
  15755. #define u_int8_t uint8_t
  15756. _ACEOF
  15757. fi
  15758. { $as_echo "$as_me:$LINENO: checking for u_int16_t" >&5
  15759. $as_echo_n "checking for u_int16_t... " >&6; }
  15760. if test "${ac_cv_type_u_int16_t+set}" = set; then
  15761. $as_echo_n "(cached) " >&6
  15762. else
  15763. ac_cv_type_u_int16_t=no
  15764. cat >conftest.$ac_ext <<_ACEOF
  15765. /* confdefs.h. */
  15766. _ACEOF
  15767. cat confdefs.h >>conftest.$ac_ext
  15768. cat >>conftest.$ac_ext <<_ACEOF
  15769. /* end confdefs.h. */
  15770. $ac_includes_default
  15771. int
  15772. main ()
  15773. {
  15774. if (sizeof (u_int16_t))
  15775. return 0;
  15776. ;
  15777. return 0;
  15778. }
  15779. _ACEOF
  15780. rm -f conftest.$ac_objext
  15781. if { (ac_try="$ac_compile"
  15782. case "(($ac_try" in
  15783. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15784. *) ac_try_echo=$ac_try;;
  15785. esac
  15786. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15787. $as_echo "$ac_try_echo") >&5
  15788. (eval "$ac_compile") 2>conftest.er1
  15789. ac_status=$?
  15790. grep -v '^ *+' conftest.er1 >conftest.err
  15791. rm -f conftest.er1
  15792. cat conftest.err >&5
  15793. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15794. (exit $ac_status); } && {
  15795. test -z "$ac_c_werror_flag" ||
  15796. test ! -s conftest.err
  15797. } && test -s conftest.$ac_objext; then
  15798. cat >conftest.$ac_ext <<_ACEOF
  15799. /* confdefs.h. */
  15800. _ACEOF
  15801. cat confdefs.h >>conftest.$ac_ext
  15802. cat >>conftest.$ac_ext <<_ACEOF
  15803. /* end confdefs.h. */
  15804. $ac_includes_default
  15805. int
  15806. main ()
  15807. {
  15808. if (sizeof ((u_int16_t)))
  15809. return 0;
  15810. ;
  15811. return 0;
  15812. }
  15813. _ACEOF
  15814. rm -f conftest.$ac_objext
  15815. if { (ac_try="$ac_compile"
  15816. case "(($ac_try" in
  15817. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15818. *) ac_try_echo=$ac_try;;
  15819. esac
  15820. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15821. $as_echo "$ac_try_echo") >&5
  15822. (eval "$ac_compile") 2>conftest.er1
  15823. ac_status=$?
  15824. grep -v '^ *+' conftest.er1 >conftest.err
  15825. rm -f conftest.er1
  15826. cat conftest.err >&5
  15827. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15828. (exit $ac_status); } && {
  15829. test -z "$ac_c_werror_flag" ||
  15830. test ! -s conftest.err
  15831. } && test -s conftest.$ac_objext; then
  15832. :
  15833. else
  15834. $as_echo "$as_me: failed program was:" >&5
  15835. sed 's/^/| /' conftest.$ac_ext >&5
  15836. ac_cv_type_u_int16_t=yes
  15837. fi
  15838. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15839. else
  15840. $as_echo "$as_me: failed program was:" >&5
  15841. sed 's/^/| /' conftest.$ac_ext >&5
  15842. fi
  15843. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15844. fi
  15845. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
  15846. $as_echo "$ac_cv_type_u_int16_t" >&6; }
  15847. if test "x$ac_cv_type_u_int16_t" = x""yes; then
  15848. :
  15849. else
  15850. cat >>confdefs.h <<_ACEOF
  15851. #define u_int16_t uint16_t
  15852. _ACEOF
  15853. fi
  15854. { $as_echo "$as_me:$LINENO: checking for u_int32_t" >&5
  15855. $as_echo_n "checking for u_int32_t... " >&6; }
  15856. if test "${ac_cv_type_u_int32_t+set}" = set; then
  15857. $as_echo_n "(cached) " >&6
  15858. else
  15859. ac_cv_type_u_int32_t=no
  15860. cat >conftest.$ac_ext <<_ACEOF
  15861. /* confdefs.h. */
  15862. _ACEOF
  15863. cat confdefs.h >>conftest.$ac_ext
  15864. cat >>conftest.$ac_ext <<_ACEOF
  15865. /* end confdefs.h. */
  15866. $ac_includes_default
  15867. int
  15868. main ()
  15869. {
  15870. if (sizeof (u_int32_t))
  15871. return 0;
  15872. ;
  15873. return 0;
  15874. }
  15875. _ACEOF
  15876. rm -f conftest.$ac_objext
  15877. if { (ac_try="$ac_compile"
  15878. case "(($ac_try" in
  15879. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15880. *) ac_try_echo=$ac_try;;
  15881. esac
  15882. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15883. $as_echo "$ac_try_echo") >&5
  15884. (eval "$ac_compile") 2>conftest.er1
  15885. ac_status=$?
  15886. grep -v '^ *+' conftest.er1 >conftest.err
  15887. rm -f conftest.er1
  15888. cat conftest.err >&5
  15889. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15890. (exit $ac_status); } && {
  15891. test -z "$ac_c_werror_flag" ||
  15892. test ! -s conftest.err
  15893. } && test -s conftest.$ac_objext; then
  15894. cat >conftest.$ac_ext <<_ACEOF
  15895. /* confdefs.h. */
  15896. _ACEOF
  15897. cat confdefs.h >>conftest.$ac_ext
  15898. cat >>conftest.$ac_ext <<_ACEOF
  15899. /* end confdefs.h. */
  15900. $ac_includes_default
  15901. int
  15902. main ()
  15903. {
  15904. if (sizeof ((u_int32_t)))
  15905. return 0;
  15906. ;
  15907. return 0;
  15908. }
  15909. _ACEOF
  15910. rm -f conftest.$ac_objext
  15911. if { (ac_try="$ac_compile"
  15912. case "(($ac_try" in
  15913. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15914. *) ac_try_echo=$ac_try;;
  15915. esac
  15916. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15917. $as_echo "$ac_try_echo") >&5
  15918. (eval "$ac_compile") 2>conftest.er1
  15919. ac_status=$?
  15920. grep -v '^ *+' conftest.er1 >conftest.err
  15921. rm -f conftest.er1
  15922. cat conftest.err >&5
  15923. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15924. (exit $ac_status); } && {
  15925. test -z "$ac_c_werror_flag" ||
  15926. test ! -s conftest.err
  15927. } && test -s conftest.$ac_objext; then
  15928. :
  15929. else
  15930. $as_echo "$as_me: failed program was:" >&5
  15931. sed 's/^/| /' conftest.$ac_ext >&5
  15932. ac_cv_type_u_int32_t=yes
  15933. fi
  15934. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15935. else
  15936. $as_echo "$as_me: failed program was:" >&5
  15937. sed 's/^/| /' conftest.$ac_ext >&5
  15938. fi
  15939. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15940. fi
  15941. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
  15942. $as_echo "$ac_cv_type_u_int32_t" >&6; }
  15943. if test "x$ac_cv_type_u_int32_t" = x""yes; then
  15944. :
  15945. else
  15946. cat >>confdefs.h <<_ACEOF
  15947. #define u_int32_t uint32_t
  15948. _ACEOF
  15949. fi
  15950. { $as_echo "$as_me:$LINENO: checking for u_int64_t" >&5
  15951. $as_echo_n "checking for u_int64_t... " >&6; }
  15952. if test "${ac_cv_type_u_int64_t+set}" = set; then
  15953. $as_echo_n "(cached) " >&6
  15954. else
  15955. ac_cv_type_u_int64_t=no
  15956. cat >conftest.$ac_ext <<_ACEOF
  15957. /* confdefs.h. */
  15958. _ACEOF
  15959. cat confdefs.h >>conftest.$ac_ext
  15960. cat >>conftest.$ac_ext <<_ACEOF
  15961. /* end confdefs.h. */
  15962. $ac_includes_default
  15963. int
  15964. main ()
  15965. {
  15966. if (sizeof (u_int64_t))
  15967. return 0;
  15968. ;
  15969. return 0;
  15970. }
  15971. _ACEOF
  15972. rm -f conftest.$ac_objext
  15973. if { (ac_try="$ac_compile"
  15974. case "(($ac_try" in
  15975. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15976. *) ac_try_echo=$ac_try;;
  15977. esac
  15978. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15979. $as_echo "$ac_try_echo") >&5
  15980. (eval "$ac_compile") 2>conftest.er1
  15981. ac_status=$?
  15982. grep -v '^ *+' conftest.er1 >conftest.err
  15983. rm -f conftest.er1
  15984. cat conftest.err >&5
  15985. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15986. (exit $ac_status); } && {
  15987. test -z "$ac_c_werror_flag" ||
  15988. test ! -s conftest.err
  15989. } && test -s conftest.$ac_objext; then
  15990. cat >conftest.$ac_ext <<_ACEOF
  15991. /* confdefs.h. */
  15992. _ACEOF
  15993. cat confdefs.h >>conftest.$ac_ext
  15994. cat >>conftest.$ac_ext <<_ACEOF
  15995. /* end confdefs.h. */
  15996. $ac_includes_default
  15997. int
  15998. main ()
  15999. {
  16000. if (sizeof ((u_int64_t)))
  16001. return 0;
  16002. ;
  16003. return 0;
  16004. }
  16005. _ACEOF
  16006. rm -f conftest.$ac_objext
  16007. if { (ac_try="$ac_compile"
  16008. case "(($ac_try" in
  16009. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16010. *) ac_try_echo=$ac_try;;
  16011. esac
  16012. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16013. $as_echo "$ac_try_echo") >&5
  16014. (eval "$ac_compile") 2>conftest.er1
  16015. ac_status=$?
  16016. grep -v '^ *+' conftest.er1 >conftest.err
  16017. rm -f conftest.er1
  16018. cat conftest.err >&5
  16019. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16020. (exit $ac_status); } && {
  16021. test -z "$ac_c_werror_flag" ||
  16022. test ! -s conftest.err
  16023. } && test -s conftest.$ac_objext; then
  16024. :
  16025. else
  16026. $as_echo "$as_me: failed program was:" >&5
  16027. sed 's/^/| /' conftest.$ac_ext >&5
  16028. ac_cv_type_u_int64_t=yes
  16029. fi
  16030. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16031. else
  16032. $as_echo "$as_me: failed program was:" >&5
  16033. sed 's/^/| /' conftest.$ac_ext >&5
  16034. fi
  16035. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16036. fi
  16037. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
  16038. $as_echo "$ac_cv_type_u_int64_t" >&6; }
  16039. if test "x$ac_cv_type_u_int64_t" = x""yes; then
  16040. :
  16041. else
  16042. cat >>confdefs.h <<_ACEOF
  16043. #define u_int64_t uint64_t
  16044. _ACEOF
  16045. fi
  16046. { $as_echo "$as_me:$LINENO: checking for $CC -Wextra support" >&5
  16047. $as_echo_n "checking for $CC -Wextra support... " >&6; }
  16048. OLD_CFLAGS=$CFLAGS
  16049. CFLAGS="$CFLAGS -Wextra"
  16050. wextra=""
  16051. cat >conftest.$ac_ext <<_ACEOF
  16052. #include <stdlib.h>
  16053. int main(int argc, char *argv) { return(0); }
  16054. _ACEOF
  16055. rm -f conftest.$ac_objext
  16056. if { (ac_try="$ac_compile"
  16057. case "(($ac_try" in
  16058. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16059. *) ac_try_echo=$ac_try;;
  16060. esac
  16061. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16062. $as_echo "$ac_try_echo") >&5
  16063. (eval "$ac_compile") 2>conftest.er1
  16064. ac_status=$?
  16065. grep -v '^ *+' conftest.er1 >conftest.err
  16066. rm -f conftest.er1
  16067. cat conftest.err >&5
  16068. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16069. (exit $ac_status); } && {
  16070. test -z "$ac_c_werror_flag" ||
  16071. test ! -s conftest.err
  16072. } && test -s conftest.$ac_objext; then
  16073. { $as_echo "$as_me:$LINENO: result: yes" >&5
  16074. $as_echo "yes" >&6; }
  16075. wextra="-Wextra"
  16076. else
  16077. $as_echo "$as_me: failed program was:" >&5
  16078. sed 's/^/| /' conftest.$ac_ext >&5
  16079. { $as_echo "$as_me:$LINENO: result: no" >&5
  16080. $as_echo "no" >&6; }
  16081. fi
  16082. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16083. CFLAGS="$OLD_CFLAGS $wextra"
  16084. { $as_echo "$as_me:$LINENO: checking for $CC -Wno-variadic-macros support" >&5
  16085. $as_echo_n "checking for $CC -Wno-variadic-macros support... " >&6; }
  16086. OLD_CFLAGS=$CFLAGS
  16087. CFLAGS="$CFLAGS -Wno-variadic-macros"
  16088. wno_variadic_macros=""
  16089. cat >conftest.$ac_ext <<_ACEOF
  16090. #include <stdlib.h>
  16091. int main(int argc, char *argv) { return(0); }
  16092. _ACEOF
  16093. rm -f conftest.$ac_objext
  16094. if { (ac_try="$ac_compile"
  16095. case "(($ac_try" in
  16096. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16097. *) ac_try_echo=$ac_try;;
  16098. esac
  16099. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16100. $as_echo "$ac_try_echo") >&5
  16101. (eval "$ac_compile") 2>conftest.er1
  16102. ac_status=$?
  16103. grep -v '^ *+' conftest.er1 >conftest.err
  16104. rm -f conftest.er1
  16105. cat conftest.err >&5
  16106. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16107. (exit $ac_status); } && {
  16108. test -z "$ac_c_werror_flag" ||
  16109. test ! -s conftest.err
  16110. } && test -s conftest.$ac_objext; then
  16111. { $as_echo "$as_me:$LINENO: result: yes" >&5
  16112. $as_echo "yes" >&6; }
  16113. wno_variadic_macros="-Wno-variadic-macros"
  16114. else
  16115. $as_echo "$as_me: failed program was:" >&5
  16116. sed 's/^/| /' conftest.$ac_ext >&5
  16117. { $as_echo "$as_me:$LINENO: result: no" >&5
  16118. $as_echo "no" >&6; }
  16119. fi
  16120. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16121. CFLAGS="$OLD_CFLAGS $wno_variadic_macros"
  16122. { $as_echo "$as_me:$LINENO: checking for $CC -Wfatal-errors support" >&5
  16123. $as_echo_n "checking for $CC -Wfatal-errors support... " >&6; }
  16124. OLD_CFLAGS=$CFLAGS
  16125. CFLAGS="$CFLAGS -Wfatal-errors"
  16126. wfatal_errors=""
  16127. cat >conftest.$ac_ext <<_ACEOF
  16128. #include <stdlib.h>
  16129. int main(int argc, char *argv) { return(0); }
  16130. _ACEOF
  16131. rm -f conftest.$ac_objext
  16132. if { (ac_try="$ac_compile"
  16133. case "(($ac_try" in
  16134. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16135. *) ac_try_echo=$ac_try;;
  16136. esac
  16137. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16138. $as_echo "$ac_try_echo") >&5
  16139. (eval "$ac_compile") 2>conftest.er1
  16140. ac_status=$?
  16141. grep -v '^ *+' conftest.er1 >conftest.err
  16142. rm -f conftest.er1
  16143. cat conftest.err >&5
  16144. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16145. (exit $ac_status); } && {
  16146. test -z "$ac_c_werror_flag" ||
  16147. test ! -s conftest.err
  16148. } && test -s conftest.$ac_objext; then
  16149. { $as_echo "$as_me:$LINENO: result: yes" >&5
  16150. $as_echo "yes" >&6; }
  16151. wfatal_errors="-Wfatal-errors"
  16152. else
  16153. $as_echo "$as_me: failed program was:" >&5
  16154. sed 's/^/| /' conftest.$ac_ext >&5
  16155. { $as_echo "$as_me:$LINENO: result: no" >&5
  16156. $as_echo "no" >&6; }
  16157. fi
  16158. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16159. CFLAGS="$OLD_CFLAGS $wfatal_errors"
  16160. 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 stdint.h sys/select.h netinet/in.h poll.h sys/poll.h unistd.h sys/param.h
  16161. do
  16162. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16163. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16164. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  16165. $as_echo_n "checking for $ac_header... " >&6; }
  16166. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16167. $as_echo_n "(cached) " >&6
  16168. fi
  16169. ac_res=`eval 'as_val=${'$as_ac_Header'}
  16170. $as_echo "$as_val"'`
  16171. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  16172. $as_echo "$ac_res" >&6; }
  16173. else
  16174. # Is the header compilable?
  16175. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  16176. $as_echo_n "checking $ac_header usability... " >&6; }
  16177. cat >conftest.$ac_ext <<_ACEOF
  16178. /* confdefs.h. */
  16179. _ACEOF
  16180. cat confdefs.h >>conftest.$ac_ext
  16181. cat >>conftest.$ac_ext <<_ACEOF
  16182. /* end confdefs.h. */
  16183. $ac_includes_default
  16184. #include <$ac_header>
  16185. _ACEOF
  16186. rm -f conftest.$ac_objext
  16187. if { (ac_try="$ac_compile"
  16188. case "(($ac_try" in
  16189. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16190. *) ac_try_echo=$ac_try;;
  16191. esac
  16192. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16193. $as_echo "$ac_try_echo") >&5
  16194. (eval "$ac_compile") 2>conftest.er1
  16195. ac_status=$?
  16196. grep -v '^ *+' conftest.er1 >conftest.err
  16197. rm -f conftest.er1
  16198. cat conftest.err >&5
  16199. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16200. (exit $ac_status); } && {
  16201. test -z "$ac_c_werror_flag" ||
  16202. test ! -s conftest.err
  16203. } && test -s conftest.$ac_objext; then
  16204. ac_header_compiler=yes
  16205. else
  16206. $as_echo "$as_me: failed program was:" >&5
  16207. sed 's/^/| /' conftest.$ac_ext >&5
  16208. ac_header_compiler=no
  16209. fi
  16210. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16211. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16212. $as_echo "$ac_header_compiler" >&6; }
  16213. # Is the header present?
  16214. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  16215. $as_echo_n "checking $ac_header presence... " >&6; }
  16216. cat >conftest.$ac_ext <<_ACEOF
  16217. /* confdefs.h. */
  16218. _ACEOF
  16219. cat confdefs.h >>conftest.$ac_ext
  16220. cat >>conftest.$ac_ext <<_ACEOF
  16221. /* end confdefs.h. */
  16222. #include <$ac_header>
  16223. _ACEOF
  16224. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16225. case "(($ac_try" in
  16226. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16227. *) ac_try_echo=$ac_try;;
  16228. esac
  16229. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16230. $as_echo "$ac_try_echo") >&5
  16231. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16232. ac_status=$?
  16233. grep -v '^ *+' conftest.er1 >conftest.err
  16234. rm -f conftest.er1
  16235. cat conftest.err >&5
  16236. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16237. (exit $ac_status); } >/dev/null && {
  16238. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  16239. test ! -s conftest.err
  16240. }; then
  16241. ac_header_preproc=yes
  16242. else
  16243. $as_echo "$as_me: failed program was:" >&5
  16244. sed 's/^/| /' conftest.$ac_ext >&5
  16245. ac_header_preproc=no
  16246. fi
  16247. rm -f conftest.err conftest.$ac_ext
  16248. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  16249. $as_echo "$ac_header_preproc" >&6; }
  16250. # So? What about this header?
  16251. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  16252. yes:no: )
  16253. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  16254. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16255. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  16256. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  16257. ac_header_preproc=yes
  16258. ;;
  16259. no:yes:* )
  16260. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  16261. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  16262. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  16263. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  16264. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  16265. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  16266. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  16267. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  16268. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  16269. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  16270. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  16271. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  16272. ;;
  16273. esac
  16274. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  16275. $as_echo_n "checking for $ac_header... " >&6; }
  16276. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16277. $as_echo_n "(cached) " >&6
  16278. else
  16279. eval "$as_ac_Header=\$ac_header_preproc"
  16280. fi
  16281. ac_res=`eval 'as_val=${'$as_ac_Header'}
  16282. $as_echo "$as_val"'`
  16283. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  16284. $as_echo "$ac_res" >&6; }
  16285. fi
  16286. as_val=`eval 'as_val=${'$as_ac_Header'}
  16287. $as_echo "$as_val"'`
  16288. if test "x$as_val" = x""yes; then
  16289. cat >>confdefs.h <<_ACEOF
  16290. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16291. _ACEOF
  16292. fi
  16293. done
  16294. for ac_header in sys/sysctl.h net/route.h
  16295. do
  16296. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16297. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  16298. $as_echo_n "checking for $ac_header... " >&6; }
  16299. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16300. $as_echo_n "(cached) " >&6
  16301. else
  16302. cat >conftest.$ac_ext <<_ACEOF
  16303. /* confdefs.h. */
  16304. _ACEOF
  16305. cat confdefs.h >>conftest.$ac_ext
  16306. cat >>conftest.$ac_ext <<_ACEOF
  16307. /* end confdefs.h. */
  16308. #if HAVE_SYS_PARAM_H
  16309. #include <sys/param.h>
  16310. #endif
  16311. #if HAVE_SYS_TYPES_H
  16312. #include <sys/types.h>
  16313. #endif
  16314. #if HAVE_SYS_SOCKET_H
  16315. #include <sys/socket.h>
  16316. #endif
  16317. #include <$ac_header>
  16318. _ACEOF
  16319. rm -f conftest.$ac_objext
  16320. if { (ac_try="$ac_compile"
  16321. case "(($ac_try" in
  16322. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16323. *) ac_try_echo=$ac_try;;
  16324. esac
  16325. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16326. $as_echo "$ac_try_echo") >&5
  16327. (eval "$ac_compile") 2>conftest.er1
  16328. ac_status=$?
  16329. grep -v '^ *+' conftest.er1 >conftest.err
  16330. rm -f conftest.er1
  16331. cat conftest.err >&5
  16332. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16333. (exit $ac_status); } && {
  16334. test -z "$ac_c_werror_flag" ||
  16335. test ! -s conftest.err
  16336. } && test -s conftest.$ac_objext; then
  16337. eval "$as_ac_Header=yes"
  16338. else
  16339. $as_echo "$as_me: failed program was:" >&5
  16340. sed 's/^/| /' conftest.$ac_ext >&5
  16341. eval "$as_ac_Header=no"
  16342. fi
  16343. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16344. fi
  16345. ac_res=`eval 'as_val=${'$as_ac_Header'}
  16346. $as_echo "$as_val"'`
  16347. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  16348. $as_echo "$ac_res" >&6; }
  16349. as_val=`eval 'as_val=${'$as_ac_Header'}
  16350. $as_echo "$as_val"'`
  16351. if test "x$as_val" = x""yes; then
  16352. cat >>confdefs.h <<_ACEOF
  16353. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16354. _ACEOF
  16355. fi
  16356. done
  16357. { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
  16358. $as_echo_n "checking for socket in -lsocket... " >&6; }
  16359. if test "${ac_cv_lib_socket_socket+set}" = set; then
  16360. $as_echo_n "(cached) " >&6
  16361. else
  16362. ac_check_lib_save_LIBS=$LIBS
  16363. LIBS="-lsocket $LIBS"
  16364. cat >conftest.$ac_ext <<_ACEOF
  16365. /* confdefs.h. */
  16366. _ACEOF
  16367. cat confdefs.h >>conftest.$ac_ext
  16368. cat >>conftest.$ac_ext <<_ACEOF
  16369. /* end confdefs.h. */
  16370. /* Override any GCC internal prototype to avoid an error.
  16371. Use char because int might match the return type of a GCC
  16372. builtin and then its argument prototype would still apply. */
  16373. #ifdef __cplusplus
  16374. extern "C"
  16375. #endif
  16376. char socket ();
  16377. int
  16378. main ()
  16379. {
  16380. return socket ();
  16381. ;
  16382. return 0;
  16383. }
  16384. _ACEOF
  16385. rm -f conftest.$ac_objext conftest$ac_exeext
  16386. if { (ac_try="$ac_link"
  16387. case "(($ac_try" in
  16388. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16389. *) ac_try_echo=$ac_try;;
  16390. esac
  16391. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16392. $as_echo "$ac_try_echo") >&5
  16393. (eval "$ac_link") 2>conftest.er1
  16394. ac_status=$?
  16395. grep -v '^ *+' conftest.er1 >conftest.err
  16396. rm -f conftest.er1
  16397. cat conftest.err >&5
  16398. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16399. (exit $ac_status); } && {
  16400. test -z "$ac_c_werror_flag" ||
  16401. test ! -s conftest.err
  16402. } && test -s conftest$ac_exeext && {
  16403. test "$cross_compiling" = yes ||
  16404. $as_test_x conftest$ac_exeext
  16405. }; then
  16406. ac_cv_lib_socket_socket=yes
  16407. else
  16408. $as_echo "$as_me: failed program was:" >&5
  16409. sed 's/^/| /' conftest.$ac_ext >&5
  16410. ac_cv_lib_socket_socket=no
  16411. fi
  16412. rm -rf conftest.dSYM
  16413. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16414. conftest$ac_exeext conftest.$ac_ext
  16415. LIBS=$ac_check_lib_save_LIBS
  16416. fi
  16417. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
  16418. $as_echo "$ac_cv_lib_socket_socket" >&6; }
  16419. if test "x$ac_cv_lib_socket_socket" = x""yes; then
  16420. cat >>confdefs.h <<_ACEOF
  16421. #define HAVE_LIBSOCKET 1
  16422. _ACEOF
  16423. LIBS="-lsocket $LIBS"
  16424. fi
  16425. { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
  16426. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  16427. if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
  16428. $as_echo_n "(cached) " >&6
  16429. else
  16430. ac_check_lib_save_LIBS=$LIBS
  16431. LIBS="-lnsl $LIBS"
  16432. cat >conftest.$ac_ext <<_ACEOF
  16433. /* confdefs.h. */
  16434. _ACEOF
  16435. cat confdefs.h >>conftest.$ac_ext
  16436. cat >>conftest.$ac_ext <<_ACEOF
  16437. /* end confdefs.h. */
  16438. /* Override any GCC internal prototype to avoid an error.
  16439. Use char because int might match the return type of a GCC
  16440. builtin and then its argument prototype would still apply. */
  16441. #ifdef __cplusplus
  16442. extern "C"
  16443. #endif
  16444. char gethostbyname ();
  16445. int
  16446. main ()
  16447. {
  16448. return gethostbyname ();
  16449. ;
  16450. return 0;
  16451. }
  16452. _ACEOF
  16453. rm -f conftest.$ac_objext conftest$ac_exeext
  16454. if { (ac_try="$ac_link"
  16455. case "(($ac_try" in
  16456. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16457. *) ac_try_echo=$ac_try;;
  16458. esac
  16459. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16460. $as_echo "$ac_try_echo") >&5
  16461. (eval "$ac_link") 2>conftest.er1
  16462. ac_status=$?
  16463. grep -v '^ *+' conftest.er1 >conftest.err
  16464. rm -f conftest.er1
  16465. cat conftest.err >&5
  16466. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16467. (exit $ac_status); } && {
  16468. test -z "$ac_c_werror_flag" ||
  16469. test ! -s conftest.err
  16470. } && test -s conftest$ac_exeext && {
  16471. test "$cross_compiling" = yes ||
  16472. $as_test_x conftest$ac_exeext
  16473. }; then
  16474. ac_cv_lib_nsl_gethostbyname=yes
  16475. else
  16476. $as_echo "$as_me: failed program was:" >&5
  16477. sed 's/^/| /' conftest.$ac_ext >&5
  16478. ac_cv_lib_nsl_gethostbyname=no
  16479. fi
  16480. rm -rf conftest.dSYM
  16481. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16482. conftest$ac_exeext conftest.$ac_ext
  16483. LIBS=$ac_check_lib_save_LIBS
  16484. fi
  16485. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
  16486. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  16487. if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
  16488. cat >>confdefs.h <<_ACEOF
  16489. #define HAVE_LIBNSL 1
  16490. _ACEOF
  16491. LIBS="-lnsl $LIBS"
  16492. fi
  16493. { $as_echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5
  16494. $as_echo_n "checking for nanosleep in -lrt... " >&6; }
  16495. if test "${ac_cv_lib_rt_nanosleep+set}" = set; then
  16496. $as_echo_n "(cached) " >&6
  16497. else
  16498. ac_check_lib_save_LIBS=$LIBS
  16499. LIBS="-lrt $LIBS"
  16500. cat >conftest.$ac_ext <<_ACEOF
  16501. /* confdefs.h. */
  16502. _ACEOF
  16503. cat confdefs.h >>conftest.$ac_ext
  16504. cat >>conftest.$ac_ext <<_ACEOF
  16505. /* end confdefs.h. */
  16506. /* Override any GCC internal prototype to avoid an error.
  16507. Use char because int might match the return type of a GCC
  16508. builtin and then its argument prototype would still apply. */
  16509. #ifdef __cplusplus
  16510. extern "C"
  16511. #endif
  16512. char nanosleep ();
  16513. int
  16514. main ()
  16515. {
  16516. return nanosleep ();
  16517. ;
  16518. return 0;
  16519. }
  16520. _ACEOF
  16521. rm -f conftest.$ac_objext conftest$ac_exeext
  16522. if { (ac_try="$ac_link"
  16523. case "(($ac_try" in
  16524. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16525. *) ac_try_echo=$ac_try;;
  16526. esac
  16527. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16528. $as_echo "$ac_try_echo") >&5
  16529. (eval "$ac_link") 2>conftest.er1
  16530. ac_status=$?
  16531. grep -v '^ *+' conftest.er1 >conftest.err
  16532. rm -f conftest.er1
  16533. cat conftest.err >&5
  16534. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16535. (exit $ac_status); } && {
  16536. test -z "$ac_c_werror_flag" ||
  16537. test ! -s conftest.err
  16538. } && test -s conftest$ac_exeext && {
  16539. test "$cross_compiling" = yes ||
  16540. $as_test_x conftest$ac_exeext
  16541. }; then
  16542. ac_cv_lib_rt_nanosleep=yes
  16543. else
  16544. $as_echo "$as_me: failed program was:" >&5
  16545. sed 's/^/| /' conftest.$ac_ext >&5
  16546. ac_cv_lib_rt_nanosleep=no
  16547. fi
  16548. rm -rf conftest.dSYM
  16549. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16550. conftest$ac_exeext conftest.$ac_ext
  16551. LIBS=$ac_check_lib_save_LIBS
  16552. fi
  16553. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5
  16554. $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
  16555. if test "x$ac_cv_lib_rt_nanosleep" = x""yes; then
  16556. cat >>confdefs.h <<_ACEOF
  16557. #define HAVE_LIBRT 1
  16558. _ACEOF
  16559. LIBS="-lrt $LIBS"
  16560. fi
  16561. { $as_echo "$as_me:$LINENO: checking for resolv in -lresolv" >&5
  16562. $as_echo_n "checking for resolv in -lresolv... " >&6; }
  16563. if test "${ac_cv_lib_resolv_resolv+set}" = set; then
  16564. $as_echo_n "(cached) " >&6
  16565. else
  16566. ac_check_lib_save_LIBS=$LIBS
  16567. LIBS="-lresolv $LIBS"
  16568. cat >conftest.$ac_ext <<_ACEOF
  16569. /* confdefs.h. */
  16570. _ACEOF
  16571. cat confdefs.h >>conftest.$ac_ext
  16572. cat >>conftest.$ac_ext <<_ACEOF
  16573. /* end confdefs.h. */
  16574. /* Override any GCC internal prototype to avoid an error.
  16575. Use char because int might match the return type of a GCC
  16576. builtin and then its argument prototype would still apply. */
  16577. #ifdef __cplusplus
  16578. extern "C"
  16579. #endif
  16580. char resolv ();
  16581. int
  16582. main ()
  16583. {
  16584. return resolv ();
  16585. ;
  16586. return 0;
  16587. }
  16588. _ACEOF
  16589. rm -f conftest.$ac_objext conftest$ac_exeext
  16590. if { (ac_try="$ac_link"
  16591. case "(($ac_try" in
  16592. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16593. *) ac_try_echo=$ac_try;;
  16594. esac
  16595. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16596. $as_echo "$ac_try_echo") >&5
  16597. (eval "$ac_link") 2>conftest.er1
  16598. ac_status=$?
  16599. grep -v '^ *+' conftest.er1 >conftest.err
  16600. rm -f conftest.er1
  16601. cat conftest.err >&5
  16602. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16603. (exit $ac_status); } && {
  16604. test -z "$ac_c_werror_flag" ||
  16605. test ! -s conftest.err
  16606. } && test -s conftest$ac_exeext && {
  16607. test "$cross_compiling" = yes ||
  16608. $as_test_x conftest$ac_exeext
  16609. }; then
  16610. ac_cv_lib_resolv_resolv=yes
  16611. else
  16612. $as_echo "$as_me: failed program was:" >&5
  16613. sed 's/^/| /' conftest.$ac_ext >&5
  16614. ac_cv_lib_resolv_resolv=no
  16615. fi
  16616. rm -rf conftest.dSYM
  16617. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16618. conftest$ac_exeext conftest.$ac_ext
  16619. LIBS=$ac_check_lib_save_LIBS
  16620. fi
  16621. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_resolv" >&5
  16622. $as_echo "$ac_cv_lib_resolv_resolv" >&6; }
  16623. if test "x$ac_cv_lib_resolv_resolv" = x""yes; then
  16624. cat >>confdefs.h <<_ACEOF
  16625. #define HAVE_LIBRESOLV 1
  16626. _ACEOF
  16627. LIBS="-lresolv $LIBS"
  16628. fi
  16629. for ac_header in stdlib.h
  16630. do
  16631. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16632. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16633. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  16634. $as_echo_n "checking for $ac_header... " >&6; }
  16635. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16636. $as_echo_n "(cached) " >&6
  16637. fi
  16638. ac_res=`eval 'as_val=${'$as_ac_Header'}
  16639. $as_echo "$as_val"'`
  16640. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  16641. $as_echo "$ac_res" >&6; }
  16642. else
  16643. # Is the header compilable?
  16644. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  16645. $as_echo_n "checking $ac_header usability... " >&6; }
  16646. cat >conftest.$ac_ext <<_ACEOF
  16647. /* confdefs.h. */
  16648. _ACEOF
  16649. cat confdefs.h >>conftest.$ac_ext
  16650. cat >>conftest.$ac_ext <<_ACEOF
  16651. /* end confdefs.h. */
  16652. $ac_includes_default
  16653. #include <$ac_header>
  16654. _ACEOF
  16655. rm -f conftest.$ac_objext
  16656. if { (ac_try="$ac_compile"
  16657. case "(($ac_try" in
  16658. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16659. *) ac_try_echo=$ac_try;;
  16660. esac
  16661. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16662. $as_echo "$ac_try_echo") >&5
  16663. (eval "$ac_compile") 2>conftest.er1
  16664. ac_status=$?
  16665. grep -v '^ *+' conftest.er1 >conftest.err
  16666. rm -f conftest.er1
  16667. cat conftest.err >&5
  16668. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16669. (exit $ac_status); } && {
  16670. test -z "$ac_c_werror_flag" ||
  16671. test ! -s conftest.err
  16672. } && test -s conftest.$ac_objext; then
  16673. ac_header_compiler=yes
  16674. else
  16675. $as_echo "$as_me: failed program was:" >&5
  16676. sed 's/^/| /' conftest.$ac_ext >&5
  16677. ac_header_compiler=no
  16678. fi
  16679. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16680. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16681. $as_echo "$ac_header_compiler" >&6; }
  16682. # Is the header present?
  16683. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  16684. $as_echo_n "checking $ac_header presence... " >&6; }
  16685. cat >conftest.$ac_ext <<_ACEOF
  16686. /* confdefs.h. */
  16687. _ACEOF
  16688. cat confdefs.h >>conftest.$ac_ext
  16689. cat >>conftest.$ac_ext <<_ACEOF
  16690. /* end confdefs.h. */
  16691. #include <$ac_header>
  16692. _ACEOF
  16693. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16694. case "(($ac_try" in
  16695. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16696. *) ac_try_echo=$ac_try;;
  16697. esac
  16698. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16699. $as_echo "$ac_try_echo") >&5
  16700. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16701. ac_status=$?
  16702. grep -v '^ *+' conftest.er1 >conftest.err
  16703. rm -f conftest.er1
  16704. cat conftest.err >&5
  16705. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16706. (exit $ac_status); } >/dev/null && {
  16707. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  16708. test ! -s conftest.err
  16709. }; then
  16710. ac_header_preproc=yes
  16711. else
  16712. $as_echo "$as_me: failed program was:" >&5
  16713. sed 's/^/| /' conftest.$ac_ext >&5
  16714. ac_header_preproc=no
  16715. fi
  16716. rm -f conftest.err conftest.$ac_ext
  16717. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  16718. $as_echo "$ac_header_preproc" >&6; }
  16719. # So? What about this header?
  16720. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  16721. yes:no: )
  16722. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  16723. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16724. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  16725. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  16726. ac_header_preproc=yes
  16727. ;;
  16728. no:yes:* )
  16729. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  16730. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  16731. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  16732. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  16733. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  16734. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  16735. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  16736. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  16737. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  16738. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  16739. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  16740. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  16741. ;;
  16742. esac
  16743. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  16744. $as_echo_n "checking for $ac_header... " >&6; }
  16745. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16746. $as_echo_n "(cached) " >&6
  16747. else
  16748. eval "$as_ac_Header=\$ac_header_preproc"
  16749. fi
  16750. ac_res=`eval 'as_val=${'$as_ac_Header'}
  16751. $as_echo "$as_val"'`
  16752. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  16753. $as_echo "$ac_res" >&6; }
  16754. fi
  16755. as_val=`eval 'as_val=${'$as_ac_Header'}
  16756. $as_echo "$as_val"'`
  16757. if test "x$as_val" = x""yes; then
  16758. cat >>confdefs.h <<_ACEOF
  16759. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16760. _ACEOF
  16761. fi
  16762. done
  16763. { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  16764. $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
  16765. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  16766. $as_echo_n "(cached) " >&6
  16767. else
  16768. if test "$cross_compiling" = yes; then
  16769. ac_cv_func_malloc_0_nonnull=no
  16770. else
  16771. cat >conftest.$ac_ext <<_ACEOF
  16772. /* confdefs.h. */
  16773. _ACEOF
  16774. cat confdefs.h >>conftest.$ac_ext
  16775. cat >>conftest.$ac_ext <<_ACEOF
  16776. /* end confdefs.h. */
  16777. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  16778. # include <stdlib.h>
  16779. #else
  16780. char *malloc ();
  16781. #endif
  16782. int
  16783. main ()
  16784. {
  16785. return ! malloc (0);
  16786. ;
  16787. return 0;
  16788. }
  16789. _ACEOF
  16790. rm -f conftest$ac_exeext
  16791. if { (ac_try="$ac_link"
  16792. case "(($ac_try" in
  16793. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16794. *) ac_try_echo=$ac_try;;
  16795. esac
  16796. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16797. $as_echo "$ac_try_echo") >&5
  16798. (eval "$ac_link") 2>&5
  16799. ac_status=$?
  16800. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16801. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16802. { (case "(($ac_try" in
  16803. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16804. *) ac_try_echo=$ac_try;;
  16805. esac
  16806. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16807. $as_echo "$ac_try_echo") >&5
  16808. (eval "$ac_try") 2>&5
  16809. ac_status=$?
  16810. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16811. (exit $ac_status); }; }; then
  16812. ac_cv_func_malloc_0_nonnull=yes
  16813. else
  16814. $as_echo "$as_me: program exited with status $ac_status" >&5
  16815. $as_echo "$as_me: failed program was:" >&5
  16816. sed 's/^/| /' conftest.$ac_ext >&5
  16817. ( exit $ac_status )
  16818. ac_cv_func_malloc_0_nonnull=no
  16819. fi
  16820. rm -rf conftest.dSYM
  16821. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16822. fi
  16823. fi
  16824. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  16825. $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
  16826. if test $ac_cv_func_malloc_0_nonnull = yes; then
  16827. cat >>confdefs.h <<\_ACEOF
  16828. #define HAVE_MALLOC 1
  16829. _ACEOF
  16830. else
  16831. cat >>confdefs.h <<\_ACEOF
  16832. #define HAVE_MALLOC 0
  16833. _ACEOF
  16834. case " $LIBOBJS " in
  16835. *" malloc.$ac_objext "* ) ;;
  16836. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  16837. ;;
  16838. esac
  16839. cat >>confdefs.h <<\_ACEOF
  16840. #define malloc rpl_malloc
  16841. _ACEOF
  16842. fi
  16843. { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
  16844. $as_echo_n "checking for working memcmp... " >&6; }
  16845. if test "${ac_cv_func_memcmp_working+set}" = set; then
  16846. $as_echo_n "(cached) " >&6
  16847. else
  16848. if test "$cross_compiling" = yes; then
  16849. ac_cv_func_memcmp_working=no
  16850. else
  16851. cat >conftest.$ac_ext <<_ACEOF
  16852. /* confdefs.h. */
  16853. _ACEOF
  16854. cat confdefs.h >>conftest.$ac_ext
  16855. cat >>conftest.$ac_ext <<_ACEOF
  16856. /* end confdefs.h. */
  16857. $ac_includes_default
  16858. int
  16859. main ()
  16860. {
  16861. /* Some versions of memcmp are not 8-bit clean. */
  16862. char c0 = '\100', c1 = '\200', c2 = '\201';
  16863. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  16864. return 1;
  16865. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  16866. or more and with at least one buffer not starting on a 4-byte boundary.
  16867. William Lewis provided this test program. */
  16868. {
  16869. char foo[21];
  16870. char bar[21];
  16871. int i;
  16872. for (i = 0; i < 4; i++)
  16873. {
  16874. char *a = foo + i;
  16875. char *b = bar + i;
  16876. strcpy (a, "--------01111111");
  16877. strcpy (b, "--------10000000");
  16878. if (memcmp (a, b, 16) >= 0)
  16879. return 1;
  16880. }
  16881. return 0;
  16882. }
  16883. ;
  16884. return 0;
  16885. }
  16886. _ACEOF
  16887. rm -f conftest$ac_exeext
  16888. if { (ac_try="$ac_link"
  16889. case "(($ac_try" in
  16890. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16891. *) ac_try_echo=$ac_try;;
  16892. esac
  16893. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16894. $as_echo "$ac_try_echo") >&5
  16895. (eval "$ac_link") 2>&5
  16896. ac_status=$?
  16897. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16898. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16899. { (case "(($ac_try" in
  16900. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16901. *) ac_try_echo=$ac_try;;
  16902. esac
  16903. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16904. $as_echo "$ac_try_echo") >&5
  16905. (eval "$ac_try") 2>&5
  16906. ac_status=$?
  16907. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16908. (exit $ac_status); }; }; then
  16909. ac_cv_func_memcmp_working=yes
  16910. else
  16911. $as_echo "$as_me: program exited with status $ac_status" >&5
  16912. $as_echo "$as_me: failed program was:" >&5
  16913. sed 's/^/| /' conftest.$ac_ext >&5
  16914. ( exit $ac_status )
  16915. ac_cv_func_memcmp_working=no
  16916. fi
  16917. rm -rf conftest.dSYM
  16918. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16919. fi
  16920. fi
  16921. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  16922. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  16923. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  16924. *" memcmp.$ac_objext "* ) ;;
  16925. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  16926. ;;
  16927. esac
  16928. { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  16929. $as_echo_n "checking return type of signal handlers... " >&6; }
  16930. if test "${ac_cv_type_signal+set}" = set; then
  16931. $as_echo_n "(cached) " >&6
  16932. else
  16933. cat >conftest.$ac_ext <<_ACEOF
  16934. /* confdefs.h. */
  16935. _ACEOF
  16936. cat confdefs.h >>conftest.$ac_ext
  16937. cat >>conftest.$ac_ext <<_ACEOF
  16938. /* end confdefs.h. */
  16939. #include <sys/types.h>
  16940. #include <signal.h>
  16941. int
  16942. main ()
  16943. {
  16944. return *(signal (0, 0)) (0) == 1;
  16945. ;
  16946. return 0;
  16947. }
  16948. _ACEOF
  16949. rm -f conftest.$ac_objext
  16950. if { (ac_try="$ac_compile"
  16951. case "(($ac_try" in
  16952. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16953. *) ac_try_echo=$ac_try;;
  16954. esac
  16955. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16956. $as_echo "$ac_try_echo") >&5
  16957. (eval "$ac_compile") 2>conftest.er1
  16958. ac_status=$?
  16959. grep -v '^ *+' conftest.er1 >conftest.err
  16960. rm -f conftest.er1
  16961. cat conftest.err >&5
  16962. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16963. (exit $ac_status); } && {
  16964. test -z "$ac_c_werror_flag" ||
  16965. test ! -s conftest.err
  16966. } && test -s conftest.$ac_objext; then
  16967. ac_cv_type_signal=int
  16968. else
  16969. $as_echo "$as_me: failed program was:" >&5
  16970. sed 's/^/| /' conftest.$ac_ext >&5
  16971. ac_cv_type_signal=void
  16972. fi
  16973. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16974. fi
  16975. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  16976. $as_echo "$ac_cv_type_signal" >&6; }
  16977. cat >>confdefs.h <<_ACEOF
  16978. #define RETSIGTYPE $ac_cv_type_signal
  16979. _ACEOF
  16980. for ac_func in vprintf
  16981. do
  16982. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16983. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  16984. $as_echo_n "checking for $ac_func... " >&6; }
  16985. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  16986. $as_echo_n "(cached) " >&6
  16987. else
  16988. cat >conftest.$ac_ext <<_ACEOF
  16989. /* confdefs.h. */
  16990. _ACEOF
  16991. cat confdefs.h >>conftest.$ac_ext
  16992. cat >>conftest.$ac_ext <<_ACEOF
  16993. /* end confdefs.h. */
  16994. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  16995. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16996. #define $ac_func innocuous_$ac_func
  16997. /* System header to define __stub macros and hopefully few prototypes,
  16998. which can conflict with char $ac_func (); below.
  16999. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17000. <limits.h> exists even on freestanding compilers. */
  17001. #ifdef __STDC__
  17002. # include <limits.h>
  17003. #else
  17004. # include <assert.h>
  17005. #endif
  17006. #undef $ac_func
  17007. /* Override any GCC internal prototype to avoid an error.
  17008. Use char because int might match the return type of a GCC
  17009. builtin and then its argument prototype would still apply. */
  17010. #ifdef __cplusplus
  17011. extern "C"
  17012. #endif
  17013. char $ac_func ();
  17014. /* The GNU C library defines this for functions which it implements
  17015. to always fail with ENOSYS. Some functions are actually named
  17016. something starting with __ and the normal name is an alias. */
  17017. #if defined __stub_$ac_func || defined __stub___$ac_func
  17018. choke me
  17019. #endif
  17020. int
  17021. main ()
  17022. {
  17023. return $ac_func ();
  17024. ;
  17025. return 0;
  17026. }
  17027. _ACEOF
  17028. rm -f conftest.$ac_objext conftest$ac_exeext
  17029. if { (ac_try="$ac_link"
  17030. case "(($ac_try" in
  17031. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17032. *) ac_try_echo=$ac_try;;
  17033. esac
  17034. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17035. $as_echo "$ac_try_echo") >&5
  17036. (eval "$ac_link") 2>conftest.er1
  17037. ac_status=$?
  17038. grep -v '^ *+' conftest.er1 >conftest.err
  17039. rm -f conftest.er1
  17040. cat conftest.err >&5
  17041. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17042. (exit $ac_status); } && {
  17043. test -z "$ac_c_werror_flag" ||
  17044. test ! -s conftest.err
  17045. } && test -s conftest$ac_exeext && {
  17046. test "$cross_compiling" = yes ||
  17047. $as_test_x conftest$ac_exeext
  17048. }; then
  17049. eval "$as_ac_var=yes"
  17050. else
  17051. $as_echo "$as_me: failed program was:" >&5
  17052. sed 's/^/| /' conftest.$ac_ext >&5
  17053. eval "$as_ac_var=no"
  17054. fi
  17055. rm -rf conftest.dSYM
  17056. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17057. conftest$ac_exeext conftest.$ac_ext
  17058. fi
  17059. ac_res=`eval 'as_val=${'$as_ac_var'}
  17060. $as_echo "$as_val"'`
  17061. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  17062. $as_echo "$ac_res" >&6; }
  17063. as_val=`eval 'as_val=${'$as_ac_var'}
  17064. $as_echo "$as_val"'`
  17065. if test "x$as_val" = x""yes; then
  17066. cat >>confdefs.h <<_ACEOF
  17067. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17068. _ACEOF
  17069. { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
  17070. $as_echo_n "checking for _doprnt... " >&6; }
  17071. if test "${ac_cv_func__doprnt+set}" = set; then
  17072. $as_echo_n "(cached) " >&6
  17073. else
  17074. cat >conftest.$ac_ext <<_ACEOF
  17075. /* confdefs.h. */
  17076. _ACEOF
  17077. cat confdefs.h >>conftest.$ac_ext
  17078. cat >>conftest.$ac_ext <<_ACEOF
  17079. /* end confdefs.h. */
  17080. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  17081. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17082. #define _doprnt innocuous__doprnt
  17083. /* System header to define __stub macros and hopefully few prototypes,
  17084. which can conflict with char _doprnt (); below.
  17085. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17086. <limits.h> exists even on freestanding compilers. */
  17087. #ifdef __STDC__
  17088. # include <limits.h>
  17089. #else
  17090. # include <assert.h>
  17091. #endif
  17092. #undef _doprnt
  17093. /* Override any GCC internal prototype to avoid an error.
  17094. Use char because int might match the return type of a GCC
  17095. builtin and then its argument prototype would still apply. */
  17096. #ifdef __cplusplus
  17097. extern "C"
  17098. #endif
  17099. char _doprnt ();
  17100. /* The GNU C library defines this for functions which it implements
  17101. to always fail with ENOSYS. Some functions are actually named
  17102. something starting with __ and the normal name is an alias. */
  17103. #if defined __stub__doprnt || defined __stub____doprnt
  17104. choke me
  17105. #endif
  17106. int
  17107. main ()
  17108. {
  17109. return _doprnt ();
  17110. ;
  17111. return 0;
  17112. }
  17113. _ACEOF
  17114. rm -f conftest.$ac_objext conftest$ac_exeext
  17115. if { (ac_try="$ac_link"
  17116. case "(($ac_try" in
  17117. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17118. *) ac_try_echo=$ac_try;;
  17119. esac
  17120. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17121. $as_echo "$ac_try_echo") >&5
  17122. (eval "$ac_link") 2>conftest.er1
  17123. ac_status=$?
  17124. grep -v '^ *+' conftest.er1 >conftest.err
  17125. rm -f conftest.er1
  17126. cat conftest.err >&5
  17127. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17128. (exit $ac_status); } && {
  17129. test -z "$ac_c_werror_flag" ||
  17130. test ! -s conftest.err
  17131. } && test -s conftest$ac_exeext && {
  17132. test "$cross_compiling" = yes ||
  17133. $as_test_x conftest$ac_exeext
  17134. }; then
  17135. ac_cv_func__doprnt=yes
  17136. else
  17137. $as_echo "$as_me: failed program was:" >&5
  17138. sed 's/^/| /' conftest.$ac_ext >&5
  17139. ac_cv_func__doprnt=no
  17140. fi
  17141. rm -rf conftest.dSYM
  17142. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17143. conftest$ac_exeext conftest.$ac_ext
  17144. fi
  17145. { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  17146. $as_echo "$ac_cv_func__doprnt" >&6; }
  17147. if test "x$ac_cv_func__doprnt" = x""yes; then
  17148. cat >>confdefs.h <<\_ACEOF
  17149. #define HAVE_DOPRNT 1
  17150. _ACEOF
  17151. fi
  17152. fi
  17153. done
  17154. { $as_echo "$as_me:$LINENO: checking for struct timeval.tv_sec" >&5
  17155. $as_echo_n "checking for struct timeval.tv_sec... " >&6; }
  17156. if test "${ac_cv_member_struct_timeval_tv_sec+set}" = set; then
  17157. $as_echo_n "(cached) " >&6
  17158. else
  17159. cat >conftest.$ac_ext <<_ACEOF
  17160. /* confdefs.h. */
  17161. _ACEOF
  17162. cat confdefs.h >>conftest.$ac_ext
  17163. cat >>conftest.$ac_ext <<_ACEOF
  17164. /* end confdefs.h. */
  17165. $ac_includes_default
  17166. int
  17167. main ()
  17168. {
  17169. static struct timeval ac_aggr;
  17170. if (ac_aggr.tv_sec)
  17171. return 0;
  17172. ;
  17173. return 0;
  17174. }
  17175. _ACEOF
  17176. rm -f conftest.$ac_objext
  17177. if { (ac_try="$ac_compile"
  17178. case "(($ac_try" in
  17179. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17180. *) ac_try_echo=$ac_try;;
  17181. esac
  17182. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17183. $as_echo "$ac_try_echo") >&5
  17184. (eval "$ac_compile") 2>conftest.er1
  17185. ac_status=$?
  17186. grep -v '^ *+' conftest.er1 >conftest.err
  17187. rm -f conftest.er1
  17188. cat conftest.err >&5
  17189. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17190. (exit $ac_status); } && {
  17191. test -z "$ac_c_werror_flag" ||
  17192. test ! -s conftest.err
  17193. } && test -s conftest.$ac_objext; then
  17194. ac_cv_member_struct_timeval_tv_sec=yes
  17195. else
  17196. $as_echo "$as_me: failed program was:" >&5
  17197. sed 's/^/| /' conftest.$ac_ext >&5
  17198. cat >conftest.$ac_ext <<_ACEOF
  17199. /* confdefs.h. */
  17200. _ACEOF
  17201. cat confdefs.h >>conftest.$ac_ext
  17202. cat >>conftest.$ac_ext <<_ACEOF
  17203. /* end confdefs.h. */
  17204. $ac_includes_default
  17205. int
  17206. main ()
  17207. {
  17208. static struct timeval ac_aggr;
  17209. if (sizeof ac_aggr.tv_sec)
  17210. return 0;
  17211. ;
  17212. return 0;
  17213. }
  17214. _ACEOF
  17215. rm -f conftest.$ac_objext
  17216. if { (ac_try="$ac_compile"
  17217. case "(($ac_try" in
  17218. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17219. *) ac_try_echo=$ac_try;;
  17220. esac
  17221. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17222. $as_echo "$ac_try_echo") >&5
  17223. (eval "$ac_compile") 2>conftest.er1
  17224. ac_status=$?
  17225. grep -v '^ *+' conftest.er1 >conftest.err
  17226. rm -f conftest.er1
  17227. cat conftest.err >&5
  17228. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17229. (exit $ac_status); } && {
  17230. test -z "$ac_c_werror_flag" ||
  17231. test ! -s conftest.err
  17232. } && test -s conftest.$ac_objext; then
  17233. ac_cv_member_struct_timeval_tv_sec=yes
  17234. else
  17235. $as_echo "$as_me: failed program was:" >&5
  17236. sed 's/^/| /' conftest.$ac_ext >&5
  17237. ac_cv_member_struct_timeval_tv_sec=no
  17238. fi
  17239. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17240. fi
  17241. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17242. fi
  17243. { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_timeval_tv_sec" >&5
  17244. $as_echo "$ac_cv_member_struct_timeval_tv_sec" >&6; }
  17245. if test "x$ac_cv_member_struct_timeval_tv_sec" = x""yes; then
  17246. cat >>confdefs.h <<_ACEOF
  17247. #define HAVE_STRUCT_TIMEVAL_TV_SEC 1
  17248. _ACEOF
  17249. fi
  17250. for ac_func in gettimeofday ctime memset regcomp strdup strchr strerror strtol strncpy strtoull poll ntohll mmap snprintf vsnprintf strsignal
  17251. do
  17252. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17253. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  17254. $as_echo_n "checking for $ac_func... " >&6; }
  17255. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17256. $as_echo_n "(cached) " >&6
  17257. else
  17258. cat >conftest.$ac_ext <<_ACEOF
  17259. /* confdefs.h. */
  17260. _ACEOF
  17261. cat confdefs.h >>conftest.$ac_ext
  17262. cat >>conftest.$ac_ext <<_ACEOF
  17263. /* end confdefs.h. */
  17264. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17265. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17266. #define $ac_func innocuous_$ac_func
  17267. /* System header to define __stub macros and hopefully few prototypes,
  17268. which can conflict with char $ac_func (); below.
  17269. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17270. <limits.h> exists even on freestanding compilers. */
  17271. #ifdef __STDC__
  17272. # include <limits.h>
  17273. #else
  17274. # include <assert.h>
  17275. #endif
  17276. #undef $ac_func
  17277. /* Override any GCC internal prototype to avoid an error.
  17278. Use char because int might match the return type of a GCC
  17279. builtin and then its argument prototype would still apply. */
  17280. #ifdef __cplusplus
  17281. extern "C"
  17282. #endif
  17283. char $ac_func ();
  17284. /* The GNU C library defines this for functions which it implements
  17285. to always fail with ENOSYS. Some functions are actually named
  17286. something starting with __ and the normal name is an alias. */
  17287. #if defined __stub_$ac_func || defined __stub___$ac_func
  17288. choke me
  17289. #endif
  17290. int
  17291. main ()
  17292. {
  17293. return $ac_func ();
  17294. ;
  17295. return 0;
  17296. }
  17297. _ACEOF
  17298. rm -f conftest.$ac_objext conftest$ac_exeext
  17299. if { (ac_try="$ac_link"
  17300. case "(($ac_try" in
  17301. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17302. *) ac_try_echo=$ac_try;;
  17303. esac
  17304. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17305. $as_echo "$ac_try_echo") >&5
  17306. (eval "$ac_link") 2>conftest.er1
  17307. ac_status=$?
  17308. grep -v '^ *+' conftest.er1 >conftest.err
  17309. rm -f conftest.er1
  17310. cat conftest.err >&5
  17311. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17312. (exit $ac_status); } && {
  17313. test -z "$ac_c_werror_flag" ||
  17314. test ! -s conftest.err
  17315. } && test -s conftest$ac_exeext && {
  17316. test "$cross_compiling" = yes ||
  17317. $as_test_x conftest$ac_exeext
  17318. }; then
  17319. eval "$as_ac_var=yes"
  17320. else
  17321. $as_echo "$as_me: failed program was:" >&5
  17322. sed 's/^/| /' conftest.$ac_ext >&5
  17323. eval "$as_ac_var=no"
  17324. fi
  17325. rm -rf conftest.dSYM
  17326. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17327. conftest$ac_exeext conftest.$ac_ext
  17328. fi
  17329. ac_res=`eval 'as_val=${'$as_ac_var'}
  17330. $as_echo "$as_val"'`
  17331. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  17332. $as_echo "$ac_res" >&6; }
  17333. as_val=`eval 'as_val=${'$as_ac_var'}
  17334. $as_echo "$as_val"'`
  17335. if test "x$as_val" = x""yes; then
  17336. cat >>confdefs.h <<_ACEOF
  17337. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17338. _ACEOF
  17339. fi
  17340. done
  17341. for ac_func in strlcpy
  17342. do
  17343. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17344. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  17345. $as_echo_n "checking for $ac_func... " >&6; }
  17346. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17347. $as_echo_n "(cached) " >&6
  17348. else
  17349. cat >conftest.$ac_ext <<_ACEOF
  17350. /* confdefs.h. */
  17351. _ACEOF
  17352. cat confdefs.h >>conftest.$ac_ext
  17353. cat >>conftest.$ac_ext <<_ACEOF
  17354. /* end confdefs.h. */
  17355. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17356. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17357. #define $ac_func innocuous_$ac_func
  17358. /* System header to define __stub macros and hopefully few prototypes,
  17359. which can conflict with char $ac_func (); below.
  17360. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17361. <limits.h> exists even on freestanding compilers. */
  17362. #ifdef __STDC__
  17363. # include <limits.h>
  17364. #else
  17365. # include <assert.h>
  17366. #endif
  17367. #undef $ac_func
  17368. /* Override any GCC internal prototype to avoid an error.
  17369. Use char because int might match the return type of a GCC
  17370. builtin and then its argument prototype would still apply. */
  17371. #ifdef __cplusplus
  17372. extern "C"
  17373. #endif
  17374. char $ac_func ();
  17375. /* The GNU C library defines this for functions which it implements
  17376. to always fail with ENOSYS. Some functions are actually named
  17377. something starting with __ and the normal name is an alias. */
  17378. #if defined __stub_$ac_func || defined __stub___$ac_func
  17379. choke me
  17380. #endif
  17381. int
  17382. main ()
  17383. {
  17384. return $ac_func ();
  17385. ;
  17386. return 0;
  17387. }
  17388. _ACEOF
  17389. rm -f conftest.$ac_objext conftest$ac_exeext
  17390. if { (ac_try="$ac_link"
  17391. case "(($ac_try" in
  17392. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17393. *) ac_try_echo=$ac_try;;
  17394. esac
  17395. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17396. $as_echo "$ac_try_echo") >&5
  17397. (eval "$ac_link") 2>conftest.er1
  17398. ac_status=$?
  17399. grep -v '^ *+' conftest.er1 >conftest.err
  17400. rm -f conftest.er1
  17401. cat conftest.err >&5
  17402. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17403. (exit $ac_status); } && {
  17404. test -z "$ac_c_werror_flag" ||
  17405. test ! -s conftest.err
  17406. } && test -s conftest$ac_exeext && {
  17407. test "$cross_compiling" = yes ||
  17408. $as_test_x conftest$ac_exeext
  17409. }; then
  17410. eval "$as_ac_var=yes"
  17411. else
  17412. $as_echo "$as_me: failed program was:" >&5
  17413. sed 's/^/| /' conftest.$ac_ext >&5
  17414. eval "$as_ac_var=no"
  17415. fi
  17416. rm -rf conftest.dSYM
  17417. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17418. conftest$ac_exeext conftest.$ac_ext
  17419. fi
  17420. ac_res=`eval 'as_val=${'$as_ac_var'}
  17421. $as_echo "$as_val"'`
  17422. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  17423. $as_echo "$ac_res" >&6; }
  17424. as_val=`eval 'as_val=${'$as_ac_var'}
  17425. $as_echo "$as_val"'`
  17426. if test "x$as_val" = x""yes; then
  17427. cat >>confdefs.h <<_ACEOF
  17428. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17429. _ACEOF
  17430. have_strlcpy=true
  17431. else
  17432. have_strlcpy=false
  17433. fi
  17434. done
  17435. if test x$have_strlcpy = xtrue; then
  17436. SYSTEM_STRLCPY_TRUE=
  17437. SYSTEM_STRLCPY_FALSE='#'
  17438. else
  17439. SYSTEM_STRLCPY_TRUE='#'
  17440. SYSTEM_STRLCPY_FALSE=
  17441. fi
  17442. { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  17443. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  17444. if test "${ac_cv_c_bigendian+set}" = set; then
  17445. $as_echo_n "(cached) " >&6
  17446. else
  17447. ac_cv_c_bigendian=unknown
  17448. # See if we're dealing with a universal compiler.
  17449. cat >conftest.$ac_ext <<_ACEOF
  17450. /* confdefs.h. */
  17451. _ACEOF
  17452. cat confdefs.h >>conftest.$ac_ext
  17453. cat >>conftest.$ac_ext <<_ACEOF
  17454. /* end confdefs.h. */
  17455. #ifndef __APPLE_CC__
  17456. not a universal capable compiler
  17457. #endif
  17458. typedef int dummy;
  17459. _ACEOF
  17460. rm -f conftest.$ac_objext
  17461. if { (ac_try="$ac_compile"
  17462. case "(($ac_try" in
  17463. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17464. *) ac_try_echo=$ac_try;;
  17465. esac
  17466. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17467. $as_echo "$ac_try_echo") >&5
  17468. (eval "$ac_compile") 2>conftest.er1
  17469. ac_status=$?
  17470. grep -v '^ *+' conftest.er1 >conftest.err
  17471. rm -f conftest.er1
  17472. cat conftest.err >&5
  17473. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17474. (exit $ac_status); } && {
  17475. test -z "$ac_c_werror_flag" ||
  17476. test ! -s conftest.err
  17477. } && test -s conftest.$ac_objext; then
  17478. # Check for potential -arch flags. It is not universal unless
  17479. # there are some -arch flags. Note that *ppc* also matches
  17480. # ppc64. This check is also rather less than ideal.
  17481. case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
  17482. *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
  17483. esac
  17484. else
  17485. $as_echo "$as_me: failed program was:" >&5
  17486. sed 's/^/| /' conftest.$ac_ext >&5
  17487. fi
  17488. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17489. if test $ac_cv_c_bigendian = unknown; then
  17490. # See if sys/param.h defines the BYTE_ORDER macro.
  17491. cat >conftest.$ac_ext <<_ACEOF
  17492. /* confdefs.h. */
  17493. _ACEOF
  17494. cat confdefs.h >>conftest.$ac_ext
  17495. cat >>conftest.$ac_ext <<_ACEOF
  17496. /* end confdefs.h. */
  17497. #include <sys/types.h>
  17498. #include <sys/param.h>
  17499. int
  17500. main ()
  17501. {
  17502. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  17503. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  17504. && LITTLE_ENDIAN)
  17505. bogus endian macros
  17506. #endif
  17507. ;
  17508. return 0;
  17509. }
  17510. _ACEOF
  17511. rm -f conftest.$ac_objext
  17512. if { (ac_try="$ac_compile"
  17513. case "(($ac_try" in
  17514. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17515. *) ac_try_echo=$ac_try;;
  17516. esac
  17517. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17518. $as_echo "$ac_try_echo") >&5
  17519. (eval "$ac_compile") 2>conftest.er1
  17520. ac_status=$?
  17521. grep -v '^ *+' conftest.er1 >conftest.err
  17522. rm -f conftest.er1
  17523. cat conftest.err >&5
  17524. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17525. (exit $ac_status); } && {
  17526. test -z "$ac_c_werror_flag" ||
  17527. test ! -s conftest.err
  17528. } && test -s conftest.$ac_objext; then
  17529. # It does; now see whether it defined to BIG_ENDIAN or not.
  17530. cat >conftest.$ac_ext <<_ACEOF
  17531. /* confdefs.h. */
  17532. _ACEOF
  17533. cat confdefs.h >>conftest.$ac_ext
  17534. cat >>conftest.$ac_ext <<_ACEOF
  17535. /* end confdefs.h. */
  17536. #include <sys/types.h>
  17537. #include <sys/param.h>
  17538. int
  17539. main ()
  17540. {
  17541. #if BYTE_ORDER != BIG_ENDIAN
  17542. not big endian
  17543. #endif
  17544. ;
  17545. return 0;
  17546. }
  17547. _ACEOF
  17548. rm -f conftest.$ac_objext
  17549. if { (ac_try="$ac_compile"
  17550. case "(($ac_try" in
  17551. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17552. *) ac_try_echo=$ac_try;;
  17553. esac
  17554. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17555. $as_echo "$ac_try_echo") >&5
  17556. (eval "$ac_compile") 2>conftest.er1
  17557. ac_status=$?
  17558. grep -v '^ *+' conftest.er1 >conftest.err
  17559. rm -f conftest.er1
  17560. cat conftest.err >&5
  17561. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17562. (exit $ac_status); } && {
  17563. test -z "$ac_c_werror_flag" ||
  17564. test ! -s conftest.err
  17565. } && test -s conftest.$ac_objext; then
  17566. ac_cv_c_bigendian=yes
  17567. else
  17568. $as_echo "$as_me: failed program was:" >&5
  17569. sed 's/^/| /' conftest.$ac_ext >&5
  17570. ac_cv_c_bigendian=no
  17571. fi
  17572. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17573. else
  17574. $as_echo "$as_me: failed program was:" >&5
  17575. sed 's/^/| /' conftest.$ac_ext >&5
  17576. fi
  17577. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17578. fi
  17579. if test $ac_cv_c_bigendian = unknown; then
  17580. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  17581. cat >conftest.$ac_ext <<_ACEOF
  17582. /* confdefs.h. */
  17583. _ACEOF
  17584. cat confdefs.h >>conftest.$ac_ext
  17585. cat >>conftest.$ac_ext <<_ACEOF
  17586. /* end confdefs.h. */
  17587. #include <limits.h>
  17588. int
  17589. main ()
  17590. {
  17591. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  17592. bogus endian macros
  17593. #endif
  17594. ;
  17595. return 0;
  17596. }
  17597. _ACEOF
  17598. rm -f conftest.$ac_objext
  17599. if { (ac_try="$ac_compile"
  17600. case "(($ac_try" in
  17601. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17602. *) ac_try_echo=$ac_try;;
  17603. esac
  17604. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17605. $as_echo "$ac_try_echo") >&5
  17606. (eval "$ac_compile") 2>conftest.er1
  17607. ac_status=$?
  17608. grep -v '^ *+' conftest.er1 >conftest.err
  17609. rm -f conftest.er1
  17610. cat conftest.err >&5
  17611. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17612. (exit $ac_status); } && {
  17613. test -z "$ac_c_werror_flag" ||
  17614. test ! -s conftest.err
  17615. } && test -s conftest.$ac_objext; then
  17616. # It does; now see whether it defined to _BIG_ENDIAN or not.
  17617. cat >conftest.$ac_ext <<_ACEOF
  17618. /* confdefs.h. */
  17619. _ACEOF
  17620. cat confdefs.h >>conftest.$ac_ext
  17621. cat >>conftest.$ac_ext <<_ACEOF
  17622. /* end confdefs.h. */
  17623. #include <limits.h>
  17624. int
  17625. main ()
  17626. {
  17627. #ifndef _BIG_ENDIAN
  17628. not big endian
  17629. #endif
  17630. ;
  17631. return 0;
  17632. }
  17633. _ACEOF
  17634. rm -f conftest.$ac_objext
  17635. if { (ac_try="$ac_compile"
  17636. case "(($ac_try" in
  17637. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17638. *) ac_try_echo=$ac_try;;
  17639. esac
  17640. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17641. $as_echo "$ac_try_echo") >&5
  17642. (eval "$ac_compile") 2>conftest.er1
  17643. ac_status=$?
  17644. grep -v '^ *+' conftest.er1 >conftest.err
  17645. rm -f conftest.er1
  17646. cat conftest.err >&5
  17647. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17648. (exit $ac_status); } && {
  17649. test -z "$ac_c_werror_flag" ||
  17650. test ! -s conftest.err
  17651. } && test -s conftest.$ac_objext; then
  17652. ac_cv_c_bigendian=yes
  17653. else
  17654. $as_echo "$as_me: failed program was:" >&5
  17655. sed 's/^/| /' conftest.$ac_ext >&5
  17656. ac_cv_c_bigendian=no
  17657. fi
  17658. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17659. else
  17660. $as_echo "$as_me: failed program was:" >&5
  17661. sed 's/^/| /' conftest.$ac_ext >&5
  17662. fi
  17663. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17664. fi
  17665. if test $ac_cv_c_bigendian = unknown; then
  17666. # Compile a test program.
  17667. if test "$cross_compiling" = yes; then
  17668. # Try to guess by grepping values from an object file.
  17669. cat >conftest.$ac_ext <<_ACEOF
  17670. /* confdefs.h. */
  17671. _ACEOF
  17672. cat confdefs.h >>conftest.$ac_ext
  17673. cat >>conftest.$ac_ext <<_ACEOF
  17674. /* end confdefs.h. */
  17675. short int ascii_mm[] =
  17676. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  17677. short int ascii_ii[] =
  17678. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  17679. int use_ascii (int i) {
  17680. return ascii_mm[i] + ascii_ii[i];
  17681. }
  17682. short int ebcdic_ii[] =
  17683. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  17684. short int ebcdic_mm[] =
  17685. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  17686. int use_ebcdic (int i) {
  17687. return ebcdic_mm[i] + ebcdic_ii[i];
  17688. }
  17689. extern int foo;
  17690. int
  17691. main ()
  17692. {
  17693. return use_ascii (foo) == use_ebcdic (foo);
  17694. ;
  17695. return 0;
  17696. }
  17697. _ACEOF
  17698. rm -f conftest.$ac_objext
  17699. if { (ac_try="$ac_compile"
  17700. case "(($ac_try" in
  17701. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17702. *) ac_try_echo=$ac_try;;
  17703. esac
  17704. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17705. $as_echo "$ac_try_echo") >&5
  17706. (eval "$ac_compile") 2>conftest.er1
  17707. ac_status=$?
  17708. grep -v '^ *+' conftest.er1 >conftest.err
  17709. rm -f conftest.er1
  17710. cat conftest.err >&5
  17711. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17712. (exit $ac_status); } && {
  17713. test -z "$ac_c_werror_flag" ||
  17714. test ! -s conftest.err
  17715. } && test -s conftest.$ac_objext; then
  17716. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  17717. ac_cv_c_bigendian=yes
  17718. fi
  17719. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  17720. if test "$ac_cv_c_bigendian" = unknown; then
  17721. ac_cv_c_bigendian=no
  17722. else
  17723. # finding both strings is unlikely to happen, but who knows?
  17724. ac_cv_c_bigendian=unknown
  17725. fi
  17726. fi
  17727. else
  17728. $as_echo "$as_me: failed program was:" >&5
  17729. sed 's/^/| /' conftest.$ac_ext >&5
  17730. fi
  17731. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17732. else
  17733. cat >conftest.$ac_ext <<_ACEOF
  17734. /* confdefs.h. */
  17735. _ACEOF
  17736. cat confdefs.h >>conftest.$ac_ext
  17737. cat >>conftest.$ac_ext <<_ACEOF
  17738. /* end confdefs.h. */
  17739. $ac_includes_default
  17740. int
  17741. main ()
  17742. {
  17743. /* Are we little or big endian? From Harbison&Steele. */
  17744. union
  17745. {
  17746. long int l;
  17747. char c[sizeof (long int)];
  17748. } u;
  17749. u.l = 1;
  17750. return u.c[sizeof (long int) - 1] == 1;
  17751. ;
  17752. return 0;
  17753. }
  17754. _ACEOF
  17755. rm -f conftest$ac_exeext
  17756. if { (ac_try="$ac_link"
  17757. case "(($ac_try" in
  17758. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17759. *) ac_try_echo=$ac_try;;
  17760. esac
  17761. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17762. $as_echo "$ac_try_echo") >&5
  17763. (eval "$ac_link") 2>&5
  17764. ac_status=$?
  17765. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17766. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17767. { (case "(($ac_try" in
  17768. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17769. *) ac_try_echo=$ac_try;;
  17770. esac
  17771. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17772. $as_echo "$ac_try_echo") >&5
  17773. (eval "$ac_try") 2>&5
  17774. ac_status=$?
  17775. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17776. (exit $ac_status); }; }; then
  17777. ac_cv_c_bigendian=no
  17778. else
  17779. $as_echo "$as_me: program exited with status $ac_status" >&5
  17780. $as_echo "$as_me: failed program was:" >&5
  17781. sed 's/^/| /' conftest.$ac_ext >&5
  17782. ( exit $ac_status )
  17783. ac_cv_c_bigendian=yes
  17784. fi
  17785. rm -rf conftest.dSYM
  17786. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17787. fi
  17788. fi
  17789. fi
  17790. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  17791. $as_echo "$ac_cv_c_bigendian" >&6; }
  17792. case $ac_cv_c_bigendian in #(
  17793. yes)
  17794. cat >>confdefs.h <<\_ACEOF
  17795. #define WORDS_BIGENDIAN 1
  17796. _ACEOF
  17797. ;; #(
  17798. no)
  17799. ;; #(
  17800. universal)
  17801. cat >>confdefs.h <<\_ACEOF
  17802. #define AC_APPLE_UNIVERSAL_BUILD 1
  17803. _ACEOF
  17804. ;; #(
  17805. *)
  17806. { { $as_echo "$as_me:$LINENO: error: unknown endianness
  17807. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  17808. $as_echo "$as_me: error: unknown endianness
  17809. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  17810. { (exit 1); exit 1; }; } ;;
  17811. esac
  17812. if test x$ac_cv_c_bigendian = xyes ; then
  17813. WORDS_BIGENDIAN_TRUE=
  17814. WORDS_BIGENDIAN_FALSE='#'
  17815. else
  17816. WORDS_BIGENDIAN_TRUE='#'
  17817. WORDS_BIGENDIAN_FALSE=
  17818. fi
  17819. debug=no
  17820. # Check whether --enable-debug was given.
  17821. if test "${enable_debug+set}" = set; then
  17822. enableval=$enable_debug; if test x$enableval = xyes; then
  17823. debug=yes
  17824. CFLAGS="${USER_CFLAGS} -ggdb -std=gnu99 -Wall $wextra $wfatal_errors $wno_variadic_macros"
  17825. # We may also want to add:
  17826. # -Wformat-security -Wswitch-default -Wunused-paramter -Wpadded"
  17827. cat >>confdefs.h <<\_ACEOF
  17828. #define DEBUG 1
  17829. _ACEOF
  17830. fi
  17831. fi
  17832. # Check whether --enable-dmalloc was given.
  17833. if test "${enable_dmalloc+set}" = set; then
  17834. enableval=$enable_dmalloc; if test x$enableval = xyes ; then
  17835. dmalloc=yes
  17836. cat >>confdefs.h <<\_ACEOF
  17837. #define ENABLE_DMALLOC 1
  17838. _ACEOF
  17839. cat >>confdefs.h <<\_ACEOF
  17840. #define DMALLOC_FUNC_CHECK 1
  17841. _ACEOF
  17842. CFLAGS="${CFLAGS} -I/opt/local/include"
  17843. DMALLOC_LIB="/opt/local/lib/libdmalloc.a"
  17844. fi
  17845. fi
  17846. # Check whether --enable-pedantic was given.
  17847. if test "${enable_pedantic+set}" = set; then
  17848. enableval=$enable_pedantic; if test x$enableval = xyes; then
  17849. CFLAGS="$CFLAGS -pedantic"
  17850. fi
  17851. fi
  17852. # Check whether --enable-efence was given.
  17853. if test "${enable_efence+set}" = set; then
  17854. enableval=$enable_efence; if test x$enableval = xyes; then
  17855. CFLAGS="$CFLAGS -lefence"
  17856. cat >>confdefs.h <<\_ACEOF
  17857. #define EFENCE 1
  17858. _ACEOF
  17859. fi
  17860. fi
  17861. # Check whether --enable-gprof was given.
  17862. if test "${enable_gprof+set}" = set; then
  17863. enableval=$enable_gprof; if test x$enableval = xyes; then
  17864. if test $debug = yes; then
  17865. CFLAGS="$CFLAGS -pg"
  17866. else
  17867. # GPROF requires gdb
  17868. CFLAGS="$CFLAGS -ggdb -pg -fprofile-arcs"
  17869. fi
  17870. cat >>confdefs.h <<\_ACEOF
  17871. #define GPROF 1
  17872. _ACEOF
  17873. fi
  17874. fi
  17875. use64bit_counters=yes
  17876. # Check whether --enable-64bits was given.
  17877. if test "${enable_64bits+set}" = set; then
  17878. enableval=$enable_64bits;
  17879. { $as_echo "$as_me:$LINENO: Using u_int32_t for packet counters" >&5
  17880. $as_echo "$as_me: Using u_int32_t for packet counters" >&6;}
  17881. else
  17882. cat >>confdefs.h <<\_ACEOF
  17883. #define ENABLE_64BITS 1
  17884. _ACEOF
  17885. { $as_echo "$as_me:$LINENO: Using u_int64_t for packet counters" >&5
  17886. $as_echo "$as_me: Using u_int64_t for packet counters" >&6;}
  17887. fi
  17888. # If we're running gcc add '-D_U_="__attribute__((unused))"' to CFLAGS as well,
  17889. # so we can use _U_ to flag unused function arguments and not get warnings
  17890. # about them. Otherwise, add '-D_U_=""', so that _U_ used to flag an unused
  17891. # function argument will compile with non-GCC compilers.
  17892. #
  17893. if test "x$GCC" = "xyes" ; then
  17894. CFLAGS="-D_U_=\"__attribute__((unused))\" $CFLAGS"
  17895. else
  17896. CFLAGS="-D_U_=\"\" $CFLAGS"
  17897. fi
  17898. # Check whether --enable-force-bpf was given.
  17899. if test "${enable_force_bpf+set}" = set; then
  17900. enableval=$enable_force_bpf;
  17901. cat >>confdefs.h <<\_ACEOF
  17902. #define FORCE_INJECT_BPF 1
  17903. _ACEOF
  17904. fi
  17905. # Check whether --enable-force-pf was given.
  17906. if test "${enable_force_pf+set}" = set; then
  17907. enableval=$enable_force_pf;
  17908. cat >>confdefs.h <<\_ACEOF
  17909. #define FORCE_INJECT_PF 1
  17910. _ACEOF
  17911. fi
  17912. # Check whether --enable-force-libdnet was given.
  17913. if test "${enable_force_libdnet+set}" = set; then
  17914. enableval=$enable_force_libdnet;
  17915. cat >>confdefs.h <<\_ACEOF
  17916. #define FORCE_INJECT_LIBDNET 1
  17917. _ACEOF
  17918. fi
  17919. # Check whether --enable-force-inject was given.
  17920. if test "${enable_force_inject+set}" = set; then
  17921. enableval=$enable_force_inject;
  17922. cat >>confdefs.h <<\_ACEOF
  17923. #define FORCE_INJECT_PCAP_INJECT 1
  17924. _ACEOF
  17925. fi
  17926. # Check whether --enable-force-sendpacket was given.
  17927. if test "${enable_force_sendpacket+set}" = set; then
  17928. enableval=$enable_force_sendpacket;
  17929. cat >>confdefs.h <<\_ACEOF
  17930. #define FORCE_INJECT_PCAP_SENDPACKET 1
  17931. _ACEOF
  17932. fi
  17933. dynamic_link=no
  17934. # Check whether --enable-dynamic-link was given.
  17935. if test "${enable_dynamic_link+set}" = set; then
  17936. enableval=$enable_dynamic_link; if test x$enableval = xyes; then
  17937. cat >>confdefs.h <<\_ACEOF
  17938. #define ENABLE_DYNAMIC_LINK 1
  17939. _ACEOF
  17940. dynamic_link=yes
  17941. fi
  17942. fi
  17943. { $as_echo "$as_me:$LINENO: checking for inet_aton" >&5
  17944. $as_echo_n "checking for inet_aton... " >&6; }
  17945. if test "${ac_cv_func_inet_aton+set}" = set; then
  17946. $as_echo_n "(cached) " >&6
  17947. else
  17948. cat >conftest.$ac_ext <<_ACEOF
  17949. /* confdefs.h. */
  17950. _ACEOF
  17951. cat confdefs.h >>conftest.$ac_ext
  17952. cat >>conftest.$ac_ext <<_ACEOF
  17953. /* end confdefs.h. */
  17954. /* Define inet_aton to an innocuous variant, in case <limits.h> declares inet_aton.
  17955. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17956. #define inet_aton innocuous_inet_aton
  17957. /* System header to define __stub macros and hopefully few prototypes,
  17958. which can conflict with char inet_aton (); below.
  17959. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17960. <limits.h> exists even on freestanding compilers. */
  17961. #ifdef __STDC__
  17962. # include <limits.h>
  17963. #else
  17964. # include <assert.h>
  17965. #endif
  17966. #undef inet_aton
  17967. /* Override any GCC internal prototype to avoid an error.
  17968. Use char because int might match the return type of a GCC
  17969. builtin and then its argument prototype would still apply. */
  17970. #ifdef __cplusplus
  17971. extern "C"
  17972. #endif
  17973. char inet_aton ();
  17974. /* The GNU C library defines this for functions which it implements
  17975. to always fail with ENOSYS. Some functions are actually named
  17976. something starting with __ and the normal name is an alias. */
  17977. #if defined __stub_inet_aton || defined __stub___inet_aton
  17978. choke me
  17979. #endif
  17980. int
  17981. main ()
  17982. {
  17983. return inet_aton ();
  17984. ;
  17985. return 0;
  17986. }
  17987. _ACEOF
  17988. rm -f conftest.$ac_objext conftest$ac_exeext
  17989. if { (ac_try="$ac_link"
  17990. case "(($ac_try" in
  17991. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17992. *) ac_try_echo=$ac_try;;
  17993. esac
  17994. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17995. $as_echo "$ac_try_echo") >&5
  17996. (eval "$ac_link") 2>conftest.er1
  17997. ac_status=$?
  17998. grep -v '^ *+' conftest.er1 >conftest.err
  17999. rm -f conftest.er1
  18000. cat conftest.err >&5
  18001. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18002. (exit $ac_status); } && {
  18003. test -z "$ac_c_werror_flag" ||
  18004. test ! -s conftest.err
  18005. } && test -s conftest$ac_exeext && {
  18006. test "$cross_compiling" = yes ||
  18007. $as_test_x conftest$ac_exeext
  18008. }; then
  18009. ac_cv_func_inet_aton=yes
  18010. else
  18011. $as_echo "$as_me: failed program was:" >&5
  18012. sed 's/^/| /' conftest.$ac_ext >&5
  18013. ac_cv_func_inet_aton=no
  18014. fi
  18015. rm -rf conftest.dSYM
  18016. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18017. conftest$ac_exeext conftest.$ac_ext
  18018. fi
  18019. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_inet_aton" >&5
  18020. $as_echo "$ac_cv_func_inet_aton" >&6; }
  18021. if test "x$ac_cv_func_inet_aton" = x""yes; then
  18022. cat >>confdefs.h <<\_ACEOF
  18023. #define HAVE_INET_ATON 1
  18024. _ACEOF
  18025. inet_aton=yes
  18026. else
  18027. inet_aton=no
  18028. fi
  18029. { $as_echo "$as_me:$LINENO: checking for inet_pton" >&5
  18030. $as_echo_n "checking for inet_pton... " >&6; }
  18031. if test "${ac_cv_func_inet_pton+set}" = set; then
  18032. $as_echo_n "(cached) " >&6
  18033. else
  18034. cat >conftest.$ac_ext <<_ACEOF
  18035. /* confdefs.h. */
  18036. _ACEOF
  18037. cat confdefs.h >>conftest.$ac_ext
  18038. cat >>conftest.$ac_ext <<_ACEOF
  18039. /* end confdefs.h. */
  18040. /* Define inet_pton to an innocuous variant, in case <limits.h> declares inet_pton.
  18041. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18042. #define inet_pton innocuous_inet_pton
  18043. /* System header to define __stub macros and hopefully few prototypes,
  18044. which can conflict with char inet_pton (); below.
  18045. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18046. <limits.h> exists even on freestanding compilers. */
  18047. #ifdef __STDC__
  18048. # include <limits.h>
  18049. #else
  18050. # include <assert.h>
  18051. #endif
  18052. #undef inet_pton
  18053. /* Override any GCC internal prototype to avoid an error.
  18054. Use char because int might match the return type of a GCC
  18055. builtin and then its argument prototype would still apply. */
  18056. #ifdef __cplusplus
  18057. extern "C"
  18058. #endif
  18059. char inet_pton ();
  18060. /* The GNU C library defines this for functions which it implements
  18061. to always fail with ENOSYS. Some functions are actually named
  18062. something starting with __ and the normal name is an alias. */
  18063. #if defined __stub_inet_pton || defined __stub___inet_pton
  18064. choke me
  18065. #endif
  18066. int
  18067. main ()
  18068. {
  18069. return inet_pton ();
  18070. ;
  18071. return 0;
  18072. }
  18073. _ACEOF
  18074. rm -f conftest.$ac_objext conftest$ac_exeext
  18075. if { (ac_try="$ac_link"
  18076. case "(($ac_try" in
  18077. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18078. *) ac_try_echo=$ac_try;;
  18079. esac
  18080. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18081. $as_echo "$ac_try_echo") >&5
  18082. (eval "$ac_link") 2>conftest.er1
  18083. ac_status=$?
  18084. grep -v '^ *+' conftest.er1 >conftest.err
  18085. rm -f conftest.er1
  18086. cat conftest.err >&5
  18087. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18088. (exit $ac_status); } && {
  18089. test -z "$ac_c_werror_flag" ||
  18090. test ! -s conftest.err
  18091. } && test -s conftest$ac_exeext && {
  18092. test "$cross_compiling" = yes ||
  18093. $as_test_x conftest$ac_exeext
  18094. }; then
  18095. ac_cv_func_inet_pton=yes
  18096. else
  18097. $as_echo "$as_me: failed program was:" >&5
  18098. sed 's/^/| /' conftest.$ac_ext >&5
  18099. ac_cv_func_inet_pton=no
  18100. fi
  18101. rm -rf conftest.dSYM
  18102. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18103. conftest$ac_exeext conftest.$ac_ext
  18104. fi
  18105. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_inet_pton" >&5
  18106. $as_echo "$ac_cv_func_inet_pton" >&6; }
  18107. if test "x$ac_cv_func_inet_pton" = x""yes; then
  18108. cat >>confdefs.h <<\_ACEOF
  18109. #define HAVE_INET_PTON 1
  18110. _ACEOF
  18111. inet_pton=yes
  18112. else
  18113. inet_pton=no
  18114. fi
  18115. { $as_echo "$as_me:$LINENO: checking for inet_ntop" >&5
  18116. $as_echo_n "checking for inet_ntop... " >&6; }
  18117. if test "${ac_cv_func_inet_ntop+set}" = set; then
  18118. $as_echo_n "(cached) " >&6
  18119. else
  18120. cat >conftest.$ac_ext <<_ACEOF
  18121. /* confdefs.h. */
  18122. _ACEOF
  18123. cat confdefs.h >>conftest.$ac_ext
  18124. cat >>conftest.$ac_ext <<_ACEOF
  18125. /* end confdefs.h. */
  18126. /* Define inet_ntop to an innocuous variant, in case <limits.h> declares inet_ntop.
  18127. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18128. #define inet_ntop innocuous_inet_ntop
  18129. /* System header to define __stub macros and hopefully few prototypes,
  18130. which can conflict with char inet_ntop (); below.
  18131. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18132. <limits.h> exists even on freestanding compilers. */
  18133. #ifdef __STDC__
  18134. # include <limits.h>
  18135. #else
  18136. # include <assert.h>
  18137. #endif
  18138. #undef inet_ntop
  18139. /* Override any GCC internal prototype to avoid an error.
  18140. Use char because int might match the return type of a GCC
  18141. builtin and then its argument prototype would still apply. */
  18142. #ifdef __cplusplus
  18143. extern "C"
  18144. #endif
  18145. char inet_ntop ();
  18146. /* The GNU C library defines this for functions which it implements
  18147. to always fail with ENOSYS. Some functions are actually named
  18148. something starting with __ and the normal name is an alias. */
  18149. #if defined __stub_inet_ntop || defined __stub___inet_ntop
  18150. choke me
  18151. #endif
  18152. int
  18153. main ()
  18154. {
  18155. return inet_ntop ();
  18156. ;
  18157. return 0;
  18158. }
  18159. _ACEOF
  18160. rm -f conftest.$ac_objext conftest$ac_exeext
  18161. if { (ac_try="$ac_link"
  18162. case "(($ac_try" in
  18163. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18164. *) ac_try_echo=$ac_try;;
  18165. esac
  18166. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18167. $as_echo "$ac_try_echo") >&5
  18168. (eval "$ac_link") 2>conftest.er1
  18169. ac_status=$?
  18170. grep -v '^ *+' conftest.er1 >conftest.err
  18171. rm -f conftest.er1
  18172. cat conftest.err >&5
  18173. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18174. (exit $ac_status); } && {
  18175. test -z "$ac_c_werror_flag" ||
  18176. test ! -s conftest.err
  18177. } && test -s conftest$ac_exeext && {
  18178. test "$cross_compiling" = yes ||
  18179. $as_test_x conftest$ac_exeext
  18180. }; then
  18181. ac_cv_func_inet_ntop=yes
  18182. else
  18183. $as_echo "$as_me: failed program was:" >&5
  18184. sed 's/^/| /' conftest.$ac_ext >&5
  18185. ac_cv_func_inet_ntop=no
  18186. fi
  18187. rm -rf conftest.dSYM
  18188. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18189. conftest$ac_exeext conftest.$ac_ext
  18190. fi
  18191. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntop" >&5
  18192. $as_echo "$ac_cv_func_inet_ntop" >&6; }
  18193. if test "x$ac_cv_func_inet_ntop" = x""yes; then
  18194. cat >>confdefs.h <<\_ACEOF
  18195. #define HAVE_INET_NTOP 1
  18196. _ACEOF
  18197. inet_ntop=yes
  18198. else
  18199. inet_ntop=no
  18200. fi
  18201. if test "$inet_ntop" = "no" -a "$inet_pton" = "no" ; then
  18202. { { $as_echo "$as_me:$LINENO: error: We need either inet_ntop or inet_pton" >&5
  18203. $as_echo "$as_me: error: We need either inet_ntop or inet_pton" >&2;}
  18204. { (exit 1); exit 1; }; }
  18205. fi
  18206. { $as_echo "$as_me:$LINENO: checking for inet_addr" >&5
  18207. $as_echo_n "checking for inet_addr... " >&6; }
  18208. if test "${ac_cv_func_inet_addr+set}" = set; then
  18209. $as_echo_n "(cached) " >&6
  18210. else
  18211. cat >conftest.$ac_ext <<_ACEOF
  18212. /* confdefs.h. */
  18213. _ACEOF
  18214. cat confdefs.h >>conftest.$ac_ext
  18215. cat >>conftest.$ac_ext <<_ACEOF
  18216. /* end confdefs.h. */
  18217. /* Define inet_addr to an innocuous variant, in case <limits.h> declares inet_addr.
  18218. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18219. #define inet_addr innocuous_inet_addr
  18220. /* System header to define __stub macros and hopefully few prototypes,
  18221. which can conflict with char inet_addr (); below.
  18222. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18223. <limits.h> exists even on freestanding compilers. */
  18224. #ifdef __STDC__
  18225. # include <limits.h>
  18226. #else
  18227. # include <assert.h>
  18228. #endif
  18229. #undef inet_addr
  18230. /* Override any GCC internal prototype to avoid an error.
  18231. Use char because int might match the return type of a GCC
  18232. builtin and then its argument prototype would still apply. */
  18233. #ifdef __cplusplus
  18234. extern "C"
  18235. #endif
  18236. char inet_addr ();
  18237. /* The GNU C library defines this for functions which it implements
  18238. to always fail with ENOSYS. Some functions are actually named
  18239. something starting with __ and the normal name is an alias. */
  18240. #if defined __stub_inet_addr || defined __stub___inet_addr
  18241. choke me
  18242. #endif
  18243. int
  18244. main ()
  18245. {
  18246. return inet_addr ();
  18247. ;
  18248. return 0;
  18249. }
  18250. _ACEOF
  18251. rm -f conftest.$ac_objext conftest$ac_exeext
  18252. if { (ac_try="$ac_link"
  18253. case "(($ac_try" in
  18254. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18255. *) ac_try_echo=$ac_try;;
  18256. esac
  18257. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18258. $as_echo "$ac_try_echo") >&5
  18259. (eval "$ac_link") 2>conftest.er1
  18260. ac_status=$?
  18261. grep -v '^ *+' conftest.er1 >conftest.err
  18262. rm -f conftest.er1
  18263. cat conftest.err >&5
  18264. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18265. (exit $ac_status); } && {
  18266. test -z "$ac_c_werror_flag" ||
  18267. test ! -s conftest.err
  18268. } && test -s conftest$ac_exeext && {
  18269. test "$cross_compiling" = yes ||
  18270. $as_test_x conftest$ac_exeext
  18271. }; then
  18272. ac_cv_func_inet_addr=yes
  18273. else
  18274. $as_echo "$as_me: failed program was:" >&5
  18275. sed 's/^/| /' conftest.$ac_ext >&5
  18276. ac_cv_func_inet_addr=no
  18277. fi
  18278. rm -rf conftest.dSYM
  18279. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18280. conftest$ac_exeext conftest.$ac_ext
  18281. fi
  18282. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_inet_addr" >&5
  18283. $as_echo "$ac_cv_func_inet_addr" >&6; }
  18284. if test "x$ac_cv_func_inet_addr" = x""yes; then
  18285. cat >>confdefs.h <<\_ACEOF
  18286. #define HAVE_INET_ADDR 1
  18287. _ACEOF
  18288. inet_addr=yes
  18289. else
  18290. inet_addr=no
  18291. fi
  18292. if test x$inet_addr = no ; then
  18293. { { $as_echo "$as_me:$LINENO: error: We need inet_addr. See bug 26" >&5
  18294. $as_echo "$as_me: error: We need inet_addr. See bug 26" >&2;}
  18295. { (exit 1); exit 1; }; }
  18296. fi
  18297. foundpcap=no
  18298. trypcapdir=/usr/local
  18299. { $as_echo "$as_me:$LINENO: checking for libpcap" >&5
  18300. $as_echo_n "checking for libpcap... " >&6; }
  18301. # Check whether --with-libpcap was given.
  18302. if test "${with_libpcap+set}" = set; then
  18303. withval=$with_libpcap; trypcapdir=$withval
  18304. fi
  18305. for testdir in $trypcapdir /usr/local /opt/local /usr /wpdpack ; do
  18306. if test -f "${testdir}/include/pcap.h" -a $foundpcap = no ; then
  18307. LPCAPINC="${testdir}/include/pcap.h"
  18308. LPCAPINCDIR="${testdir}/include"
  18309. if test $dynamic_link = yes; then
  18310. if test -f "${testdir}/lib64/libpcap${shrext_cmds}" ; then
  18311. LPCAPLIB="-L${testdir}/lib64 -lpcap"
  18312. elif test -f "${testdir}/lib/libpcap${shrext_cmds}" ; then
  18313. LPCAPLIB="-L${testdir}/lib -lpcap"
  18314. else
  18315. { { $as_echo "$as_me:$LINENO: error: Unable to find libpcap in ${testdir}" >&5
  18316. $as_echo "$as_me: error: Unable to find libpcap in ${testdir}" >&2;}
  18317. { (exit 1); exit 1; }; }
  18318. fi
  18319. elif test -f "${testdir}/lib64/libpcap.${libext}" ; then
  18320. LPCAPLIB="${testdir}/lib64/libpcap.${libext}"
  18321. elif test -f "${testdir}/lib/libpcap.${libext}" ; then
  18322. LPCAPLIB="${testdir}/lib/libpcap.${libext}"
  18323. elif test -f "${testdir}/lib/libwpcap.${libext}" ; then
  18324. LPCAPLIB="${testdir}/lib/libwpcap.${libext}"
  18325. cat >>confdefs.h <<\_ACEOF
  18326. #define HAVE_WINPCAP 1
  18327. _ACEOF
  18328. else
  18329. { { $as_echo "$as_me:$LINENO: error: Unable to find matching library for header file in ${testdir}" >&5
  18330. $as_echo "$as_me: error: Unable to find matching library for header file in ${testdir}" >&2;}
  18331. { (exit 1); exit 1; }; }
  18332. fi
  18333. foundpcap=$testdir
  18334. fi
  18335. done
  18336. if test $foundpcap = no ; then
  18337. { $as_echo "$as_me:$LINENO: result: no" >&5
  18338. $as_echo "no" >&6; }
  18339. { { $as_echo "$as_me:$LINENO: error: libpcap not found" >&5
  18340. $as_echo "$as_me: error: libpcap not found" >&2;}
  18341. { (exit 1); exit 1; }; }
  18342. else
  18343. { $as_echo "$as_me:$LINENO: result: $foundpcap" >&5
  18344. $as_echo "$foundpcap" >&6; }
  18345. fi
  18346. OLDLIBS="$LIBS"
  18347. OLDCFLAGS="$CFLAGS -I$LPCAPINCDIR"
  18348. LIBS="$LPCAPLIB"
  18349. CFLAGS="$CFLAGS -I$LPCAPINCDIR"
  18350. # Does libpcap require libnl?
  18351. { $as_echo "$as_me:$LINENO: checking for library containing pcap_close" >&5
  18352. $as_echo_n "checking for library containing pcap_close... " >&6; }
  18353. if test "${ac_cv_search_pcap_close+set}" = set; then
  18354. $as_echo_n "(cached) " >&6
  18355. else
  18356. ac_func_search_save_LIBS=$LIBS
  18357. cat >conftest.$ac_ext <<_ACEOF
  18358. /* confdefs.h. */
  18359. _ACEOF
  18360. cat confdefs.h >>conftest.$ac_ext
  18361. cat >>conftest.$ac_ext <<_ACEOF
  18362. /* end confdefs.h. */
  18363. /* Override any GCC internal prototype to avoid an error.
  18364. Use char because int might match the return type of a GCC
  18365. builtin and then its argument prototype would still apply. */
  18366. #ifdef __cplusplus
  18367. extern "C"
  18368. #endif
  18369. char pcap_close ();
  18370. int
  18371. main ()
  18372. {
  18373. return pcap_close ();
  18374. ;
  18375. return 0;
  18376. }
  18377. _ACEOF
  18378. for ac_lib in '' pcap; do
  18379. if test -z "$ac_lib"; then
  18380. ac_res="none required"
  18381. else
  18382. ac_res=-l$ac_lib
  18383. LIBS="-l$ac_lib -lnl $ac_func_search_save_LIBS"
  18384. fi
  18385. rm -f conftest.$ac_objext conftest$ac_exeext
  18386. if { (ac_try="$ac_link"
  18387. case "(($ac_try" in
  18388. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18389. *) ac_try_echo=$ac_try;;
  18390. esac
  18391. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18392. $as_echo "$ac_try_echo") >&5
  18393. (eval "$ac_link") 2>conftest.er1
  18394. ac_status=$?
  18395. grep -v '^ *+' conftest.er1 >conftest.err
  18396. rm -f conftest.er1
  18397. cat conftest.err >&5
  18398. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18399. (exit $ac_status); } && {
  18400. test -z "$ac_c_werror_flag" ||
  18401. test ! -s conftest.err
  18402. } && test -s conftest$ac_exeext && {
  18403. test "$cross_compiling" = yes ||
  18404. $as_test_x conftest$ac_exeext
  18405. }; then
  18406. ac_cv_search_pcap_close=$ac_res
  18407. else
  18408. $as_echo "$as_me: failed program was:" >&5
  18409. sed 's/^/| /' conftest.$ac_ext >&5
  18410. fi
  18411. rm -rf conftest.dSYM
  18412. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18413. conftest$ac_exeext
  18414. if test "${ac_cv_search_pcap_close+set}" = set; then
  18415. break
  18416. fi
  18417. done
  18418. if test "${ac_cv_search_pcap_close+set}" = set; then
  18419. :
  18420. else
  18421. ac_cv_search_pcap_close=no
  18422. fi
  18423. rm conftest.$ac_ext
  18424. LIBS=$ac_func_search_save_LIBS
  18425. fi
  18426. { $as_echo "$as_me:$LINENO: result: $ac_cv_search_pcap_close" >&5
  18427. $as_echo "$ac_cv_search_pcap_close" >&6; }
  18428. ac_res=$ac_cv_search_pcap_close
  18429. if test "$ac_res" != no; then
  18430. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  18431. LPCAPLIB="$LIBS"
  18432. else
  18433. { { $as_echo "$as_me:$LINENO: error: Unable to link libpcap in ${foundpcap}" >&5
  18434. $as_echo "$as_me: error: Unable to link libpcap in ${foundpcap}" >&2;}
  18435. { (exit 1); exit 1; }; }
  18436. fi
  18437. { $as_echo "$as_me:$LINENO: checking for libpcap version" >&5
  18438. $as_echo_n "checking for libpcap version... " >&6; }
  18439. libpcap_version_096=no
  18440. if test "$cross_compiling" = yes; then
  18441. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  18442. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  18443. { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  18444. See \`config.log' for more details." >&5
  18445. $as_echo "$as_me: error: cannot run test program while cross compiling
  18446. See \`config.log' for more details." >&2;}
  18447. { (exit 1); exit 1; }; }; }
  18448. else
  18449. cat >conftest.$ac_ext <<_ACEOF
  18450. /* confdefs.h. */
  18451. _ACEOF
  18452. cat confdefs.h >>conftest.$ac_ext
  18453. cat >>conftest.$ac_ext <<_ACEOF
  18454. /* end confdefs.h. */
  18455. #include <string.h>
  18456. #include <stdlib.h>
  18457. #include <stdio.h>
  18458. #include "$LPCAPINC"
  18459. #define PCAP_TEST "0.9.6"
  18460. int
  18461. main ()
  18462. {
  18463. /*
  18464. * simple proggy to test the version of libpcap
  18465. * returns zero if version >= 0.9.6
  18466. * or one otherwise
  18467. */
  18468. if (strncmp(pcap_lib_version(), PCAP_TEST, 5) >= 0)
  18469. exit(0);
  18470. exit(1);
  18471. ;
  18472. return 0;
  18473. }
  18474. _ACEOF
  18475. rm -f conftest$ac_exeext
  18476. if { (ac_try="$ac_link"
  18477. case "(($ac_try" in
  18478. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18479. *) ac_try_echo=$ac_try;;
  18480. esac
  18481. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18482. $as_echo "$ac_try_echo") >&5
  18483. (eval "$ac_link") 2>&5
  18484. ac_status=$?
  18485. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18486. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18487. { (case "(($ac_try" in
  18488. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18489. *) ac_try_echo=$ac_try;;
  18490. esac
  18491. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18492. $as_echo "$ac_try_echo") >&5
  18493. (eval "$ac_try") 2>&5
  18494. ac_status=$?
  18495. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18496. (exit $ac_status); }; }; then
  18497. libpcap_version_096=yes
  18498. else
  18499. $as_echo "$as_me: program exited with status $ac_status" >&5
  18500. $as_echo "$as_me: failed program was:" >&5
  18501. sed 's/^/| /' conftest.$ac_ext >&5
  18502. fi
  18503. rm -rf conftest.dSYM
  18504. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18505. fi
  18506. libpcap_ver8=no
  18507. if test "$cross_compiling" = yes; then
  18508. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  18509. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  18510. { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  18511. See \`config.log' for more details." >&5
  18512. $as_echo "$as_me: error: cannot run test program while cross compiling
  18513. See \`config.log' for more details." >&2;}
  18514. { (exit 1); exit 1; }; }; }
  18515. else
  18516. cat >conftest.$ac_ext <<_ACEOF
  18517. /* confdefs.h. */
  18518. _ACEOF
  18519. cat confdefs.h >>conftest.$ac_ext
  18520. cat >>conftest.$ac_ext <<_ACEOF
  18521. /* end confdefs.h. */
  18522. #include <string.h>
  18523. #include <stdlib.h>
  18524. #include <stdio.h>
  18525. #include "$LPCAPINC"
  18526. #define PCAP_TEST "0.8"
  18527. int
  18528. main ()
  18529. {
  18530. /*
  18531. * simple proggy to test the version of libpcap
  18532. * returns zero if version >= 0.8.0
  18533. * or one otherwise
  18534. */
  18535. if (strncmp(pcap_lib_version(), PCAP_TEST, 3) >= 0)
  18536. exit(0);
  18537. /* winpcap? */
  18538. if (strncmp(pcap_lib_version(), "WinPcap", 7) == 0)
  18539. exit(0);
  18540. exit(1);
  18541. ;
  18542. return 0;
  18543. }
  18544. _ACEOF
  18545. rm -f conftest$ac_exeext
  18546. if { (ac_try="$ac_link"
  18547. case "(($ac_try" in
  18548. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18549. *) ac_try_echo=$ac_try;;
  18550. esac
  18551. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18552. $as_echo "$ac_try_echo") >&5
  18553. (eval "$ac_link") 2>&5
  18554. ac_status=$?
  18555. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18556. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18557. { (case "(($ac_try" in
  18558. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18559. *) ac_try_echo=$ac_try;;
  18560. esac
  18561. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18562. $as_echo "$ac_try_echo") >&5
  18563. (eval "$ac_try") 2>&5
  18564. ac_status=$?
  18565. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18566. (exit $ac_status); }; }; then
  18567. libpcap_ver8=yes
  18568. else
  18569. $as_echo "$as_me: program exited with status $ac_status" >&5
  18570. $as_echo "$as_me: failed program was:" >&5
  18571. sed 's/^/| /' conftest.$ac_ext >&5
  18572. ( exit $ac_status )
  18573. libpcap_ver8=no
  18574. fi
  18575. rm -rf conftest.dSYM
  18576. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18577. fi
  18578. libpcap_ver7=no
  18579. if test "$cross_compiling" = yes; then
  18580. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  18581. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  18582. { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  18583. See \`config.log' for more details." >&5
  18584. $as_echo "$as_me: error: cannot run test program while cross compiling
  18585. See \`config.log' for more details." >&2;}
  18586. { (exit 1); exit 1; }; }; }
  18587. else
  18588. cat >conftest.$ac_ext <<_ACEOF
  18589. /* confdefs.h. */
  18590. _ACEOF
  18591. cat confdefs.h >>conftest.$ac_ext
  18592. cat >>conftest.$ac_ext <<_ACEOF
  18593. /* end confdefs.h. */
  18594. #include <string.h>
  18595. #include <stdlib.h>
  18596. #include <stdio.h>
  18597. #include "$LPCAPINC"
  18598. #define PCAP_TEST "0.7.2"
  18599. extern const char pcap_version[]; /* double up since autoconf escapes things */
  18600. int
  18601. main ()
  18602. {
  18603. /*
  18604. * simple proggy to test the version of libpcap
  18605. * returns zero if version >= 0.7.2
  18606. * or one otherwise
  18607. */
  18608. if (strncmp(pcap_version, PCAP_TEST, 5) >= 0)
  18609. exit(0);
  18610. exit(1);
  18611. ;
  18612. return 0;
  18613. }
  18614. _ACEOF
  18615. rm -f conftest$ac_exeext
  18616. if { (ac_try="$ac_link"
  18617. case "(($ac_try" in
  18618. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18619. *) ac_try_echo=$ac_try;;
  18620. esac
  18621. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18622. $as_echo "$ac_try_echo") >&5
  18623. (eval "$ac_link") 2>&5
  18624. ac_status=$?
  18625. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18626. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18627. { (case "(($ac_try" in
  18628. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18629. *) ac_try_echo=$ac_try;;
  18630. esac
  18631. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18632. $as_echo "$ac_try_echo") >&5
  18633. (eval "$ac_try") 2>&5
  18634. ac_status=$?
  18635. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18636. (exit $ac_status); }; }; then
  18637. libpcap_ver7=yes
  18638. else
  18639. $as_echo "$as_me: program exited with status $ac_status" >&5
  18640. $as_echo "$as_me: failed program was:" >&5
  18641. sed 's/^/| /' conftest.$ac_ext >&5
  18642. ( exit $ac_status )
  18643. libpcap_ver7=no
  18644. fi
  18645. rm -rf conftest.dSYM
  18646. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18647. fi
  18648. if test x$libpcap_ver8 = xyes ; then
  18649. { $as_echo "$as_me:$LINENO: result: >= 0.8.0" >&5
  18650. $as_echo ">= 0.8.0" >&6; }
  18651. elif test x$libpcap_ver7 = xyes ; then
  18652. { $as_echo "$as_me:$LINENO: result: >= 0.7.2" >&5
  18653. $as_echo ">= 0.7.2" >&6; }
  18654. else
  18655. { { $as_echo "$as_me:$LINENO: error: Libpcap versions < 0.7.2 are not supported
  18656. Please upgrade to version 0.7.2 or better" >&5
  18657. $as_echo "$as_me: error: Libpcap versions < 0.7.2 are not supported
  18658. Please upgrade to version 0.7.2 or better" >&2;}
  18659. { (exit 1); exit 1; }; }
  18660. fi
  18661. libpcap_version=unknown
  18662. if test x$libpcap_version_096 = xyes ; then
  18663. libpcap_version=">= 0.9.6"
  18664. elif test x$libpcap_ver8 = xyes ; then
  18665. libpcap_version=">= 0.8.0"
  18666. elif test x$libcap_ver7 = xyes ; then
  18667. libpcap_version=">= 0.7.0"
  18668. fi
  18669. { $as_echo "$as_me:$LINENO: checking for pcap_setnonblock" >&5
  18670. $as_echo_n "checking for pcap_setnonblock... " >&6; }
  18671. cat >conftest.$ac_ext <<_ACEOF
  18672. /* confdefs.h. */
  18673. _ACEOF
  18674. cat confdefs.h >>conftest.$ac_ext
  18675. cat >>conftest.$ac_ext <<_ACEOF
  18676. /* end confdefs.h. */
  18677. #include <stdio.h>
  18678. #include <stdlib.h>
  18679. #include <string.h>
  18680. #include "$LPCAPINC"
  18681. int
  18682. main ()
  18683. {
  18684. pcap_t *p;
  18685. char *errbuf;
  18686. pcap_setnonblock(p, 1, errbuf);
  18687. exit(0);
  18688. ;
  18689. return 0;
  18690. }
  18691. _ACEOF
  18692. rm -f conftest.$ac_objext conftest$ac_exeext
  18693. if { (ac_try="$ac_link"
  18694. case "(($ac_try" in
  18695. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18696. *) ac_try_echo=$ac_try;;
  18697. esac
  18698. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18699. $as_echo "$ac_try_echo") >&5
  18700. (eval "$ac_link") 2>conftest.er1
  18701. ac_status=$?
  18702. grep -v '^ *+' conftest.er1 >conftest.err
  18703. rm -f conftest.er1
  18704. cat conftest.err >&5
  18705. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18706. (exit $ac_status); } && {
  18707. test -z "$ac_c_werror_flag" ||
  18708. test ! -s conftest.err
  18709. } && test -s conftest$ac_exeext && {
  18710. test "$cross_compiling" = yes ||
  18711. $as_test_x conftest$ac_exeext
  18712. }; then
  18713. have_pcap_setnonblock=yes
  18714. { $as_echo "$as_me:$LINENO: result: yes" >&5
  18715. $as_echo "yes" >&6; }
  18716. else
  18717. $as_echo "$as_me: failed program was:" >&5
  18718. sed 's/^/| /' conftest.$ac_ext >&5
  18719. have_pcap_setnonblock=no
  18720. { $as_echo "$as_me:$LINENO: result: no" >&5
  18721. $as_echo "no" >&6; }
  18722. fi
  18723. rm -rf conftest.dSYM
  18724. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18725. conftest$ac_exeext conftest.$ac_ext
  18726. if test $have_pcap_setnonblock = yes ; then
  18727. cat >>confdefs.h <<\_ACEOF
  18728. #define HAVE_PCAP_SETNONBLOCK 1
  18729. _ACEOF
  18730. fi
  18731. { $as_echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5
  18732. $as_echo_n "checking for pcap_datalink_val_to_description... " >&6; }
  18733. cat >conftest.$ac_ext <<_ACEOF
  18734. /* confdefs.h. */
  18735. _ACEOF
  18736. cat confdefs.h >>conftest.$ac_ext
  18737. cat >>conftest.$ac_ext <<_ACEOF
  18738. /* end confdefs.h. */
  18739. #include <stdio.h>
  18740. #include <stdlib.h>
  18741. #include <string.h>
  18742. #include "$LPCAPINC"
  18743. int
  18744. main ()
  18745. {
  18746. if (strcmp(pcap_datalink_val_to_description(1), "Ethernet (10Mb)") == 0)
  18747. exit(0);
  18748. exit(1);
  18749. ;
  18750. return 0;
  18751. }
  18752. _ACEOF
  18753. rm -f conftest.$ac_objext conftest$ac_exeext
  18754. if { (ac_try="$ac_link"
  18755. case "(($ac_try" in
  18756. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18757. *) ac_try_echo=$ac_try;;
  18758. esac
  18759. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18760. $as_echo "$ac_try_echo") >&5
  18761. (eval "$ac_link") 2>conftest.er1
  18762. ac_status=$?
  18763. grep -v '^ *+' conftest.er1 >conftest.err
  18764. rm -f conftest.er1
  18765. cat conftest.err >&5
  18766. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18767. (exit $ac_status); } && {
  18768. test -z "$ac_c_werror_flag" ||
  18769. test ! -s conftest.err
  18770. } && test -s conftest$ac_exeext && {
  18771. test "$cross_compiling" = yes ||
  18772. $as_test_x conftest$ac_exeext
  18773. }; then
  18774. have_dlt_to_desc=yes
  18775. { $as_echo "$as_me:$LINENO: result: yes" >&5
  18776. $as_echo "yes" >&6; }
  18777. else
  18778. $as_echo "$as_me: failed program was:" >&5
  18779. sed 's/^/| /' conftest.$ac_ext >&5
  18780. have_dlt_to_desc=no
  18781. { $as_echo "$as_me:$LINENO: result: no" >&5
  18782. $as_echo "no" >&6; }
  18783. fi
  18784. rm -rf conftest.dSYM
  18785. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18786. conftest$ac_exeext conftest.$ac_ext
  18787. if test $have_dlt_to_desc = yes ; then
  18788. cat >>confdefs.h <<\_ACEOF
  18789. #define HAVE_DLT_VAL_TO_DESC 1
  18790. _ACEOF
  18791. fi
  18792. { $as_echo "$as_me:$LINENO: checking for pcap_get_selectable_fd" >&5
  18793. $as_echo_n "checking for pcap_get_selectable_fd... " >&6; }
  18794. cat >conftest.$ac_ext <<_ACEOF
  18795. /* confdefs.h. */
  18796. _ACEOF
  18797. cat confdefs.h >>conftest.$ac_ext
  18798. cat >>conftest.$ac_ext <<_ACEOF
  18799. /* end confdefs.h. */
  18800. #include <stdio.h>
  18801. #include <stdlib.h>
  18802. #include <string.h>
  18803. #include "$LPCAPINC"
  18804. int
  18805. main ()
  18806. {
  18807. int f;
  18808. pcap_t *p;
  18809. f = pcap_get_selectable_fd(p);
  18810. exit(0);
  18811. ;
  18812. return 0;
  18813. }
  18814. _ACEOF
  18815. rm -f conftest.$ac_objext conftest$ac_exeext
  18816. if { (ac_try="$ac_link"
  18817. case "(($ac_try" in
  18818. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18819. *) ac_try_echo=$ac_try;;
  18820. esac
  18821. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18822. $as_echo "$ac_try_echo") >&5
  18823. (eval "$ac_link") 2>conftest.er1
  18824. ac_status=$?
  18825. grep -v '^ *+' conftest.er1 >conftest.err
  18826. rm -f conftest.er1
  18827. cat conftest.err >&5
  18828. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18829. (exit $ac_status); } && {
  18830. test -z "$ac_c_werror_flag" ||
  18831. test ! -s conftest.err
  18832. } && test -s conftest$ac_exeext && {
  18833. test "$cross_compiling" = yes ||
  18834. $as_test_x conftest$ac_exeext
  18835. }; then
  18836. have_pcap_get_selectable_fd=yes
  18837. { $as_echo "$as_me:$LINENO: result: yes" >&5
  18838. $as_echo "yes" >&6; }
  18839. else
  18840. $as_echo "$as_me: failed program was:" >&5
  18841. sed 's/^/| /' conftest.$ac_ext >&5
  18842. have_pcap_get_selectable_fd=no
  18843. { $as_echo "$as_me:$LINENO: result: no" >&5
  18844. $as_echo "no" >&6; }
  18845. fi
  18846. rm -rf conftest.dSYM
  18847. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18848. conftest$ac_exeext conftest.$ac_ext
  18849. if test x$have_pcap_get_selectable_fd = xyes ; then
  18850. cat >>confdefs.h <<\_ACEOF
  18851. #define HAVE_PCAP_GET_SELECTABLE_FD 1
  18852. _ACEOF
  18853. fi
  18854. { $as_echo "$as_me:$LINENO: checking for pcap_dump_fopen" >&5
  18855. $as_echo_n "checking for pcap_dump_fopen... " >&6; }
  18856. cat >conftest.$ac_ext <<_ACEOF
  18857. /* confdefs.h. */
  18858. _ACEOF
  18859. cat confdefs.h >>conftest.$ac_ext
  18860. cat >>conftest.$ac_ext <<_ACEOF
  18861. /* end confdefs.h. */
  18862. #include <stdio.h>
  18863. #include <stdlib.h>
  18864. #include <string.h>
  18865. #include "$LPCAPINC"
  18866. int
  18867. main ()
  18868. {
  18869. pcap_dumper_t *dump;
  18870. pcap_t *pcap;
  18871. FILE *foo;
  18872. dump = pcap_dump_fopen(pcap, foo);
  18873. ;
  18874. return 0;
  18875. }
  18876. _ACEOF
  18877. rm -f conftest.$ac_objext conftest$ac_exeext
  18878. if { (ac_try="$ac_link"
  18879. case "(($ac_try" in
  18880. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18881. *) ac_try_echo=$ac_try;;
  18882. esac
  18883. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18884. $as_echo "$ac_try_echo") >&5
  18885. (eval "$ac_link") 2>conftest.er1
  18886. ac_status=$?
  18887. grep -v '^ *+' conftest.er1 >conftest.err
  18888. rm -f conftest.er1
  18889. cat conftest.err >&5
  18890. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18891. (exit $ac_status); } && {
  18892. test -z "$ac_c_werror_flag" ||
  18893. test ! -s conftest.err
  18894. } && test -s conftest$ac_exeext && {
  18895. test "$cross_compiling" = yes ||
  18896. $as_test_x conftest$ac_exeext
  18897. }; then
  18898. have_pcap_dump_fopen=yes
  18899. { $as_echo "$as_me:$LINENO: result: yes" >&5
  18900. $as_echo "yes" >&6; }
  18901. else
  18902. $as_echo "$as_me: failed program was:" >&5
  18903. sed 's/^/| /' conftest.$ac_ext >&5
  18904. have_pcap_dump_fopen=no
  18905. { $as_echo "$as_me:$LINENO: result: no" >&5
  18906. $as_echo "no" >&6; }
  18907. fi
  18908. rm -rf conftest.dSYM
  18909. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18910. conftest$ac_exeext conftest.$ac_ext
  18911. if test $have_pcap_dump_fopen = yes ; then
  18912. cat >>confdefs.h <<\_ACEOF
  18913. #define HAVE_PCAP_DUMP_FOPEN 1
  18914. _ACEOF
  18915. else
  18916. { $as_echo "$as_me:$LINENO: --verbose mode requires libpcap >= 0.9.0" >&5
  18917. $as_echo "$as_me: --verbose mode requires libpcap >= 0.9.0" >&6;}
  18918. fi
  18919. have_pcap_inject=no
  18920. { $as_echo "$as_me:$LINENO: checking for pcap_inject sending support" >&5
  18921. $as_echo_n "checking for pcap_inject sending support... " >&6; }
  18922. cat >conftest.$ac_ext <<_ACEOF
  18923. /* confdefs.h. */
  18924. _ACEOF
  18925. cat confdefs.h >>conftest.$ac_ext
  18926. cat >>conftest.$ac_ext <<_ACEOF
  18927. /* end confdefs.h. */
  18928. #include <stdio.h>
  18929. #include <stdlib.h>
  18930. #include <string.h>
  18931. #include "$LPCAPINC"
  18932. int
  18933. main ()
  18934. {
  18935. pcap_t *pcap;
  18936. char *buf;
  18937. pcap_inject(pcap, (void *)buf, 0);
  18938. ;
  18939. return 0;
  18940. }
  18941. _ACEOF
  18942. rm -f conftest.$ac_objext conftest$ac_exeext
  18943. if { (ac_try="$ac_link"
  18944. case "(($ac_try" in
  18945. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18946. *) ac_try_echo=$ac_try;;
  18947. esac
  18948. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18949. $as_echo "$ac_try_echo") >&5
  18950. (eval "$ac_link") 2>conftest.er1
  18951. ac_status=$?
  18952. grep -v '^ *+' conftest.er1 >conftest.err
  18953. rm -f conftest.er1
  18954. cat conftest.err >&5
  18955. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18956. (exit $ac_status); } && {
  18957. test -z "$ac_c_werror_flag" ||
  18958. test ! -s conftest.err
  18959. } && test -s conftest$ac_exeext && {
  18960. test "$cross_compiling" = yes ||
  18961. $as_test_x conftest$ac_exeext
  18962. }; then
  18963. have_pcap_inject=yes
  18964. { $as_echo "$as_me:$LINENO: result: yes" >&5
  18965. $as_echo "yes" >&6; }
  18966. else
  18967. $as_echo "$as_me: failed program was:" >&5
  18968. sed 's/^/| /' conftest.$ac_ext >&5
  18969. have_pcap_inject=no
  18970. { $as_echo "$as_me:$LINENO: result: no" >&5
  18971. $as_echo "no" >&6; }
  18972. fi
  18973. rm -rf conftest.dSYM
  18974. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18975. conftest$ac_exeext conftest.$ac_ext
  18976. if test $have_pcap_inject = yes ; then
  18977. cat >>confdefs.h <<\_ACEOF
  18978. #define HAVE_PCAP_INJECT 1
  18979. _ACEOF
  18980. fi
  18981. have_pcap_sendpacket=no
  18982. { $as_echo "$as_me:$LINENO: checking for pcap_sendpacket sending support" >&5
  18983. $as_echo_n "checking for pcap_sendpacket sending support... " >&6; }
  18984. cat >conftest.$ac_ext <<_ACEOF
  18985. /* confdefs.h. */
  18986. _ACEOF
  18987. cat confdefs.h >>conftest.$ac_ext
  18988. cat >>conftest.$ac_ext <<_ACEOF
  18989. /* end confdefs.h. */
  18990. #include <stdio.h>
  18991. #include <stdlib.h>
  18992. #include <string.h>
  18993. #include "$LPCAPINC"
  18994. int
  18995. main ()
  18996. {
  18997. pcap_t *pcap;
  18998. u_char *buf;
  18999. pcap_sendpacket(pcap, buf, 0);
  19000. ;
  19001. return 0;
  19002. }
  19003. _ACEOF
  19004. rm -f conftest.$ac_objext conftest$ac_exeext
  19005. if { (ac_try="$ac_link"
  19006. case "(($ac_try" in
  19007. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19008. *) ac_try_echo=$ac_try;;
  19009. esac
  19010. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19011. $as_echo "$ac_try_echo") >&5
  19012. (eval "$ac_link") 2>conftest.er1
  19013. ac_status=$?
  19014. grep -v '^ *+' conftest.er1 >conftest.err
  19015. rm -f conftest.er1
  19016. cat conftest.err >&5
  19017. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19018. (exit $ac_status); } && {
  19019. test -z "$ac_c_werror_flag" ||
  19020. test ! -s conftest.err
  19021. } && test -s conftest$ac_exeext && {
  19022. test "$cross_compiling" = yes ||
  19023. $as_test_x conftest$ac_exeext
  19024. }; then
  19025. have_pcap_sendpacket=yes
  19026. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19027. $as_echo "yes" >&6; }
  19028. else
  19029. $as_echo "$as_me: failed program was:" >&5
  19030. sed 's/^/| /' conftest.$ac_ext >&5
  19031. have_pcap_sendpacket=no
  19032. { $as_echo "$as_me:$LINENO: result: no" >&5
  19033. $as_echo "no" >&6; }
  19034. fi
  19035. rm -rf conftest.dSYM
  19036. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19037. conftest$ac_exeext conftest.$ac_ext
  19038. if test $have_pcap_sendpacket = yes ; then
  19039. cat >>confdefs.h <<\_ACEOF
  19040. #define HAVE_PCAP_SENDPACKET 1
  19041. _ACEOF
  19042. fi
  19043. have_pcap_breakloop=no
  19044. { $as_echo "$as_me:$LINENO: checking for pcap_breakloop" >&5
  19045. $as_echo_n "checking for pcap_breakloop... " >&6; }
  19046. cat >conftest.$ac_ext <<_ACEOF
  19047. /* confdefs.h. */
  19048. _ACEOF
  19049. cat confdefs.h >>conftest.$ac_ext
  19050. cat >>conftest.$ac_ext <<_ACEOF
  19051. /* end confdefs.h. */
  19052. #include <stdio.h>
  19053. #include <stdlib.h>
  19054. #include <string.h>
  19055. #include "$LPCAPINC"
  19056. int
  19057. main ()
  19058. {
  19059. pcap_t *pcap;
  19060. pcap_sendpacket(pcap);
  19061. ;
  19062. return 0;
  19063. }
  19064. _ACEOF
  19065. rm -f conftest.$ac_objext conftest$ac_exeext
  19066. if { (ac_try="$ac_link"
  19067. case "(($ac_try" in
  19068. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19069. *) ac_try_echo=$ac_try;;
  19070. esac
  19071. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19072. $as_echo "$ac_try_echo") >&5
  19073. (eval "$ac_link") 2>conftest.er1
  19074. ac_status=$?
  19075. grep -v '^ *+' conftest.er1 >conftest.err
  19076. rm -f conftest.er1
  19077. cat conftest.err >&5
  19078. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19079. (exit $ac_status); } && {
  19080. test -z "$ac_c_werror_flag" ||
  19081. test ! -s conftest.err
  19082. } && test -s conftest$ac_exeext && {
  19083. test "$cross_compiling" = yes ||
  19084. $as_test_x conftest$ac_exeext
  19085. }; then
  19086. have_pcap_breakloop=yes
  19087. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19088. $as_echo "yes" >&6; }
  19089. else
  19090. $as_echo "$as_me: failed program was:" >&5
  19091. sed 's/^/| /' conftest.$ac_ext >&5
  19092. have_pcap_breakloop=no
  19093. { $as_echo "$as_me:$LINENO: result: no" >&5
  19094. $as_echo "no" >&6; }
  19095. fi
  19096. rm -rf conftest.dSYM
  19097. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19098. conftest$ac_exeext conftest.$ac_ext
  19099. if test $have_pcap_breakloop = yes ; then
  19100. cat >>confdefs.h <<\_ACEOF
  19101. #define HAVE_PCAP_BREAKLOOP 1
  19102. _ACEOF
  19103. fi
  19104. have_pcap_version=no
  19105. { $as_echo "$as_me:$LINENO: checking for pcap_version" >&5
  19106. $as_echo_n "checking for pcap_version... " >&6; }
  19107. cat >conftest.$ac_ext <<_ACEOF
  19108. /* confdefs.h. */
  19109. _ACEOF
  19110. cat confdefs.h >>conftest.$ac_ext
  19111. cat >>conftest.$ac_ext <<_ACEOF
  19112. /* end confdefs.h. */
  19113. #include <stdio.h>
  19114. #include <stdlib.h>
  19115. #include <string.h>
  19116. #include "$LPCAPINC"
  19117. extern char pcap_version[];
  19118. int
  19119. main ()
  19120. {
  19121. printf("%s", pcap_version);
  19122. ;
  19123. return 0;
  19124. }
  19125. _ACEOF
  19126. rm -f conftest.$ac_objext
  19127. if { (ac_try="$ac_compile"
  19128. case "(($ac_try" in
  19129. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19130. *) ac_try_echo=$ac_try;;
  19131. esac
  19132. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19133. $as_echo "$ac_try_echo") >&5
  19134. (eval "$ac_compile") 2>conftest.er1
  19135. ac_status=$?
  19136. grep -v '^ *+' conftest.er1 >conftest.err
  19137. rm -f conftest.er1
  19138. cat conftest.err >&5
  19139. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19140. (exit $ac_status); } && {
  19141. test -z "$ac_c_werror_flag" ||
  19142. test ! -s conftest.err
  19143. } && test -s conftest.$ac_objext; then
  19144. cat >>confdefs.h <<\_ACEOF
  19145. #define HAVE_PCAP_VERSION 1
  19146. _ACEOF
  19147. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19148. $as_echo "yes" >&6; }
  19149. else
  19150. $as_echo "$as_me: failed program was:" >&5
  19151. sed 's/^/| /' conftest.$ac_ext >&5
  19152. { $as_echo "$as_me:$LINENO: result: no" >&5
  19153. $as_echo "no" >&6; }
  19154. fi
  19155. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19156. # Tcpbridge requires libpcap and pcap_sendpacket()
  19157. enable_tcpbridge=no
  19158. if test x$foundpcap != xno -a x$have_pcap_sendpacket = xyes ; then
  19159. # if we have pcap_sendpacket() then we can build tcpbridge on non-BPF systems
  19160. if test x$have_bpf = xno; then
  19161. cat >>confdefs.h <<\_ACEOF
  19162. #define ENABLE_TCPBRIDGE 1
  19163. _ACEOF
  19164. enable_tcpbridge=yes
  19165. { $as_echo "$as_me:$LINENO: Building tcpbridge" >&5
  19166. $as_echo "$as_me: Building tcpbridge" >&6;}
  19167. # BPF systems need to also have pcap_setnonblock()
  19168. elif test x$have_pcap_setnonblock = xyes ; then
  19169. cat >>confdefs.h <<\_ACEOF
  19170. #define ENABLE_TCPBRIDGE 1
  19171. _ACEOF
  19172. enable_tcpbridge=yes
  19173. { $as_echo "$as_me:$LINENO: Building tcpbridge" >&5
  19174. $as_echo "$as_me: Building tcpbridge" >&6;}
  19175. else
  19176. { $as_echo "$as_me:$LINENO: WARNING: Unable to build tcpbridge. Try installing latest libpcap!" >&5
  19177. $as_echo "$as_me: WARNING: Unable to build tcpbridge. Try installing latest libpcap!" >&2;}
  19178. fi
  19179. fi
  19180. if test x$enable_tcpbridge = xyes ; then
  19181. COMPILE_TCPBRIDGE_TRUE=
  19182. COMPILE_TCPBRIDGE_FALSE='#'
  19183. else
  19184. COMPILE_TCPBRIDGE_TRUE='#'
  19185. COMPILE_TCPBRIDGE_FALSE=
  19186. fi
  19187. have_pf=no
  19188. { $as_echo "$as_me:$LINENO: checking for PF_PACKET socket sending support" >&5
  19189. $as_echo_n "checking for PF_PACKET socket sending support... " >&6; }
  19190. cat >conftest.$ac_ext <<_ACEOF
  19191. /* confdefs.h. */
  19192. _ACEOF
  19193. cat confdefs.h >>conftest.$ac_ext
  19194. cat >>conftest.$ac_ext <<_ACEOF
  19195. /* end confdefs.h. */
  19196. #include <sys/socket.h>
  19197. #include <netpacket/packet.h>
  19198. #include <net/ethernet.h> /* the L2 protocols */
  19199. #include <netinet/in.h> /* htons */
  19200. int
  19201. main ()
  19202. {
  19203. int pf_socket;
  19204. pf_socket = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL));
  19205. ;
  19206. return 0;
  19207. }
  19208. _ACEOF
  19209. rm -f conftest.$ac_objext
  19210. if { (ac_try="$ac_compile"
  19211. case "(($ac_try" in
  19212. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19213. *) ac_try_echo=$ac_try;;
  19214. esac
  19215. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19216. $as_echo "$ac_try_echo") >&5
  19217. (eval "$ac_compile") 2>conftest.er1
  19218. ac_status=$?
  19219. grep -v '^ *+' conftest.er1 >conftest.err
  19220. rm -f conftest.er1
  19221. cat conftest.err >&5
  19222. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19223. (exit $ac_status); } && {
  19224. test -z "$ac_c_werror_flag" ||
  19225. test ! -s conftest.err
  19226. } && test -s conftest.$ac_objext; then
  19227. cat >>confdefs.h <<\_ACEOF
  19228. #define HAVE_PF_PACKET 1
  19229. _ACEOF
  19230. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19231. $as_echo "yes" >&6; }
  19232. have_pf=yes
  19233. else
  19234. $as_echo "$as_me: failed program was:" >&5
  19235. sed 's/^/| /' conftest.$ac_ext >&5
  19236. { $as_echo "$as_me:$LINENO: result: no" >&5
  19237. $as_echo "no" >&6; }
  19238. fi
  19239. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19240. have_bpf=no
  19241. { $as_echo "$as_me:$LINENO: checking for BPF device sending support" >&5
  19242. $as_echo_n "checking for BPF device sending support... " >&6; }
  19243. if test "$cross_compiling" = yes; then
  19244. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  19245. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  19246. { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  19247. See \`config.log' for more details." >&5
  19248. $as_echo "$as_me: error: cannot run test program while cross compiling
  19249. See \`config.log' for more details." >&2;}
  19250. { (exit 1); exit 1; }; }; }
  19251. else
  19252. cat >conftest.$ac_ext <<_ACEOF
  19253. /* confdefs.h. */
  19254. _ACEOF
  19255. cat confdefs.h >>conftest.$ac_ext
  19256. cat >>conftest.$ac_ext <<_ACEOF
  19257. /* end confdefs.h. */
  19258. #include <stdio.h>
  19259. #include <stdlib.h>
  19260. #include <sys/types.h>
  19261. #include <sys/socket.h>
  19262. #include <fcntl.h>
  19263. #include <sys/time.h>
  19264. #include <sys/ioctl.h>
  19265. #include <stdint.h>
  19266. #include <net/bpf.h>
  19267. #include <errno.h>
  19268. int
  19269. main(int argc, char *argv[]) {
  19270. int fd;
  19271. fd = open("/dev/bpf0", O_RDONLY, 0);
  19272. /* if we opened it, we're good */
  19273. if (fd > 1)
  19274. exit(0);
  19275. /* if we got EBUSY or permission denied it exists, so we're good */
  19276. if (fd < 0 && (errno == EBUSY || errno == 13))
  19277. exit(0);
  19278. /* else suck, no good */
  19279. exit(-1);
  19280. }
  19281. _ACEOF
  19282. rm -f conftest$ac_exeext
  19283. if { (ac_try="$ac_link"
  19284. case "(($ac_try" in
  19285. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19286. *) ac_try_echo=$ac_try;;
  19287. esac
  19288. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19289. $as_echo "$ac_try_echo") >&5
  19290. (eval "$ac_link") 2>&5
  19291. ac_status=$?
  19292. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19293. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19294. { (case "(($ac_try" in
  19295. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19296. *) ac_try_echo=$ac_try;;
  19297. esac
  19298. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19299. $as_echo "$ac_try_echo") >&5
  19300. (eval "$ac_try") 2>&5
  19301. ac_status=$?
  19302. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19303. (exit $ac_status); }; }; then
  19304. cat >>confdefs.h <<\_ACEOF
  19305. #define HAVE_BPF 1
  19306. _ACEOF
  19307. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19308. $as_echo "yes" >&6; }
  19309. have_bpf=yes
  19310. else
  19311. $as_echo "$as_me: program exited with status $ac_status" >&5
  19312. $as_echo "$as_me: failed program was:" >&5
  19313. sed 's/^/| /' conftest.$ac_ext >&5
  19314. ( exit $ac_status )
  19315. { $as_echo "$as_me:$LINENO: result: no" >&5
  19316. $as_echo "no" >&6; }
  19317. fi
  19318. rm -rf conftest.dSYM
  19319. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19320. fi
  19321. founddnet=no
  19322. have_libdnet=no
  19323. libdnet_version=
  19324. enable_fragroute=no
  19325. trydnetdir=/usr/local
  19326. if test $have_cygwin == no ; then
  19327. { $as_echo "$as_me:$LINENO: checking for libdnet" >&5
  19328. $as_echo_n "checking for libdnet... " >&6; }
  19329. # Check whether --with-libdnet was given.
  19330. if test "${with_libdnet+set}" = set; then
  19331. withval=$with_libdnet; trydnetdir=$withval
  19332. fi
  19333. for testdir in $trydnetdir /usr/local /opt/local /usr ; do
  19334. if test -x ${testdir}/bin/dnet-config -a $founddnet = no ; then
  19335. LDNETINC="`$testdir/bin/dnet-config --cflags`"
  19336. LDNETLIB="`$testdir/bin/dnet-config --libs`"
  19337. libdnet_version="`$testdir/bin/dnet-config --version`"
  19338. founddnet=$testdir
  19339. fi
  19340. done
  19341. if test $founddnet = no ; then
  19342. { $as_echo "$as_me:$LINENO: result: no" >&5
  19343. $as_echo "no" >&6; }
  19344. { $as_echo "$as_me:$LINENO: WARNING: libdnet not found, disabling fragroute feature" >&5
  19345. $as_echo "$as_me: WARNING: libdnet not found, disabling fragroute feature" >&2;}
  19346. else
  19347. { $as_echo "$as_me:$LINENO: result: $founddnet" >&5
  19348. $as_echo "$founddnet" >&6; }
  19349. enable_fragroute=yes
  19350. have_libdnet=yes
  19351. cat >>confdefs.h <<\_ACEOF
  19352. #define HAVE_LIBDNET 1
  19353. _ACEOF
  19354. fi
  19355. else
  19356. { $as_echo "$as_me:$LINENO: Skipping libdnet check under Cygwin for compatibility reasons" >&5
  19357. $as_echo "$as_me: Skipping libdnet check under Cygwin for compatibility reasons" >&6;}
  19358. fi
  19359. cat >>confdefs.h <<_ACEOF
  19360. #define LIBDNET_VERSION "$libdnet_version"
  19361. _ACEOF
  19362. if test x$founddnet != xno; then
  19363. COMPILE_FRAGROUTE_TRUE=
  19364. COMPILE_FRAGROUTE_FALSE='#'
  19365. else
  19366. COMPILE_FRAGROUTE_TRUE='#'
  19367. COMPILE_FRAGROUTE_FALSE=
  19368. fi
  19369. if test x$founddnet != xno ; then
  19370. cat >>confdefs.h <<\_ACEOF
  19371. #define ENABLE_FRAGROUTE 1
  19372. _ACEOF
  19373. fi
  19374. if test $have_bpf = no -a $have_pcap_inject = no -a $have_pcap_sendpacket = no \
  19375. -a $have_libdnet = no -a $have_pf = no ; then
  19376. { { $as_echo "$as_me:$LINENO: error: Unable to find a supported method to send packets. Please upgrade your libpcap or enable libdnet" >&5
  19377. $as_echo "$as_me: error: Unable to find a supported method to send packets. Please upgrade your libpcap or enable libdnet" >&2;}
  19378. { (exit 1); exit 1; }; }
  19379. fi
  19380. { $as_echo "$as_me:$LINENO: checking for DLT_LINUX_SLL in libpcap" >&5
  19381. $as_echo_n "checking for DLT_LINUX_SLL in libpcap... " >&6; }
  19382. cat >conftest.$ac_ext <<_ACEOF
  19383. /* confdefs.h. */
  19384. _ACEOF
  19385. cat confdefs.h >>conftest.$ac_ext
  19386. cat >>conftest.$ac_ext <<_ACEOF
  19387. /* end confdefs.h. */
  19388. #include "$LPCAPINC"
  19389. int
  19390. main ()
  19391. {
  19392. int foo;
  19393. foo = DLT_LINUX_SLL
  19394. ;
  19395. return 0;
  19396. }
  19397. _ACEOF
  19398. rm -f conftest.$ac_objext
  19399. if { (ac_try="$ac_compile"
  19400. case "(($ac_try" in
  19401. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19402. *) ac_try_echo=$ac_try;;
  19403. esac
  19404. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19405. $as_echo "$ac_try_echo") >&5
  19406. (eval "$ac_compile") 2>conftest.er1
  19407. ac_status=$?
  19408. grep -v '^ *+' conftest.er1 >conftest.err
  19409. rm -f conftest.er1
  19410. cat conftest.err >&5
  19411. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19412. (exit $ac_status); } && {
  19413. test -z "$ac_c_werror_flag" ||
  19414. test ! -s conftest.err
  19415. } && test -s conftest.$ac_objext; then
  19416. cat >>confdefs.h <<\_ACEOF
  19417. #define HAVE_DLT_LINUX_SLL 1
  19418. _ACEOF
  19419. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19420. $as_echo "yes" >&6; }
  19421. else
  19422. $as_echo "$as_me: failed program was:" >&5
  19423. sed 's/^/| /' conftest.$ac_ext >&5
  19424. { $as_echo "$as_me:$LINENO: result: no" >&5
  19425. $as_echo "no" >&6; }
  19426. fi
  19427. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19428. { $as_echo "$as_me:$LINENO: checking for DLT_C_HDLC in libpcap" >&5
  19429. $as_echo_n "checking for DLT_C_HDLC in libpcap... " >&6; }
  19430. cat >conftest.$ac_ext <<_ACEOF
  19431. /* confdefs.h. */
  19432. _ACEOF
  19433. cat confdefs.h >>conftest.$ac_ext
  19434. cat >>conftest.$ac_ext <<_ACEOF
  19435. /* end confdefs.h. */
  19436. #include "$LPCAPINC"
  19437. int
  19438. main ()
  19439. {
  19440. int foo;
  19441. foo = DLT_C_HDLC
  19442. ;
  19443. return 0;
  19444. }
  19445. _ACEOF
  19446. rm -f conftest.$ac_objext
  19447. if { (ac_try="$ac_compile"
  19448. case "(($ac_try" in
  19449. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19450. *) ac_try_echo=$ac_try;;
  19451. esac
  19452. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19453. $as_echo "$ac_try_echo") >&5
  19454. (eval "$ac_compile") 2>conftest.er1
  19455. ac_status=$?
  19456. grep -v '^ *+' conftest.er1 >conftest.err
  19457. rm -f conftest.er1
  19458. cat conftest.err >&5
  19459. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19460. (exit $ac_status); } && {
  19461. test -z "$ac_c_werror_flag" ||
  19462. test ! -s conftest.err
  19463. } && test -s conftest.$ac_objext; then
  19464. cat >>confdefs.h <<\_ACEOF
  19465. #define HAVE_DLT_C_HDLC 1
  19466. _ACEOF
  19467. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19468. $as_echo "yes" >&6; }
  19469. else
  19470. $as_echo "$as_me: failed program was:" >&5
  19471. sed 's/^/| /' conftest.$ac_ext >&5
  19472. { $as_echo "$as_me:$LINENO: result: no" >&5
  19473. $as_echo "no" >&6; }
  19474. fi
  19475. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19476. PCAP_BPF_H_FILE="$LPCAPINCDIR/pcap-bpf.h"
  19477. { $as_echo "$as_me:$LINENO: checking for $PCAP_BPF_H_FILE" >&5
  19478. $as_echo_n "checking for $PCAP_BPF_H_FILE... " >&6; }
  19479. cat >conftest.$ac_ext <<_ACEOF
  19480. /* confdefs.h. */
  19481. _ACEOF
  19482. cat confdefs.h >>conftest.$ac_ext
  19483. cat >>conftest.$ac_ext <<_ACEOF
  19484. /* end confdefs.h. */
  19485. #include <sys/types.h>
  19486. #include <sys/time.h>
  19487. #include <stdint.h>
  19488. #include "$PCAP_BPF_H_FILE"
  19489. int
  19490. main ()
  19491. {
  19492. int foo;
  19493. foo = BPF_MAJOR_VERSION;
  19494. ;
  19495. return 0;
  19496. }
  19497. _ACEOF
  19498. rm -f conftest.$ac_objext
  19499. if { (ac_try="$ac_compile"
  19500. case "(($ac_try" in
  19501. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19502. *) ac_try_echo=$ac_try;;
  19503. esac
  19504. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19505. $as_echo "$ac_try_echo") >&5
  19506. (eval "$ac_compile") 2>conftest.er1
  19507. ac_status=$?
  19508. grep -v '^ *+' conftest.er1 >conftest.err
  19509. rm -f conftest.er1
  19510. cat conftest.err >&5
  19511. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19512. (exit $ac_status); } && {
  19513. test -z "$ac_c_werror_flag" ||
  19514. test ! -s conftest.err
  19515. } && test -s conftest.$ac_objext; then
  19516. cat >>confdefs.h <<\_ACEOF
  19517. #define INCLUDE_PCAP_BPF_HEADER 1
  19518. _ACEOF
  19519. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19520. $as_echo "yes" >&6; }
  19521. else
  19522. $as_echo "$as_me: failed program was:" >&5
  19523. sed 's/^/| /' conftest.$ac_ext >&5
  19524. { $as_echo "$as_me:$LINENO: result: no" >&5
  19525. $as_echo "no" >&6; }
  19526. fi
  19527. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19528. foundbpfheader=no
  19529. { $as_echo "$as_me:$LINENO: checking for libpcap bpf header" >&5
  19530. $as_echo_n "checking for libpcap bpf header... " >&6; }
  19531. for testfile in $LPCAPINCDIR/pcap/bpf.h $LPCAPINCDIR/pcap-bpf.h ; do
  19532. if test -f "${testfile}" -a $foundbpfheader = no ; then
  19533. cat >conftest.$ac_ext <<_ACEOF
  19534. /* confdefs.h. */
  19535. _ACEOF
  19536. cat confdefs.h >>conftest.$ac_ext
  19537. cat >>conftest.$ac_ext <<_ACEOF
  19538. /* end confdefs.h. */
  19539. #include <sys/types.h>
  19540. #include <sys/time.h>
  19541. #include <stdint.h>
  19542. #include "$testfile"
  19543. int
  19544. main ()
  19545. {
  19546. int foo;
  19547. foo = BPF_MAJOR_VERSION;
  19548. ;
  19549. return 0;
  19550. }
  19551. _ACEOF
  19552. rm -f conftest.$ac_objext
  19553. if { (ac_try="$ac_compile"
  19554. case "(($ac_try" in
  19555. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19556. *) ac_try_echo=$ac_try;;
  19557. esac
  19558. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19559. $as_echo "$ac_try_echo") >&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. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19566. (exit $ac_status); } && {
  19567. test -z "$ac_c_werror_flag" ||
  19568. test ! -s conftest.err
  19569. } && test -s conftest.$ac_objext; then
  19570. foundbpfheader=yes
  19571. PCAP_BPF_H_FILE=$testfile
  19572. cat >>confdefs.h <<\_ACEOF
  19573. #define INCLUDE_PCAP_BPF_HEADER 1
  19574. _ACEOF
  19575. { $as_echo "$as_me:$LINENO: result: $testfile" >&5
  19576. $as_echo "$testfile" >&6; }
  19577. else
  19578. $as_echo "$as_me: failed program was:" >&5
  19579. sed 's/^/| /' conftest.$ac_ext >&5
  19580. { $as_echo "$as_me:$LINENO: result: no" >&5
  19581. $as_echo "no" >&6; }
  19582. fi
  19583. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19584. fi
  19585. done
  19586. LIBS="$OLDLIBS"
  19587. CFLAGS="$OLDCFLAGS"
  19588. pcapnav_ver=no
  19589. pcncfg=no
  19590. # Check whether --with-pcapnav-config was given.
  19591. if test "${with_pcapnav_config+set}" = set; then
  19592. withval=$with_pcapnav_config; { $as_echo "$as_me:$LINENO: checking for pcapnav-config" >&5
  19593. $as_echo_n "checking for pcapnav-config... " >&6; }
  19594. if test -x $withval ; then
  19595. pcncfg=$withval
  19596. { $as_echo "$as_me:$LINENO: result: $pcncfg" >&5
  19597. $as_echo "$pcncfg" >&6; }
  19598. elif test x$withval = xno ; then
  19599. { $as_echo "$as_me:$LINENO: result: no" >&5
  19600. $as_echo "no" >&6; }
  19601. else
  19602. { $as_echo "$as_me:$LINENO: result: Can't find pcapnav-config: disabling offset jump feature" >&5
  19603. $as_echo "Can't find pcapnav-config: disabling offset jump feature" >&6; }
  19604. fi
  19605. else
  19606. # Extract the first word of "pcapnav-config", so it can be a program name with args.
  19607. set dummy pcapnav-config; ac_word=$2
  19608. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  19609. $as_echo_n "checking for $ac_word... " >&6; }
  19610. if test "${ac_cv_path_pcncfg+set}" = set; then
  19611. $as_echo_n "(cached) " >&6
  19612. else
  19613. case $pcncfg in
  19614. [\\/]* | ?:[\\/]*)
  19615. ac_cv_path_pcncfg="$pcncfg" # Let the user override the test with a path.
  19616. ;;
  19617. *)
  19618. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19619. for as_dir in $PATH
  19620. do
  19621. IFS=$as_save_IFS
  19622. test -z "$as_dir" && as_dir=.
  19623. for ac_exec_ext in '' $ac_executable_extensions; do
  19624. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19625. ac_cv_path_pcncfg="$as_dir/$ac_word$ac_exec_ext"
  19626. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19627. break 2
  19628. fi
  19629. done
  19630. done
  19631. IFS=$as_save_IFS
  19632. test -z "$ac_cv_path_pcncfg" && ac_cv_path_pcncfg="no "
  19633. ;;
  19634. esac
  19635. fi
  19636. pcncfg=$ac_cv_path_pcncfg
  19637. if test -n "$pcncfg"; then
  19638. { $as_echo "$as_me:$LINENO: result: $pcncfg" >&5
  19639. $as_echo "$pcncfg" >&6; }
  19640. else
  19641. { $as_echo "$as_me:$LINENO: result: no" >&5
  19642. $as_echo "no" >&6; }
  19643. fi
  19644. fi
  19645. if test $pcncfg != no ; then
  19646. LNAVLIB=`$pcncfg --libs`
  19647. LNAV_CFLAGS=`$pcncfg --cflags`
  19648. PCAPNAV_VERSION=`$pcncfg --version`
  19649. cat >>confdefs.h <<_ACEOF
  19650. #define PCAPNAV_VERSION "$PCAPNAV_VERSION"
  19651. _ACEOF
  19652. { $as_echo "$as_me:$LINENO: checking for libpcapnav version" >&5
  19653. $as_echo_n "checking for libpcapnav version... " >&6; }
  19654. if test "$cross_compiling" = yes; then
  19655. libpcapnav_ver=no
  19656. else
  19657. cat >conftest.$ac_ext <<_ACEOF
  19658. /* confdefs.h. */
  19659. _ACEOF
  19660. cat confdefs.h >>conftest.$ac_ext
  19661. cat >>conftest.$ac_ext <<_ACEOF
  19662. /* end confdefs.h. */
  19663. #include <string.h>
  19664. #define PCAPNAV_TEST "0.4"
  19665. /*
  19666. * simple proggy to test the version of libpcapnav
  19667. * returns zero if version >= 0.4
  19668. * or one otherwise
  19669. */
  19670. int
  19671. main (int argc, char *argv[])
  19672. {
  19673. if (strncmp(PCAPNAV_VERSION, PCAPNAV_TEST, 3) >= 0)
  19674. exit(0);
  19675. exit(1);
  19676. }
  19677. _ACEOF
  19678. rm -f conftest$ac_exeext
  19679. if { (ac_try="$ac_link"
  19680. case "(($ac_try" in
  19681. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19682. *) ac_try_echo=$ac_try;;
  19683. esac
  19684. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19685. $as_echo "$ac_try_echo") >&5
  19686. (eval "$ac_link") 2>&5
  19687. ac_status=$?
  19688. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19689. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19690. { (case "(($ac_try" in
  19691. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19692. *) ac_try_echo=$ac_try;;
  19693. esac
  19694. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19695. $as_echo "$ac_try_echo") >&5
  19696. (eval "$ac_try") 2>&5
  19697. ac_status=$?
  19698. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19699. (exit $ac_status); }; }; then
  19700. libpcapnav_ver=yes
  19701. { $as_echo "$as_me:$LINENO: result: >= 0.4" >&5
  19702. $as_echo ">= 0.4" >&6; }
  19703. else
  19704. $as_echo "$as_me: program exited with status $ac_status" >&5
  19705. $as_echo "$as_me: failed program was:" >&5
  19706. sed 's/^/| /' conftest.$ac_ext >&5
  19707. ( exit $ac_status )
  19708. libpcapnav_ver=no
  19709. { $as_echo "$as_me:$LINENO: result: < 0.4" >&5
  19710. $as_echo "< 0.4" >&6; }
  19711. fi
  19712. rm -rf conftest.dSYM
  19713. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19714. fi
  19715. if test x$libpcapnav_ver = xno ; then
  19716. { $as_echo "$as_me:$LINENO: WARNING: Libpcapnav versions < 0.4 are not supported.
  19717. Please upgrade to version 0.4 or better.
  19718. Disabling offset jump feature." >&5
  19719. $as_echo "$as_me: WARNING: Libpcapnav versions < 0.4 are not supported.
  19720. Please upgrade to version 0.4 or better.
  19721. Disabling offset jump feature." >&2;}
  19722. else
  19723. cat >>confdefs.h <<\_ACEOF
  19724. #define HAVE_PCAPNAV 1
  19725. _ACEOF
  19726. fi
  19727. fi # checking pcapnav version
  19728. { $as_echo "$as_me:$LINENO: checking for requires strict byte alignment" >&5
  19729. $as_echo_n "checking for requires strict byte alignment... " >&6; }
  19730. if test "${unaligned_cv_fail+set}" = set; then
  19731. $as_echo_n "(cached) " >&6
  19732. else
  19733. case "$host_cpu" in
  19734. # XXX: should also check that they don't do weird things (like on arm)
  19735. alpha*|arm*|hp*|mips*|sparc*|ia64)
  19736. unaligned_cv_fail=yes
  19737. ;;
  19738. *)
  19739. cat >conftest.c <<EOF
  19740. #include <sys/types.h>
  19741. #include <sys/wait.h>
  19742. #include <stdio.h>
  19743. unsigned char a[5] = { 1, 2, 3, 4, 5 };
  19744. main() {
  19745. unsigned int i;
  19746. pid_t pid;
  19747. int status;
  19748. /* avoid "core dumped" message */
  19749. pid = fork();
  19750. if (pid < 0)
  19751. exit(2);
  19752. if (pid > 0) {
  19753. /* parent */
  19754. pid = waitpid(pid, &status, 0);
  19755. if (pid < 0)
  19756. exit(3);
  19757. exit(!WIFEXITED(status));
  19758. }
  19759. /* child */
  19760. i = *(unsigned int *)&a[1];
  19761. printf("%d\n", i);
  19762. exit(0);
  19763. }
  19764. EOF
  19765. ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
  19766. conftest.c $LIBS >/dev/null 2>&1
  19767. if test ! -x conftest ; then
  19768. unaligned_cv_fail=yes
  19769. else
  19770. ./conftest >conftest.out
  19771. if test ! -s conftest.out ; then
  19772. unaligned_cv_fail=yes
  19773. else
  19774. unaligned_cv_fail=no
  19775. fi
  19776. fi
  19777. rm -f conftest* core core.conftest
  19778. ;;
  19779. esac
  19780. fi
  19781. { $as_echo "$as_me:$LINENO: result: $unaligned_cv_fail" >&5
  19782. $as_echo "$unaligned_cv_fail" >&6; }
  19783. if test $unaligned_cv_fail = yes ; then
  19784. cat >>confdefs.h <<\_ACEOF
  19785. #define FORCE_ALIGN 1
  19786. _ACEOF
  19787. fi
  19788. tcpdump_path=no
  19789. # Check whether --with-tcpdump was given.
  19790. if test "${with_tcpdump+set}" = set; then
  19791. withval=$with_tcpdump; if test -x $withval ; then
  19792. tcpdump_path=$withval
  19793. { $as_echo "$as_me:$LINENO: result: Using tcpdump in $tcpdump_path" >&5
  19794. $as_echo "Using tcpdump in $tcpdump_path" >&6; }
  19795. else
  19796. { $as_echo "$as_me:$LINENO: result: Error: $withval does not exist or is not executable" >&5
  19797. $as_echo "Error: $withval does not exist or is not executable" >&6; }
  19798. fi
  19799. else
  19800. # Extract the first word of "tcpdump", so it can be a program name with args.
  19801. set dummy tcpdump; ac_word=$2
  19802. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  19803. $as_echo_n "checking for $ac_word... " >&6; }
  19804. if test "${ac_cv_path_tcpdump_path+set}" = set; then
  19805. $as_echo_n "(cached) " >&6
  19806. else
  19807. case $tcpdump_path in
  19808. [\\/]* | ?:[\\/]*)
  19809. ac_cv_path_tcpdump_path="$tcpdump_path" # Let the user override the test with a path.
  19810. ;;
  19811. *)
  19812. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19813. as_dummy="$PATH:/usr/sbin:/sbin:/usr/local/sbin"
  19814. for as_dir in $as_dummy
  19815. do
  19816. IFS=$as_save_IFS
  19817. test -z "$as_dir" && as_dir=.
  19818. for ac_exec_ext in '' $ac_executable_extensions; do
  19819. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19820. ac_cv_path_tcpdump_path="$as_dir/$ac_word$ac_exec_ext"
  19821. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19822. break 2
  19823. fi
  19824. done
  19825. done
  19826. IFS=$as_save_IFS
  19827. test -z "$ac_cv_path_tcpdump_path" && ac_cv_path_tcpdump_path=""no""
  19828. ;;
  19829. esac
  19830. fi
  19831. tcpdump_path=$ac_cv_path_tcpdump_path
  19832. if test -n "$tcpdump_path"; then
  19833. { $as_echo "$as_me:$LINENO: result: $tcpdump_path" >&5
  19834. $as_echo "$tcpdump_path" >&6; }
  19835. else
  19836. { $as_echo "$as_me:$LINENO: result: no" >&5
  19837. $as_echo "no" >&6; }
  19838. fi
  19839. fi
  19840. if test "$tcpdump_path" = "no"; then
  19841. { $as_echo "$as_me:$LINENO: WARNING: Unable to find tcpdump. Please specify --with-tcpdump.
  19842. Disabling --verbose" >&5
  19843. $as_echo "$as_me: WARNING: Unable to find tcpdump. Please specify --with-tcpdump.
  19844. Disabling --verbose" >&2;}
  19845. else
  19846. cat >>confdefs.h <<\_ACEOF
  19847. #define HAVE_TCPDUMP 1
  19848. _ACEOF
  19849. cat >>confdefs.h <<_ACEOF
  19850. #define TCPDUMP_BINARY "$tcpdump_path"
  19851. _ACEOF
  19852. fi
  19853. if test "$tcpdump_path" != "no" -a x$have_pcap_dump_fopen = xyes; then
  19854. ENABLE_TCPDUMP_TRUE=
  19855. ENABLE_TCPDUMP_FALSE='#'
  19856. else
  19857. ENABLE_TCPDUMP_TRUE='#'
  19858. ENABLE_TCPDUMP_FALSE=
  19859. fi
  19860. if test x$tcpdump_path != xno -a x$have_pcap_dump_fopen = xyes ; then
  19861. cat >>confdefs.h <<\_ACEOF
  19862. #define ENABLE_VERBOSE 1
  19863. _ACEOF
  19864. else
  19865. { $as_echo "$as_me:$LINENO: WARNING: Your version of libpcap is too old for --verbose support" >&5
  19866. $as_echo "$as_me: WARNING: Your version of libpcap is too old for --verbose support" >&2;}
  19867. fi
  19868. { $as_echo "$as_me:$LINENO: checking for 'make test' profile" >&5
  19869. $as_echo_n "checking for 'make test' profile... " >&6; }
  19870. if test "$host" != "$build" ; then
  19871. { $as_echo "$as_me:$LINENO: WARNING: Unable to do tests when cross-compiling" >&5
  19872. $as_echo "$as_me: WARNING: Unable to do tests when cross-compiling" >&2;}
  19873. fi
  19874. # Check whether --with-testnic was given.
  19875. if test "${with_testnic+set}" = set; then
  19876. withval=$with_testnic; nic1=$withval
  19877. nic2=$withval
  19878. { $as_echo "$as_me:$LINENO: result: Using --with-testnic=$withval" >&5
  19879. $as_echo "Using --with-testnic=$withval" >&6; }
  19880. else
  19881. disable_pcap_findalldevs=no
  19882. osx_frameworks=no
  19883. case $host in
  19884. *-*-linux*)
  19885. nic1=eth0
  19886. nic2=eth0
  19887. { $as_echo "$as_me:$LINENO: result: Linux" >&5
  19888. $as_echo "Linux" >&6; }
  19889. ;;
  19890. *-*-solaris*)
  19891. nic1=hme0
  19892. nic2=hme0
  19893. { $as_echo "$as_me:$LINENO: result: Solaris" >&5
  19894. $as_echo "Solaris" >&6; }
  19895. ;;
  19896. *-*-sunos*)
  19897. nic1=hme0
  19898. nic2=hme0
  19899. { $as_echo "$as_me:$LINENO: result: SunOS" >&5
  19900. $as_echo "SunOS" >&6; }
  19901. ;;
  19902. *-apple-darwin*)
  19903. nic1=en0
  19904. nic2=en0
  19905. if test x$libpcap_version_096 = xno ; then
  19906. disable_pcap_findalldevs=yes
  19907. fi
  19908. cat >>confdefs.h <<\_ACEOF
  19909. #define HAVE_ABSOLUTE_TIME 1
  19910. _ACEOF
  19911. osx_frameworks=yes
  19912. cat >>confdefs.h <<\_ACEOF
  19913. #define HAVE_DARWIN 1
  19914. _ACEOF
  19915. { $as_echo "$as_me:$LINENO: result: Apple OS X" >&5
  19916. $as_echo "Apple OS X" >&6; }
  19917. ;;
  19918. *-*-openbsd*)
  19919. nic1=xl0
  19920. nic2=xl0
  19921. { $as_echo "$as_me:$LINENO: result: OpenBSD" >&5
  19922. $as_echo "OpenBSD" >&6; }
  19923. ;;
  19924. *-*-cygwin)
  19925. { $as_echo "$as_me:$LINENO: result: Win32/Cygwin" >&5
  19926. $as_echo "Win32/Cygwin" >&6; }
  19927. nic1=%0
  19928. nic2=%0
  19929. ;;
  19930. *)
  19931. { $as_echo "$as_me:$LINENO: result: $host is unknown! Using first non-loopback interface" >&5
  19932. $as_echo "$host is unknown! Using first non-loopback interface" >&6; }
  19933. nic1=%0
  19934. nic2=%0
  19935. ;;
  19936. esac
  19937. fi
  19938. if test "$osx_frameworks" == "yes"; then
  19939. ENABLE_OSX_FRAMEWORKS_TRUE=
  19940. ENABLE_OSX_FRAMEWORKS_FALSE='#'
  19941. else
  19942. ENABLE_OSX_FRAMEWORKS_TRUE='#'
  19943. ENABLE_OSX_FRAMEWORKS_FALSE=
  19944. fi
  19945. # Check whether --with-testnic2 was given.
  19946. if test "${with_testnic2+set}" = set; then
  19947. withval=$with_testnic2; nic2=$withval
  19948. fi
  19949. { $as_echo "$as_me:$LINENO: Using $nic1 for 1st test network interface card" >&5
  19950. $as_echo "$as_me: Using $nic1 for 1st test network interface card" >&6;}
  19951. { $as_echo "$as_me:$LINENO: Using $nic2 for 2nd test network interface card" >&5
  19952. $as_echo "$as_me: Using $nic2 for 2nd test network interface card" >&6;}
  19953. { $as_echo "$as_me:$LINENO: checking if it's ok to use pcap_findalldevs()" >&5
  19954. $as_echo_n "checking if it's ok to use pcap_findalldevs()... " >&6; }
  19955. if test x$disable_pcap_findalldevs = xno ; then
  19956. cat >>confdefs.h <<\_ACEOF
  19957. #define ENABLE_PCAP_FINDALLDEVS 1
  19958. _ACEOF
  19959. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19960. $as_echo "yes" >&6; }
  19961. else
  19962. { $as_echo "$as_me:$LINENO: result: no" >&5
  19963. $as_echo "no" >&6; }
  19964. fi
  19965. case "${enable_local_libopts+set}" in
  19966. set) ;;
  19967. *) enable_local_libopts=yes ;;
  19968. esac
  19969. case "${enable_libopts_install+set}" in
  19970. set) ;;
  19971. *) enable_libopts_install=no ;;
  19972. esac
  19973. NEED_LIBOPTS_DIR=''
  19974. LIBOPTS_DIR=libopts
  19975. # Check whether --enable-local-libopts was given.
  19976. if test "${enable_local_libopts+set}" = set; then
  19977. enableval=$enable_local_libopts;
  19978. if test x$enableval = xyes ; then
  19979. { $as_echo "$as_me:$LINENO: Using supplied libopts tearoff" >&5
  19980. $as_echo "$as_me: Using supplied libopts tearoff" >&6;}
  19981. LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
  19982. LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
  19983. NEED_LIBOPTS_DIR=true
  19984. fi
  19985. fi
  19986. # Check whether --enable-libopts-install was given.
  19987. if test "${enable_libopts_install+set}" = set; then
  19988. enableval=$enable_libopts_install;
  19989. fi
  19990. if test "X${enable_libopts_install}" != Xno; then
  19991. INSTALL_LIBOPTS_TRUE=
  19992. INSTALL_LIBOPTS_FALSE='#'
  19993. else
  19994. INSTALL_LIBOPTS_TRUE='#'
  19995. INSTALL_LIBOPTS_FALSE=
  19996. fi
  19997. if test -z "${NEED_LIBOPTS_DIR}" ; then
  19998. { $as_echo "$as_me:$LINENO: checking whether autoopts-config can be found" >&5
  19999. $as_echo_n "checking whether autoopts-config can be found... " >&6; }
  20000. # Check whether --with-autoopts-config was given.
  20001. if test "${with_autoopts_config+set}" = set; then
  20002. withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config}
  20003. else
  20004. { $as_echo "$as_me:$LINENO: checking whether autoopts-config is specified" >&5
  20005. $as_echo_n "checking whether autoopts-config is specified... " >&6; }
  20006. if test "${lo_cv_with_autoopts_config+set}" = set; then
  20007. $as_echo_n "(cached) " >&6
  20008. else
  20009. if autoopts-config --help 2>/dev/null 1>&2
  20010. then lo_cv_with_autoopts_config=autoopts-config
  20011. elif libopts-config --help 2>/dev/null 1>&2
  20012. then lo_cv_with_autoopts_config=libopts-config
  20013. else lo_cv_with_autoopts_config=no ; fi
  20014. fi
  20015. { $as_echo "$as_me:$LINENO: result: $lo_cv_with_autoopts_config" >&5
  20016. $as_echo "$lo_cv_with_autoopts_config" >&6; }
  20017. fi
  20018. # end of AC_ARG_WITH
  20019. if test "${lo_cv_test_autoopts+set}" = set; then
  20020. $as_echo_n "(cached) " >&6
  20021. else
  20022. if test -z "${lo_cv_with_autoopts_config}" \
  20023. -o X"${lo_cv_with_autoopts_config}" = Xno
  20024. then
  20025. if autoopts-config --help 2>/dev/null 1>&2
  20026. then lo_cv_with_autoopts_config=autoopts-config
  20027. elif libopts-config --help 2>/dev/null 1>&2
  20028. then lo_cv_with_autoopts_config=libopts-config
  20029. else lo_cv_with_autoopts_config=false ; fi
  20030. fi
  20031. lo_cv_test_autoopts=`
  20032. ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
  20033. if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
  20034. then lo_cv_test_autoopts=no ; fi
  20035. fi
  20036. # end of CACHE_VAL
  20037. { $as_echo "$as_me:$LINENO: result: ${lo_cv_test_autoopts}" >&5
  20038. $as_echo "${lo_cv_test_autoopts}" >&6; }
  20039. if test "X${lo_cv_test_autoopts}" != Xno
  20040. then
  20041. LIBOPTS_LDADD="${lo_cv_test_autoopts}"
  20042. LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
  20043. else
  20044. LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
  20045. LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
  20046. NEED_LIBOPTS_DIR=true
  20047. fi
  20048. fi # end of if test -z "${NEED_LIBOPTS_DIR}"
  20049. if test -n "${NEED_LIBOPTS_DIR}"; then
  20050. NEED_LIBOPTS_TRUE=
  20051. NEED_LIBOPTS_FALSE='#'
  20052. else
  20053. NEED_LIBOPTS_TRUE='#'
  20054. NEED_LIBOPTS_FALSE=
  20055. fi
  20056. LIBOPTS_DIR=libopts
  20057. ac_config_files="$ac_config_files libopts/Makefile"
  20058. if test -n "${NEED_LIBOPTS_DIR}" ; then
  20059. if test X${INVOKE_LIBOPTS_MACROS_FIRST_done} != Xyes ; then
  20060. # =================
  20061. # AC_HEADER_STDC
  20062. # =================
  20063. { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  20064. $as_echo_n "checking for ANSI C header files... " >&6; }
  20065. if test "${ac_cv_header_stdc+set}" = set; then
  20066. $as_echo_n "(cached) " >&6
  20067. else
  20068. cat >conftest.$ac_ext <<_ACEOF
  20069. /* confdefs.h. */
  20070. _ACEOF
  20071. cat confdefs.h >>conftest.$ac_ext
  20072. cat >>conftest.$ac_ext <<_ACEOF
  20073. /* end confdefs.h. */
  20074. #include <stdlib.h>
  20075. #include <stdarg.h>
  20076. #include <string.h>
  20077. #include <float.h>
  20078. int
  20079. main ()
  20080. {
  20081. ;
  20082. return 0;
  20083. }
  20084. _ACEOF
  20085. rm -f conftest.$ac_objext
  20086. if { (ac_try="$ac_compile"
  20087. case "(($ac_try" in
  20088. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20089. *) ac_try_echo=$ac_try;;
  20090. esac
  20091. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20092. $as_echo "$ac_try_echo") >&5
  20093. (eval "$ac_compile") 2>conftest.er1
  20094. ac_status=$?
  20095. grep -v '^ *+' conftest.er1 >conftest.err
  20096. rm -f conftest.er1
  20097. cat conftest.err >&5
  20098. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20099. (exit $ac_status); } && {
  20100. test -z "$ac_c_werror_flag" ||
  20101. test ! -s conftest.err
  20102. } && test -s conftest.$ac_objext; then
  20103. ac_cv_header_stdc=yes
  20104. else
  20105. $as_echo "$as_me: failed program was:" >&5
  20106. sed 's/^/| /' conftest.$ac_ext >&5
  20107. ac_cv_header_stdc=no
  20108. fi
  20109. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20110. if test $ac_cv_header_stdc = yes; then
  20111. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  20112. cat >conftest.$ac_ext <<_ACEOF
  20113. /* confdefs.h. */
  20114. _ACEOF
  20115. cat confdefs.h >>conftest.$ac_ext
  20116. cat >>conftest.$ac_ext <<_ACEOF
  20117. /* end confdefs.h. */
  20118. #include <string.h>
  20119. _ACEOF
  20120. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  20121. $EGREP "memchr" >/dev/null 2>&1; then
  20122. :
  20123. else
  20124. ac_cv_header_stdc=no
  20125. fi
  20126. rm -f conftest*
  20127. fi
  20128. if test $ac_cv_header_stdc = yes; then
  20129. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  20130. cat >conftest.$ac_ext <<_ACEOF
  20131. /* confdefs.h. */
  20132. _ACEOF
  20133. cat confdefs.h >>conftest.$ac_ext
  20134. cat >>conftest.$ac_ext <<_ACEOF
  20135. /* end confdefs.h. */
  20136. #include <stdlib.h>
  20137. _ACEOF
  20138. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  20139. $EGREP "free" >/dev/null 2>&1; then
  20140. :
  20141. else
  20142. ac_cv_header_stdc=no
  20143. fi
  20144. rm -f conftest*
  20145. fi
  20146. if test $ac_cv_header_stdc = yes; then
  20147. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  20148. if test "$cross_compiling" = yes; then
  20149. :
  20150. else
  20151. cat >conftest.$ac_ext <<_ACEOF
  20152. /* confdefs.h. */
  20153. _ACEOF
  20154. cat confdefs.h >>conftest.$ac_ext
  20155. cat >>conftest.$ac_ext <<_ACEOF
  20156. /* end confdefs.h. */
  20157. #include <ctype.h>
  20158. #include <stdlib.h>
  20159. #if ((' ' & 0x0FF) == 0x020)
  20160. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  20161. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  20162. #else
  20163. # define ISLOWER(c) \
  20164. (('a' <= (c) && (c) <= 'i') \
  20165. || ('j' <= (c) && (c) <= 'r') \
  20166. || ('s' <= (c) && (c) <= 'z'))
  20167. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  20168. #endif
  20169. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  20170. int
  20171. main ()
  20172. {
  20173. int i;
  20174. for (i = 0; i < 256; i++)
  20175. if (XOR (islower (i), ISLOWER (i))
  20176. || toupper (i) != TOUPPER (i))
  20177. return 2;
  20178. return 0;
  20179. }
  20180. _ACEOF
  20181. rm -f conftest$ac_exeext
  20182. if { (ac_try="$ac_link"
  20183. case "(($ac_try" in
  20184. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20185. *) ac_try_echo=$ac_try;;
  20186. esac
  20187. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20188. $as_echo "$ac_try_echo") >&5
  20189. (eval "$ac_link") 2>&5
  20190. ac_status=$?
  20191. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20192. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  20193. { (case "(($ac_try" in
  20194. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20195. *) ac_try_echo=$ac_try;;
  20196. esac
  20197. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20198. $as_echo "$ac_try_echo") >&5
  20199. (eval "$ac_try") 2>&5
  20200. ac_status=$?
  20201. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20202. (exit $ac_status); }; }; then
  20203. :
  20204. else
  20205. $as_echo "$as_me: program exited with status $ac_status" >&5
  20206. $as_echo "$as_me: failed program was:" >&5
  20207. sed 's/^/| /' conftest.$ac_ext >&5
  20208. ( exit $ac_status )
  20209. ac_cv_header_stdc=no
  20210. fi
  20211. rm -rf conftest.dSYM
  20212. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  20213. fi
  20214. fi
  20215. fi
  20216. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  20217. $as_echo "$ac_cv_header_stdc" >&6; }
  20218. if test $ac_cv_header_stdc = yes; then
  20219. cat >>confdefs.h <<\_ACEOF
  20220. #define STDC_HEADERS 1
  20221. _ACEOF
  20222. fi
  20223. # =================
  20224. # AC_HEADER_DIRENT
  20225. # =================
  20226. ac_header_dirent=no
  20227. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  20228. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  20229. { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  20230. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  20231. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  20232. $as_echo_n "(cached) " >&6
  20233. else
  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. #include <sys/types.h>
  20241. #include <$ac_hdr>
  20242. int
  20243. main ()
  20244. {
  20245. if ((DIR *) 0)
  20246. return 0;
  20247. ;
  20248. return 0;
  20249. }
  20250. _ACEOF
  20251. rm -f conftest.$ac_objext
  20252. if { (ac_try="$ac_compile"
  20253. case "(($ac_try" in
  20254. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20255. *) ac_try_echo=$ac_try;;
  20256. esac
  20257. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20258. $as_echo "$ac_try_echo") >&5
  20259. (eval "$ac_compile") 2>conftest.er1
  20260. ac_status=$?
  20261. grep -v '^ *+' conftest.er1 >conftest.err
  20262. rm -f conftest.er1
  20263. cat conftest.err >&5
  20264. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20265. (exit $ac_status); } && {
  20266. test -z "$ac_c_werror_flag" ||
  20267. test ! -s conftest.err
  20268. } && test -s conftest.$ac_objext; then
  20269. eval "$as_ac_Header=yes"
  20270. else
  20271. $as_echo "$as_me: failed program was:" >&5
  20272. sed 's/^/| /' conftest.$ac_ext >&5
  20273. eval "$as_ac_Header=no"
  20274. fi
  20275. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20276. fi
  20277. ac_res=`eval 'as_val=${'$as_ac_Header'}
  20278. $as_echo "$as_val"'`
  20279. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  20280. $as_echo "$ac_res" >&6; }
  20281. as_val=`eval 'as_val=${'$as_ac_Header'}
  20282. $as_echo "$as_val"'`
  20283. if test "x$as_val" = x""yes; then
  20284. cat >>confdefs.h <<_ACEOF
  20285. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  20286. _ACEOF
  20287. ac_header_dirent=$ac_hdr; break
  20288. fi
  20289. done
  20290. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  20291. if test $ac_header_dirent = dirent.h; then
  20292. { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
  20293. $as_echo_n "checking for library containing opendir... " >&6; }
  20294. if test "${ac_cv_search_opendir+set}" = set; then
  20295. $as_echo_n "(cached) " >&6
  20296. else
  20297. ac_func_search_save_LIBS=$LIBS
  20298. cat >conftest.$ac_ext <<_ACEOF
  20299. /* confdefs.h. */
  20300. _ACEOF
  20301. cat confdefs.h >>conftest.$ac_ext
  20302. cat >>conftest.$ac_ext <<_ACEOF
  20303. /* end confdefs.h. */
  20304. /* Override any GCC internal prototype to avoid an error.
  20305. Use char because int might match the return type of a GCC
  20306. builtin and then its argument prototype would still apply. */
  20307. #ifdef __cplusplus
  20308. extern "C"
  20309. #endif
  20310. char opendir ();
  20311. int
  20312. main ()
  20313. {
  20314. return opendir ();
  20315. ;
  20316. return 0;
  20317. }
  20318. _ACEOF
  20319. for ac_lib in '' dir; do
  20320. if test -z "$ac_lib"; then
  20321. ac_res="none required"
  20322. else
  20323. ac_res=-l$ac_lib
  20324. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  20325. fi
  20326. rm -f conftest.$ac_objext conftest$ac_exeext
  20327. if { (ac_try="$ac_link"
  20328. case "(($ac_try" in
  20329. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20330. *) ac_try_echo=$ac_try;;
  20331. esac
  20332. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20333. $as_echo "$ac_try_echo") >&5
  20334. (eval "$ac_link") 2>conftest.er1
  20335. ac_status=$?
  20336. grep -v '^ *+' conftest.er1 >conftest.err
  20337. rm -f conftest.er1
  20338. cat conftest.err >&5
  20339. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20340. (exit $ac_status); } && {
  20341. test -z "$ac_c_werror_flag" ||
  20342. test ! -s conftest.err
  20343. } && test -s conftest$ac_exeext && {
  20344. test "$cross_compiling" = yes ||
  20345. $as_test_x conftest$ac_exeext
  20346. }; then
  20347. ac_cv_search_opendir=$ac_res
  20348. else
  20349. $as_echo "$as_me: failed program was:" >&5
  20350. sed 's/^/| /' conftest.$ac_ext >&5
  20351. fi
  20352. rm -rf conftest.dSYM
  20353. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20354. conftest$ac_exeext
  20355. if test "${ac_cv_search_opendir+set}" = set; then
  20356. break
  20357. fi
  20358. done
  20359. if test "${ac_cv_search_opendir+set}" = set; then
  20360. :
  20361. else
  20362. ac_cv_search_opendir=no
  20363. fi
  20364. rm conftest.$ac_ext
  20365. LIBS=$ac_func_search_save_LIBS
  20366. fi
  20367. { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  20368. $as_echo "$ac_cv_search_opendir" >&6; }
  20369. ac_res=$ac_cv_search_opendir
  20370. if test "$ac_res" != no; then
  20371. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  20372. fi
  20373. else
  20374. { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
  20375. $as_echo_n "checking for library containing opendir... " >&6; }
  20376. if test "${ac_cv_search_opendir+set}" = set; then
  20377. $as_echo_n "(cached) " >&6
  20378. else
  20379. ac_func_search_save_LIBS=$LIBS
  20380. cat >conftest.$ac_ext <<_ACEOF
  20381. /* confdefs.h. */
  20382. _ACEOF
  20383. cat confdefs.h >>conftest.$ac_ext
  20384. cat >>conftest.$ac_ext <<_ACEOF
  20385. /* end confdefs.h. */
  20386. /* Override any GCC internal prototype to avoid an error.
  20387. Use char because int might match the return type of a GCC
  20388. builtin and then its argument prototype would still apply. */
  20389. #ifdef __cplusplus
  20390. extern "C"
  20391. #endif
  20392. char opendir ();
  20393. int
  20394. main ()
  20395. {
  20396. return opendir ();
  20397. ;
  20398. return 0;
  20399. }
  20400. _ACEOF
  20401. for ac_lib in '' x; do
  20402. if test -z "$ac_lib"; then
  20403. ac_res="none required"
  20404. else
  20405. ac_res=-l$ac_lib
  20406. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  20407. fi
  20408. rm -f conftest.$ac_objext conftest$ac_exeext
  20409. if { (ac_try="$ac_link"
  20410. case "(($ac_try" in
  20411. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20412. *) ac_try_echo=$ac_try;;
  20413. esac
  20414. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20415. $as_echo "$ac_try_echo") >&5
  20416. (eval "$ac_link") 2>conftest.er1
  20417. ac_status=$?
  20418. grep -v '^ *+' conftest.er1 >conftest.err
  20419. rm -f conftest.er1
  20420. cat conftest.err >&5
  20421. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20422. (exit $ac_status); } && {
  20423. test -z "$ac_c_werror_flag" ||
  20424. test ! -s conftest.err
  20425. } && test -s conftest$ac_exeext && {
  20426. test "$cross_compiling" = yes ||
  20427. $as_test_x conftest$ac_exeext
  20428. }; then
  20429. ac_cv_search_opendir=$ac_res
  20430. else
  20431. $as_echo "$as_me: failed program was:" >&5
  20432. sed 's/^/| /' conftest.$ac_ext >&5
  20433. fi
  20434. rm -rf conftest.dSYM
  20435. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20436. conftest$ac_exeext
  20437. if test "${ac_cv_search_opendir+set}" = set; then
  20438. break
  20439. fi
  20440. done
  20441. if test "${ac_cv_search_opendir+set}" = set; then
  20442. :
  20443. else
  20444. ac_cv_search_opendir=no
  20445. fi
  20446. rm conftest.$ac_ext
  20447. LIBS=$ac_func_search_save_LIBS
  20448. fi
  20449. { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  20450. $as_echo "$ac_cv_search_opendir" >&6; }
  20451. ac_res=$ac_cv_search_opendir
  20452. if test "$ac_res" != no; then
  20453. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  20454. fi
  20455. fi
  20456. # =================
  20457. # AC_CHECK_HEADERS
  20458. # =================
  20459. for ac_header in dlfcn.h errno.h fcntl.h libgen.h memory.h netinet/in.h \
  20460. setjmp.h sys/mman.h sys/param.h sys/poll.h sys/procset.h sys/select.h \
  20461. sys/socket.h sys/stropts.h sys/time.h sys/un.h sys/wait.h unistd.h \
  20462. utime.h sysexits.h
  20463. do
  20464. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20465. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  20466. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  20467. $as_echo_n "checking for $ac_header... " >&6; }
  20468. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  20469. $as_echo_n "(cached) " >&6
  20470. fi
  20471. ac_res=`eval 'as_val=${'$as_ac_Header'}
  20472. $as_echo "$as_val"'`
  20473. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  20474. $as_echo "$ac_res" >&6; }
  20475. else
  20476. # Is the header compilable?
  20477. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  20478. $as_echo_n "checking $ac_header usability... " >&6; }
  20479. cat >conftest.$ac_ext <<_ACEOF
  20480. /* confdefs.h. */
  20481. _ACEOF
  20482. cat confdefs.h >>conftest.$ac_ext
  20483. cat >>conftest.$ac_ext <<_ACEOF
  20484. /* end confdefs.h. */
  20485. $ac_includes_default
  20486. #include <$ac_header>
  20487. _ACEOF
  20488. rm -f conftest.$ac_objext
  20489. if { (ac_try="$ac_compile"
  20490. case "(($ac_try" in
  20491. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20492. *) ac_try_echo=$ac_try;;
  20493. esac
  20494. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20495. $as_echo "$ac_try_echo") >&5
  20496. (eval "$ac_compile") 2>conftest.er1
  20497. ac_status=$?
  20498. grep -v '^ *+' conftest.er1 >conftest.err
  20499. rm -f conftest.er1
  20500. cat conftest.err >&5
  20501. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20502. (exit $ac_status); } && {
  20503. test -z "$ac_c_werror_flag" ||
  20504. test ! -s conftest.err
  20505. } && test -s conftest.$ac_objext; then
  20506. ac_header_compiler=yes
  20507. else
  20508. $as_echo "$as_me: failed program was:" >&5
  20509. sed 's/^/| /' conftest.$ac_ext >&5
  20510. ac_header_compiler=no
  20511. fi
  20512. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20513. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  20514. $as_echo "$ac_header_compiler" >&6; }
  20515. # Is the header present?
  20516. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  20517. $as_echo_n "checking $ac_header presence... " >&6; }
  20518. cat >conftest.$ac_ext <<_ACEOF
  20519. /* confdefs.h. */
  20520. _ACEOF
  20521. cat confdefs.h >>conftest.$ac_ext
  20522. cat >>conftest.$ac_ext <<_ACEOF
  20523. /* end confdefs.h. */
  20524. #include <$ac_header>
  20525. _ACEOF
  20526. if { (ac_try="$ac_cpp conftest.$ac_ext"
  20527. case "(($ac_try" in
  20528. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20529. *) ac_try_echo=$ac_try;;
  20530. esac
  20531. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20532. $as_echo "$ac_try_echo") >&5
  20533. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  20534. ac_status=$?
  20535. grep -v '^ *+' conftest.er1 >conftest.err
  20536. rm -f conftest.er1
  20537. cat conftest.err >&5
  20538. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20539. (exit $ac_status); } >/dev/null && {
  20540. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  20541. test ! -s conftest.err
  20542. }; then
  20543. ac_header_preproc=yes
  20544. else
  20545. $as_echo "$as_me: failed program was:" >&5
  20546. sed 's/^/| /' conftest.$ac_ext >&5
  20547. ac_header_preproc=no
  20548. fi
  20549. rm -f conftest.err conftest.$ac_ext
  20550. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  20551. $as_echo "$ac_header_preproc" >&6; }
  20552. # So? What about this header?
  20553. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  20554. yes:no: )
  20555. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  20556. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  20557. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  20558. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  20559. ac_header_preproc=yes
  20560. ;;
  20561. no:yes:* )
  20562. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  20563. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  20564. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  20565. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  20566. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  20567. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  20568. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  20569. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  20570. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  20571. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  20572. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  20573. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  20574. ;;
  20575. esac
  20576. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  20577. $as_echo_n "checking for $ac_header... " >&6; }
  20578. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  20579. $as_echo_n "(cached) " >&6
  20580. else
  20581. eval "$as_ac_Header=\$ac_header_preproc"
  20582. fi
  20583. ac_res=`eval 'as_val=${'$as_ac_Header'}
  20584. $as_echo "$as_val"'`
  20585. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  20586. $as_echo "$ac_res" >&6; }
  20587. fi
  20588. as_val=`eval 'as_val=${'$as_ac_Header'}
  20589. $as_echo "$as_val"'`
  20590. if test "x$as_val" = x""yes; then
  20591. cat >>confdefs.h <<_ACEOF
  20592. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20593. _ACEOF
  20594. fi
  20595. done
  20596. { $as_echo "$as_me:$LINENO: checking for size_t" >&5
  20597. $as_echo_n "checking for size_t... " >&6; }
  20598. if test "${ac_cv_type_size_t+set}" = set; then
  20599. $as_echo_n "(cached) " >&6
  20600. else
  20601. ac_cv_type_size_t=no
  20602. cat >conftest.$ac_ext <<_ACEOF
  20603. /* confdefs.h. */
  20604. _ACEOF
  20605. cat confdefs.h >>conftest.$ac_ext
  20606. cat >>conftest.$ac_ext <<_ACEOF
  20607. /* end confdefs.h. */
  20608. $ac_includes_default
  20609. int
  20610. main ()
  20611. {
  20612. if (sizeof (size_t))
  20613. return 0;
  20614. ;
  20615. return 0;
  20616. }
  20617. _ACEOF
  20618. rm -f conftest.$ac_objext
  20619. if { (ac_try="$ac_compile"
  20620. case "(($ac_try" in
  20621. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20622. *) ac_try_echo=$ac_try;;
  20623. esac
  20624. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20625. $as_echo "$ac_try_echo") >&5
  20626. (eval "$ac_compile") 2>conftest.er1
  20627. ac_status=$?
  20628. grep -v '^ *+' conftest.er1 >conftest.err
  20629. rm -f conftest.er1
  20630. cat conftest.err >&5
  20631. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20632. (exit $ac_status); } && {
  20633. test -z "$ac_c_werror_flag" ||
  20634. test ! -s conftest.err
  20635. } && test -s conftest.$ac_objext; then
  20636. cat >conftest.$ac_ext <<_ACEOF
  20637. /* confdefs.h. */
  20638. _ACEOF
  20639. cat confdefs.h >>conftest.$ac_ext
  20640. cat >>conftest.$ac_ext <<_ACEOF
  20641. /* end confdefs.h. */
  20642. $ac_includes_default
  20643. int
  20644. main ()
  20645. {
  20646. if (sizeof ((size_t)))
  20647. return 0;
  20648. ;
  20649. return 0;
  20650. }
  20651. _ACEOF
  20652. rm -f conftest.$ac_objext
  20653. if { (ac_try="$ac_compile"
  20654. case "(($ac_try" in
  20655. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20656. *) ac_try_echo=$ac_try;;
  20657. esac
  20658. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20659. $as_echo "$ac_try_echo") >&5
  20660. (eval "$ac_compile") 2>conftest.er1
  20661. ac_status=$?
  20662. grep -v '^ *+' conftest.er1 >conftest.err
  20663. rm -f conftest.er1
  20664. cat conftest.err >&5
  20665. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20666. (exit $ac_status); } && {
  20667. test -z "$ac_c_werror_flag" ||
  20668. test ! -s conftest.err
  20669. } && test -s conftest.$ac_objext; then
  20670. :
  20671. else
  20672. $as_echo "$as_me: failed program was:" >&5
  20673. sed 's/^/| /' conftest.$ac_ext >&5
  20674. ac_cv_type_size_t=yes
  20675. fi
  20676. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20677. else
  20678. $as_echo "$as_me: failed program was:" >&5
  20679. sed 's/^/| /' conftest.$ac_ext >&5
  20680. fi
  20681. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20682. fi
  20683. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  20684. $as_echo "$ac_cv_type_size_t" >&6; }
  20685. if test "x$ac_cv_type_size_t" = x""yes; then
  20686. cat >>confdefs.h <<_ACEOF
  20687. #define HAVE_SIZE_T 1
  20688. _ACEOF
  20689. fi
  20690. # ----------------------------------------------------------------------
  20691. # check for various programs used during the build.
  20692. # On OS/X, "wchar.h" needs "runetype.h" to work properly.
  20693. # ----------------------------------------------------------------------
  20694. for ac_header in runetype.h wchar.h
  20695. do
  20696. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20697. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  20698. $as_echo_n "checking for $ac_header... " >&6; }
  20699. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  20700. $as_echo_n "(cached) " >&6
  20701. else
  20702. cat >conftest.$ac_ext <<_ACEOF
  20703. /* confdefs.h. */
  20704. _ACEOF
  20705. cat confdefs.h >>conftest.$ac_ext
  20706. cat >>conftest.$ac_ext <<_ACEOF
  20707. /* end confdefs.h. */
  20708. $ac_includes_default
  20709. #if HAVE_RUNETYPE_H
  20710. # include <runetype.h>
  20711. #endif
  20712. #include <$ac_header>
  20713. _ACEOF
  20714. rm -f conftest.$ac_objext
  20715. if { (ac_try="$ac_compile"
  20716. case "(($ac_try" in
  20717. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20718. *) ac_try_echo=$ac_try;;
  20719. esac
  20720. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20721. $as_echo "$ac_try_echo") >&5
  20722. (eval "$ac_compile") 2>conftest.er1
  20723. ac_status=$?
  20724. grep -v '^ *+' conftest.er1 >conftest.err
  20725. rm -f conftest.er1
  20726. cat conftest.err >&5
  20727. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20728. (exit $ac_status); } && {
  20729. test -z "$ac_c_werror_flag" ||
  20730. test ! -s conftest.err
  20731. } && test -s conftest.$ac_objext; then
  20732. eval "$as_ac_Header=yes"
  20733. else
  20734. $as_echo "$as_me: failed program was:" >&5
  20735. sed 's/^/| /' conftest.$ac_ext >&5
  20736. eval "$as_ac_Header=no"
  20737. fi
  20738. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20739. fi
  20740. ac_res=`eval 'as_val=${'$as_ac_Header'}
  20741. $as_echo "$as_val"'`
  20742. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  20743. $as_echo "$ac_res" >&6; }
  20744. as_val=`eval 'as_val=${'$as_ac_Header'}
  20745. $as_echo "$as_val"'`
  20746. if test "x$as_val" = x""yes; then
  20747. cat >>confdefs.h <<_ACEOF
  20748. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20749. _ACEOF
  20750. fi
  20751. done
  20752. # ----------------------------------------------------------------------
  20753. # Checks for typedefs
  20754. # ----------------------------------------------------------------------
  20755. { $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
  20756. $as_echo_n "checking for wchar_t... " >&6; }
  20757. if test "${ac_cv_type_wchar_t+set}" = set; then
  20758. $as_echo_n "(cached) " >&6
  20759. else
  20760. ac_cv_type_wchar_t=no
  20761. cat >conftest.$ac_ext <<_ACEOF
  20762. /* confdefs.h. */
  20763. _ACEOF
  20764. cat confdefs.h >>conftest.$ac_ext
  20765. cat >>conftest.$ac_ext <<_ACEOF
  20766. /* end confdefs.h. */
  20767. $ac_includes_default
  20768. int
  20769. main ()
  20770. {
  20771. if (sizeof (wchar_t))
  20772. return 0;
  20773. ;
  20774. return 0;
  20775. }
  20776. _ACEOF
  20777. rm -f conftest.$ac_objext
  20778. if { (ac_try="$ac_compile"
  20779. case "(($ac_try" in
  20780. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20781. *) ac_try_echo=$ac_try;;
  20782. esac
  20783. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20784. $as_echo "$ac_try_echo") >&5
  20785. (eval "$ac_compile") 2>conftest.er1
  20786. ac_status=$?
  20787. grep -v '^ *+' conftest.er1 >conftest.err
  20788. rm -f conftest.er1
  20789. cat conftest.err >&5
  20790. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20791. (exit $ac_status); } && {
  20792. test -z "$ac_c_werror_flag" ||
  20793. test ! -s conftest.err
  20794. } && test -s conftest.$ac_objext; then
  20795. cat >conftest.$ac_ext <<_ACEOF
  20796. /* confdefs.h. */
  20797. _ACEOF
  20798. cat confdefs.h >>conftest.$ac_ext
  20799. cat >>conftest.$ac_ext <<_ACEOF
  20800. /* end confdefs.h. */
  20801. $ac_includes_default
  20802. int
  20803. main ()
  20804. {
  20805. if (sizeof ((wchar_t)))
  20806. return 0;
  20807. ;
  20808. return 0;
  20809. }
  20810. _ACEOF
  20811. rm -f conftest.$ac_objext
  20812. if { (ac_try="$ac_compile"
  20813. case "(($ac_try" in
  20814. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20815. *) ac_try_echo=$ac_try;;
  20816. esac
  20817. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20818. $as_echo "$ac_try_echo") >&5
  20819. (eval "$ac_compile") 2>conftest.er1
  20820. ac_status=$?
  20821. grep -v '^ *+' conftest.er1 >conftest.err
  20822. rm -f conftest.er1
  20823. cat conftest.err >&5
  20824. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20825. (exit $ac_status); } && {
  20826. test -z "$ac_c_werror_flag" ||
  20827. test ! -s conftest.err
  20828. } && test -s conftest.$ac_objext; then
  20829. :
  20830. else
  20831. $as_echo "$as_me: failed program was:" >&5
  20832. sed 's/^/| /' conftest.$ac_ext >&5
  20833. ac_cv_type_wchar_t=yes
  20834. fi
  20835. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20836. else
  20837. $as_echo "$as_me: failed program was:" >&5
  20838. sed 's/^/| /' conftest.$ac_ext >&5
  20839. fi
  20840. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20841. fi
  20842. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
  20843. $as_echo "$ac_cv_type_wchar_t" >&6; }
  20844. if test "x$ac_cv_type_wchar_t" = x""yes; then
  20845. cat >>confdefs.h <<_ACEOF
  20846. #define HAVE_WCHAR_T 1
  20847. _ACEOF
  20848. fi
  20849. { $as_echo "$as_me:$LINENO: checking for wint_t" >&5
  20850. $as_echo_n "checking for wint_t... " >&6; }
  20851. if test "${ac_cv_type_wint_t+set}" = set; then
  20852. $as_echo_n "(cached) " >&6
  20853. else
  20854. ac_cv_type_wint_t=no
  20855. cat >conftest.$ac_ext <<_ACEOF
  20856. /* confdefs.h. */
  20857. _ACEOF
  20858. cat confdefs.h >>conftest.$ac_ext
  20859. cat >>conftest.$ac_ext <<_ACEOF
  20860. /* end confdefs.h. */
  20861. $ac_includes_default
  20862. #if HAVE_RUNETYPE_H
  20863. # include <runetype.h>
  20864. #endif
  20865. #if HAVE_WCHAR_H
  20866. # include <wchar.h>
  20867. #endif
  20868. int
  20869. main ()
  20870. {
  20871. if (sizeof (wint_t))
  20872. return 0;
  20873. ;
  20874. return 0;
  20875. }
  20876. _ACEOF
  20877. rm -f conftest.$ac_objext
  20878. if { (ac_try="$ac_compile"
  20879. case "(($ac_try" in
  20880. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20881. *) ac_try_echo=$ac_try;;
  20882. esac
  20883. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20884. $as_echo "$ac_try_echo") >&5
  20885. (eval "$ac_compile") 2>conftest.er1
  20886. ac_status=$?
  20887. grep -v '^ *+' conftest.er1 >conftest.err
  20888. rm -f conftest.er1
  20889. cat conftest.err >&5
  20890. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20891. (exit $ac_status); } && {
  20892. test -z "$ac_c_werror_flag" ||
  20893. test ! -s conftest.err
  20894. } && test -s conftest.$ac_objext; then
  20895. cat >conftest.$ac_ext <<_ACEOF
  20896. /* confdefs.h. */
  20897. _ACEOF
  20898. cat confdefs.h >>conftest.$ac_ext
  20899. cat >>conftest.$ac_ext <<_ACEOF
  20900. /* end confdefs.h. */
  20901. $ac_includes_default
  20902. #if HAVE_RUNETYPE_H
  20903. # include <runetype.h>
  20904. #endif
  20905. #if HAVE_WCHAR_H
  20906. # include <wchar.h>
  20907. #endif
  20908. int
  20909. main ()
  20910. {
  20911. if (sizeof ((wint_t)))
  20912. return 0;
  20913. ;
  20914. return 0;
  20915. }
  20916. _ACEOF
  20917. rm -f conftest.$ac_objext
  20918. if { (ac_try="$ac_compile"
  20919. case "(($ac_try" in
  20920. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20921. *) ac_try_echo=$ac_try;;
  20922. esac
  20923. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20924. $as_echo "$ac_try_echo") >&5
  20925. (eval "$ac_compile") 2>conftest.er1
  20926. ac_status=$?
  20927. grep -v '^ *+' conftest.er1 >conftest.err
  20928. rm -f conftest.er1
  20929. cat conftest.err >&5
  20930. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20931. (exit $ac_status); } && {
  20932. test -z "$ac_c_werror_flag" ||
  20933. test ! -s conftest.err
  20934. } && test -s conftest.$ac_objext; then
  20935. :
  20936. else
  20937. $as_echo "$as_me: failed program was:" >&5
  20938. sed 's/^/| /' conftest.$ac_ext >&5
  20939. ac_cv_type_wint_t=yes
  20940. fi
  20941. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20942. else
  20943. $as_echo "$as_me: failed program was:" >&5
  20944. sed 's/^/| /' conftest.$ac_ext >&5
  20945. fi
  20946. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20947. fi
  20948. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_wint_t" >&5
  20949. $as_echo "$ac_cv_type_wint_t" >&6; }
  20950. if test "x$ac_cv_type_wint_t" = x""yes; then
  20951. cat >>confdefs.h <<_ACEOF
  20952. #define HAVE_WINT_T 1
  20953. _ACEOF
  20954. fi
  20955. # --------------------------------------------
  20956. # Verify certain entries from AC_CHECK_HEADERS
  20957. # --------------------------------------------
  20958. for f in sys_types sys_mman sys_param sys_stat sys_wait \
  20959. string errno stdlib memory setjmp
  20960. do eval as_ac_var=\${ac_cv_header_${f}_h+set}
  20961. test "${as_ac_var}" = set || \
  20962. { { $as_echo "$as_me:$LINENO: error: You must have ${f}.h on your system" >&5
  20963. $as_echo "$as_me: error: You must have ${f}.h on your system" >&2;}
  20964. { (exit 1); exit 1; }; }
  20965. done
  20966. # ================================================
  20967. # AC_CHECK_HEADERS: stdarg.h is present define HAVE_STDARG_H, otherwise
  20968. # if varargs.h is present define HAVE_VARARGS_H.
  20969. # ================================================
  20970. for ac_header in stdarg.h varargs.h
  20971. do
  20972. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20973. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  20974. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  20975. $as_echo_n "checking for $ac_header... " >&6; }
  20976. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  20977. $as_echo_n "(cached) " >&6
  20978. fi
  20979. ac_res=`eval 'as_val=${'$as_ac_Header'}
  20980. $as_echo "$as_val"'`
  20981. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  20982. $as_echo "$ac_res" >&6; }
  20983. else
  20984. # Is the header compilable?
  20985. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  20986. $as_echo_n "checking $ac_header usability... " >&6; }
  20987. cat >conftest.$ac_ext <<_ACEOF
  20988. /* confdefs.h. */
  20989. _ACEOF
  20990. cat confdefs.h >>conftest.$ac_ext
  20991. cat >>conftest.$ac_ext <<_ACEOF
  20992. /* end confdefs.h. */
  20993. $ac_includes_default
  20994. #include <$ac_header>
  20995. _ACEOF
  20996. rm -f conftest.$ac_objext
  20997. if { (ac_try="$ac_compile"
  20998. case "(($ac_try" in
  20999. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21000. *) ac_try_echo=$ac_try;;
  21001. esac
  21002. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21003. $as_echo "$ac_try_echo") >&5
  21004. (eval "$ac_compile") 2>conftest.er1
  21005. ac_status=$?
  21006. grep -v '^ *+' conftest.er1 >conftest.err
  21007. rm -f conftest.er1
  21008. cat conftest.err >&5
  21009. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21010. (exit $ac_status); } && {
  21011. test -z "$ac_c_werror_flag" ||
  21012. test ! -s conftest.err
  21013. } && test -s conftest.$ac_objext; then
  21014. ac_header_compiler=yes
  21015. else
  21016. $as_echo "$as_me: failed program was:" >&5
  21017. sed 's/^/| /' conftest.$ac_ext >&5
  21018. ac_header_compiler=no
  21019. fi
  21020. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21021. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  21022. $as_echo "$ac_header_compiler" >&6; }
  21023. # Is the header present?
  21024. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  21025. $as_echo_n "checking $ac_header presence... " >&6; }
  21026. cat >conftest.$ac_ext <<_ACEOF
  21027. /* confdefs.h. */
  21028. _ACEOF
  21029. cat confdefs.h >>conftest.$ac_ext
  21030. cat >>conftest.$ac_ext <<_ACEOF
  21031. /* end confdefs.h. */
  21032. #include <$ac_header>
  21033. _ACEOF
  21034. if { (ac_try="$ac_cpp conftest.$ac_ext"
  21035. case "(($ac_try" in
  21036. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21037. *) ac_try_echo=$ac_try;;
  21038. esac
  21039. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21040. $as_echo "$ac_try_echo") >&5
  21041. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  21042. ac_status=$?
  21043. grep -v '^ *+' conftest.er1 >conftest.err
  21044. rm -f conftest.er1
  21045. cat conftest.err >&5
  21046. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21047. (exit $ac_status); } >/dev/null && {
  21048. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  21049. test ! -s conftest.err
  21050. }; then
  21051. ac_header_preproc=yes
  21052. else
  21053. $as_echo "$as_me: failed program was:" >&5
  21054. sed 's/^/| /' conftest.$ac_ext >&5
  21055. ac_header_preproc=no
  21056. fi
  21057. rm -f conftest.err conftest.$ac_ext
  21058. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  21059. $as_echo "$ac_header_preproc" >&6; }
  21060. # So? What about this header?
  21061. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  21062. yes:no: )
  21063. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  21064. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  21065. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  21066. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  21067. ac_header_preproc=yes
  21068. ;;
  21069. no:yes:* )
  21070. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  21071. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  21072. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  21073. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  21074. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  21075. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  21076. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  21077. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  21078. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  21079. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  21080. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  21081. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  21082. ;;
  21083. esac
  21084. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  21085. $as_echo_n "checking for $ac_header... " >&6; }
  21086. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  21087. $as_echo_n "(cached) " >&6
  21088. else
  21089. eval "$as_ac_Header=\$ac_header_preproc"
  21090. fi
  21091. ac_res=`eval 'as_val=${'$as_ac_Header'}
  21092. $as_echo "$as_val"'`
  21093. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  21094. $as_echo "$ac_res" >&6; }
  21095. fi
  21096. as_val=`eval 'as_val=${'$as_ac_Header'}
  21097. $as_echo "$as_val"'`
  21098. if test "x$as_val" = x""yes; then
  21099. cat >>confdefs.h <<_ACEOF
  21100. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  21101. _ACEOF
  21102. break
  21103. fi
  21104. done
  21105. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  21106. { { $as_echo "$as_me:$LINENO: error: You must have stdarg.h or varargs.h on your system" >&5
  21107. $as_echo "$as_me: error: You must have stdarg.h or varargs.h on your system" >&2;}
  21108. { (exit 1); exit 1; }; }
  21109. fi
  21110. # ================================================
  21111. # Similarly for the string.h and strings.h headers
  21112. # ================================================
  21113. for ac_header in string.h strings.h
  21114. do
  21115. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  21116. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  21117. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  21118. $as_echo_n "checking for $ac_header... " >&6; }
  21119. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  21120. $as_echo_n "(cached) " >&6
  21121. fi
  21122. ac_res=`eval 'as_val=${'$as_ac_Header'}
  21123. $as_echo "$as_val"'`
  21124. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  21125. $as_echo "$ac_res" >&6; }
  21126. else
  21127. # Is the header compilable?
  21128. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  21129. $as_echo_n "checking $ac_header usability... " >&6; }
  21130. cat >conftest.$ac_ext <<_ACEOF
  21131. /* confdefs.h. */
  21132. _ACEOF
  21133. cat confdefs.h >>conftest.$ac_ext
  21134. cat >>conftest.$ac_ext <<_ACEOF
  21135. /* end confdefs.h. */
  21136. $ac_includes_default
  21137. #include <$ac_header>
  21138. _ACEOF
  21139. rm -f conftest.$ac_objext
  21140. if { (ac_try="$ac_compile"
  21141. case "(($ac_try" in
  21142. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21143. *) ac_try_echo=$ac_try;;
  21144. esac
  21145. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21146. $as_echo "$ac_try_echo") >&5
  21147. (eval "$ac_compile") 2>conftest.er1
  21148. ac_status=$?
  21149. grep -v '^ *+' conftest.er1 >conftest.err
  21150. rm -f conftest.er1
  21151. cat conftest.err >&5
  21152. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21153. (exit $ac_status); } && {
  21154. test -z "$ac_c_werror_flag" ||
  21155. test ! -s conftest.err
  21156. } && test -s conftest.$ac_objext; then
  21157. ac_header_compiler=yes
  21158. else
  21159. $as_echo "$as_me: failed program was:" >&5
  21160. sed 's/^/| /' conftest.$ac_ext >&5
  21161. ac_header_compiler=no
  21162. fi
  21163. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21164. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  21165. $as_echo "$ac_header_compiler" >&6; }
  21166. # Is the header present?
  21167. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  21168. $as_echo_n "checking $ac_header presence... " >&6; }
  21169. cat >conftest.$ac_ext <<_ACEOF
  21170. /* confdefs.h. */
  21171. _ACEOF
  21172. cat confdefs.h >>conftest.$ac_ext
  21173. cat >>conftest.$ac_ext <<_ACEOF
  21174. /* end confdefs.h. */
  21175. #include <$ac_header>
  21176. _ACEOF
  21177. if { (ac_try="$ac_cpp conftest.$ac_ext"
  21178. case "(($ac_try" in
  21179. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21180. *) ac_try_echo=$ac_try;;
  21181. esac
  21182. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21183. $as_echo "$ac_try_echo") >&5
  21184. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  21185. ac_status=$?
  21186. grep -v '^ *+' conftest.er1 >conftest.err
  21187. rm -f conftest.er1
  21188. cat conftest.err >&5
  21189. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21190. (exit $ac_status); } >/dev/null && {
  21191. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  21192. test ! -s conftest.err
  21193. }; then
  21194. ac_header_preproc=yes
  21195. else
  21196. $as_echo "$as_me: failed program was:" >&5
  21197. sed 's/^/| /' conftest.$ac_ext >&5
  21198. ac_header_preproc=no
  21199. fi
  21200. rm -f conftest.err conftest.$ac_ext
  21201. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  21202. $as_echo "$ac_header_preproc" >&6; }
  21203. # So? What about this header?
  21204. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  21205. yes:no: )
  21206. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  21207. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  21208. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  21209. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  21210. ac_header_preproc=yes
  21211. ;;
  21212. no:yes:* )
  21213. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  21214. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  21215. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  21216. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  21217. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  21218. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  21219. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  21220. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  21221. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  21222. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  21223. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  21224. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  21225. ;;
  21226. esac
  21227. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  21228. $as_echo_n "checking for $ac_header... " >&6; }
  21229. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  21230. $as_echo_n "(cached) " >&6
  21231. else
  21232. eval "$as_ac_Header=\$ac_header_preproc"
  21233. fi
  21234. ac_res=`eval 'as_val=${'$as_ac_Header'}
  21235. $as_echo "$as_val"'`
  21236. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  21237. $as_echo "$ac_res" >&6; }
  21238. fi
  21239. as_val=`eval 'as_val=${'$as_ac_Header'}
  21240. $as_echo "$as_val"'`
  21241. if test "x$as_val" = x""yes; then
  21242. cat >>confdefs.h <<_ACEOF
  21243. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  21244. _ACEOF
  21245. break
  21246. fi
  21247. done
  21248. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  21249. { { $as_echo "$as_me:$LINENO: error: You must have string.h or strings.h on your system" >&5
  21250. $as_echo "$as_me: error: You must have string.h or strings.h on your system" >&2;}
  21251. { (exit 1); exit 1; }; }
  21252. fi
  21253. # =====================
  21254. # ...and limits headers
  21255. # =====================
  21256. for ac_header in limits.h sys/limits.h values.h
  21257. do
  21258. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  21259. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  21260. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  21261. $as_echo_n "checking for $ac_header... " >&6; }
  21262. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  21263. $as_echo_n "(cached) " >&6
  21264. fi
  21265. ac_res=`eval 'as_val=${'$as_ac_Header'}
  21266. $as_echo "$as_val"'`
  21267. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  21268. $as_echo "$ac_res" >&6; }
  21269. else
  21270. # Is the header compilable?
  21271. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  21272. $as_echo_n "checking $ac_header usability... " >&6; }
  21273. cat >conftest.$ac_ext <<_ACEOF
  21274. /* confdefs.h. */
  21275. _ACEOF
  21276. cat confdefs.h >>conftest.$ac_ext
  21277. cat >>conftest.$ac_ext <<_ACEOF
  21278. /* end confdefs.h. */
  21279. $ac_includes_default
  21280. #include <$ac_header>
  21281. _ACEOF
  21282. rm -f conftest.$ac_objext
  21283. if { (ac_try="$ac_compile"
  21284. case "(($ac_try" in
  21285. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21286. *) ac_try_echo=$ac_try;;
  21287. esac
  21288. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21289. $as_echo "$ac_try_echo") >&5
  21290. (eval "$ac_compile") 2>conftest.er1
  21291. ac_status=$?
  21292. grep -v '^ *+' conftest.er1 >conftest.err
  21293. rm -f conftest.er1
  21294. cat conftest.err >&5
  21295. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21296. (exit $ac_status); } && {
  21297. test -z "$ac_c_werror_flag" ||
  21298. test ! -s conftest.err
  21299. } && test -s conftest.$ac_objext; then
  21300. ac_header_compiler=yes
  21301. else
  21302. $as_echo "$as_me: failed program was:" >&5
  21303. sed 's/^/| /' conftest.$ac_ext >&5
  21304. ac_header_compiler=no
  21305. fi
  21306. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21307. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  21308. $as_echo "$ac_header_compiler" >&6; }
  21309. # Is the header present?
  21310. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  21311. $as_echo_n "checking $ac_header presence... " >&6; }
  21312. cat >conftest.$ac_ext <<_ACEOF
  21313. /* confdefs.h. */
  21314. _ACEOF
  21315. cat confdefs.h >>conftest.$ac_ext
  21316. cat >>conftest.$ac_ext <<_ACEOF
  21317. /* end confdefs.h. */
  21318. #include <$ac_header>
  21319. _ACEOF
  21320. if { (ac_try="$ac_cpp conftest.$ac_ext"
  21321. case "(($ac_try" in
  21322. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21323. *) ac_try_echo=$ac_try;;
  21324. esac
  21325. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21326. $as_echo "$ac_try_echo") >&5
  21327. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  21328. ac_status=$?
  21329. grep -v '^ *+' conftest.er1 >conftest.err
  21330. rm -f conftest.er1
  21331. cat conftest.err >&5
  21332. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21333. (exit $ac_status); } >/dev/null && {
  21334. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  21335. test ! -s conftest.err
  21336. }; then
  21337. ac_header_preproc=yes
  21338. else
  21339. $as_echo "$as_me: failed program was:" >&5
  21340. sed 's/^/| /' conftest.$ac_ext >&5
  21341. ac_header_preproc=no
  21342. fi
  21343. rm -f conftest.err conftest.$ac_ext
  21344. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  21345. $as_echo "$ac_header_preproc" >&6; }
  21346. # So? What about this header?
  21347. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  21348. yes:no: )
  21349. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  21350. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  21351. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  21352. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  21353. ac_header_preproc=yes
  21354. ;;
  21355. no:yes:* )
  21356. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  21357. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  21358. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  21359. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  21360. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  21361. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  21362. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  21363. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  21364. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  21365. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  21366. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  21367. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  21368. ;;
  21369. esac
  21370. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  21371. $as_echo_n "checking for $ac_header... " >&6; }
  21372. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  21373. $as_echo_n "(cached) " >&6
  21374. else
  21375. eval "$as_ac_Header=\$ac_header_preproc"
  21376. fi
  21377. ac_res=`eval 'as_val=${'$as_ac_Header'}
  21378. $as_echo "$as_val"'`
  21379. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  21380. $as_echo "$ac_res" >&6; }
  21381. fi
  21382. as_val=`eval 'as_val=${'$as_ac_Header'}
  21383. $as_echo "$as_val"'`
  21384. if test "x$as_val" = x""yes; then
  21385. cat >>confdefs.h <<_ACEOF
  21386. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  21387. _ACEOF
  21388. break
  21389. fi
  21390. done
  21391. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  21392. { { $as_echo "$as_me:$LINENO: error: You must have one of limits.h, sys/limits.h or values.h" >&5
  21393. $as_echo "$as_me: error: You must have one of limits.h, sys/limits.h or values.h" >&2;}
  21394. { (exit 1); exit 1; }; }
  21395. fi
  21396. # ========================
  21397. # ...and int types headers
  21398. # ========================
  21399. for ac_header in stdint.h inttypes.h
  21400. do
  21401. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  21402. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  21403. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  21404. $as_echo_n "checking for $ac_header... " >&6; }
  21405. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  21406. $as_echo_n "(cached) " >&6
  21407. fi
  21408. ac_res=`eval 'as_val=${'$as_ac_Header'}
  21409. $as_echo "$as_val"'`
  21410. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  21411. $as_echo "$ac_res" >&6; }
  21412. else
  21413. # Is the header compilable?
  21414. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  21415. $as_echo_n "checking $ac_header usability... " >&6; }
  21416. cat >conftest.$ac_ext <<_ACEOF
  21417. /* confdefs.h. */
  21418. _ACEOF
  21419. cat confdefs.h >>conftest.$ac_ext
  21420. cat >>conftest.$ac_ext <<_ACEOF
  21421. /* end confdefs.h. */
  21422. $ac_includes_default
  21423. #include <$ac_header>
  21424. _ACEOF
  21425. rm -f conftest.$ac_objext
  21426. if { (ac_try="$ac_compile"
  21427. case "(($ac_try" in
  21428. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21429. *) ac_try_echo=$ac_try;;
  21430. esac
  21431. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21432. $as_echo "$ac_try_echo") >&5
  21433. (eval "$ac_compile") 2>conftest.er1
  21434. ac_status=$?
  21435. grep -v '^ *+' conftest.er1 >conftest.err
  21436. rm -f conftest.er1
  21437. cat conftest.err >&5
  21438. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21439. (exit $ac_status); } && {
  21440. test -z "$ac_c_werror_flag" ||
  21441. test ! -s conftest.err
  21442. } && test -s conftest.$ac_objext; then
  21443. ac_header_compiler=yes
  21444. else
  21445. $as_echo "$as_me: failed program was:" >&5
  21446. sed 's/^/| /' conftest.$ac_ext >&5
  21447. ac_header_compiler=no
  21448. fi
  21449. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21450. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  21451. $as_echo "$ac_header_compiler" >&6; }
  21452. # Is the header present?
  21453. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  21454. $as_echo_n "checking $ac_header presence... " >&6; }
  21455. cat >conftest.$ac_ext <<_ACEOF
  21456. /* confdefs.h. */
  21457. _ACEOF
  21458. cat confdefs.h >>conftest.$ac_ext
  21459. cat >>conftest.$ac_ext <<_ACEOF
  21460. /* end confdefs.h. */
  21461. #include <$ac_header>
  21462. _ACEOF
  21463. if { (ac_try="$ac_cpp conftest.$ac_ext"
  21464. case "(($ac_try" in
  21465. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21466. *) ac_try_echo=$ac_try;;
  21467. esac
  21468. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21469. $as_echo "$ac_try_echo") >&5
  21470. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  21471. ac_status=$?
  21472. grep -v '^ *+' conftest.er1 >conftest.err
  21473. rm -f conftest.er1
  21474. cat conftest.err >&5
  21475. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21476. (exit $ac_status); } >/dev/null && {
  21477. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  21478. test ! -s conftest.err
  21479. }; then
  21480. ac_header_preproc=yes
  21481. else
  21482. $as_echo "$as_me: failed program was:" >&5
  21483. sed 's/^/| /' conftest.$ac_ext >&5
  21484. ac_header_preproc=no
  21485. fi
  21486. rm -f conftest.err conftest.$ac_ext
  21487. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  21488. $as_echo "$ac_header_preproc" >&6; }
  21489. # So? What about this header?
  21490. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  21491. yes:no: )
  21492. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  21493. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  21494. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  21495. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  21496. ac_header_preproc=yes
  21497. ;;
  21498. no:yes:* )
  21499. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  21500. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  21501. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  21502. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  21503. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  21504. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  21505. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  21506. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  21507. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  21508. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  21509. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  21510. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  21511. ;;
  21512. esac
  21513. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  21514. $as_echo_n "checking for $ac_header... " >&6; }
  21515. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  21516. $as_echo_n "(cached) " >&6
  21517. else
  21518. eval "$as_ac_Header=\$ac_header_preproc"
  21519. fi
  21520. ac_res=`eval 'as_val=${'$as_ac_Header'}
  21521. $as_echo "$as_val"'`
  21522. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  21523. $as_echo "$ac_res" >&6; }
  21524. fi
  21525. as_val=`eval 'as_val=${'$as_ac_Header'}
  21526. $as_echo "$as_val"'`
  21527. if test "x$as_val" = x""yes; then
  21528. cat >>confdefs.h <<_ACEOF
  21529. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  21530. _ACEOF
  21531. break
  21532. fi
  21533. done
  21534. { $as_echo "$as_me:$LINENO: checking for int8_t" >&5
  21535. $as_echo_n "checking for int8_t... " >&6; }
  21536. if test "${ac_cv_type_int8_t+set}" = set; then
  21537. $as_echo_n "(cached) " >&6
  21538. else
  21539. ac_cv_type_int8_t=no
  21540. cat >conftest.$ac_ext <<_ACEOF
  21541. /* confdefs.h. */
  21542. _ACEOF
  21543. cat confdefs.h >>conftest.$ac_ext
  21544. cat >>conftest.$ac_ext <<_ACEOF
  21545. /* end confdefs.h. */
  21546. $ac_includes_default
  21547. int
  21548. main ()
  21549. {
  21550. if (sizeof (int8_t))
  21551. return 0;
  21552. ;
  21553. return 0;
  21554. }
  21555. _ACEOF
  21556. rm -f conftest.$ac_objext
  21557. if { (ac_try="$ac_compile"
  21558. case "(($ac_try" in
  21559. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21560. *) ac_try_echo=$ac_try;;
  21561. esac
  21562. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21563. $as_echo "$ac_try_echo") >&5
  21564. (eval "$ac_compile") 2>conftest.er1
  21565. ac_status=$?
  21566. grep -v '^ *+' conftest.er1 >conftest.err
  21567. rm -f conftest.er1
  21568. cat conftest.err >&5
  21569. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21570. (exit $ac_status); } && {
  21571. test -z "$ac_c_werror_flag" ||
  21572. test ! -s conftest.err
  21573. } && test -s conftest.$ac_objext; then
  21574. cat >conftest.$ac_ext <<_ACEOF
  21575. /* confdefs.h. */
  21576. _ACEOF
  21577. cat confdefs.h >>conftest.$ac_ext
  21578. cat >>conftest.$ac_ext <<_ACEOF
  21579. /* end confdefs.h. */
  21580. $ac_includes_default
  21581. int
  21582. main ()
  21583. {
  21584. if (sizeof ((int8_t)))
  21585. return 0;
  21586. ;
  21587. return 0;
  21588. }
  21589. _ACEOF
  21590. rm -f conftest.$ac_objext
  21591. if { (ac_try="$ac_compile"
  21592. case "(($ac_try" in
  21593. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21594. *) ac_try_echo=$ac_try;;
  21595. esac
  21596. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21597. $as_echo "$ac_try_echo") >&5
  21598. (eval "$ac_compile") 2>conftest.er1
  21599. ac_status=$?
  21600. grep -v '^ *+' conftest.er1 >conftest.err
  21601. rm -f conftest.er1
  21602. cat conftest.err >&5
  21603. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21604. (exit $ac_status); } && {
  21605. test -z "$ac_c_werror_flag" ||
  21606. test ! -s conftest.err
  21607. } && test -s conftest.$ac_objext; then
  21608. :
  21609. else
  21610. $as_echo "$as_me: failed program was:" >&5
  21611. sed 's/^/| /' conftest.$ac_ext >&5
  21612. ac_cv_type_int8_t=yes
  21613. fi
  21614. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21615. else
  21616. $as_echo "$as_me: failed program was:" >&5
  21617. sed 's/^/| /' conftest.$ac_ext >&5
  21618. fi
  21619. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21620. fi
  21621. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
  21622. $as_echo "$ac_cv_type_int8_t" >&6; }
  21623. if test "x$ac_cv_type_int8_t" = x""yes; then
  21624. cat >>confdefs.h <<_ACEOF
  21625. #define HAVE_INT8_T 1
  21626. _ACEOF
  21627. fi
  21628. { $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
  21629. $as_echo_n "checking for uint8_t... " >&6; }
  21630. if test "${ac_cv_type_uint8_t+set}" = set; then
  21631. $as_echo_n "(cached) " >&6
  21632. else
  21633. ac_cv_type_uint8_t=no
  21634. cat >conftest.$ac_ext <<_ACEOF
  21635. /* confdefs.h. */
  21636. _ACEOF
  21637. cat confdefs.h >>conftest.$ac_ext
  21638. cat >>conftest.$ac_ext <<_ACEOF
  21639. /* end confdefs.h. */
  21640. $ac_includes_default
  21641. int
  21642. main ()
  21643. {
  21644. if (sizeof (uint8_t))
  21645. return 0;
  21646. ;
  21647. return 0;
  21648. }
  21649. _ACEOF
  21650. rm -f conftest.$ac_objext
  21651. if { (ac_try="$ac_compile"
  21652. case "(($ac_try" in
  21653. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21654. *) ac_try_echo=$ac_try;;
  21655. esac
  21656. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21657. $as_echo "$ac_try_echo") >&5
  21658. (eval "$ac_compile") 2>conftest.er1
  21659. ac_status=$?
  21660. grep -v '^ *+' conftest.er1 >conftest.err
  21661. rm -f conftest.er1
  21662. cat conftest.err >&5
  21663. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21664. (exit $ac_status); } && {
  21665. test -z "$ac_c_werror_flag" ||
  21666. test ! -s conftest.err
  21667. } && test -s conftest.$ac_objext; then
  21668. cat >conftest.$ac_ext <<_ACEOF
  21669. /* confdefs.h. */
  21670. _ACEOF
  21671. cat confdefs.h >>conftest.$ac_ext
  21672. cat >>conftest.$ac_ext <<_ACEOF
  21673. /* end confdefs.h. */
  21674. $ac_includes_default
  21675. int
  21676. main ()
  21677. {
  21678. if (sizeof ((uint8_t)))
  21679. return 0;
  21680. ;
  21681. return 0;
  21682. }
  21683. _ACEOF
  21684. rm -f conftest.$ac_objext
  21685. if { (ac_try="$ac_compile"
  21686. case "(($ac_try" in
  21687. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21688. *) ac_try_echo=$ac_try;;
  21689. esac
  21690. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21691. $as_echo "$ac_try_echo") >&5
  21692. (eval "$ac_compile") 2>conftest.er1
  21693. ac_status=$?
  21694. grep -v '^ *+' conftest.er1 >conftest.err
  21695. rm -f conftest.er1
  21696. cat conftest.err >&5
  21697. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21698. (exit $ac_status); } && {
  21699. test -z "$ac_c_werror_flag" ||
  21700. test ! -s conftest.err
  21701. } && test -s conftest.$ac_objext; then
  21702. :
  21703. else
  21704. $as_echo "$as_me: failed program was:" >&5
  21705. sed 's/^/| /' conftest.$ac_ext >&5
  21706. ac_cv_type_uint8_t=yes
  21707. fi
  21708. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21709. else
  21710. $as_echo "$as_me: failed program was:" >&5
  21711. sed 's/^/| /' conftest.$ac_ext >&5
  21712. fi
  21713. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21714. fi
  21715. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
  21716. $as_echo "$ac_cv_type_uint8_t" >&6; }
  21717. if test "x$ac_cv_type_uint8_t" = x""yes; then
  21718. cat >>confdefs.h <<_ACEOF
  21719. #define HAVE_UINT8_T 1
  21720. _ACEOF
  21721. fi
  21722. { $as_echo "$as_me:$LINENO: checking for int16_t" >&5
  21723. $as_echo_n "checking for int16_t... " >&6; }
  21724. if test "${ac_cv_type_int16_t+set}" = set; then
  21725. $as_echo_n "(cached) " >&6
  21726. else
  21727. ac_cv_type_int16_t=no
  21728. cat >conftest.$ac_ext <<_ACEOF
  21729. /* confdefs.h. */
  21730. _ACEOF
  21731. cat confdefs.h >>conftest.$ac_ext
  21732. cat >>conftest.$ac_ext <<_ACEOF
  21733. /* end confdefs.h. */
  21734. $ac_includes_default
  21735. int
  21736. main ()
  21737. {
  21738. if (sizeof (int16_t))
  21739. return 0;
  21740. ;
  21741. return 0;
  21742. }
  21743. _ACEOF
  21744. rm -f conftest.$ac_objext
  21745. if { (ac_try="$ac_compile"
  21746. case "(($ac_try" in
  21747. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21748. *) ac_try_echo=$ac_try;;
  21749. esac
  21750. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21751. $as_echo "$ac_try_echo") >&5
  21752. (eval "$ac_compile") 2>conftest.er1
  21753. ac_status=$?
  21754. grep -v '^ *+' conftest.er1 >conftest.err
  21755. rm -f conftest.er1
  21756. cat conftest.err >&5
  21757. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21758. (exit $ac_status); } && {
  21759. test -z "$ac_c_werror_flag" ||
  21760. test ! -s conftest.err
  21761. } && test -s conftest.$ac_objext; then
  21762. cat >conftest.$ac_ext <<_ACEOF
  21763. /* confdefs.h. */
  21764. _ACEOF
  21765. cat confdefs.h >>conftest.$ac_ext
  21766. cat >>conftest.$ac_ext <<_ACEOF
  21767. /* end confdefs.h. */
  21768. $ac_includes_default
  21769. int
  21770. main ()
  21771. {
  21772. if (sizeof ((int16_t)))
  21773. return 0;
  21774. ;
  21775. return 0;
  21776. }
  21777. _ACEOF
  21778. rm -f conftest.$ac_objext
  21779. if { (ac_try="$ac_compile"
  21780. case "(($ac_try" in
  21781. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21782. *) ac_try_echo=$ac_try;;
  21783. esac
  21784. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21785. $as_echo "$ac_try_echo") >&5
  21786. (eval "$ac_compile") 2>conftest.er1
  21787. ac_status=$?
  21788. grep -v '^ *+' conftest.er1 >conftest.err
  21789. rm -f conftest.er1
  21790. cat conftest.err >&5
  21791. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21792. (exit $ac_status); } && {
  21793. test -z "$ac_c_werror_flag" ||
  21794. test ! -s conftest.err
  21795. } && test -s conftest.$ac_objext; then
  21796. :
  21797. else
  21798. $as_echo "$as_me: failed program was:" >&5
  21799. sed 's/^/| /' conftest.$ac_ext >&5
  21800. ac_cv_type_int16_t=yes
  21801. fi
  21802. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21803. else
  21804. $as_echo "$as_me: failed program was:" >&5
  21805. sed 's/^/| /' conftest.$ac_ext >&5
  21806. fi
  21807. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21808. fi
  21809. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
  21810. $as_echo "$ac_cv_type_int16_t" >&6; }
  21811. if test "x$ac_cv_type_int16_t" = x""yes; then
  21812. cat >>confdefs.h <<_ACEOF
  21813. #define HAVE_INT16_T 1
  21814. _ACEOF
  21815. fi
  21816. { $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
  21817. $as_echo_n "checking for uint16_t... " >&6; }
  21818. if test "${ac_cv_type_uint16_t+set}" = set; then
  21819. $as_echo_n "(cached) " >&6
  21820. else
  21821. ac_cv_type_uint16_t=no
  21822. cat >conftest.$ac_ext <<_ACEOF
  21823. /* confdefs.h. */
  21824. _ACEOF
  21825. cat confdefs.h >>conftest.$ac_ext
  21826. cat >>conftest.$ac_ext <<_ACEOF
  21827. /* end confdefs.h. */
  21828. $ac_includes_default
  21829. int
  21830. main ()
  21831. {
  21832. if (sizeof (uint16_t))
  21833. return 0;
  21834. ;
  21835. return 0;
  21836. }
  21837. _ACEOF
  21838. rm -f conftest.$ac_objext
  21839. if { (ac_try="$ac_compile"
  21840. case "(($ac_try" in
  21841. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21842. *) ac_try_echo=$ac_try;;
  21843. esac
  21844. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21845. $as_echo "$ac_try_echo") >&5
  21846. (eval "$ac_compile") 2>conftest.er1
  21847. ac_status=$?
  21848. grep -v '^ *+' conftest.er1 >conftest.err
  21849. rm -f conftest.er1
  21850. cat conftest.err >&5
  21851. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21852. (exit $ac_status); } && {
  21853. test -z "$ac_c_werror_flag" ||
  21854. test ! -s conftest.err
  21855. } && test -s conftest.$ac_objext; then
  21856. cat >conftest.$ac_ext <<_ACEOF
  21857. /* confdefs.h. */
  21858. _ACEOF
  21859. cat confdefs.h >>conftest.$ac_ext
  21860. cat >>conftest.$ac_ext <<_ACEOF
  21861. /* end confdefs.h. */
  21862. $ac_includes_default
  21863. int
  21864. main ()
  21865. {
  21866. if (sizeof ((uint16_t)))
  21867. return 0;
  21868. ;
  21869. return 0;
  21870. }
  21871. _ACEOF
  21872. rm -f conftest.$ac_objext
  21873. if { (ac_try="$ac_compile"
  21874. case "(($ac_try" in
  21875. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21876. *) ac_try_echo=$ac_try;;
  21877. esac
  21878. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21879. $as_echo "$ac_try_echo") >&5
  21880. (eval "$ac_compile") 2>conftest.er1
  21881. ac_status=$?
  21882. grep -v '^ *+' conftest.er1 >conftest.err
  21883. rm -f conftest.er1
  21884. cat conftest.err >&5
  21885. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21886. (exit $ac_status); } && {
  21887. test -z "$ac_c_werror_flag" ||
  21888. test ! -s conftest.err
  21889. } && test -s conftest.$ac_objext; then
  21890. :
  21891. else
  21892. $as_echo "$as_me: failed program was:" >&5
  21893. sed 's/^/| /' conftest.$ac_ext >&5
  21894. ac_cv_type_uint16_t=yes
  21895. fi
  21896. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21897. else
  21898. $as_echo "$as_me: failed program was:" >&5
  21899. sed 's/^/| /' conftest.$ac_ext >&5
  21900. fi
  21901. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21902. fi
  21903. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
  21904. $as_echo "$ac_cv_type_uint16_t" >&6; }
  21905. if test "x$ac_cv_type_uint16_t" = x""yes; then
  21906. cat >>confdefs.h <<_ACEOF
  21907. #define HAVE_UINT16_T 1
  21908. _ACEOF
  21909. fi
  21910. { $as_echo "$as_me:$LINENO: checking for int32_t" >&5
  21911. $as_echo_n "checking for int32_t... " >&6; }
  21912. if test "${ac_cv_type_int32_t+set}" = set; then
  21913. $as_echo_n "(cached) " >&6
  21914. else
  21915. ac_cv_type_int32_t=no
  21916. cat >conftest.$ac_ext <<_ACEOF
  21917. /* confdefs.h. */
  21918. _ACEOF
  21919. cat confdefs.h >>conftest.$ac_ext
  21920. cat >>conftest.$ac_ext <<_ACEOF
  21921. /* end confdefs.h. */
  21922. $ac_includes_default
  21923. int
  21924. main ()
  21925. {
  21926. if (sizeof (int32_t))
  21927. return 0;
  21928. ;
  21929. return 0;
  21930. }
  21931. _ACEOF
  21932. rm -f conftest.$ac_objext
  21933. if { (ac_try="$ac_compile"
  21934. case "(($ac_try" in
  21935. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21936. *) ac_try_echo=$ac_try;;
  21937. esac
  21938. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21939. $as_echo "$ac_try_echo") >&5
  21940. (eval "$ac_compile") 2>conftest.er1
  21941. ac_status=$?
  21942. grep -v '^ *+' conftest.er1 >conftest.err
  21943. rm -f conftest.er1
  21944. cat conftest.err >&5
  21945. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21946. (exit $ac_status); } && {
  21947. test -z "$ac_c_werror_flag" ||
  21948. test ! -s conftest.err
  21949. } && test -s conftest.$ac_objext; then
  21950. cat >conftest.$ac_ext <<_ACEOF
  21951. /* confdefs.h. */
  21952. _ACEOF
  21953. cat confdefs.h >>conftest.$ac_ext
  21954. cat >>conftest.$ac_ext <<_ACEOF
  21955. /* end confdefs.h. */
  21956. $ac_includes_default
  21957. int
  21958. main ()
  21959. {
  21960. if (sizeof ((int32_t)))
  21961. return 0;
  21962. ;
  21963. return 0;
  21964. }
  21965. _ACEOF
  21966. rm -f conftest.$ac_objext
  21967. if { (ac_try="$ac_compile"
  21968. case "(($ac_try" in
  21969. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21970. *) ac_try_echo=$ac_try;;
  21971. esac
  21972. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21973. $as_echo "$ac_try_echo") >&5
  21974. (eval "$ac_compile") 2>conftest.er1
  21975. ac_status=$?
  21976. grep -v '^ *+' conftest.er1 >conftest.err
  21977. rm -f conftest.er1
  21978. cat conftest.err >&5
  21979. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21980. (exit $ac_status); } && {
  21981. test -z "$ac_c_werror_flag" ||
  21982. test ! -s conftest.err
  21983. } && test -s conftest.$ac_objext; then
  21984. :
  21985. else
  21986. $as_echo "$as_me: failed program was:" >&5
  21987. sed 's/^/| /' conftest.$ac_ext >&5
  21988. ac_cv_type_int32_t=yes
  21989. fi
  21990. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21991. else
  21992. $as_echo "$as_me: failed program was:" >&5
  21993. sed 's/^/| /' conftest.$ac_ext >&5
  21994. fi
  21995. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21996. fi
  21997. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
  21998. $as_echo "$ac_cv_type_int32_t" >&6; }
  21999. if test "x$ac_cv_type_int32_t" = x""yes; then
  22000. cat >>confdefs.h <<_ACEOF
  22001. #define HAVE_INT32_T 1
  22002. _ACEOF
  22003. fi
  22004. { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
  22005. $as_echo_n "checking for uint32_t... " >&6; }
  22006. if test "${ac_cv_type_uint32_t+set}" = set; then
  22007. $as_echo_n "(cached) " >&6
  22008. else
  22009. ac_cv_type_uint32_t=no
  22010. cat >conftest.$ac_ext <<_ACEOF
  22011. /* confdefs.h. */
  22012. _ACEOF
  22013. cat confdefs.h >>conftest.$ac_ext
  22014. cat >>conftest.$ac_ext <<_ACEOF
  22015. /* end confdefs.h. */
  22016. $ac_includes_default
  22017. int
  22018. main ()
  22019. {
  22020. if (sizeof (uint32_t))
  22021. return 0;
  22022. ;
  22023. return 0;
  22024. }
  22025. _ACEOF
  22026. rm -f conftest.$ac_objext
  22027. if { (ac_try="$ac_compile"
  22028. case "(($ac_try" in
  22029. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22030. *) ac_try_echo=$ac_try;;
  22031. esac
  22032. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22033. $as_echo "$ac_try_echo") >&5
  22034. (eval "$ac_compile") 2>conftest.er1
  22035. ac_status=$?
  22036. grep -v '^ *+' conftest.er1 >conftest.err
  22037. rm -f conftest.er1
  22038. cat conftest.err >&5
  22039. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22040. (exit $ac_status); } && {
  22041. test -z "$ac_c_werror_flag" ||
  22042. test ! -s conftest.err
  22043. } && test -s conftest.$ac_objext; then
  22044. cat >conftest.$ac_ext <<_ACEOF
  22045. /* confdefs.h. */
  22046. _ACEOF
  22047. cat confdefs.h >>conftest.$ac_ext
  22048. cat >>conftest.$ac_ext <<_ACEOF
  22049. /* end confdefs.h. */
  22050. $ac_includes_default
  22051. int
  22052. main ()
  22053. {
  22054. if (sizeof ((uint32_t)))
  22055. return 0;
  22056. ;
  22057. return 0;
  22058. }
  22059. _ACEOF
  22060. rm -f conftest.$ac_objext
  22061. if { (ac_try="$ac_compile"
  22062. case "(($ac_try" in
  22063. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22064. *) ac_try_echo=$ac_try;;
  22065. esac
  22066. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22067. $as_echo "$ac_try_echo") >&5
  22068. (eval "$ac_compile") 2>conftest.er1
  22069. ac_status=$?
  22070. grep -v '^ *+' conftest.er1 >conftest.err
  22071. rm -f conftest.er1
  22072. cat conftest.err >&5
  22073. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22074. (exit $ac_status); } && {
  22075. test -z "$ac_c_werror_flag" ||
  22076. test ! -s conftest.err
  22077. } && test -s conftest.$ac_objext; then
  22078. :
  22079. else
  22080. $as_echo "$as_me: failed program was:" >&5
  22081. sed 's/^/| /' conftest.$ac_ext >&5
  22082. ac_cv_type_uint32_t=yes
  22083. fi
  22084. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22085. else
  22086. $as_echo "$as_me: failed program was:" >&5
  22087. sed 's/^/| /' conftest.$ac_ext >&5
  22088. fi
  22089. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22090. fi
  22091. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
  22092. $as_echo "$ac_cv_type_uint32_t" >&6; }
  22093. if test "x$ac_cv_type_uint32_t" = x""yes; then
  22094. cat >>confdefs.h <<_ACEOF
  22095. #define HAVE_UINT32_T 1
  22096. _ACEOF
  22097. fi
  22098. { $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
  22099. $as_echo_n "checking for intptr_t... " >&6; }
  22100. if test "${ac_cv_type_intptr_t+set}" = set; then
  22101. $as_echo_n "(cached) " >&6
  22102. else
  22103. ac_cv_type_intptr_t=no
  22104. cat >conftest.$ac_ext <<_ACEOF
  22105. /* confdefs.h. */
  22106. _ACEOF
  22107. cat confdefs.h >>conftest.$ac_ext
  22108. cat >>conftest.$ac_ext <<_ACEOF
  22109. /* end confdefs.h. */
  22110. $ac_includes_default
  22111. int
  22112. main ()
  22113. {
  22114. if (sizeof (intptr_t))
  22115. return 0;
  22116. ;
  22117. return 0;
  22118. }
  22119. _ACEOF
  22120. rm -f conftest.$ac_objext
  22121. if { (ac_try="$ac_compile"
  22122. case "(($ac_try" in
  22123. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22124. *) ac_try_echo=$ac_try;;
  22125. esac
  22126. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22127. $as_echo "$ac_try_echo") >&5
  22128. (eval "$ac_compile") 2>conftest.er1
  22129. ac_status=$?
  22130. grep -v '^ *+' conftest.er1 >conftest.err
  22131. rm -f conftest.er1
  22132. cat conftest.err >&5
  22133. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22134. (exit $ac_status); } && {
  22135. test -z "$ac_c_werror_flag" ||
  22136. test ! -s conftest.err
  22137. } && test -s conftest.$ac_objext; then
  22138. cat >conftest.$ac_ext <<_ACEOF
  22139. /* confdefs.h. */
  22140. _ACEOF
  22141. cat confdefs.h >>conftest.$ac_ext
  22142. cat >>conftest.$ac_ext <<_ACEOF
  22143. /* end confdefs.h. */
  22144. $ac_includes_default
  22145. int
  22146. main ()
  22147. {
  22148. if (sizeof ((intptr_t)))
  22149. return 0;
  22150. ;
  22151. return 0;
  22152. }
  22153. _ACEOF
  22154. rm -f conftest.$ac_objext
  22155. if { (ac_try="$ac_compile"
  22156. case "(($ac_try" in
  22157. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22158. *) ac_try_echo=$ac_try;;
  22159. esac
  22160. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22161. $as_echo "$ac_try_echo") >&5
  22162. (eval "$ac_compile") 2>conftest.er1
  22163. ac_status=$?
  22164. grep -v '^ *+' conftest.er1 >conftest.err
  22165. rm -f conftest.er1
  22166. cat conftest.err >&5
  22167. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22168. (exit $ac_status); } && {
  22169. test -z "$ac_c_werror_flag" ||
  22170. test ! -s conftest.err
  22171. } && test -s conftest.$ac_objext; then
  22172. :
  22173. else
  22174. $as_echo "$as_me: failed program was:" >&5
  22175. sed 's/^/| /' conftest.$ac_ext >&5
  22176. ac_cv_type_intptr_t=yes
  22177. fi
  22178. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22179. else
  22180. $as_echo "$as_me: failed program was:" >&5
  22181. sed 's/^/| /' conftest.$ac_ext >&5
  22182. fi
  22183. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22184. fi
  22185. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
  22186. $as_echo "$ac_cv_type_intptr_t" >&6; }
  22187. if test "x$ac_cv_type_intptr_t" = x""yes; then
  22188. cat >>confdefs.h <<_ACEOF
  22189. #define HAVE_INTPTR_T 1
  22190. _ACEOF
  22191. fi
  22192. { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
  22193. $as_echo_n "checking for uintptr_t... " >&6; }
  22194. if test "${ac_cv_type_uintptr_t+set}" = set; then
  22195. $as_echo_n "(cached) " >&6
  22196. else
  22197. ac_cv_type_uintptr_t=no
  22198. cat >conftest.$ac_ext <<_ACEOF
  22199. /* confdefs.h. */
  22200. _ACEOF
  22201. cat confdefs.h >>conftest.$ac_ext
  22202. cat >>conftest.$ac_ext <<_ACEOF
  22203. /* end confdefs.h. */
  22204. $ac_includes_default
  22205. int
  22206. main ()
  22207. {
  22208. if (sizeof (uintptr_t))
  22209. return 0;
  22210. ;
  22211. return 0;
  22212. }
  22213. _ACEOF
  22214. rm -f conftest.$ac_objext
  22215. if { (ac_try="$ac_compile"
  22216. case "(($ac_try" in
  22217. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22218. *) ac_try_echo=$ac_try;;
  22219. esac
  22220. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22221. $as_echo "$ac_try_echo") >&5
  22222. (eval "$ac_compile") 2>conftest.er1
  22223. ac_status=$?
  22224. grep -v '^ *+' conftest.er1 >conftest.err
  22225. rm -f conftest.er1
  22226. cat conftest.err >&5
  22227. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22228. (exit $ac_status); } && {
  22229. test -z "$ac_c_werror_flag" ||
  22230. test ! -s conftest.err
  22231. } && test -s conftest.$ac_objext; then
  22232. cat >conftest.$ac_ext <<_ACEOF
  22233. /* confdefs.h. */
  22234. _ACEOF
  22235. cat confdefs.h >>conftest.$ac_ext
  22236. cat >>conftest.$ac_ext <<_ACEOF
  22237. /* end confdefs.h. */
  22238. $ac_includes_default
  22239. int
  22240. main ()
  22241. {
  22242. if (sizeof ((uintptr_t)))
  22243. return 0;
  22244. ;
  22245. return 0;
  22246. }
  22247. _ACEOF
  22248. rm -f conftest.$ac_objext
  22249. if { (ac_try="$ac_compile"
  22250. case "(($ac_try" in
  22251. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22252. *) ac_try_echo=$ac_try;;
  22253. esac
  22254. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22255. $as_echo "$ac_try_echo") >&5
  22256. (eval "$ac_compile") 2>conftest.er1
  22257. ac_status=$?
  22258. grep -v '^ *+' conftest.er1 >conftest.err
  22259. rm -f conftest.er1
  22260. cat conftest.err >&5
  22261. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22262. (exit $ac_status); } && {
  22263. test -z "$ac_c_werror_flag" ||
  22264. test ! -s conftest.err
  22265. } && test -s conftest.$ac_objext; then
  22266. :
  22267. else
  22268. $as_echo "$as_me: failed program was:" >&5
  22269. sed 's/^/| /' conftest.$ac_ext >&5
  22270. ac_cv_type_uintptr_t=yes
  22271. fi
  22272. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22273. else
  22274. $as_echo "$as_me: failed program was:" >&5
  22275. sed 's/^/| /' conftest.$ac_ext >&5
  22276. fi
  22277. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22278. fi
  22279. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
  22280. $as_echo "$ac_cv_type_uintptr_t" >&6; }
  22281. if test "x$ac_cv_type_uintptr_t" = x""yes; then
  22282. cat >>confdefs.h <<_ACEOF
  22283. #define HAVE_UINTPTR_T 1
  22284. _ACEOF
  22285. fi
  22286. { $as_echo "$as_me:$LINENO: checking for uint_t" >&5
  22287. $as_echo_n "checking for uint_t... " >&6; }
  22288. if test "${ac_cv_type_uint_t+set}" = set; then
  22289. $as_echo_n "(cached) " >&6
  22290. else
  22291. ac_cv_type_uint_t=no
  22292. cat >conftest.$ac_ext <<_ACEOF
  22293. /* confdefs.h. */
  22294. _ACEOF
  22295. cat confdefs.h >>conftest.$ac_ext
  22296. cat >>conftest.$ac_ext <<_ACEOF
  22297. /* end confdefs.h. */
  22298. $ac_includes_default
  22299. int
  22300. main ()
  22301. {
  22302. if (sizeof (uint_t))
  22303. return 0;
  22304. ;
  22305. return 0;
  22306. }
  22307. _ACEOF
  22308. rm -f conftest.$ac_objext
  22309. if { (ac_try="$ac_compile"
  22310. case "(($ac_try" in
  22311. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22312. *) ac_try_echo=$ac_try;;
  22313. esac
  22314. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22315. $as_echo "$ac_try_echo") >&5
  22316. (eval "$ac_compile") 2>conftest.er1
  22317. ac_status=$?
  22318. grep -v '^ *+' conftest.er1 >conftest.err
  22319. rm -f conftest.er1
  22320. cat conftest.err >&5
  22321. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22322. (exit $ac_status); } && {
  22323. test -z "$ac_c_werror_flag" ||
  22324. test ! -s conftest.err
  22325. } && test -s conftest.$ac_objext; then
  22326. cat >conftest.$ac_ext <<_ACEOF
  22327. /* confdefs.h. */
  22328. _ACEOF
  22329. cat confdefs.h >>conftest.$ac_ext
  22330. cat >>conftest.$ac_ext <<_ACEOF
  22331. /* end confdefs.h. */
  22332. $ac_includes_default
  22333. int
  22334. main ()
  22335. {
  22336. if (sizeof ((uint_t)))
  22337. return 0;
  22338. ;
  22339. return 0;
  22340. }
  22341. _ACEOF
  22342. rm -f conftest.$ac_objext
  22343. if { (ac_try="$ac_compile"
  22344. case "(($ac_try" in
  22345. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22346. *) ac_try_echo=$ac_try;;
  22347. esac
  22348. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22349. $as_echo "$ac_try_echo") >&5
  22350. (eval "$ac_compile") 2>conftest.er1
  22351. ac_status=$?
  22352. grep -v '^ *+' conftest.er1 >conftest.err
  22353. rm -f conftest.er1
  22354. cat conftest.err >&5
  22355. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22356. (exit $ac_status); } && {
  22357. test -z "$ac_c_werror_flag" ||
  22358. test ! -s conftest.err
  22359. } && test -s conftest.$ac_objext; then
  22360. :
  22361. else
  22362. $as_echo "$as_me: failed program was:" >&5
  22363. sed 's/^/| /' conftest.$ac_ext >&5
  22364. ac_cv_type_uint_t=yes
  22365. fi
  22366. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22367. else
  22368. $as_echo "$as_me: failed program was:" >&5
  22369. sed 's/^/| /' conftest.$ac_ext >&5
  22370. fi
  22371. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22372. fi
  22373. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint_t" >&5
  22374. $as_echo "$ac_cv_type_uint_t" >&6; }
  22375. if test "x$ac_cv_type_uint_t" = x""yes; then
  22376. cat >>confdefs.h <<_ACEOF
  22377. #define HAVE_UINT_T 1
  22378. _ACEOF
  22379. fi
  22380. { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
  22381. $as_echo_n "checking for pid_t... " >&6; }
  22382. if test "${ac_cv_type_pid_t+set}" = set; then
  22383. $as_echo_n "(cached) " >&6
  22384. else
  22385. ac_cv_type_pid_t=no
  22386. cat >conftest.$ac_ext <<_ACEOF
  22387. /* confdefs.h. */
  22388. _ACEOF
  22389. cat confdefs.h >>conftest.$ac_ext
  22390. cat >>conftest.$ac_ext <<_ACEOF
  22391. /* end confdefs.h. */
  22392. $ac_includes_default
  22393. int
  22394. main ()
  22395. {
  22396. if (sizeof (pid_t))
  22397. return 0;
  22398. ;
  22399. return 0;
  22400. }
  22401. _ACEOF
  22402. rm -f conftest.$ac_objext
  22403. if { (ac_try="$ac_compile"
  22404. case "(($ac_try" in
  22405. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22406. *) ac_try_echo=$ac_try;;
  22407. esac
  22408. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22409. $as_echo "$ac_try_echo") >&5
  22410. (eval "$ac_compile") 2>conftest.er1
  22411. ac_status=$?
  22412. grep -v '^ *+' conftest.er1 >conftest.err
  22413. rm -f conftest.er1
  22414. cat conftest.err >&5
  22415. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22416. (exit $ac_status); } && {
  22417. test -z "$ac_c_werror_flag" ||
  22418. test ! -s conftest.err
  22419. } && test -s conftest.$ac_objext; then
  22420. cat >conftest.$ac_ext <<_ACEOF
  22421. /* confdefs.h. */
  22422. _ACEOF
  22423. cat confdefs.h >>conftest.$ac_ext
  22424. cat >>conftest.$ac_ext <<_ACEOF
  22425. /* end confdefs.h. */
  22426. $ac_includes_default
  22427. int
  22428. main ()
  22429. {
  22430. if (sizeof ((pid_t)))
  22431. return 0;
  22432. ;
  22433. return 0;
  22434. }
  22435. _ACEOF
  22436. rm -f conftest.$ac_objext
  22437. if { (ac_try="$ac_compile"
  22438. case "(($ac_try" in
  22439. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22440. *) ac_try_echo=$ac_try;;
  22441. esac
  22442. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22443. $as_echo "$ac_try_echo") >&5
  22444. (eval "$ac_compile") 2>conftest.er1
  22445. ac_status=$?
  22446. grep -v '^ *+' conftest.er1 >conftest.err
  22447. rm -f conftest.er1
  22448. cat conftest.err >&5
  22449. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22450. (exit $ac_status); } && {
  22451. test -z "$ac_c_werror_flag" ||
  22452. test ! -s conftest.err
  22453. } && test -s conftest.$ac_objext; then
  22454. :
  22455. else
  22456. $as_echo "$as_me: failed program was:" >&5
  22457. sed 's/^/| /' conftest.$ac_ext >&5
  22458. ac_cv_type_pid_t=yes
  22459. fi
  22460. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22461. else
  22462. $as_echo "$as_me: failed program was:" >&5
  22463. sed 's/^/| /' conftest.$ac_ext >&5
  22464. fi
  22465. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22466. fi
  22467. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  22468. $as_echo "$ac_cv_type_pid_t" >&6; }
  22469. if test "x$ac_cv_type_pid_t" = x""yes; then
  22470. cat >>confdefs.h <<_ACEOF
  22471. #define HAVE_PID_T 1
  22472. _ACEOF
  22473. fi
  22474. # =====
  22475. # sizes
  22476. # =====
  22477. # The cast to long int works around a bug in the HP C Compiler
  22478. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  22479. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  22480. # This bug is HP SR number 8606223364.
  22481. { $as_echo "$as_me:$LINENO: checking size of char*" >&5
  22482. $as_echo_n "checking size of char*... " >&6; }
  22483. if test "${ac_cv_sizeof_charp+set}" = set; then
  22484. $as_echo_n "(cached) " >&6
  22485. else
  22486. if test "$cross_compiling" = yes; then
  22487. # Depending upon the size, compute the lo and hi bounds.
  22488. cat >conftest.$ac_ext <<_ACEOF
  22489. /* confdefs.h. */
  22490. _ACEOF
  22491. cat confdefs.h >>conftest.$ac_ext
  22492. cat >>conftest.$ac_ext <<_ACEOF
  22493. /* end confdefs.h. */
  22494. $ac_includes_default
  22495. int
  22496. main ()
  22497. {
  22498. static int test_array [1 - 2 * !(((long int) (sizeof (char*))) >= 0)];
  22499. test_array [0] = 0
  22500. ;
  22501. return 0;
  22502. }
  22503. _ACEOF
  22504. rm -f conftest.$ac_objext
  22505. if { (ac_try="$ac_compile"
  22506. case "(($ac_try" in
  22507. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22508. *) ac_try_echo=$ac_try;;
  22509. esac
  22510. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22511. $as_echo "$ac_try_echo") >&5
  22512. (eval "$ac_compile") 2>conftest.er1
  22513. ac_status=$?
  22514. grep -v '^ *+' conftest.er1 >conftest.err
  22515. rm -f conftest.er1
  22516. cat conftest.err >&5
  22517. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22518. (exit $ac_status); } && {
  22519. test -z "$ac_c_werror_flag" ||
  22520. test ! -s conftest.err
  22521. } && test -s conftest.$ac_objext; then
  22522. ac_lo=0 ac_mid=0
  22523. while :; do
  22524. cat >conftest.$ac_ext <<_ACEOF
  22525. /* confdefs.h. */
  22526. _ACEOF
  22527. cat confdefs.h >>conftest.$ac_ext
  22528. cat >>conftest.$ac_ext <<_ACEOF
  22529. /* end confdefs.h. */
  22530. $ac_includes_default
  22531. int
  22532. main ()
  22533. {
  22534. static int test_array [1 - 2 * !(((long int) (sizeof (char*))) <= $ac_mid)];
  22535. test_array [0] = 0
  22536. ;
  22537. return 0;
  22538. }
  22539. _ACEOF
  22540. rm -f conftest.$ac_objext
  22541. if { (ac_try="$ac_compile"
  22542. case "(($ac_try" in
  22543. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22544. *) ac_try_echo=$ac_try;;
  22545. esac
  22546. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22547. $as_echo "$ac_try_echo") >&5
  22548. (eval "$ac_compile") 2>conftest.er1
  22549. ac_status=$?
  22550. grep -v '^ *+' conftest.er1 >conftest.err
  22551. rm -f conftest.er1
  22552. cat conftest.err >&5
  22553. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22554. (exit $ac_status); } && {
  22555. test -z "$ac_c_werror_flag" ||
  22556. test ! -s conftest.err
  22557. } && test -s conftest.$ac_objext; then
  22558. ac_hi=$ac_mid; break
  22559. else
  22560. $as_echo "$as_me: failed program was:" >&5
  22561. sed 's/^/| /' conftest.$ac_ext >&5
  22562. ac_lo=`expr $ac_mid + 1`
  22563. if test $ac_lo -le $ac_mid; then
  22564. ac_lo= ac_hi=
  22565. break
  22566. fi
  22567. ac_mid=`expr 2 '*' $ac_mid + 1`
  22568. fi
  22569. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22570. done
  22571. else
  22572. $as_echo "$as_me: failed program was:" >&5
  22573. sed 's/^/| /' conftest.$ac_ext >&5
  22574. cat >conftest.$ac_ext <<_ACEOF
  22575. /* confdefs.h. */
  22576. _ACEOF
  22577. cat confdefs.h >>conftest.$ac_ext
  22578. cat >>conftest.$ac_ext <<_ACEOF
  22579. /* end confdefs.h. */
  22580. $ac_includes_default
  22581. int
  22582. main ()
  22583. {
  22584. static int test_array [1 - 2 * !(((long int) (sizeof (char*))) < 0)];
  22585. test_array [0] = 0
  22586. ;
  22587. return 0;
  22588. }
  22589. _ACEOF
  22590. rm -f conftest.$ac_objext
  22591. if { (ac_try="$ac_compile"
  22592. case "(($ac_try" in
  22593. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22594. *) ac_try_echo=$ac_try;;
  22595. esac
  22596. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22597. $as_echo "$ac_try_echo") >&5
  22598. (eval "$ac_compile") 2>conftest.er1
  22599. ac_status=$?
  22600. grep -v '^ *+' conftest.er1 >conftest.err
  22601. rm -f conftest.er1
  22602. cat conftest.err >&5
  22603. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22604. (exit $ac_status); } && {
  22605. test -z "$ac_c_werror_flag" ||
  22606. test ! -s conftest.err
  22607. } && test -s conftest.$ac_objext; then
  22608. ac_hi=-1 ac_mid=-1
  22609. while :; do
  22610. cat >conftest.$ac_ext <<_ACEOF
  22611. /* confdefs.h. */
  22612. _ACEOF
  22613. cat confdefs.h >>conftest.$ac_ext
  22614. cat >>conftest.$ac_ext <<_ACEOF
  22615. /* end confdefs.h. */
  22616. $ac_includes_default
  22617. int
  22618. main ()
  22619. {
  22620. static int test_array [1 - 2 * !(((long int) (sizeof (char*))) >= $ac_mid)];
  22621. test_array [0] = 0
  22622. ;
  22623. return 0;
  22624. }
  22625. _ACEOF
  22626. rm -f conftest.$ac_objext
  22627. if { (ac_try="$ac_compile"
  22628. case "(($ac_try" in
  22629. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22630. *) ac_try_echo=$ac_try;;
  22631. esac
  22632. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22633. $as_echo "$ac_try_echo") >&5
  22634. (eval "$ac_compile") 2>conftest.er1
  22635. ac_status=$?
  22636. grep -v '^ *+' conftest.er1 >conftest.err
  22637. rm -f conftest.er1
  22638. cat conftest.err >&5
  22639. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22640. (exit $ac_status); } && {
  22641. test -z "$ac_c_werror_flag" ||
  22642. test ! -s conftest.err
  22643. } && test -s conftest.$ac_objext; then
  22644. ac_lo=$ac_mid; break
  22645. else
  22646. $as_echo "$as_me: failed program was:" >&5
  22647. sed 's/^/| /' conftest.$ac_ext >&5
  22648. ac_hi=`expr '(' $ac_mid ')' - 1`
  22649. if test $ac_mid -le $ac_hi; then
  22650. ac_lo= ac_hi=
  22651. break
  22652. fi
  22653. ac_mid=`expr 2 '*' $ac_mid`
  22654. fi
  22655. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22656. done
  22657. else
  22658. $as_echo "$as_me: failed program was:" >&5
  22659. sed 's/^/| /' conftest.$ac_ext >&5
  22660. ac_lo= ac_hi=
  22661. fi
  22662. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22663. fi
  22664. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22665. # Binary search between lo and hi bounds.
  22666. while test "x$ac_lo" != "x$ac_hi"; do
  22667. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  22668. cat >conftest.$ac_ext <<_ACEOF
  22669. /* confdefs.h. */
  22670. _ACEOF
  22671. cat confdefs.h >>conftest.$ac_ext
  22672. cat >>conftest.$ac_ext <<_ACEOF
  22673. /* end confdefs.h. */
  22674. $ac_includes_default
  22675. int
  22676. main ()
  22677. {
  22678. static int test_array [1 - 2 * !(((long int) (sizeof (char*))) <= $ac_mid)];
  22679. test_array [0] = 0
  22680. ;
  22681. return 0;
  22682. }
  22683. _ACEOF
  22684. rm -f conftest.$ac_objext
  22685. if { (ac_try="$ac_compile"
  22686. case "(($ac_try" in
  22687. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22688. *) ac_try_echo=$ac_try;;
  22689. esac
  22690. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22691. $as_echo "$ac_try_echo") >&5
  22692. (eval "$ac_compile") 2>conftest.er1
  22693. ac_status=$?
  22694. grep -v '^ *+' conftest.er1 >conftest.err
  22695. rm -f conftest.er1
  22696. cat conftest.err >&5
  22697. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22698. (exit $ac_status); } && {
  22699. test -z "$ac_c_werror_flag" ||
  22700. test ! -s conftest.err
  22701. } && test -s conftest.$ac_objext; then
  22702. ac_hi=$ac_mid
  22703. else
  22704. $as_echo "$as_me: failed program was:" >&5
  22705. sed 's/^/| /' conftest.$ac_ext >&5
  22706. ac_lo=`expr '(' $ac_mid ')' + 1`
  22707. fi
  22708. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22709. done
  22710. case $ac_lo in
  22711. ?*) ac_cv_sizeof_charp=$ac_lo;;
  22712. '') if test "$ac_cv_type_charp" = yes; then
  22713. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  22714. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  22715. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char*)
  22716. See \`config.log' for more details." >&5
  22717. $as_echo "$as_me: error: cannot compute sizeof (char*)
  22718. See \`config.log' for more details." >&2;}
  22719. { (exit 77); exit 77; }; }; }
  22720. else
  22721. ac_cv_sizeof_charp=0
  22722. fi ;;
  22723. esac
  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. $ac_includes_default
  22732. static long int longval () { return (long int) (sizeof (char*)); }
  22733. static unsigned long int ulongval () { return (long int) (sizeof (char*)); }
  22734. #include <stdio.h>
  22735. #include <stdlib.h>
  22736. int
  22737. main ()
  22738. {
  22739. FILE *f = fopen ("conftest.val", "w");
  22740. if (! f)
  22741. return 1;
  22742. if (((long int) (sizeof (char*))) < 0)
  22743. {
  22744. long int i = longval ();
  22745. if (i != ((long int) (sizeof (char*))))
  22746. return 1;
  22747. fprintf (f, "%ld", i);
  22748. }
  22749. else
  22750. {
  22751. unsigned long int i = ulongval ();
  22752. if (i != ((long int) (sizeof (char*))))
  22753. return 1;
  22754. fprintf (f, "%lu", i);
  22755. }
  22756. /* Do not output a trailing newline, as this causes \r\n confusion
  22757. on some platforms. */
  22758. return ferror (f) || fclose (f) != 0;
  22759. ;
  22760. return 0;
  22761. }
  22762. _ACEOF
  22763. rm -f conftest$ac_exeext
  22764. if { (ac_try="$ac_link"
  22765. case "(($ac_try" in
  22766. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22767. *) ac_try_echo=$ac_try;;
  22768. esac
  22769. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22770. $as_echo "$ac_try_echo") >&5
  22771. (eval "$ac_link") 2>&5
  22772. ac_status=$?
  22773. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22774. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  22775. { (case "(($ac_try" in
  22776. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22777. *) ac_try_echo=$ac_try;;
  22778. esac
  22779. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22780. $as_echo "$ac_try_echo") >&5
  22781. (eval "$ac_try") 2>&5
  22782. ac_status=$?
  22783. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22784. (exit $ac_status); }; }; then
  22785. ac_cv_sizeof_charp=`cat conftest.val`
  22786. else
  22787. $as_echo "$as_me: program exited with status $ac_status" >&5
  22788. $as_echo "$as_me: failed program was:" >&5
  22789. sed 's/^/| /' conftest.$ac_ext >&5
  22790. ( exit $ac_status )
  22791. if test "$ac_cv_type_charp" = yes; then
  22792. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  22793. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  22794. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char*)
  22795. See \`config.log' for more details." >&5
  22796. $as_echo "$as_me: error: cannot compute sizeof (char*)
  22797. See \`config.log' for more details." >&2;}
  22798. { (exit 77); exit 77; }; }; }
  22799. else
  22800. ac_cv_sizeof_charp=0
  22801. fi
  22802. fi
  22803. rm -rf conftest.dSYM
  22804. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  22805. fi
  22806. rm -f conftest.val
  22807. fi
  22808. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_charp" >&5
  22809. $as_echo "$ac_cv_sizeof_charp" >&6; }
  22810. cat >>confdefs.h <<_ACEOF
  22811. #define SIZEOF_CHARP $ac_cv_sizeof_charp
  22812. _ACEOF
  22813. # The cast to long int works around a bug in the HP C Compiler
  22814. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  22815. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  22816. # This bug is HP SR number 8606223364.
  22817. { $as_echo "$as_me:$LINENO: checking size of int" >&5
  22818. $as_echo_n "checking size of int... " >&6; }
  22819. if test "${ac_cv_sizeof_int+set}" = set; then
  22820. $as_echo_n "(cached) " >&6
  22821. else
  22822. if test "$cross_compiling" = yes; then
  22823. # Depending upon the size, compute the lo and hi bounds.
  22824. cat >conftest.$ac_ext <<_ACEOF
  22825. /* confdefs.h. */
  22826. _ACEOF
  22827. cat confdefs.h >>conftest.$ac_ext
  22828. cat >>conftest.$ac_ext <<_ACEOF
  22829. /* end confdefs.h. */
  22830. $ac_includes_default
  22831. int
  22832. main ()
  22833. {
  22834. static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
  22835. test_array [0] = 0
  22836. ;
  22837. return 0;
  22838. }
  22839. _ACEOF
  22840. rm -f conftest.$ac_objext
  22841. if { (ac_try="$ac_compile"
  22842. case "(($ac_try" in
  22843. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22844. *) ac_try_echo=$ac_try;;
  22845. esac
  22846. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22847. $as_echo "$ac_try_echo") >&5
  22848. (eval "$ac_compile") 2>conftest.er1
  22849. ac_status=$?
  22850. grep -v '^ *+' conftest.er1 >conftest.err
  22851. rm -f conftest.er1
  22852. cat conftest.err >&5
  22853. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22854. (exit $ac_status); } && {
  22855. test -z "$ac_c_werror_flag" ||
  22856. test ! -s conftest.err
  22857. } && test -s conftest.$ac_objext; then
  22858. ac_lo=0 ac_mid=0
  22859. while :; do
  22860. cat >conftest.$ac_ext <<_ACEOF
  22861. /* confdefs.h. */
  22862. _ACEOF
  22863. cat confdefs.h >>conftest.$ac_ext
  22864. cat >>conftest.$ac_ext <<_ACEOF
  22865. /* end confdefs.h. */
  22866. $ac_includes_default
  22867. int
  22868. main ()
  22869. {
  22870. static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
  22871. test_array [0] = 0
  22872. ;
  22873. return 0;
  22874. }
  22875. _ACEOF
  22876. rm -f conftest.$ac_objext
  22877. if { (ac_try="$ac_compile"
  22878. case "(($ac_try" in
  22879. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22880. *) ac_try_echo=$ac_try;;
  22881. esac
  22882. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22883. $as_echo "$ac_try_echo") >&5
  22884. (eval "$ac_compile") 2>conftest.er1
  22885. ac_status=$?
  22886. grep -v '^ *+' conftest.er1 >conftest.err
  22887. rm -f conftest.er1
  22888. cat conftest.err >&5
  22889. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22890. (exit $ac_status); } && {
  22891. test -z "$ac_c_werror_flag" ||
  22892. test ! -s conftest.err
  22893. } && test -s conftest.$ac_objext; then
  22894. ac_hi=$ac_mid; break
  22895. else
  22896. $as_echo "$as_me: failed program was:" >&5
  22897. sed 's/^/| /' conftest.$ac_ext >&5
  22898. ac_lo=`expr $ac_mid + 1`
  22899. if test $ac_lo -le $ac_mid; then
  22900. ac_lo= ac_hi=
  22901. break
  22902. fi
  22903. ac_mid=`expr 2 '*' $ac_mid + 1`
  22904. fi
  22905. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22906. done
  22907. else
  22908. $as_echo "$as_me: failed program was:" >&5
  22909. sed 's/^/| /' conftest.$ac_ext >&5
  22910. cat >conftest.$ac_ext <<_ACEOF
  22911. /* confdefs.h. */
  22912. _ACEOF
  22913. cat confdefs.h >>conftest.$ac_ext
  22914. cat >>conftest.$ac_ext <<_ACEOF
  22915. /* end confdefs.h. */
  22916. $ac_includes_default
  22917. int
  22918. main ()
  22919. {
  22920. static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
  22921. test_array [0] = 0
  22922. ;
  22923. return 0;
  22924. }
  22925. _ACEOF
  22926. rm -f conftest.$ac_objext
  22927. if { (ac_try="$ac_compile"
  22928. case "(($ac_try" in
  22929. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22930. *) ac_try_echo=$ac_try;;
  22931. esac
  22932. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22933. $as_echo "$ac_try_echo") >&5
  22934. (eval "$ac_compile") 2>conftest.er1
  22935. ac_status=$?
  22936. grep -v '^ *+' conftest.er1 >conftest.err
  22937. rm -f conftest.er1
  22938. cat conftest.err >&5
  22939. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22940. (exit $ac_status); } && {
  22941. test -z "$ac_c_werror_flag" ||
  22942. test ! -s conftest.err
  22943. } && test -s conftest.$ac_objext; then
  22944. ac_hi=-1 ac_mid=-1
  22945. while :; do
  22946. cat >conftest.$ac_ext <<_ACEOF
  22947. /* confdefs.h. */
  22948. _ACEOF
  22949. cat confdefs.h >>conftest.$ac_ext
  22950. cat >>conftest.$ac_ext <<_ACEOF
  22951. /* end confdefs.h. */
  22952. $ac_includes_default
  22953. int
  22954. main ()
  22955. {
  22956. static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
  22957. test_array [0] = 0
  22958. ;
  22959. return 0;
  22960. }
  22961. _ACEOF
  22962. rm -f conftest.$ac_objext
  22963. if { (ac_try="$ac_compile"
  22964. case "(($ac_try" in
  22965. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22966. *) ac_try_echo=$ac_try;;
  22967. esac
  22968. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22969. $as_echo "$ac_try_echo") >&5
  22970. (eval "$ac_compile") 2>conftest.er1
  22971. ac_status=$?
  22972. grep -v '^ *+' conftest.er1 >conftest.err
  22973. rm -f conftest.er1
  22974. cat conftest.err >&5
  22975. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22976. (exit $ac_status); } && {
  22977. test -z "$ac_c_werror_flag" ||
  22978. test ! -s conftest.err
  22979. } && test -s conftest.$ac_objext; then
  22980. ac_lo=$ac_mid; break
  22981. else
  22982. $as_echo "$as_me: failed program was:" >&5
  22983. sed 's/^/| /' conftest.$ac_ext >&5
  22984. ac_hi=`expr '(' $ac_mid ')' - 1`
  22985. if test $ac_mid -le $ac_hi; then
  22986. ac_lo= ac_hi=
  22987. break
  22988. fi
  22989. ac_mid=`expr 2 '*' $ac_mid`
  22990. fi
  22991. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22992. done
  22993. else
  22994. $as_echo "$as_me: failed program was:" >&5
  22995. sed 's/^/| /' conftest.$ac_ext >&5
  22996. ac_lo= ac_hi=
  22997. fi
  22998. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22999. fi
  23000. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23001. # Binary search between lo and hi bounds.
  23002. while test "x$ac_lo" != "x$ac_hi"; do
  23003. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  23004. cat >conftest.$ac_ext <<_ACEOF
  23005. /* confdefs.h. */
  23006. _ACEOF
  23007. cat confdefs.h >>conftest.$ac_ext
  23008. cat >>conftest.$ac_ext <<_ACEOF
  23009. /* end confdefs.h. */
  23010. $ac_includes_default
  23011. int
  23012. main ()
  23013. {
  23014. static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
  23015. test_array [0] = 0
  23016. ;
  23017. return 0;
  23018. }
  23019. _ACEOF
  23020. rm -f conftest.$ac_objext
  23021. if { (ac_try="$ac_compile"
  23022. case "(($ac_try" in
  23023. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23024. *) ac_try_echo=$ac_try;;
  23025. esac
  23026. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23027. $as_echo "$ac_try_echo") >&5
  23028. (eval "$ac_compile") 2>conftest.er1
  23029. ac_status=$?
  23030. grep -v '^ *+' conftest.er1 >conftest.err
  23031. rm -f conftest.er1
  23032. cat conftest.err >&5
  23033. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23034. (exit $ac_status); } && {
  23035. test -z "$ac_c_werror_flag" ||
  23036. test ! -s conftest.err
  23037. } && test -s conftest.$ac_objext; then
  23038. ac_hi=$ac_mid
  23039. else
  23040. $as_echo "$as_me: failed program was:" >&5
  23041. sed 's/^/| /' conftest.$ac_ext >&5
  23042. ac_lo=`expr '(' $ac_mid ')' + 1`
  23043. fi
  23044. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23045. done
  23046. case $ac_lo in
  23047. ?*) ac_cv_sizeof_int=$ac_lo;;
  23048. '') if test "$ac_cv_type_int" = yes; then
  23049. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  23050. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  23051. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  23052. See \`config.log' for more details." >&5
  23053. $as_echo "$as_me: error: cannot compute sizeof (int)
  23054. See \`config.log' for more details." >&2;}
  23055. { (exit 77); exit 77; }; }; }
  23056. else
  23057. ac_cv_sizeof_int=0
  23058. fi ;;
  23059. esac
  23060. else
  23061. cat >conftest.$ac_ext <<_ACEOF
  23062. /* confdefs.h. */
  23063. _ACEOF
  23064. cat confdefs.h >>conftest.$ac_ext
  23065. cat >>conftest.$ac_ext <<_ACEOF
  23066. /* end confdefs.h. */
  23067. $ac_includes_default
  23068. static long int longval () { return (long int) (sizeof (int)); }
  23069. static unsigned long int ulongval () { return (long int) (sizeof (int)); }
  23070. #include <stdio.h>
  23071. #include <stdlib.h>
  23072. int
  23073. main ()
  23074. {
  23075. FILE *f = fopen ("conftest.val", "w");
  23076. if (! f)
  23077. return 1;
  23078. if (((long int) (sizeof (int))) < 0)
  23079. {
  23080. long int i = longval ();
  23081. if (i != ((long int) (sizeof (int))))
  23082. return 1;
  23083. fprintf (f, "%ld", i);
  23084. }
  23085. else
  23086. {
  23087. unsigned long int i = ulongval ();
  23088. if (i != ((long int) (sizeof (int))))
  23089. return 1;
  23090. fprintf (f, "%lu", i);
  23091. }
  23092. /* Do not output a trailing newline, as this causes \r\n confusion
  23093. on some platforms. */
  23094. return ferror (f) || fclose (f) != 0;
  23095. ;
  23096. return 0;
  23097. }
  23098. _ACEOF
  23099. rm -f conftest$ac_exeext
  23100. if { (ac_try="$ac_link"
  23101. case "(($ac_try" in
  23102. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23103. *) ac_try_echo=$ac_try;;
  23104. esac
  23105. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23106. $as_echo "$ac_try_echo") >&5
  23107. (eval "$ac_link") 2>&5
  23108. ac_status=$?
  23109. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23110. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  23111. { (case "(($ac_try" in
  23112. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23113. *) ac_try_echo=$ac_try;;
  23114. esac
  23115. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23116. $as_echo "$ac_try_echo") >&5
  23117. (eval "$ac_try") 2>&5
  23118. ac_status=$?
  23119. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23120. (exit $ac_status); }; }; then
  23121. ac_cv_sizeof_int=`cat conftest.val`
  23122. else
  23123. $as_echo "$as_me: program exited with status $ac_status" >&5
  23124. $as_echo "$as_me: failed program was:" >&5
  23125. sed 's/^/| /' conftest.$ac_ext >&5
  23126. ( exit $ac_status )
  23127. if test "$ac_cv_type_int" = yes; then
  23128. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  23129. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  23130. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  23131. See \`config.log' for more details." >&5
  23132. $as_echo "$as_me: error: cannot compute sizeof (int)
  23133. See \`config.log' for more details." >&2;}
  23134. { (exit 77); exit 77; }; }; }
  23135. else
  23136. ac_cv_sizeof_int=0
  23137. fi
  23138. fi
  23139. rm -rf conftest.dSYM
  23140. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  23141. fi
  23142. rm -f conftest.val
  23143. fi
  23144. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  23145. $as_echo "$ac_cv_sizeof_int" >&6; }
  23146. cat >>confdefs.h <<_ACEOF
  23147. #define SIZEOF_INT $ac_cv_sizeof_int
  23148. _ACEOF
  23149. # The cast to long int works around a bug in the HP C Compiler
  23150. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  23151. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  23152. # This bug is HP SR number 8606223364.
  23153. { $as_echo "$as_me:$LINENO: checking size of long" >&5
  23154. $as_echo_n "checking size of long... " >&6; }
  23155. if test "${ac_cv_sizeof_long+set}" = set; then
  23156. $as_echo_n "(cached) " >&6
  23157. else
  23158. if test "$cross_compiling" = yes; then
  23159. # Depending upon the size, compute the lo and hi bounds.
  23160. cat >conftest.$ac_ext <<_ACEOF
  23161. /* confdefs.h. */
  23162. _ACEOF
  23163. cat confdefs.h >>conftest.$ac_ext
  23164. cat >>conftest.$ac_ext <<_ACEOF
  23165. /* end confdefs.h. */
  23166. $ac_includes_default
  23167. int
  23168. main ()
  23169. {
  23170. static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
  23171. test_array [0] = 0
  23172. ;
  23173. return 0;
  23174. }
  23175. _ACEOF
  23176. rm -f conftest.$ac_objext
  23177. if { (ac_try="$ac_compile"
  23178. case "(($ac_try" in
  23179. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23180. *) ac_try_echo=$ac_try;;
  23181. esac
  23182. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23183. $as_echo "$ac_try_echo") >&5
  23184. (eval "$ac_compile") 2>conftest.er1
  23185. ac_status=$?
  23186. grep -v '^ *+' conftest.er1 >conftest.err
  23187. rm -f conftest.er1
  23188. cat conftest.err >&5
  23189. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23190. (exit $ac_status); } && {
  23191. test -z "$ac_c_werror_flag" ||
  23192. test ! -s conftest.err
  23193. } && test -s conftest.$ac_objext; then
  23194. ac_lo=0 ac_mid=0
  23195. while :; do
  23196. cat >conftest.$ac_ext <<_ACEOF
  23197. /* confdefs.h. */
  23198. _ACEOF
  23199. cat confdefs.h >>conftest.$ac_ext
  23200. cat >>conftest.$ac_ext <<_ACEOF
  23201. /* end confdefs.h. */
  23202. $ac_includes_default
  23203. int
  23204. main ()
  23205. {
  23206. static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
  23207. test_array [0] = 0
  23208. ;
  23209. return 0;
  23210. }
  23211. _ACEOF
  23212. rm -f conftest.$ac_objext
  23213. if { (ac_try="$ac_compile"
  23214. case "(($ac_try" in
  23215. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23216. *) ac_try_echo=$ac_try;;
  23217. esac
  23218. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23219. $as_echo "$ac_try_echo") >&5
  23220. (eval "$ac_compile") 2>conftest.er1
  23221. ac_status=$?
  23222. grep -v '^ *+' conftest.er1 >conftest.err
  23223. rm -f conftest.er1
  23224. cat conftest.err >&5
  23225. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23226. (exit $ac_status); } && {
  23227. test -z "$ac_c_werror_flag" ||
  23228. test ! -s conftest.err
  23229. } && test -s conftest.$ac_objext; then
  23230. ac_hi=$ac_mid; break
  23231. else
  23232. $as_echo "$as_me: failed program was:" >&5
  23233. sed 's/^/| /' conftest.$ac_ext >&5
  23234. ac_lo=`expr $ac_mid + 1`
  23235. if test $ac_lo -le $ac_mid; then
  23236. ac_lo= ac_hi=
  23237. break
  23238. fi
  23239. ac_mid=`expr 2 '*' $ac_mid + 1`
  23240. fi
  23241. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23242. done
  23243. else
  23244. $as_echo "$as_me: failed program was:" >&5
  23245. sed 's/^/| /' conftest.$ac_ext >&5
  23246. cat >conftest.$ac_ext <<_ACEOF
  23247. /* confdefs.h. */
  23248. _ACEOF
  23249. cat confdefs.h >>conftest.$ac_ext
  23250. cat >>conftest.$ac_ext <<_ACEOF
  23251. /* end confdefs.h. */
  23252. $ac_includes_default
  23253. int
  23254. main ()
  23255. {
  23256. static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
  23257. test_array [0] = 0
  23258. ;
  23259. return 0;
  23260. }
  23261. _ACEOF
  23262. rm -f conftest.$ac_objext
  23263. if { (ac_try="$ac_compile"
  23264. case "(($ac_try" in
  23265. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23266. *) ac_try_echo=$ac_try;;
  23267. esac
  23268. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23269. $as_echo "$ac_try_echo") >&5
  23270. (eval "$ac_compile") 2>conftest.er1
  23271. ac_status=$?
  23272. grep -v '^ *+' conftest.er1 >conftest.err
  23273. rm -f conftest.er1
  23274. cat conftest.err >&5
  23275. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23276. (exit $ac_status); } && {
  23277. test -z "$ac_c_werror_flag" ||
  23278. test ! -s conftest.err
  23279. } && test -s conftest.$ac_objext; then
  23280. ac_hi=-1 ac_mid=-1
  23281. while :; do
  23282. cat >conftest.$ac_ext <<_ACEOF
  23283. /* confdefs.h. */
  23284. _ACEOF
  23285. cat confdefs.h >>conftest.$ac_ext
  23286. cat >>conftest.$ac_ext <<_ACEOF
  23287. /* end confdefs.h. */
  23288. $ac_includes_default
  23289. int
  23290. main ()
  23291. {
  23292. static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
  23293. test_array [0] = 0
  23294. ;
  23295. return 0;
  23296. }
  23297. _ACEOF
  23298. rm -f conftest.$ac_objext
  23299. if { (ac_try="$ac_compile"
  23300. case "(($ac_try" in
  23301. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23302. *) ac_try_echo=$ac_try;;
  23303. esac
  23304. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23305. $as_echo "$ac_try_echo") >&5
  23306. (eval "$ac_compile") 2>conftest.er1
  23307. ac_status=$?
  23308. grep -v '^ *+' conftest.er1 >conftest.err
  23309. rm -f conftest.er1
  23310. cat conftest.err >&5
  23311. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23312. (exit $ac_status); } && {
  23313. test -z "$ac_c_werror_flag" ||
  23314. test ! -s conftest.err
  23315. } && test -s conftest.$ac_objext; then
  23316. ac_lo=$ac_mid; break
  23317. else
  23318. $as_echo "$as_me: failed program was:" >&5
  23319. sed 's/^/| /' conftest.$ac_ext >&5
  23320. ac_hi=`expr '(' $ac_mid ')' - 1`
  23321. if test $ac_mid -le $ac_hi; then
  23322. ac_lo= ac_hi=
  23323. break
  23324. fi
  23325. ac_mid=`expr 2 '*' $ac_mid`
  23326. fi
  23327. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23328. done
  23329. else
  23330. $as_echo "$as_me: failed program was:" >&5
  23331. sed 's/^/| /' conftest.$ac_ext >&5
  23332. ac_lo= ac_hi=
  23333. fi
  23334. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23335. fi
  23336. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23337. # Binary search between lo and hi bounds.
  23338. while test "x$ac_lo" != "x$ac_hi"; do
  23339. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  23340. cat >conftest.$ac_ext <<_ACEOF
  23341. /* confdefs.h. */
  23342. _ACEOF
  23343. cat confdefs.h >>conftest.$ac_ext
  23344. cat >>conftest.$ac_ext <<_ACEOF
  23345. /* end confdefs.h. */
  23346. $ac_includes_default
  23347. int
  23348. main ()
  23349. {
  23350. static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
  23351. test_array [0] = 0
  23352. ;
  23353. return 0;
  23354. }
  23355. _ACEOF
  23356. rm -f conftest.$ac_objext
  23357. if { (ac_try="$ac_compile"
  23358. case "(($ac_try" in
  23359. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23360. *) ac_try_echo=$ac_try;;
  23361. esac
  23362. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23363. $as_echo "$ac_try_echo") >&5
  23364. (eval "$ac_compile") 2>conftest.er1
  23365. ac_status=$?
  23366. grep -v '^ *+' conftest.er1 >conftest.err
  23367. rm -f conftest.er1
  23368. cat conftest.err >&5
  23369. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23370. (exit $ac_status); } && {
  23371. test -z "$ac_c_werror_flag" ||
  23372. test ! -s conftest.err
  23373. } && test -s conftest.$ac_objext; then
  23374. ac_hi=$ac_mid
  23375. else
  23376. $as_echo "$as_me: failed program was:" >&5
  23377. sed 's/^/| /' conftest.$ac_ext >&5
  23378. ac_lo=`expr '(' $ac_mid ')' + 1`
  23379. fi
  23380. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23381. done
  23382. case $ac_lo in
  23383. ?*) ac_cv_sizeof_long=$ac_lo;;
  23384. '') if test "$ac_cv_type_long" = yes; then
  23385. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  23386. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  23387. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  23388. See \`config.log' for more details." >&5
  23389. $as_echo "$as_me: error: cannot compute sizeof (long)
  23390. See \`config.log' for more details." >&2;}
  23391. { (exit 77); exit 77; }; }; }
  23392. else
  23393. ac_cv_sizeof_long=0
  23394. fi ;;
  23395. esac
  23396. else
  23397. cat >conftest.$ac_ext <<_ACEOF
  23398. /* confdefs.h. */
  23399. _ACEOF
  23400. cat confdefs.h >>conftest.$ac_ext
  23401. cat >>conftest.$ac_ext <<_ACEOF
  23402. /* end confdefs.h. */
  23403. $ac_includes_default
  23404. static long int longval () { return (long int) (sizeof (long)); }
  23405. static unsigned long int ulongval () { return (long int) (sizeof (long)); }
  23406. #include <stdio.h>
  23407. #include <stdlib.h>
  23408. int
  23409. main ()
  23410. {
  23411. FILE *f = fopen ("conftest.val", "w");
  23412. if (! f)
  23413. return 1;
  23414. if (((long int) (sizeof (long))) < 0)
  23415. {
  23416. long int i = longval ();
  23417. if (i != ((long int) (sizeof (long))))
  23418. return 1;
  23419. fprintf (f, "%ld", i);
  23420. }
  23421. else
  23422. {
  23423. unsigned long int i = ulongval ();
  23424. if (i != ((long int) (sizeof (long))))
  23425. return 1;
  23426. fprintf (f, "%lu", i);
  23427. }
  23428. /* Do not output a trailing newline, as this causes \r\n confusion
  23429. on some platforms. */
  23430. return ferror (f) || fclose (f) != 0;
  23431. ;
  23432. return 0;
  23433. }
  23434. _ACEOF
  23435. rm -f conftest$ac_exeext
  23436. if { (ac_try="$ac_link"
  23437. case "(($ac_try" in
  23438. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23439. *) ac_try_echo=$ac_try;;
  23440. esac
  23441. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23442. $as_echo "$ac_try_echo") >&5
  23443. (eval "$ac_link") 2>&5
  23444. ac_status=$?
  23445. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23446. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  23447. { (case "(($ac_try" in
  23448. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23449. *) ac_try_echo=$ac_try;;
  23450. esac
  23451. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23452. $as_echo "$ac_try_echo") >&5
  23453. (eval "$ac_try") 2>&5
  23454. ac_status=$?
  23455. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23456. (exit $ac_status); }; }; then
  23457. ac_cv_sizeof_long=`cat conftest.val`
  23458. else
  23459. $as_echo "$as_me: program exited with status $ac_status" >&5
  23460. $as_echo "$as_me: failed program was:" >&5
  23461. sed 's/^/| /' conftest.$ac_ext >&5
  23462. ( exit $ac_status )
  23463. if test "$ac_cv_type_long" = yes; then
  23464. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  23465. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  23466. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  23467. See \`config.log' for more details." >&5
  23468. $as_echo "$as_me: error: cannot compute sizeof (long)
  23469. See \`config.log' for more details." >&2;}
  23470. { (exit 77); exit 77; }; }; }
  23471. else
  23472. ac_cv_sizeof_long=0
  23473. fi
  23474. fi
  23475. rm -rf conftest.dSYM
  23476. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  23477. fi
  23478. rm -f conftest.val
  23479. fi
  23480. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  23481. $as_echo "$ac_cv_sizeof_long" >&6; }
  23482. cat >>confdefs.h <<_ACEOF
  23483. #define SIZEOF_LONG $ac_cv_sizeof_long
  23484. _ACEOF
  23485. # The cast to long int works around a bug in the HP C Compiler
  23486. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  23487. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  23488. # This bug is HP SR number 8606223364.
  23489. { $as_echo "$as_me:$LINENO: checking size of short" >&5
  23490. $as_echo_n "checking size of short... " >&6; }
  23491. if test "${ac_cv_sizeof_short+set}" = set; then
  23492. $as_echo_n "(cached) " >&6
  23493. else
  23494. if test "$cross_compiling" = yes; then
  23495. # Depending upon the size, compute the lo and hi bounds.
  23496. cat >conftest.$ac_ext <<_ACEOF
  23497. /* confdefs.h. */
  23498. _ACEOF
  23499. cat confdefs.h >>conftest.$ac_ext
  23500. cat >>conftest.$ac_ext <<_ACEOF
  23501. /* end confdefs.h. */
  23502. $ac_includes_default
  23503. int
  23504. main ()
  23505. {
  23506. static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
  23507. test_array [0] = 0
  23508. ;
  23509. return 0;
  23510. }
  23511. _ACEOF
  23512. rm -f conftest.$ac_objext
  23513. if { (ac_try="$ac_compile"
  23514. case "(($ac_try" in
  23515. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23516. *) ac_try_echo=$ac_try;;
  23517. esac
  23518. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23519. $as_echo "$ac_try_echo") >&5
  23520. (eval "$ac_compile") 2>conftest.er1
  23521. ac_status=$?
  23522. grep -v '^ *+' conftest.er1 >conftest.err
  23523. rm -f conftest.er1
  23524. cat conftest.err >&5
  23525. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23526. (exit $ac_status); } && {
  23527. test -z "$ac_c_werror_flag" ||
  23528. test ! -s conftest.err
  23529. } && test -s conftest.$ac_objext; then
  23530. ac_lo=0 ac_mid=0
  23531. while :; do
  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. int
  23540. main ()
  23541. {
  23542. static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
  23543. test_array [0] = 0
  23544. ;
  23545. return 0;
  23546. }
  23547. _ACEOF
  23548. rm -f conftest.$ac_objext
  23549. if { (ac_try="$ac_compile"
  23550. case "(($ac_try" in
  23551. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23552. *) ac_try_echo=$ac_try;;
  23553. esac
  23554. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23555. $as_echo "$ac_try_echo") >&5
  23556. (eval "$ac_compile") 2>conftest.er1
  23557. ac_status=$?
  23558. grep -v '^ *+' conftest.er1 >conftest.err
  23559. rm -f conftest.er1
  23560. cat conftest.err >&5
  23561. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23562. (exit $ac_status); } && {
  23563. test -z "$ac_c_werror_flag" ||
  23564. test ! -s conftest.err
  23565. } && test -s conftest.$ac_objext; then
  23566. ac_hi=$ac_mid; break
  23567. else
  23568. $as_echo "$as_me: failed program was:" >&5
  23569. sed 's/^/| /' conftest.$ac_ext >&5
  23570. ac_lo=`expr $ac_mid + 1`
  23571. if test $ac_lo -le $ac_mid; then
  23572. ac_lo= ac_hi=
  23573. break
  23574. fi
  23575. ac_mid=`expr 2 '*' $ac_mid + 1`
  23576. fi
  23577. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23578. done
  23579. else
  23580. $as_echo "$as_me: failed program was:" >&5
  23581. sed 's/^/| /' conftest.$ac_ext >&5
  23582. cat >conftest.$ac_ext <<_ACEOF
  23583. /* confdefs.h. */
  23584. _ACEOF
  23585. cat confdefs.h >>conftest.$ac_ext
  23586. cat >>conftest.$ac_ext <<_ACEOF
  23587. /* end confdefs.h. */
  23588. $ac_includes_default
  23589. int
  23590. main ()
  23591. {
  23592. static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
  23593. test_array [0] = 0
  23594. ;
  23595. return 0;
  23596. }
  23597. _ACEOF
  23598. rm -f conftest.$ac_objext
  23599. if { (ac_try="$ac_compile"
  23600. case "(($ac_try" in
  23601. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23602. *) ac_try_echo=$ac_try;;
  23603. esac
  23604. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23605. $as_echo "$ac_try_echo") >&5
  23606. (eval "$ac_compile") 2>conftest.er1
  23607. ac_status=$?
  23608. grep -v '^ *+' conftest.er1 >conftest.err
  23609. rm -f conftest.er1
  23610. cat conftest.err >&5
  23611. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23612. (exit $ac_status); } && {
  23613. test -z "$ac_c_werror_flag" ||
  23614. test ! -s conftest.err
  23615. } && test -s conftest.$ac_objext; then
  23616. ac_hi=-1 ac_mid=-1
  23617. while :; do
  23618. cat >conftest.$ac_ext <<_ACEOF
  23619. /* confdefs.h. */
  23620. _ACEOF
  23621. cat confdefs.h >>conftest.$ac_ext
  23622. cat >>conftest.$ac_ext <<_ACEOF
  23623. /* end confdefs.h. */
  23624. $ac_includes_default
  23625. int
  23626. main ()
  23627. {
  23628. static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
  23629. test_array [0] = 0
  23630. ;
  23631. return 0;
  23632. }
  23633. _ACEOF
  23634. rm -f conftest.$ac_objext
  23635. if { (ac_try="$ac_compile"
  23636. case "(($ac_try" in
  23637. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23638. *) ac_try_echo=$ac_try;;
  23639. esac
  23640. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23641. $as_echo "$ac_try_echo") >&5
  23642. (eval "$ac_compile") 2>conftest.er1
  23643. ac_status=$?
  23644. grep -v '^ *+' conftest.er1 >conftest.err
  23645. rm -f conftest.er1
  23646. cat conftest.err >&5
  23647. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23648. (exit $ac_status); } && {
  23649. test -z "$ac_c_werror_flag" ||
  23650. test ! -s conftest.err
  23651. } && test -s conftest.$ac_objext; then
  23652. ac_lo=$ac_mid; break
  23653. else
  23654. $as_echo "$as_me: failed program was:" >&5
  23655. sed 's/^/| /' conftest.$ac_ext >&5
  23656. ac_hi=`expr '(' $ac_mid ')' - 1`
  23657. if test $ac_mid -le $ac_hi; then
  23658. ac_lo= ac_hi=
  23659. break
  23660. fi
  23661. ac_mid=`expr 2 '*' $ac_mid`
  23662. fi
  23663. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23664. done
  23665. else
  23666. $as_echo "$as_me: failed program was:" >&5
  23667. sed 's/^/| /' conftest.$ac_ext >&5
  23668. ac_lo= ac_hi=
  23669. fi
  23670. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23671. fi
  23672. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23673. # Binary search between lo and hi bounds.
  23674. while test "x$ac_lo" != "x$ac_hi"; do
  23675. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  23676. cat >conftest.$ac_ext <<_ACEOF
  23677. /* confdefs.h. */
  23678. _ACEOF
  23679. cat confdefs.h >>conftest.$ac_ext
  23680. cat >>conftest.$ac_ext <<_ACEOF
  23681. /* end confdefs.h. */
  23682. $ac_includes_default
  23683. int
  23684. main ()
  23685. {
  23686. static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
  23687. test_array [0] = 0
  23688. ;
  23689. return 0;
  23690. }
  23691. _ACEOF
  23692. rm -f conftest.$ac_objext
  23693. if { (ac_try="$ac_compile"
  23694. case "(($ac_try" in
  23695. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23696. *) ac_try_echo=$ac_try;;
  23697. esac
  23698. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23699. $as_echo "$ac_try_echo") >&5
  23700. (eval "$ac_compile") 2>conftest.er1
  23701. ac_status=$?
  23702. grep -v '^ *+' conftest.er1 >conftest.err
  23703. rm -f conftest.er1
  23704. cat conftest.err >&5
  23705. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23706. (exit $ac_status); } && {
  23707. test -z "$ac_c_werror_flag" ||
  23708. test ! -s conftest.err
  23709. } && test -s conftest.$ac_objext; then
  23710. ac_hi=$ac_mid
  23711. else
  23712. $as_echo "$as_me: failed program was:" >&5
  23713. sed 's/^/| /' conftest.$ac_ext >&5
  23714. ac_lo=`expr '(' $ac_mid ')' + 1`
  23715. fi
  23716. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23717. done
  23718. case $ac_lo in
  23719. ?*) ac_cv_sizeof_short=$ac_lo;;
  23720. '') if test "$ac_cv_type_short" = yes; then
  23721. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  23722. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  23723. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
  23724. See \`config.log' for more details." >&5
  23725. $as_echo "$as_me: error: cannot compute sizeof (short)
  23726. See \`config.log' for more details." >&2;}
  23727. { (exit 77); exit 77; }; }; }
  23728. else
  23729. ac_cv_sizeof_short=0
  23730. fi ;;
  23731. esac
  23732. else
  23733. cat >conftest.$ac_ext <<_ACEOF
  23734. /* confdefs.h. */
  23735. _ACEOF
  23736. cat confdefs.h >>conftest.$ac_ext
  23737. cat >>conftest.$ac_ext <<_ACEOF
  23738. /* end confdefs.h. */
  23739. $ac_includes_default
  23740. static long int longval () { return (long int) (sizeof (short)); }
  23741. static unsigned long int ulongval () { return (long int) (sizeof (short)); }
  23742. #include <stdio.h>
  23743. #include <stdlib.h>
  23744. int
  23745. main ()
  23746. {
  23747. FILE *f = fopen ("conftest.val", "w");
  23748. if (! f)
  23749. return 1;
  23750. if (((long int) (sizeof (short))) < 0)
  23751. {
  23752. long int i = longval ();
  23753. if (i != ((long int) (sizeof (short))))
  23754. return 1;
  23755. fprintf (f, "%ld", i);
  23756. }
  23757. else
  23758. {
  23759. unsigned long int i = ulongval ();
  23760. if (i != ((long int) (sizeof (short))))
  23761. return 1;
  23762. fprintf (f, "%lu", i);
  23763. }
  23764. /* Do not output a trailing newline, as this causes \r\n confusion
  23765. on some platforms. */
  23766. return ferror (f) || fclose (f) != 0;
  23767. ;
  23768. return 0;
  23769. }
  23770. _ACEOF
  23771. rm -f conftest$ac_exeext
  23772. if { (ac_try="$ac_link"
  23773. case "(($ac_try" in
  23774. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23775. *) ac_try_echo=$ac_try;;
  23776. esac
  23777. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23778. $as_echo "$ac_try_echo") >&5
  23779. (eval "$ac_link") 2>&5
  23780. ac_status=$?
  23781. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23782. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  23783. { (case "(($ac_try" in
  23784. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23785. *) ac_try_echo=$ac_try;;
  23786. esac
  23787. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23788. $as_echo "$ac_try_echo") >&5
  23789. (eval "$ac_try") 2>&5
  23790. ac_status=$?
  23791. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23792. (exit $ac_status); }; }; then
  23793. ac_cv_sizeof_short=`cat conftest.val`
  23794. else
  23795. $as_echo "$as_me: program exited with status $ac_status" >&5
  23796. $as_echo "$as_me: failed program was:" >&5
  23797. sed 's/^/| /' conftest.$ac_ext >&5
  23798. ( exit $ac_status )
  23799. if test "$ac_cv_type_short" = yes; then
  23800. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  23801. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  23802. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
  23803. See \`config.log' for more details." >&5
  23804. $as_echo "$as_me: error: cannot compute sizeof (short)
  23805. See \`config.log' for more details." >&2;}
  23806. { (exit 77); exit 77; }; }; }
  23807. else
  23808. ac_cv_sizeof_short=0
  23809. fi
  23810. fi
  23811. rm -rf conftest.dSYM
  23812. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  23813. fi
  23814. rm -f conftest.val
  23815. fi
  23816. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
  23817. $as_echo "$ac_cv_sizeof_short" >&6; }
  23818. cat >>confdefs.h <<_ACEOF
  23819. #define SIZEOF_SHORT $ac_cv_sizeof_short
  23820. _ACEOF
  23821. # ----------------------------------------------------------------------
  23822. # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind.
  23823. # ----------------------------------------------------------------------
  23824. { $as_echo "$as_me:$LINENO: checking for pathfind in -lgen" >&5
  23825. $as_echo_n "checking for pathfind in -lgen... " >&6; }
  23826. if test "${ac_cv_lib_gen_pathfind+set}" = set; then
  23827. $as_echo_n "(cached) " >&6
  23828. else
  23829. ac_check_lib_save_LIBS=$LIBS
  23830. LIBS="-lgen $LIBS"
  23831. cat >conftest.$ac_ext <<_ACEOF
  23832. /* confdefs.h. */
  23833. _ACEOF
  23834. cat confdefs.h >>conftest.$ac_ext
  23835. cat >>conftest.$ac_ext <<_ACEOF
  23836. /* end confdefs.h. */
  23837. /* Override any GCC internal prototype to avoid an error.
  23838. Use char because int might match the return type of a GCC
  23839. builtin and then its argument prototype would still apply. */
  23840. #ifdef __cplusplus
  23841. extern "C"
  23842. #endif
  23843. char pathfind ();
  23844. int
  23845. main ()
  23846. {
  23847. return pathfind ();
  23848. ;
  23849. return 0;
  23850. }
  23851. _ACEOF
  23852. rm -f conftest.$ac_objext conftest$ac_exeext
  23853. if { (ac_try="$ac_link"
  23854. case "(($ac_try" in
  23855. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23856. *) ac_try_echo=$ac_try;;
  23857. esac
  23858. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23859. $as_echo "$ac_try_echo") >&5
  23860. (eval "$ac_link") 2>conftest.er1
  23861. ac_status=$?
  23862. grep -v '^ *+' conftest.er1 >conftest.err
  23863. rm -f conftest.er1
  23864. cat conftest.err >&5
  23865. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23866. (exit $ac_status); } && {
  23867. test -z "$ac_c_werror_flag" ||
  23868. test ! -s conftest.err
  23869. } && test -s conftest$ac_exeext && {
  23870. test "$cross_compiling" = yes ||
  23871. $as_test_x conftest$ac_exeext
  23872. }; then
  23873. ac_cv_lib_gen_pathfind=yes
  23874. else
  23875. $as_echo "$as_me: failed program was:" >&5
  23876. sed 's/^/| /' conftest.$ac_ext >&5
  23877. ac_cv_lib_gen_pathfind=no
  23878. fi
  23879. rm -rf conftest.dSYM
  23880. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  23881. conftest$ac_exeext conftest.$ac_ext
  23882. LIBS=$ac_check_lib_save_LIBS
  23883. fi
  23884. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gen_pathfind" >&5
  23885. $as_echo "$ac_cv_lib_gen_pathfind" >&6; }
  23886. if test "x$ac_cv_lib_gen_pathfind" = x""yes; then
  23887. cat >>confdefs.h <<_ACEOF
  23888. #define HAVE_LIBGEN 1
  23889. _ACEOF
  23890. LIBS="-lgen $LIBS"
  23891. fi
  23892. for ac_func in vprintf
  23893. do
  23894. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  23895. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  23896. $as_echo_n "checking for $ac_func... " >&6; }
  23897. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  23898. $as_echo_n "(cached) " >&6
  23899. else
  23900. cat >conftest.$ac_ext <<_ACEOF
  23901. /* confdefs.h. */
  23902. _ACEOF
  23903. cat confdefs.h >>conftest.$ac_ext
  23904. cat >>conftest.$ac_ext <<_ACEOF
  23905. /* end confdefs.h. */
  23906. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  23907. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  23908. #define $ac_func innocuous_$ac_func
  23909. /* System header to define __stub macros and hopefully few prototypes,
  23910. which can conflict with char $ac_func (); below.
  23911. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  23912. <limits.h> exists even on freestanding compilers. */
  23913. #ifdef __STDC__
  23914. # include <limits.h>
  23915. #else
  23916. # include <assert.h>
  23917. #endif
  23918. #undef $ac_func
  23919. /* Override any GCC internal prototype to avoid an error.
  23920. Use char because int might match the return type of a GCC
  23921. builtin and then its argument prototype would still apply. */
  23922. #ifdef __cplusplus
  23923. extern "C"
  23924. #endif
  23925. char $ac_func ();
  23926. /* The GNU C library defines this for functions which it implements
  23927. to always fail with ENOSYS. Some functions are actually named
  23928. something starting with __ and the normal name is an alias. */
  23929. #if defined __stub_$ac_func || defined __stub___$ac_func
  23930. choke me
  23931. #endif
  23932. int
  23933. main ()
  23934. {
  23935. return $ac_func ();
  23936. ;
  23937. return 0;
  23938. }
  23939. _ACEOF
  23940. rm -f conftest.$ac_objext conftest$ac_exeext
  23941. if { (ac_try="$ac_link"
  23942. case "(($ac_try" in
  23943. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23944. *) ac_try_echo=$ac_try;;
  23945. esac
  23946. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23947. $as_echo "$ac_try_echo") >&5
  23948. (eval "$ac_link") 2>conftest.er1
  23949. ac_status=$?
  23950. grep -v '^ *+' conftest.er1 >conftest.err
  23951. rm -f conftest.er1
  23952. cat conftest.err >&5
  23953. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23954. (exit $ac_status); } && {
  23955. test -z "$ac_c_werror_flag" ||
  23956. test ! -s conftest.err
  23957. } && test -s conftest$ac_exeext && {
  23958. test "$cross_compiling" = yes ||
  23959. $as_test_x conftest$ac_exeext
  23960. }; then
  23961. eval "$as_ac_var=yes"
  23962. else
  23963. $as_echo "$as_me: failed program was:" >&5
  23964. sed 's/^/| /' conftest.$ac_ext >&5
  23965. eval "$as_ac_var=no"
  23966. fi
  23967. rm -rf conftest.dSYM
  23968. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  23969. conftest$ac_exeext conftest.$ac_ext
  23970. fi
  23971. ac_res=`eval 'as_val=${'$as_ac_var'}
  23972. $as_echo "$as_val"'`
  23973. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  23974. $as_echo "$ac_res" >&6; }
  23975. as_val=`eval 'as_val=${'$as_ac_var'}
  23976. $as_echo "$as_val"'`
  23977. if test "x$as_val" = x""yes; then
  23978. cat >>confdefs.h <<_ACEOF
  23979. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  23980. _ACEOF
  23981. { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
  23982. $as_echo_n "checking for _doprnt... " >&6; }
  23983. if test "${ac_cv_func__doprnt+set}" = set; then
  23984. $as_echo_n "(cached) " >&6
  23985. else
  23986. cat >conftest.$ac_ext <<_ACEOF
  23987. /* confdefs.h. */
  23988. _ACEOF
  23989. cat confdefs.h >>conftest.$ac_ext
  23990. cat >>conftest.$ac_ext <<_ACEOF
  23991. /* end confdefs.h. */
  23992. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  23993. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  23994. #define _doprnt innocuous__doprnt
  23995. /* System header to define __stub macros and hopefully few prototypes,
  23996. which can conflict with char _doprnt (); below.
  23997. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  23998. <limits.h> exists even on freestanding compilers. */
  23999. #ifdef __STDC__
  24000. # include <limits.h>
  24001. #else
  24002. # include <assert.h>
  24003. #endif
  24004. #undef _doprnt
  24005. /* Override any GCC internal prototype to avoid an error.
  24006. Use char because int might match the return type of a GCC
  24007. builtin and then its argument prototype would still apply. */
  24008. #ifdef __cplusplus
  24009. extern "C"
  24010. #endif
  24011. char _doprnt ();
  24012. /* The GNU C library defines this for functions which it implements
  24013. to always fail with ENOSYS. Some functions are actually named
  24014. something starting with __ and the normal name is an alias. */
  24015. #if defined __stub__doprnt || defined __stub____doprnt
  24016. choke me
  24017. #endif
  24018. int
  24019. main ()
  24020. {
  24021. return _doprnt ();
  24022. ;
  24023. return 0;
  24024. }
  24025. _ACEOF
  24026. rm -f conftest.$ac_objext conftest$ac_exeext
  24027. if { (ac_try="$ac_link"
  24028. case "(($ac_try" in
  24029. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24030. *) ac_try_echo=$ac_try;;
  24031. esac
  24032. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24033. $as_echo "$ac_try_echo") >&5
  24034. (eval "$ac_link") 2>conftest.er1
  24035. ac_status=$?
  24036. grep -v '^ *+' conftest.er1 >conftest.err
  24037. rm -f conftest.er1
  24038. cat conftest.err >&5
  24039. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24040. (exit $ac_status); } && {
  24041. test -z "$ac_c_werror_flag" ||
  24042. test ! -s conftest.err
  24043. } && test -s conftest$ac_exeext && {
  24044. test "$cross_compiling" = yes ||
  24045. $as_test_x conftest$ac_exeext
  24046. }; then
  24047. ac_cv_func__doprnt=yes
  24048. else
  24049. $as_echo "$as_me: failed program was:" >&5
  24050. sed 's/^/| /' conftest.$ac_ext >&5
  24051. ac_cv_func__doprnt=no
  24052. fi
  24053. rm -rf conftest.dSYM
  24054. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  24055. conftest$ac_exeext conftest.$ac_ext
  24056. fi
  24057. { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  24058. $as_echo "$ac_cv_func__doprnt" >&6; }
  24059. if test "x$ac_cv_func__doprnt" = x""yes; then
  24060. cat >>confdefs.h <<\_ACEOF
  24061. #define HAVE_DOPRNT 1
  24062. _ACEOF
  24063. fi
  24064. fi
  24065. done
  24066. for ac_func in mmap canonicalize_file_name snprintf strdup strchr \
  24067. strrchr strsignal
  24068. do
  24069. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  24070. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  24071. $as_echo_n "checking for $ac_func... " >&6; }
  24072. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  24073. $as_echo_n "(cached) " >&6
  24074. else
  24075. cat >conftest.$ac_ext <<_ACEOF
  24076. /* confdefs.h. */
  24077. _ACEOF
  24078. cat confdefs.h >>conftest.$ac_ext
  24079. cat >>conftest.$ac_ext <<_ACEOF
  24080. /* end confdefs.h. */
  24081. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  24082. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  24083. #define $ac_func innocuous_$ac_func
  24084. /* System header to define __stub macros and hopefully few prototypes,
  24085. which can conflict with char $ac_func (); below.
  24086. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  24087. <limits.h> exists even on freestanding compilers. */
  24088. #ifdef __STDC__
  24089. # include <limits.h>
  24090. #else
  24091. # include <assert.h>
  24092. #endif
  24093. #undef $ac_func
  24094. /* Override any GCC internal prototype to avoid an error.
  24095. Use char because int might match the return type of a GCC
  24096. builtin and then its argument prototype would still apply. */
  24097. #ifdef __cplusplus
  24098. extern "C"
  24099. #endif
  24100. char $ac_func ();
  24101. /* The GNU C library defines this for functions which it implements
  24102. to always fail with ENOSYS. Some functions are actually named
  24103. something starting with __ and the normal name is an alias. */
  24104. #if defined __stub_$ac_func || defined __stub___$ac_func
  24105. choke me
  24106. #endif
  24107. int
  24108. main ()
  24109. {
  24110. return $ac_func ();
  24111. ;
  24112. return 0;
  24113. }
  24114. _ACEOF
  24115. rm -f conftest.$ac_objext conftest$ac_exeext
  24116. if { (ac_try="$ac_link"
  24117. case "(($ac_try" in
  24118. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24119. *) ac_try_echo=$ac_try;;
  24120. esac
  24121. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24122. $as_echo "$ac_try_echo") >&5
  24123. (eval "$ac_link") 2>conftest.er1
  24124. ac_status=$?
  24125. grep -v '^ *+' conftest.er1 >conftest.err
  24126. rm -f conftest.er1
  24127. cat conftest.err >&5
  24128. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24129. (exit $ac_status); } && {
  24130. test -z "$ac_c_werror_flag" ||
  24131. test ! -s conftest.err
  24132. } && test -s conftest$ac_exeext && {
  24133. test "$cross_compiling" = yes ||
  24134. $as_test_x conftest$ac_exeext
  24135. }; then
  24136. eval "$as_ac_var=yes"
  24137. else
  24138. $as_echo "$as_me: failed program was:" >&5
  24139. sed 's/^/| /' conftest.$ac_ext >&5
  24140. eval "$as_ac_var=no"
  24141. fi
  24142. rm -rf conftest.dSYM
  24143. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  24144. conftest$ac_exeext conftest.$ac_ext
  24145. fi
  24146. ac_res=`eval 'as_val=${'$as_ac_var'}
  24147. $as_echo "$as_val"'`
  24148. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  24149. $as_echo "$ac_res" >&6; }
  24150. as_val=`eval 'as_val=${'$as_ac_var'}
  24151. $as_echo "$as_val"'`
  24152. if test "x$as_val" = x""yes; then
  24153. cat >>confdefs.h <<_ACEOF
  24154. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  24155. _ACEOF
  24156. fi
  24157. done
  24158. INVOKE_LIBOPTS_MACROS_FIRST_done=yes
  24159. fi
  24160. # Check to see if a reg expr header is specified.
  24161. # Check whether --with-regex-header was given.
  24162. if test "${with_regex_header+set}" = set; then
  24163. withval=$with_regex_header; libopts_cv_with_regex_header=${with_regex_header}
  24164. else
  24165. { $as_echo "$as_me:$LINENO: checking whether a reg expr header is specified" >&5
  24166. $as_echo_n "checking whether a reg expr header is specified... " >&6; }
  24167. if test "${libopts_cv_with_regex_header+set}" = set; then
  24168. $as_echo_n "(cached) " >&6
  24169. else
  24170. libopts_cv_with_regex_header=no
  24171. fi
  24172. { $as_echo "$as_me:$LINENO: result: $libopts_cv_with_regex_header" >&5
  24173. $as_echo "$libopts_cv_with_regex_header" >&6; }
  24174. fi
  24175. # end of AC_ARG_WITH
  24176. if test "X${libopts_cv_with_regex_header}" != Xno
  24177. then
  24178. cat >>confdefs.h <<_ACEOF
  24179. #define REGEX_HEADER <${libopts_cv_with_regex_header}>
  24180. _ACEOF
  24181. else
  24182. cat >>confdefs.h <<\_ACEOF
  24183. #define REGEX_HEADER <regex.h>
  24184. _ACEOF
  24185. fi
  24186. # Check to see if a working libregex can be found.
  24187. # Check whether --with-libregex was given.
  24188. if test "${with_libregex+set}" = set; then
  24189. withval=$with_libregex; libopts_cv_with_libregex_root=${with_libregex}
  24190. else
  24191. { $as_echo "$as_me:$LINENO: checking whether with-libregex was specified" >&5
  24192. $as_echo_n "checking whether with-libregex was specified... " >&6; }
  24193. if test "${libopts_cv_with_libregex_root+set}" = set; then
  24194. $as_echo_n "(cached) " >&6
  24195. else
  24196. libopts_cv_with_libregex_root=no
  24197. fi
  24198. { $as_echo "$as_me:$LINENO: result: $libopts_cv_with_libregex_root" >&5
  24199. $as_echo "$libopts_cv_with_libregex_root" >&6; }
  24200. fi
  24201. # end of AC_ARG_WITH libregex
  24202. if test "${with_libguile+set}" = set && \
  24203. test "${withval}" = no
  24204. then ## disabled by request
  24205. libopts_cv_with_libregex_root=no
  24206. libopts_cv_with_libregex_cflags=no
  24207. libopts_cv_with_libregex_libs=no
  24208. else
  24209. # Check whether --with-libregex-cflags was given.
  24210. if test "${with_libregex_cflags+set}" = set; then
  24211. withval=$with_libregex_cflags; libopts_cv_with_libregex_cflags=${with_regex_cflags}
  24212. else
  24213. { $as_echo "$as_me:$LINENO: checking whether with-libregex-cflags was specified" >&5
  24214. $as_echo_n "checking whether with-libregex-cflags was specified... " >&6; }
  24215. if test "${libopts_cv_with_libregex_cflags+set}" = set; then
  24216. $as_echo_n "(cached) " >&6
  24217. else
  24218. libopts_cv_with_libregex_cflags=no
  24219. fi
  24220. { $as_echo "$as_me:$LINENO: result: $libopts_cv_with_libregex_cflags" >&5
  24221. $as_echo "$libopts_cv_with_libregex_cflags" >&6; }
  24222. fi
  24223. # end of AC_ARG_WITH libregex-cflags
  24224. # Check whether --with-libregex-libs was given.
  24225. if test "${with_libregex_libs+set}" = set; then
  24226. withval=$with_libregex_libs; libopts_cv_with_libregex_libs=${with_regex_libs}
  24227. else
  24228. { $as_echo "$as_me:$LINENO: checking whether with-libregex-libs was specified" >&5
  24229. $as_echo_n "checking whether with-libregex-libs was specified... " >&6; }
  24230. if test "${libopts_cv_with_libregex_libs+set}" = set; then
  24231. $as_echo_n "(cached) " >&6
  24232. else
  24233. libopts_cv_with_libregex_libs=no
  24234. fi
  24235. { $as_echo "$as_me:$LINENO: result: $libopts_cv_with_libregex_libs" >&5
  24236. $as_echo "$libopts_cv_with_libregex_libs" >&6; }
  24237. fi
  24238. # end of AC_ARG_WITH libregex-libs
  24239. case "X${libopts_cv_with_libregex_cflags}" in
  24240. Xyes|Xno|X )
  24241. case "X${libopts_cv_with_libregex_root}" in
  24242. Xyes|Xno|X ) libopts_cv_with_libregex_cflags=no ;;
  24243. * ) libopts_cv_with_libregex_cflags=-I${libopts_cv_with_libregex_root}/include ;;
  24244. esac
  24245. esac
  24246. case "X${libopts_cv_with_libregex_libs}" in
  24247. Xyes|Xno|X )
  24248. case "X${libopts_cv_with_libregex_root}" in
  24249. Xyes|Xno|X ) libopts_cv_with_libregex_libs=no ;;
  24250. * ) libopts_cv_with_libregex_libs="-L${libopts_cv_with_libregex_root}/lib -lregex";;
  24251. esac
  24252. esac
  24253. libopts_save_CPPFLAGS="${CPPFLAGS}"
  24254. libopts_save_LIBS="${LIBS}"
  24255. fi ## disabled by request
  24256. case "X${libopts_cv_with_libregex_cflags}" in
  24257. Xyes|Xno|X )
  24258. libopts_cv_with_libregex_cflags="" ;;
  24259. * ) CPPFLAGS="${CPPFLAGS} ${libopts_cv_with_libregex_cflags}" ;;
  24260. esac
  24261. case "X${libopts_cv_with_libregex_libs}" in
  24262. Xyes|Xno|X )
  24263. libopts_cv_with_libregex_libs="" ;;
  24264. * )
  24265. LIBS="${LIBS} ${libopts_cv_with_libregex_libs}" ;;
  24266. esac
  24267. LIBREGEX_CFLAGS=""
  24268. LIBREGEX_LIBS=""
  24269. { $as_echo "$as_me:$LINENO: checking whether libregex functions properly" >&5
  24270. $as_echo_n "checking whether libregex functions properly... " >&6; }
  24271. if test "${libopts_cv_with_libregex+set}" = set; then
  24272. $as_echo_n "(cached) " >&6
  24273. else
  24274. if test "$cross_compiling" = yes; then
  24275. libopts_cv_with_libregex=no
  24276. else
  24277. cat >conftest.$ac_ext <<_ACEOF
  24278. /* confdefs.h. */
  24279. _ACEOF
  24280. cat confdefs.h >>conftest.$ac_ext
  24281. cat >>conftest.$ac_ext <<_ACEOF
  24282. /* end confdefs.h. */
  24283. #include <stdio.h>
  24284. #include <stdlib.h>
  24285. #include <sys/types.h>
  24286. #include REGEX_HEADER
  24287. static regex_t re;
  24288. void comp_re( char const* pzPat ) {
  24289. int res = regcomp( &re, pzPat, REG_EXTENDED|REG_ICASE|REG_NEWLINE );
  24290. if (res == 0) return;
  24291. exit( res ); }
  24292. int main() {
  24293. regmatch_t m[2];
  24294. comp_re( "^.*\$" );
  24295. comp_re( "()|no.*" );
  24296. comp_re( "." );
  24297. if (regexec( &re, "X", 2, m, 0 ) != 0) return 1;
  24298. if ((m[0].rm_so != 0) || (m[0].rm_eo != 1)) {
  24299. fputs( "error: regex -->.<-- did not match\n", stderr );
  24300. return 1;
  24301. }
  24302. return 0; }
  24303. _ACEOF
  24304. rm -f conftest$ac_exeext
  24305. if { (ac_try="$ac_link"
  24306. case "(($ac_try" in
  24307. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24308. *) ac_try_echo=$ac_try;;
  24309. esac
  24310. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24311. $as_echo "$ac_try_echo") >&5
  24312. (eval "$ac_link") 2>&5
  24313. ac_status=$?
  24314. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24315. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  24316. { (case "(($ac_try" in
  24317. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24318. *) ac_try_echo=$ac_try;;
  24319. esac
  24320. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24321. $as_echo "$ac_try_echo") >&5
  24322. (eval "$ac_try") 2>&5
  24323. ac_status=$?
  24324. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24325. (exit $ac_status); }; }; then
  24326. libopts_cv_with_libregex=yes
  24327. else
  24328. $as_echo "$as_me: program exited with status $ac_status" >&5
  24329. $as_echo "$as_me: failed program was:" >&5
  24330. sed 's/^/| /' conftest.$ac_ext >&5
  24331. ( exit $ac_status )
  24332. libopts_cv_with_libregex=no
  24333. fi
  24334. rm -rf conftest.dSYM
  24335. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  24336. fi
  24337. # end of AC_TRY_RUN
  24338. fi
  24339. # end of AC_CACHE_VAL for libopts_cv_with_libregex
  24340. { $as_echo "$as_me:$LINENO: result: ${libopts_cv_with_libregex}" >&5
  24341. $as_echo "${libopts_cv_with_libregex}" >&6; }
  24342. if test "X${libopts_cv_with_libregex}" != Xno
  24343. then
  24344. cat >>confdefs.h <<\_ACEOF
  24345. #define WITH_LIBREGEX 1
  24346. _ACEOF
  24347. else
  24348. CPPFLAGS="${libopts_save_CPPFLAGS}"
  24349. LIBS="${libopts_save_LIBS}"
  24350. fi
  24351. # Check to see if pathfind(3) works.
  24352. { $as_echo "$as_me:$LINENO: checking whether pathfind(3) works" >&5
  24353. $as_echo_n "checking whether pathfind(3) works... " >&6; }
  24354. if test "${libopts_cv_run_pathfind+set}" = set; then
  24355. $as_echo_n "(cached) " >&6
  24356. else
  24357. if test "$cross_compiling" = yes; then
  24358. libopts_cv_run_pathfind=no
  24359. else
  24360. cat >conftest.$ac_ext <<_ACEOF
  24361. /* confdefs.h. */
  24362. _ACEOF
  24363. cat confdefs.h >>conftest.$ac_ext
  24364. cat >>conftest.$ac_ext <<_ACEOF
  24365. /* end confdefs.h. */
  24366. #include <string.h>
  24367. #include <stdlib.h>
  24368. int main (int argc, char** argv) {
  24369. char* pz = pathfind( getenv( "PATH" ), "sh", "x" );
  24370. return (pz == 0) ? 1 : 0;
  24371. }
  24372. _ACEOF
  24373. rm -f conftest$ac_exeext
  24374. if { (ac_try="$ac_link"
  24375. case "(($ac_try" in
  24376. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24377. *) ac_try_echo=$ac_try;;
  24378. esac
  24379. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24380. $as_echo "$ac_try_echo") >&5
  24381. (eval "$ac_link") 2>&5
  24382. ac_status=$?
  24383. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24384. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  24385. { (case "(($ac_try" in
  24386. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24387. *) ac_try_echo=$ac_try;;
  24388. esac
  24389. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24390. $as_echo "$ac_try_echo") >&5
  24391. (eval "$ac_try") 2>&5
  24392. ac_status=$?
  24393. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24394. (exit $ac_status); }; }; then
  24395. libopts_cv_run_pathfind=yes
  24396. else
  24397. $as_echo "$as_me: program exited with status $ac_status" >&5
  24398. $as_echo "$as_me: failed program was:" >&5
  24399. sed 's/^/| /' conftest.$ac_ext >&5
  24400. ( exit $ac_status )
  24401. libopts_cv_run_pathfind=no
  24402. fi
  24403. rm -rf conftest.dSYM
  24404. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  24405. fi
  24406. # end of TRY_RUN
  24407. fi
  24408. # end of AC_CACHE_VAL for libopts_cv_run_pathfind
  24409. { $as_echo "$as_me:$LINENO: result: ${libopts_cv_run_pathfind}" >&5
  24410. $as_echo "${libopts_cv_run_pathfind}" >&6; }
  24411. if test "X${libopts_cv_run_pathfind}" != Xno
  24412. then
  24413. cat >>confdefs.h <<\_ACEOF
  24414. #define HAVE_PATHFIND 1
  24415. _ACEOF
  24416. fi
  24417. # Check to see if /dev/zero is readable device.
  24418. { $as_echo "$as_me:$LINENO: checking whether /dev/zero is readable device" >&5
  24419. $as_echo_n "checking whether /dev/zero is readable device... " >&6; }
  24420. if test "${libopts_cv_test_dev_zero+set}" = set; then
  24421. $as_echo_n "(cached) " >&6
  24422. else
  24423. libopts_cv_test_dev_zero=`exec 2> /dev/null
  24424. dzero=\`ls -lL /dev/zero | egrep ^c......r\`
  24425. test -z "${dzero}" && exit 1
  24426. echo ${dzero}`
  24427. if test $? -ne 0
  24428. then libopts_cv_test_dev_zero=no
  24429. elif test -z "$libopts_cv_test_dev_zero"
  24430. then libopts_cv_test_dev_zero=no
  24431. fi
  24432. fi
  24433. # end of CACHE_VAL of libopts_cv_test_dev_zero
  24434. { $as_echo "$as_me:$LINENO: result: ${libopts_cv_test_dev_zero}" >&5
  24435. $as_echo "${libopts_cv_test_dev_zero}" >&6; }
  24436. if test "X${libopts_cv_test_dev_zero}" != Xno
  24437. then
  24438. cat >>confdefs.h <<\_ACEOF
  24439. #define HAVE_DEV_ZERO 1
  24440. _ACEOF
  24441. fi
  24442. # Check to see if we have a functional realpath(3C).
  24443. { $as_echo "$as_me:$LINENO: checking whether we have a functional realpath(3C)" >&5
  24444. $as_echo_n "checking whether we have a functional realpath(3C)... " >&6; }
  24445. if test "${libopts_cv_run_realpath+set}" = set; then
  24446. $as_echo_n "(cached) " >&6
  24447. else
  24448. if test "$cross_compiling" = yes; then
  24449. libopts_cv_run_realpath=no
  24450. else
  24451. cat >conftest.$ac_ext <<_ACEOF
  24452. /* confdefs.h. */
  24453. _ACEOF
  24454. cat confdefs.h >>conftest.$ac_ext
  24455. cat >>conftest.$ac_ext <<_ACEOF
  24456. /* end confdefs.h. */
  24457. #include <limits.h>
  24458. #include <stdlib.h>
  24459. int main (int argc, char** argv) {
  24460. #ifndef PATH_MAX
  24461. choke me!!
  24462. #else
  24463. char zPath[PATH_MAX+1];
  24464. #endif
  24465. char *pz = realpath(argv[0], zPath);
  24466. return (pz == zPath) ? 0 : 1;
  24467. }
  24468. _ACEOF
  24469. rm -f conftest$ac_exeext
  24470. if { (ac_try="$ac_link"
  24471. case "(($ac_try" in
  24472. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24473. *) ac_try_echo=$ac_try;;
  24474. esac
  24475. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24476. $as_echo "$ac_try_echo") >&5
  24477. (eval "$ac_link") 2>&5
  24478. ac_status=$?
  24479. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24480. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  24481. { (case "(($ac_try" in
  24482. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24483. *) ac_try_echo=$ac_try;;
  24484. esac
  24485. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24486. $as_echo "$ac_try_echo") >&5
  24487. (eval "$ac_try") 2>&5
  24488. ac_status=$?
  24489. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24490. (exit $ac_status); }; }; then
  24491. libopts_cv_run_realpath=yes
  24492. else
  24493. $as_echo "$as_me: program exited with status $ac_status" >&5
  24494. $as_echo "$as_me: failed program was:" >&5
  24495. sed 's/^/| /' conftest.$ac_ext >&5
  24496. ( exit $ac_status )
  24497. libopts_cv_run_realpath=no
  24498. fi
  24499. rm -rf conftest.dSYM
  24500. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  24501. fi
  24502. # end of TRY_RUN
  24503. fi
  24504. # end of AC_CACHE_VAL for libopts_cv_run_realpath
  24505. { $as_echo "$as_me:$LINENO: result: ${libopts_cv_run_realpath}" >&5
  24506. $as_echo "${libopts_cv_run_realpath}" >&6; }
  24507. if test "X${libopts_cv_run_realpath}" != Xno
  24508. then
  24509. cat >>confdefs.h <<\_ACEOF
  24510. #define HAVE_REALPATH 1
  24511. _ACEOF
  24512. fi
  24513. # Check to see if strftime() works.
  24514. { $as_echo "$as_me:$LINENO: checking whether strftime() works" >&5
  24515. $as_echo_n "checking whether strftime() works... " >&6; }
  24516. if test "${libopts_cv_run_strftime+set}" = set; then
  24517. $as_echo_n "(cached) " >&6
  24518. else
  24519. if test "$cross_compiling" = yes; then
  24520. libopts_cv_run_strftime=no
  24521. else
  24522. cat >conftest.$ac_ext <<_ACEOF
  24523. /* confdefs.h. */
  24524. _ACEOF
  24525. cat confdefs.h >>conftest.$ac_ext
  24526. cat >>conftest.$ac_ext <<_ACEOF
  24527. /* end confdefs.h. */
  24528. #include <time.h>
  24529. #include <string.h>
  24530. char t_buf[ 64 ];
  24531. int main() {
  24532. static char const z[] = "Thursday Aug 28 240";
  24533. struct tm tm;
  24534. tm.tm_sec = 36; /* seconds after the minute [0, 61] */
  24535. tm.tm_min = 44; /* minutes after the hour [0, 59] */
  24536. tm.tm_hour = 12; /* hour since midnight [0, 23] */
  24537. tm.tm_mday = 28; /* day of the month [1, 31] */
  24538. tm.tm_mon = 7; /* months since January [0, 11] */
  24539. tm.tm_year = 86; /* years since 1900 */
  24540. tm.tm_wday = 4; /* days since Sunday [0, 6] */
  24541. tm.tm_yday = 239; /* days since January 1 [0, 365] */
  24542. tm.tm_isdst = 1; /* flag for daylight savings time */
  24543. strftime( t_buf, sizeof( t_buf ), "%A %b %d %j", &tm );
  24544. return (strcmp( t_buf, z ) != 0); }
  24545. _ACEOF
  24546. rm -f conftest$ac_exeext
  24547. if { (ac_try="$ac_link"
  24548. case "(($ac_try" in
  24549. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24550. *) ac_try_echo=$ac_try;;
  24551. esac
  24552. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24553. $as_echo "$ac_try_echo") >&5
  24554. (eval "$ac_link") 2>&5
  24555. ac_status=$?
  24556. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24557. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  24558. { (case "(($ac_try" in
  24559. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24560. *) ac_try_echo=$ac_try;;
  24561. esac
  24562. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24563. $as_echo "$ac_try_echo") >&5
  24564. (eval "$ac_try") 2>&5
  24565. ac_status=$?
  24566. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24567. (exit $ac_status); }; }; then
  24568. libopts_cv_run_strftime=yes
  24569. else
  24570. $as_echo "$as_me: program exited with status $ac_status" >&5
  24571. $as_echo "$as_me: failed program was:" >&5
  24572. sed 's/^/| /' conftest.$ac_ext >&5
  24573. ( exit $ac_status )
  24574. libopts_cv_run_strftime=no
  24575. fi
  24576. rm -rf conftest.dSYM
  24577. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  24578. fi
  24579. # end of TRY_RUN
  24580. fi
  24581. # end of AC_CACHE_VAL for libopts_cv_run_strftime
  24582. { $as_echo "$as_me:$LINENO: result: ${libopts_cv_run_strftime}" >&5
  24583. $as_echo "${libopts_cv_run_strftime}" >&6; }
  24584. if test "X${libopts_cv_run_strftime}" != Xno
  24585. then
  24586. cat >>confdefs.h <<\_ACEOF
  24587. #define HAVE_STRFTIME 1
  24588. _ACEOF
  24589. fi
  24590. # Check to see if fopen accepts "b" mode.
  24591. { $as_echo "$as_me:$LINENO: checking whether fopen accepts \"b\" mode" >&5
  24592. $as_echo_n "checking whether fopen accepts \"b\" mode... " >&6; }
  24593. if test "${libopts_cv_run_fopen_binary+set}" = set; then
  24594. $as_echo_n "(cached) " >&6
  24595. else
  24596. if test "$cross_compiling" = yes; then
  24597. libopts_cv_run_fopen_binary=no
  24598. else
  24599. cat >conftest.$ac_ext <<_ACEOF
  24600. /* confdefs.h. */
  24601. _ACEOF
  24602. cat confdefs.h >>conftest.$ac_ext
  24603. cat >>conftest.$ac_ext <<_ACEOF
  24604. /* end confdefs.h. */
  24605. #include <stdio.h>
  24606. int main (int argc, char** argv) {
  24607. FILE* fp = fopen("conftest.$ac_ext", "rb");
  24608. return (fp == NULL) ? 1 : fclose(fp); }
  24609. _ACEOF
  24610. rm -f conftest$ac_exeext
  24611. if { (ac_try="$ac_link"
  24612. case "(($ac_try" in
  24613. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24614. *) ac_try_echo=$ac_try;;
  24615. esac
  24616. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24617. $as_echo "$ac_try_echo") >&5
  24618. (eval "$ac_link") 2>&5
  24619. ac_status=$?
  24620. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24621. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  24622. { (case "(($ac_try" in
  24623. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24624. *) ac_try_echo=$ac_try;;
  24625. esac
  24626. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24627. $as_echo "$ac_try_echo") >&5
  24628. (eval "$ac_try") 2>&5
  24629. ac_status=$?
  24630. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24631. (exit $ac_status); }; }; then
  24632. libopts_cv_run_fopen_binary=yes
  24633. else
  24634. $as_echo "$as_me: program exited with status $ac_status" >&5
  24635. $as_echo "$as_me: failed program was:" >&5
  24636. sed 's/^/| /' conftest.$ac_ext >&5
  24637. ( exit $ac_status )
  24638. libopts_cv_run_fopen_binary=no
  24639. fi
  24640. rm -rf conftest.dSYM
  24641. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  24642. fi
  24643. # end of TRY_RUN
  24644. fi
  24645. # end of AC_CACHE_VAL for libopts_cv_run_fopen_binary
  24646. { $as_echo "$as_me:$LINENO: result: ${libopts_cv_run_fopen_binary}" >&5
  24647. $as_echo "${libopts_cv_run_fopen_binary}" >&6; }
  24648. if test "X${libopts_cv_run_fopen_binary}" != Xno
  24649. then
  24650. cat >>confdefs.h <<\_ACEOF
  24651. #define FOPEN_BINARY_FLAG "b"
  24652. _ACEOF
  24653. else
  24654. cat >>confdefs.h <<\_ACEOF
  24655. #define FOPEN_BINARY_FLAG ""
  24656. _ACEOF
  24657. fi
  24658. # Check to see if fopen accepts "t" mode.
  24659. { $as_echo "$as_me:$LINENO: checking whether fopen accepts \"t\" mode" >&5
  24660. $as_echo_n "checking whether fopen accepts \"t\" mode... " >&6; }
  24661. if test "${libopts_cv_run_fopen_text+set}" = set; then
  24662. $as_echo_n "(cached) " >&6
  24663. else
  24664. if test "$cross_compiling" = yes; then
  24665. libopts_cv_run_fopen_text=no
  24666. else
  24667. cat >conftest.$ac_ext <<_ACEOF
  24668. /* confdefs.h. */
  24669. _ACEOF
  24670. cat confdefs.h >>conftest.$ac_ext
  24671. cat >>conftest.$ac_ext <<_ACEOF
  24672. /* end confdefs.h. */
  24673. #include <stdio.h>
  24674. int main (int argc, char** argv) {
  24675. FILE* fp = fopen("conftest.$ac_ext", "rt");
  24676. return (fp == NULL) ? 1 : fclose(fp); }
  24677. _ACEOF
  24678. rm -f conftest$ac_exeext
  24679. if { (ac_try="$ac_link"
  24680. case "(($ac_try" in
  24681. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24682. *) ac_try_echo=$ac_try;;
  24683. esac
  24684. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24685. $as_echo "$ac_try_echo") >&5
  24686. (eval "$ac_link") 2>&5
  24687. ac_status=$?
  24688. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24689. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  24690. { (case "(($ac_try" in
  24691. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24692. *) ac_try_echo=$ac_try;;
  24693. esac
  24694. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24695. $as_echo "$ac_try_echo") >&5
  24696. (eval "$ac_try") 2>&5
  24697. ac_status=$?
  24698. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24699. (exit $ac_status); }; }; then
  24700. libopts_cv_run_fopen_text=yes
  24701. else
  24702. $as_echo "$as_me: program exited with status $ac_status" >&5
  24703. $as_echo "$as_me: failed program was:" >&5
  24704. sed 's/^/| /' conftest.$ac_ext >&5
  24705. ( exit $ac_status )
  24706. libopts_cv_run_fopen_text=no
  24707. fi
  24708. rm -rf conftest.dSYM
  24709. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  24710. fi
  24711. # end of TRY_RUN
  24712. fi
  24713. # end of AC_CACHE_VAL for libopts_cv_run_fopen_text
  24714. { $as_echo "$as_me:$LINENO: result: ${libopts_cv_run_fopen_text}" >&5
  24715. $as_echo "${libopts_cv_run_fopen_text}" >&6; }
  24716. if test "X${libopts_cv_run_fopen_text}" != Xno
  24717. then
  24718. cat >>confdefs.h <<\_ACEOF
  24719. #define FOPEN_TEXT_FLAG "t"
  24720. _ACEOF
  24721. else
  24722. cat >>confdefs.h <<\_ACEOF
  24723. #define FOPEN_TEXT_FLAG ""
  24724. _ACEOF
  24725. fi
  24726. # Check to see if not wanting optional option args.
  24727. # Check whether --enable-optional-args was given.
  24728. if test "${enable_optional_args+set}" = set; then
  24729. enableval=$enable_optional_args; libopts_cv_enable_optional_args=${enable_optional_args}
  24730. else
  24731. { $as_echo "$as_me:$LINENO: checking whether not wanting optional option args" >&5
  24732. $as_echo_n "checking whether not wanting optional option args... " >&6; }
  24733. if test "${libopts_cv_enable_optional_args+set}" = set; then
  24734. $as_echo_n "(cached) " >&6
  24735. else
  24736. libopts_cv_enable_optional_args=yes
  24737. fi
  24738. { $as_echo "$as_me:$LINENO: result: $libopts_cv_enable_optional_args" >&5
  24739. $as_echo "$libopts_cv_enable_optional_args" >&6; }
  24740. fi
  24741. # end of AC_ARG_ENABLE
  24742. if test "X${libopts_cv_enable_optional_args}" = Xno
  24743. then
  24744. cat >>confdefs.h <<\_ACEOF
  24745. #define NO_OPTIONAL_OPT_ARGS 1
  24746. _ACEOF
  24747. fi
  24748. else
  24749. if test X${INVOKE_LIBOPTS_MACROS_FIRST_done} != Xyes ; then
  24750. # =================
  24751. # AC_HEADER_STDC
  24752. # =================
  24753. { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  24754. $as_echo_n "checking for ANSI C header files... " >&6; }
  24755. if test "${ac_cv_header_stdc+set}" = set; then
  24756. $as_echo_n "(cached) " >&6
  24757. else
  24758. cat >conftest.$ac_ext <<_ACEOF
  24759. /* confdefs.h. */
  24760. _ACEOF
  24761. cat confdefs.h >>conftest.$ac_ext
  24762. cat >>conftest.$ac_ext <<_ACEOF
  24763. /* end confdefs.h. */
  24764. #include <stdlib.h>
  24765. #include <stdarg.h>
  24766. #include <string.h>
  24767. #include <float.h>
  24768. int
  24769. main ()
  24770. {
  24771. ;
  24772. return 0;
  24773. }
  24774. _ACEOF
  24775. rm -f conftest.$ac_objext
  24776. if { (ac_try="$ac_compile"
  24777. case "(($ac_try" in
  24778. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24779. *) ac_try_echo=$ac_try;;
  24780. esac
  24781. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24782. $as_echo "$ac_try_echo") >&5
  24783. (eval "$ac_compile") 2>conftest.er1
  24784. ac_status=$?
  24785. grep -v '^ *+' conftest.er1 >conftest.err
  24786. rm -f conftest.er1
  24787. cat conftest.err >&5
  24788. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24789. (exit $ac_status); } && {
  24790. test -z "$ac_c_werror_flag" ||
  24791. test ! -s conftest.err
  24792. } && test -s conftest.$ac_objext; then
  24793. ac_cv_header_stdc=yes
  24794. else
  24795. $as_echo "$as_me: failed program was:" >&5
  24796. sed 's/^/| /' conftest.$ac_ext >&5
  24797. ac_cv_header_stdc=no
  24798. fi
  24799. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24800. if test $ac_cv_header_stdc = yes; then
  24801. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  24802. cat >conftest.$ac_ext <<_ACEOF
  24803. /* confdefs.h. */
  24804. _ACEOF
  24805. cat confdefs.h >>conftest.$ac_ext
  24806. cat >>conftest.$ac_ext <<_ACEOF
  24807. /* end confdefs.h. */
  24808. #include <string.h>
  24809. _ACEOF
  24810. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  24811. $EGREP "memchr" >/dev/null 2>&1; then
  24812. :
  24813. else
  24814. ac_cv_header_stdc=no
  24815. fi
  24816. rm -f conftest*
  24817. fi
  24818. if test $ac_cv_header_stdc = yes; then
  24819. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  24820. cat >conftest.$ac_ext <<_ACEOF
  24821. /* confdefs.h. */
  24822. _ACEOF
  24823. cat confdefs.h >>conftest.$ac_ext
  24824. cat >>conftest.$ac_ext <<_ACEOF
  24825. /* end confdefs.h. */
  24826. #include <stdlib.h>
  24827. _ACEOF
  24828. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  24829. $EGREP "free" >/dev/null 2>&1; then
  24830. :
  24831. else
  24832. ac_cv_header_stdc=no
  24833. fi
  24834. rm -f conftest*
  24835. fi
  24836. if test $ac_cv_header_stdc = yes; then
  24837. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  24838. if test "$cross_compiling" = yes; then
  24839. :
  24840. else
  24841. cat >conftest.$ac_ext <<_ACEOF
  24842. /* confdefs.h. */
  24843. _ACEOF
  24844. cat confdefs.h >>conftest.$ac_ext
  24845. cat >>conftest.$ac_ext <<_ACEOF
  24846. /* end confdefs.h. */
  24847. #include <ctype.h>
  24848. #include <stdlib.h>
  24849. #if ((' ' & 0x0FF) == 0x020)
  24850. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  24851. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  24852. #else
  24853. # define ISLOWER(c) \
  24854. (('a' <= (c) && (c) <= 'i') \
  24855. || ('j' <= (c) && (c) <= 'r') \
  24856. || ('s' <= (c) && (c) <= 'z'))
  24857. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  24858. #endif
  24859. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  24860. int
  24861. main ()
  24862. {
  24863. int i;
  24864. for (i = 0; i < 256; i++)
  24865. if (XOR (islower (i), ISLOWER (i))
  24866. || toupper (i) != TOUPPER (i))
  24867. return 2;
  24868. return 0;
  24869. }
  24870. _ACEOF
  24871. rm -f conftest$ac_exeext
  24872. if { (ac_try="$ac_link"
  24873. case "(($ac_try" in
  24874. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24875. *) ac_try_echo=$ac_try;;
  24876. esac
  24877. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24878. $as_echo "$ac_try_echo") >&5
  24879. (eval "$ac_link") 2>&5
  24880. ac_status=$?
  24881. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24882. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  24883. { (case "(($ac_try" in
  24884. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24885. *) ac_try_echo=$ac_try;;
  24886. esac
  24887. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24888. $as_echo "$ac_try_echo") >&5
  24889. (eval "$ac_try") 2>&5
  24890. ac_status=$?
  24891. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24892. (exit $ac_status); }; }; then
  24893. :
  24894. else
  24895. $as_echo "$as_me: program exited with status $ac_status" >&5
  24896. $as_echo "$as_me: failed program was:" >&5
  24897. sed 's/^/| /' conftest.$ac_ext >&5
  24898. ( exit $ac_status )
  24899. ac_cv_header_stdc=no
  24900. fi
  24901. rm -rf conftest.dSYM
  24902. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  24903. fi
  24904. fi
  24905. fi
  24906. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  24907. $as_echo "$ac_cv_header_stdc" >&6; }
  24908. if test $ac_cv_header_stdc = yes; then
  24909. cat >>confdefs.h <<\_ACEOF
  24910. #define STDC_HEADERS 1
  24911. _ACEOF
  24912. fi
  24913. # =================
  24914. # AC_HEADER_DIRENT
  24915. # =================
  24916. ac_header_dirent=no
  24917. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  24918. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  24919. { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  24920. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  24921. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  24922. $as_echo_n "(cached) " >&6
  24923. else
  24924. cat >conftest.$ac_ext <<_ACEOF
  24925. /* confdefs.h. */
  24926. _ACEOF
  24927. cat confdefs.h >>conftest.$ac_ext
  24928. cat >>conftest.$ac_ext <<_ACEOF
  24929. /* end confdefs.h. */
  24930. #include <sys/types.h>
  24931. #include <$ac_hdr>
  24932. int
  24933. main ()
  24934. {
  24935. if ((DIR *) 0)
  24936. return 0;
  24937. ;
  24938. return 0;
  24939. }
  24940. _ACEOF
  24941. rm -f conftest.$ac_objext
  24942. if { (ac_try="$ac_compile"
  24943. case "(($ac_try" in
  24944. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24945. *) ac_try_echo=$ac_try;;
  24946. esac
  24947. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24948. $as_echo "$ac_try_echo") >&5
  24949. (eval "$ac_compile") 2>conftest.er1
  24950. ac_status=$?
  24951. grep -v '^ *+' conftest.er1 >conftest.err
  24952. rm -f conftest.er1
  24953. cat conftest.err >&5
  24954. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24955. (exit $ac_status); } && {
  24956. test -z "$ac_c_werror_flag" ||
  24957. test ! -s conftest.err
  24958. } && test -s conftest.$ac_objext; then
  24959. eval "$as_ac_Header=yes"
  24960. else
  24961. $as_echo "$as_me: failed program was:" >&5
  24962. sed 's/^/| /' conftest.$ac_ext >&5
  24963. eval "$as_ac_Header=no"
  24964. fi
  24965. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24966. fi
  24967. ac_res=`eval 'as_val=${'$as_ac_Header'}
  24968. $as_echo "$as_val"'`
  24969. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  24970. $as_echo "$ac_res" >&6; }
  24971. as_val=`eval 'as_val=${'$as_ac_Header'}
  24972. $as_echo "$as_val"'`
  24973. if test "x$as_val" = x""yes; then
  24974. cat >>confdefs.h <<_ACEOF
  24975. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  24976. _ACEOF
  24977. ac_header_dirent=$ac_hdr; break
  24978. fi
  24979. done
  24980. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  24981. if test $ac_header_dirent = dirent.h; then
  24982. { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
  24983. $as_echo_n "checking for library containing opendir... " >&6; }
  24984. if test "${ac_cv_search_opendir+set}" = set; then
  24985. $as_echo_n "(cached) " >&6
  24986. else
  24987. ac_func_search_save_LIBS=$LIBS
  24988. cat >conftest.$ac_ext <<_ACEOF
  24989. /* confdefs.h. */
  24990. _ACEOF
  24991. cat confdefs.h >>conftest.$ac_ext
  24992. cat >>conftest.$ac_ext <<_ACEOF
  24993. /* end confdefs.h. */
  24994. /* Override any GCC internal prototype to avoid an error.
  24995. Use char because int might match the return type of a GCC
  24996. builtin and then its argument prototype would still apply. */
  24997. #ifdef __cplusplus
  24998. extern "C"
  24999. #endif
  25000. char opendir ();
  25001. int
  25002. main ()
  25003. {
  25004. return opendir ();
  25005. ;
  25006. return 0;
  25007. }
  25008. _ACEOF
  25009. for ac_lib in '' dir; do
  25010. if test -z "$ac_lib"; then
  25011. ac_res="none required"
  25012. else
  25013. ac_res=-l$ac_lib
  25014. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  25015. fi
  25016. rm -f conftest.$ac_objext conftest$ac_exeext
  25017. if { (ac_try="$ac_link"
  25018. case "(($ac_try" in
  25019. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25020. *) ac_try_echo=$ac_try;;
  25021. esac
  25022. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25023. $as_echo "$ac_try_echo") >&5
  25024. (eval "$ac_link") 2>conftest.er1
  25025. ac_status=$?
  25026. grep -v '^ *+' conftest.er1 >conftest.err
  25027. rm -f conftest.er1
  25028. cat conftest.err >&5
  25029. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25030. (exit $ac_status); } && {
  25031. test -z "$ac_c_werror_flag" ||
  25032. test ! -s conftest.err
  25033. } && test -s conftest$ac_exeext && {
  25034. test "$cross_compiling" = yes ||
  25035. $as_test_x conftest$ac_exeext
  25036. }; then
  25037. ac_cv_search_opendir=$ac_res
  25038. else
  25039. $as_echo "$as_me: failed program was:" >&5
  25040. sed 's/^/| /' conftest.$ac_ext >&5
  25041. fi
  25042. rm -rf conftest.dSYM
  25043. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  25044. conftest$ac_exeext
  25045. if test "${ac_cv_search_opendir+set}" = set; then
  25046. break
  25047. fi
  25048. done
  25049. if test "${ac_cv_search_opendir+set}" = set; then
  25050. :
  25051. else
  25052. ac_cv_search_opendir=no
  25053. fi
  25054. rm conftest.$ac_ext
  25055. LIBS=$ac_func_search_save_LIBS
  25056. fi
  25057. { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  25058. $as_echo "$ac_cv_search_opendir" >&6; }
  25059. ac_res=$ac_cv_search_opendir
  25060. if test "$ac_res" != no; then
  25061. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  25062. fi
  25063. else
  25064. { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
  25065. $as_echo_n "checking for library containing opendir... " >&6; }
  25066. if test "${ac_cv_search_opendir+set}" = set; then
  25067. $as_echo_n "(cached) " >&6
  25068. else
  25069. ac_func_search_save_LIBS=$LIBS
  25070. cat >conftest.$ac_ext <<_ACEOF
  25071. /* confdefs.h. */
  25072. _ACEOF
  25073. cat confdefs.h >>conftest.$ac_ext
  25074. cat >>conftest.$ac_ext <<_ACEOF
  25075. /* end confdefs.h. */
  25076. /* Override any GCC internal prototype to avoid an error.
  25077. Use char because int might match the return type of a GCC
  25078. builtin and then its argument prototype would still apply. */
  25079. #ifdef __cplusplus
  25080. extern "C"
  25081. #endif
  25082. char opendir ();
  25083. int
  25084. main ()
  25085. {
  25086. return opendir ();
  25087. ;
  25088. return 0;
  25089. }
  25090. _ACEOF
  25091. for ac_lib in '' x; do
  25092. if test -z "$ac_lib"; then
  25093. ac_res="none required"
  25094. else
  25095. ac_res=-l$ac_lib
  25096. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  25097. fi
  25098. rm -f conftest.$ac_objext conftest$ac_exeext
  25099. if { (ac_try="$ac_link"
  25100. case "(($ac_try" in
  25101. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25102. *) ac_try_echo=$ac_try;;
  25103. esac
  25104. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25105. $as_echo "$ac_try_echo") >&5
  25106. (eval "$ac_link") 2>conftest.er1
  25107. ac_status=$?
  25108. grep -v '^ *+' conftest.er1 >conftest.err
  25109. rm -f conftest.er1
  25110. cat conftest.err >&5
  25111. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25112. (exit $ac_status); } && {
  25113. test -z "$ac_c_werror_flag" ||
  25114. test ! -s conftest.err
  25115. } && test -s conftest$ac_exeext && {
  25116. test "$cross_compiling" = yes ||
  25117. $as_test_x conftest$ac_exeext
  25118. }; then
  25119. ac_cv_search_opendir=$ac_res
  25120. else
  25121. $as_echo "$as_me: failed program was:" >&5
  25122. sed 's/^/| /' conftest.$ac_ext >&5
  25123. fi
  25124. rm -rf conftest.dSYM
  25125. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  25126. conftest$ac_exeext
  25127. if test "${ac_cv_search_opendir+set}" = set; then
  25128. break
  25129. fi
  25130. done
  25131. if test "${ac_cv_search_opendir+set}" = set; then
  25132. :
  25133. else
  25134. ac_cv_search_opendir=no
  25135. fi
  25136. rm conftest.$ac_ext
  25137. LIBS=$ac_func_search_save_LIBS
  25138. fi
  25139. { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  25140. $as_echo "$ac_cv_search_opendir" >&6; }
  25141. ac_res=$ac_cv_search_opendir
  25142. if test "$ac_res" != no; then
  25143. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  25144. fi
  25145. fi
  25146. # =================
  25147. # AC_CHECK_HEADERS
  25148. # =================
  25149. for ac_header in dlfcn.h errno.h fcntl.h libgen.h memory.h netinet/in.h \
  25150. setjmp.h sys/mman.h sys/param.h sys/poll.h sys/procset.h sys/select.h \
  25151. sys/socket.h sys/stropts.h sys/time.h sys/un.h sys/wait.h unistd.h \
  25152. utime.h sysexits.h
  25153. do
  25154. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  25155. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25156. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  25157. $as_echo_n "checking for $ac_header... " >&6; }
  25158. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25159. $as_echo_n "(cached) " >&6
  25160. fi
  25161. ac_res=`eval 'as_val=${'$as_ac_Header'}
  25162. $as_echo "$as_val"'`
  25163. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  25164. $as_echo "$ac_res" >&6; }
  25165. else
  25166. # Is the header compilable?
  25167. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  25168. $as_echo_n "checking $ac_header usability... " >&6; }
  25169. cat >conftest.$ac_ext <<_ACEOF
  25170. /* confdefs.h. */
  25171. _ACEOF
  25172. cat confdefs.h >>conftest.$ac_ext
  25173. cat >>conftest.$ac_ext <<_ACEOF
  25174. /* end confdefs.h. */
  25175. $ac_includes_default
  25176. #include <$ac_header>
  25177. _ACEOF
  25178. rm -f conftest.$ac_objext
  25179. if { (ac_try="$ac_compile"
  25180. case "(($ac_try" in
  25181. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25182. *) ac_try_echo=$ac_try;;
  25183. esac
  25184. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25185. $as_echo "$ac_try_echo") >&5
  25186. (eval "$ac_compile") 2>conftest.er1
  25187. ac_status=$?
  25188. grep -v '^ *+' conftest.er1 >conftest.err
  25189. rm -f conftest.er1
  25190. cat conftest.err >&5
  25191. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25192. (exit $ac_status); } && {
  25193. test -z "$ac_c_werror_flag" ||
  25194. test ! -s conftest.err
  25195. } && test -s conftest.$ac_objext; then
  25196. ac_header_compiler=yes
  25197. else
  25198. $as_echo "$as_me: failed program was:" >&5
  25199. sed 's/^/| /' conftest.$ac_ext >&5
  25200. ac_header_compiler=no
  25201. fi
  25202. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25203. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  25204. $as_echo "$ac_header_compiler" >&6; }
  25205. # Is the header present?
  25206. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  25207. $as_echo_n "checking $ac_header presence... " >&6; }
  25208. cat >conftest.$ac_ext <<_ACEOF
  25209. /* confdefs.h. */
  25210. _ACEOF
  25211. cat confdefs.h >>conftest.$ac_ext
  25212. cat >>conftest.$ac_ext <<_ACEOF
  25213. /* end confdefs.h. */
  25214. #include <$ac_header>
  25215. _ACEOF
  25216. if { (ac_try="$ac_cpp conftest.$ac_ext"
  25217. case "(($ac_try" in
  25218. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25219. *) ac_try_echo=$ac_try;;
  25220. esac
  25221. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25222. $as_echo "$ac_try_echo") >&5
  25223. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  25224. ac_status=$?
  25225. grep -v '^ *+' conftest.er1 >conftest.err
  25226. rm -f conftest.er1
  25227. cat conftest.err >&5
  25228. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25229. (exit $ac_status); } >/dev/null && {
  25230. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  25231. test ! -s conftest.err
  25232. }; then
  25233. ac_header_preproc=yes
  25234. else
  25235. $as_echo "$as_me: failed program was:" >&5
  25236. sed 's/^/| /' conftest.$ac_ext >&5
  25237. ac_header_preproc=no
  25238. fi
  25239. rm -f conftest.err conftest.$ac_ext
  25240. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  25241. $as_echo "$ac_header_preproc" >&6; }
  25242. # So? What about this header?
  25243. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  25244. yes:no: )
  25245. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  25246. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  25247. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  25248. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  25249. ac_header_preproc=yes
  25250. ;;
  25251. no:yes:* )
  25252. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  25253. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  25254. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  25255. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  25256. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  25257. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  25258. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  25259. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  25260. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  25261. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  25262. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  25263. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  25264. ;;
  25265. esac
  25266. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  25267. $as_echo_n "checking for $ac_header... " >&6; }
  25268. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25269. $as_echo_n "(cached) " >&6
  25270. else
  25271. eval "$as_ac_Header=\$ac_header_preproc"
  25272. fi
  25273. ac_res=`eval 'as_val=${'$as_ac_Header'}
  25274. $as_echo "$as_val"'`
  25275. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  25276. $as_echo "$ac_res" >&6; }
  25277. fi
  25278. as_val=`eval 'as_val=${'$as_ac_Header'}
  25279. $as_echo "$as_val"'`
  25280. if test "x$as_val" = x""yes; then
  25281. cat >>confdefs.h <<_ACEOF
  25282. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  25283. _ACEOF
  25284. fi
  25285. done
  25286. { $as_echo "$as_me:$LINENO: checking for size_t" >&5
  25287. $as_echo_n "checking for size_t... " >&6; }
  25288. if test "${ac_cv_type_size_t+set}" = set; then
  25289. $as_echo_n "(cached) " >&6
  25290. else
  25291. ac_cv_type_size_t=no
  25292. cat >conftest.$ac_ext <<_ACEOF
  25293. /* confdefs.h. */
  25294. _ACEOF
  25295. cat confdefs.h >>conftest.$ac_ext
  25296. cat >>conftest.$ac_ext <<_ACEOF
  25297. /* end confdefs.h. */
  25298. $ac_includes_default
  25299. int
  25300. main ()
  25301. {
  25302. if (sizeof (size_t))
  25303. return 0;
  25304. ;
  25305. return 0;
  25306. }
  25307. _ACEOF
  25308. rm -f conftest.$ac_objext
  25309. if { (ac_try="$ac_compile"
  25310. case "(($ac_try" in
  25311. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25312. *) ac_try_echo=$ac_try;;
  25313. esac
  25314. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25315. $as_echo "$ac_try_echo") >&5
  25316. (eval "$ac_compile") 2>conftest.er1
  25317. ac_status=$?
  25318. grep -v '^ *+' conftest.er1 >conftest.err
  25319. rm -f conftest.er1
  25320. cat conftest.err >&5
  25321. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25322. (exit $ac_status); } && {
  25323. test -z "$ac_c_werror_flag" ||
  25324. test ! -s conftest.err
  25325. } && test -s conftest.$ac_objext; then
  25326. cat >conftest.$ac_ext <<_ACEOF
  25327. /* confdefs.h. */
  25328. _ACEOF
  25329. cat confdefs.h >>conftest.$ac_ext
  25330. cat >>conftest.$ac_ext <<_ACEOF
  25331. /* end confdefs.h. */
  25332. $ac_includes_default
  25333. int
  25334. main ()
  25335. {
  25336. if (sizeof ((size_t)))
  25337. return 0;
  25338. ;
  25339. return 0;
  25340. }
  25341. _ACEOF
  25342. rm -f conftest.$ac_objext
  25343. if { (ac_try="$ac_compile"
  25344. case "(($ac_try" in
  25345. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25346. *) ac_try_echo=$ac_try;;
  25347. esac
  25348. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25349. $as_echo "$ac_try_echo") >&5
  25350. (eval "$ac_compile") 2>conftest.er1
  25351. ac_status=$?
  25352. grep -v '^ *+' conftest.er1 >conftest.err
  25353. rm -f conftest.er1
  25354. cat conftest.err >&5
  25355. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25356. (exit $ac_status); } && {
  25357. test -z "$ac_c_werror_flag" ||
  25358. test ! -s conftest.err
  25359. } && test -s conftest.$ac_objext; then
  25360. :
  25361. else
  25362. $as_echo "$as_me: failed program was:" >&5
  25363. sed 's/^/| /' conftest.$ac_ext >&5
  25364. ac_cv_type_size_t=yes
  25365. fi
  25366. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25367. else
  25368. $as_echo "$as_me: failed program was:" >&5
  25369. sed 's/^/| /' conftest.$ac_ext >&5
  25370. fi
  25371. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25372. fi
  25373. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  25374. $as_echo "$ac_cv_type_size_t" >&6; }
  25375. if test "x$ac_cv_type_size_t" = x""yes; then
  25376. cat >>confdefs.h <<_ACEOF
  25377. #define HAVE_SIZE_T 1
  25378. _ACEOF
  25379. fi
  25380. # ----------------------------------------------------------------------
  25381. # check for various programs used during the build.
  25382. # On OS/X, "wchar.h" needs "runetype.h" to work properly.
  25383. # ----------------------------------------------------------------------
  25384. for ac_header in runetype.h wchar.h
  25385. do
  25386. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  25387. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  25388. $as_echo_n "checking for $ac_header... " >&6; }
  25389. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25390. $as_echo_n "(cached) " >&6
  25391. else
  25392. cat >conftest.$ac_ext <<_ACEOF
  25393. /* confdefs.h. */
  25394. _ACEOF
  25395. cat confdefs.h >>conftest.$ac_ext
  25396. cat >>conftest.$ac_ext <<_ACEOF
  25397. /* end confdefs.h. */
  25398. $ac_includes_default
  25399. #if HAVE_RUNETYPE_H
  25400. # include <runetype.h>
  25401. #endif
  25402. #include <$ac_header>
  25403. _ACEOF
  25404. rm -f conftest.$ac_objext
  25405. if { (ac_try="$ac_compile"
  25406. case "(($ac_try" in
  25407. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25408. *) ac_try_echo=$ac_try;;
  25409. esac
  25410. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25411. $as_echo "$ac_try_echo") >&5
  25412. (eval "$ac_compile") 2>conftest.er1
  25413. ac_status=$?
  25414. grep -v '^ *+' conftest.er1 >conftest.err
  25415. rm -f conftest.er1
  25416. cat conftest.err >&5
  25417. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25418. (exit $ac_status); } && {
  25419. test -z "$ac_c_werror_flag" ||
  25420. test ! -s conftest.err
  25421. } && test -s conftest.$ac_objext; then
  25422. eval "$as_ac_Header=yes"
  25423. else
  25424. $as_echo "$as_me: failed program was:" >&5
  25425. sed 's/^/| /' conftest.$ac_ext >&5
  25426. eval "$as_ac_Header=no"
  25427. fi
  25428. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25429. fi
  25430. ac_res=`eval 'as_val=${'$as_ac_Header'}
  25431. $as_echo "$as_val"'`
  25432. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  25433. $as_echo "$ac_res" >&6; }
  25434. as_val=`eval 'as_val=${'$as_ac_Header'}
  25435. $as_echo "$as_val"'`
  25436. if test "x$as_val" = x""yes; then
  25437. cat >>confdefs.h <<_ACEOF
  25438. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  25439. _ACEOF
  25440. fi
  25441. done
  25442. # ----------------------------------------------------------------------
  25443. # Checks for typedefs
  25444. # ----------------------------------------------------------------------
  25445. { $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
  25446. $as_echo_n "checking for wchar_t... " >&6; }
  25447. if test "${ac_cv_type_wchar_t+set}" = set; then
  25448. $as_echo_n "(cached) " >&6
  25449. else
  25450. ac_cv_type_wchar_t=no
  25451. cat >conftest.$ac_ext <<_ACEOF
  25452. /* confdefs.h. */
  25453. _ACEOF
  25454. cat confdefs.h >>conftest.$ac_ext
  25455. cat >>conftest.$ac_ext <<_ACEOF
  25456. /* end confdefs.h. */
  25457. $ac_includes_default
  25458. int
  25459. main ()
  25460. {
  25461. if (sizeof (wchar_t))
  25462. return 0;
  25463. ;
  25464. return 0;
  25465. }
  25466. _ACEOF
  25467. rm -f conftest.$ac_objext
  25468. if { (ac_try="$ac_compile"
  25469. case "(($ac_try" in
  25470. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25471. *) ac_try_echo=$ac_try;;
  25472. esac
  25473. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25474. $as_echo "$ac_try_echo") >&5
  25475. (eval "$ac_compile") 2>conftest.er1
  25476. ac_status=$?
  25477. grep -v '^ *+' conftest.er1 >conftest.err
  25478. rm -f conftest.er1
  25479. cat conftest.err >&5
  25480. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25481. (exit $ac_status); } && {
  25482. test -z "$ac_c_werror_flag" ||
  25483. test ! -s conftest.err
  25484. } && test -s conftest.$ac_objext; then
  25485. cat >conftest.$ac_ext <<_ACEOF
  25486. /* confdefs.h. */
  25487. _ACEOF
  25488. cat confdefs.h >>conftest.$ac_ext
  25489. cat >>conftest.$ac_ext <<_ACEOF
  25490. /* end confdefs.h. */
  25491. $ac_includes_default
  25492. int
  25493. main ()
  25494. {
  25495. if (sizeof ((wchar_t)))
  25496. return 0;
  25497. ;
  25498. return 0;
  25499. }
  25500. _ACEOF
  25501. rm -f conftest.$ac_objext
  25502. if { (ac_try="$ac_compile"
  25503. case "(($ac_try" in
  25504. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25505. *) ac_try_echo=$ac_try;;
  25506. esac
  25507. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25508. $as_echo "$ac_try_echo") >&5
  25509. (eval "$ac_compile") 2>conftest.er1
  25510. ac_status=$?
  25511. grep -v '^ *+' conftest.er1 >conftest.err
  25512. rm -f conftest.er1
  25513. cat conftest.err >&5
  25514. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25515. (exit $ac_status); } && {
  25516. test -z "$ac_c_werror_flag" ||
  25517. test ! -s conftest.err
  25518. } && test -s conftest.$ac_objext; then
  25519. :
  25520. else
  25521. $as_echo "$as_me: failed program was:" >&5
  25522. sed 's/^/| /' conftest.$ac_ext >&5
  25523. ac_cv_type_wchar_t=yes
  25524. fi
  25525. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25526. else
  25527. $as_echo "$as_me: failed program was:" >&5
  25528. sed 's/^/| /' conftest.$ac_ext >&5
  25529. fi
  25530. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25531. fi
  25532. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
  25533. $as_echo "$ac_cv_type_wchar_t" >&6; }
  25534. if test "x$ac_cv_type_wchar_t" = x""yes; then
  25535. cat >>confdefs.h <<_ACEOF
  25536. #define HAVE_WCHAR_T 1
  25537. _ACEOF
  25538. fi
  25539. { $as_echo "$as_me:$LINENO: checking for wint_t" >&5
  25540. $as_echo_n "checking for wint_t... " >&6; }
  25541. if test "${ac_cv_type_wint_t+set}" = set; then
  25542. $as_echo_n "(cached) " >&6
  25543. else
  25544. ac_cv_type_wint_t=no
  25545. cat >conftest.$ac_ext <<_ACEOF
  25546. /* confdefs.h. */
  25547. _ACEOF
  25548. cat confdefs.h >>conftest.$ac_ext
  25549. cat >>conftest.$ac_ext <<_ACEOF
  25550. /* end confdefs.h. */
  25551. $ac_includes_default
  25552. #if HAVE_RUNETYPE_H
  25553. # include <runetype.h>
  25554. #endif
  25555. #if HAVE_WCHAR_H
  25556. # include <wchar.h>
  25557. #endif
  25558. int
  25559. main ()
  25560. {
  25561. if (sizeof (wint_t))
  25562. return 0;
  25563. ;
  25564. return 0;
  25565. }
  25566. _ACEOF
  25567. rm -f conftest.$ac_objext
  25568. if { (ac_try="$ac_compile"
  25569. case "(($ac_try" in
  25570. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25571. *) ac_try_echo=$ac_try;;
  25572. esac
  25573. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25574. $as_echo "$ac_try_echo") >&5
  25575. (eval "$ac_compile") 2>conftest.er1
  25576. ac_status=$?
  25577. grep -v '^ *+' conftest.er1 >conftest.err
  25578. rm -f conftest.er1
  25579. cat conftest.err >&5
  25580. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25581. (exit $ac_status); } && {
  25582. test -z "$ac_c_werror_flag" ||
  25583. test ! -s conftest.err
  25584. } && test -s conftest.$ac_objext; then
  25585. cat >conftest.$ac_ext <<_ACEOF
  25586. /* confdefs.h. */
  25587. _ACEOF
  25588. cat confdefs.h >>conftest.$ac_ext
  25589. cat >>conftest.$ac_ext <<_ACEOF
  25590. /* end confdefs.h. */
  25591. $ac_includes_default
  25592. #if HAVE_RUNETYPE_H
  25593. # include <runetype.h>
  25594. #endif
  25595. #if HAVE_WCHAR_H
  25596. # include <wchar.h>
  25597. #endif
  25598. int
  25599. main ()
  25600. {
  25601. if (sizeof ((wint_t)))
  25602. return 0;
  25603. ;
  25604. return 0;
  25605. }
  25606. _ACEOF
  25607. rm -f conftest.$ac_objext
  25608. if { (ac_try="$ac_compile"
  25609. case "(($ac_try" in
  25610. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25611. *) ac_try_echo=$ac_try;;
  25612. esac
  25613. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25614. $as_echo "$ac_try_echo") >&5
  25615. (eval "$ac_compile") 2>conftest.er1
  25616. ac_status=$?
  25617. grep -v '^ *+' conftest.er1 >conftest.err
  25618. rm -f conftest.er1
  25619. cat conftest.err >&5
  25620. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25621. (exit $ac_status); } && {
  25622. test -z "$ac_c_werror_flag" ||
  25623. test ! -s conftest.err
  25624. } && test -s conftest.$ac_objext; then
  25625. :
  25626. else
  25627. $as_echo "$as_me: failed program was:" >&5
  25628. sed 's/^/| /' conftest.$ac_ext >&5
  25629. ac_cv_type_wint_t=yes
  25630. fi
  25631. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25632. else
  25633. $as_echo "$as_me: failed program was:" >&5
  25634. sed 's/^/| /' conftest.$ac_ext >&5
  25635. fi
  25636. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25637. fi
  25638. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_wint_t" >&5
  25639. $as_echo "$ac_cv_type_wint_t" >&6; }
  25640. if test "x$ac_cv_type_wint_t" = x""yes; then
  25641. cat >>confdefs.h <<_ACEOF
  25642. #define HAVE_WINT_T 1
  25643. _ACEOF
  25644. fi
  25645. # --------------------------------------------
  25646. # Verify certain entries from AC_CHECK_HEADERS
  25647. # --------------------------------------------
  25648. for f in sys_types sys_mman sys_param sys_stat sys_wait \
  25649. string errno stdlib memory setjmp
  25650. do eval as_ac_var=\${ac_cv_header_${f}_h+set}
  25651. test "${as_ac_var}" = set || \
  25652. { { $as_echo "$as_me:$LINENO: error: You must have ${f}.h on your system" >&5
  25653. $as_echo "$as_me: error: You must have ${f}.h on your system" >&2;}
  25654. { (exit 1); exit 1; }; }
  25655. done
  25656. # ================================================
  25657. # AC_CHECK_HEADERS: stdarg.h is present define HAVE_STDARG_H, otherwise
  25658. # if varargs.h is present define HAVE_VARARGS_H.
  25659. # ================================================
  25660. for ac_header in stdarg.h varargs.h
  25661. do
  25662. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  25663. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25664. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  25665. $as_echo_n "checking for $ac_header... " >&6; }
  25666. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25667. $as_echo_n "(cached) " >&6
  25668. fi
  25669. ac_res=`eval 'as_val=${'$as_ac_Header'}
  25670. $as_echo "$as_val"'`
  25671. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  25672. $as_echo "$ac_res" >&6; }
  25673. else
  25674. # Is the header compilable?
  25675. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  25676. $as_echo_n "checking $ac_header usability... " >&6; }
  25677. cat >conftest.$ac_ext <<_ACEOF
  25678. /* confdefs.h. */
  25679. _ACEOF
  25680. cat confdefs.h >>conftest.$ac_ext
  25681. cat >>conftest.$ac_ext <<_ACEOF
  25682. /* end confdefs.h. */
  25683. $ac_includes_default
  25684. #include <$ac_header>
  25685. _ACEOF
  25686. rm -f conftest.$ac_objext
  25687. if { (ac_try="$ac_compile"
  25688. case "(($ac_try" in
  25689. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25690. *) ac_try_echo=$ac_try;;
  25691. esac
  25692. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25693. $as_echo "$ac_try_echo") >&5
  25694. (eval "$ac_compile") 2>conftest.er1
  25695. ac_status=$?
  25696. grep -v '^ *+' conftest.er1 >conftest.err
  25697. rm -f conftest.er1
  25698. cat conftest.err >&5
  25699. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25700. (exit $ac_status); } && {
  25701. test -z "$ac_c_werror_flag" ||
  25702. test ! -s conftest.err
  25703. } && test -s conftest.$ac_objext; then
  25704. ac_header_compiler=yes
  25705. else
  25706. $as_echo "$as_me: failed program was:" >&5
  25707. sed 's/^/| /' conftest.$ac_ext >&5
  25708. ac_header_compiler=no
  25709. fi
  25710. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25711. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  25712. $as_echo "$ac_header_compiler" >&6; }
  25713. # Is the header present?
  25714. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  25715. $as_echo_n "checking $ac_header presence... " >&6; }
  25716. cat >conftest.$ac_ext <<_ACEOF
  25717. /* confdefs.h. */
  25718. _ACEOF
  25719. cat confdefs.h >>conftest.$ac_ext
  25720. cat >>conftest.$ac_ext <<_ACEOF
  25721. /* end confdefs.h. */
  25722. #include <$ac_header>
  25723. _ACEOF
  25724. if { (ac_try="$ac_cpp conftest.$ac_ext"
  25725. case "(($ac_try" in
  25726. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25727. *) ac_try_echo=$ac_try;;
  25728. esac
  25729. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25730. $as_echo "$ac_try_echo") >&5
  25731. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  25732. ac_status=$?
  25733. grep -v '^ *+' conftest.er1 >conftest.err
  25734. rm -f conftest.er1
  25735. cat conftest.err >&5
  25736. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25737. (exit $ac_status); } >/dev/null && {
  25738. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  25739. test ! -s conftest.err
  25740. }; then
  25741. ac_header_preproc=yes
  25742. else
  25743. $as_echo "$as_me: failed program was:" >&5
  25744. sed 's/^/| /' conftest.$ac_ext >&5
  25745. ac_header_preproc=no
  25746. fi
  25747. rm -f conftest.err conftest.$ac_ext
  25748. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  25749. $as_echo "$ac_header_preproc" >&6; }
  25750. # So? What about this header?
  25751. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  25752. yes:no: )
  25753. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  25754. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  25755. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  25756. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  25757. ac_header_preproc=yes
  25758. ;;
  25759. no:yes:* )
  25760. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  25761. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  25762. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  25763. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  25764. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  25765. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  25766. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  25767. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  25768. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  25769. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  25770. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  25771. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  25772. ;;
  25773. esac
  25774. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  25775. $as_echo_n "checking for $ac_header... " >&6; }
  25776. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25777. $as_echo_n "(cached) " >&6
  25778. else
  25779. eval "$as_ac_Header=\$ac_header_preproc"
  25780. fi
  25781. ac_res=`eval 'as_val=${'$as_ac_Header'}
  25782. $as_echo "$as_val"'`
  25783. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  25784. $as_echo "$ac_res" >&6; }
  25785. fi
  25786. as_val=`eval 'as_val=${'$as_ac_Header'}
  25787. $as_echo "$as_val"'`
  25788. if test "x$as_val" = x""yes; then
  25789. cat >>confdefs.h <<_ACEOF
  25790. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  25791. _ACEOF
  25792. break
  25793. fi
  25794. done
  25795. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  25796. { { $as_echo "$as_me:$LINENO: error: You must have stdarg.h or varargs.h on your system" >&5
  25797. $as_echo "$as_me: error: You must have stdarg.h or varargs.h on your system" >&2;}
  25798. { (exit 1); exit 1; }; }
  25799. fi
  25800. # ================================================
  25801. # Similarly for the string.h and strings.h headers
  25802. # ================================================
  25803. for ac_header in string.h strings.h
  25804. do
  25805. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  25806. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25807. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  25808. $as_echo_n "checking for $ac_header... " >&6; }
  25809. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25810. $as_echo_n "(cached) " >&6
  25811. fi
  25812. ac_res=`eval 'as_val=${'$as_ac_Header'}
  25813. $as_echo "$as_val"'`
  25814. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  25815. $as_echo "$ac_res" >&6; }
  25816. else
  25817. # Is the header compilable?
  25818. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  25819. $as_echo_n "checking $ac_header usability... " >&6; }
  25820. cat >conftest.$ac_ext <<_ACEOF
  25821. /* confdefs.h. */
  25822. _ACEOF
  25823. cat confdefs.h >>conftest.$ac_ext
  25824. cat >>conftest.$ac_ext <<_ACEOF
  25825. /* end confdefs.h. */
  25826. $ac_includes_default
  25827. #include <$ac_header>
  25828. _ACEOF
  25829. rm -f conftest.$ac_objext
  25830. if { (ac_try="$ac_compile"
  25831. case "(($ac_try" in
  25832. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25833. *) ac_try_echo=$ac_try;;
  25834. esac
  25835. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25836. $as_echo "$ac_try_echo") >&5
  25837. (eval "$ac_compile") 2>conftest.er1
  25838. ac_status=$?
  25839. grep -v '^ *+' conftest.er1 >conftest.err
  25840. rm -f conftest.er1
  25841. cat conftest.err >&5
  25842. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25843. (exit $ac_status); } && {
  25844. test -z "$ac_c_werror_flag" ||
  25845. test ! -s conftest.err
  25846. } && test -s conftest.$ac_objext; then
  25847. ac_header_compiler=yes
  25848. else
  25849. $as_echo "$as_me: failed program was:" >&5
  25850. sed 's/^/| /' conftest.$ac_ext >&5
  25851. ac_header_compiler=no
  25852. fi
  25853. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25854. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  25855. $as_echo "$ac_header_compiler" >&6; }
  25856. # Is the header present?
  25857. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  25858. $as_echo_n "checking $ac_header presence... " >&6; }
  25859. cat >conftest.$ac_ext <<_ACEOF
  25860. /* confdefs.h. */
  25861. _ACEOF
  25862. cat confdefs.h >>conftest.$ac_ext
  25863. cat >>conftest.$ac_ext <<_ACEOF
  25864. /* end confdefs.h. */
  25865. #include <$ac_header>
  25866. _ACEOF
  25867. if { (ac_try="$ac_cpp conftest.$ac_ext"
  25868. case "(($ac_try" in
  25869. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25870. *) ac_try_echo=$ac_try;;
  25871. esac
  25872. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25873. $as_echo "$ac_try_echo") >&5
  25874. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  25875. ac_status=$?
  25876. grep -v '^ *+' conftest.er1 >conftest.err
  25877. rm -f conftest.er1
  25878. cat conftest.err >&5
  25879. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25880. (exit $ac_status); } >/dev/null && {
  25881. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  25882. test ! -s conftest.err
  25883. }; then
  25884. ac_header_preproc=yes
  25885. else
  25886. $as_echo "$as_me: failed program was:" >&5
  25887. sed 's/^/| /' conftest.$ac_ext >&5
  25888. ac_header_preproc=no
  25889. fi
  25890. rm -f conftest.err conftest.$ac_ext
  25891. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  25892. $as_echo "$ac_header_preproc" >&6; }
  25893. # So? What about this header?
  25894. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  25895. yes:no: )
  25896. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  25897. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  25898. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  25899. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  25900. ac_header_preproc=yes
  25901. ;;
  25902. no:yes:* )
  25903. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  25904. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  25905. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  25906. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  25907. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  25908. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  25909. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  25910. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  25911. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  25912. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  25913. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  25914. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  25915. ;;
  25916. esac
  25917. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  25918. $as_echo_n "checking for $ac_header... " >&6; }
  25919. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25920. $as_echo_n "(cached) " >&6
  25921. else
  25922. eval "$as_ac_Header=\$ac_header_preproc"
  25923. fi
  25924. ac_res=`eval 'as_val=${'$as_ac_Header'}
  25925. $as_echo "$as_val"'`
  25926. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  25927. $as_echo "$ac_res" >&6; }
  25928. fi
  25929. as_val=`eval 'as_val=${'$as_ac_Header'}
  25930. $as_echo "$as_val"'`
  25931. if test "x$as_val" = x""yes; then
  25932. cat >>confdefs.h <<_ACEOF
  25933. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  25934. _ACEOF
  25935. break
  25936. fi
  25937. done
  25938. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  25939. { { $as_echo "$as_me:$LINENO: error: You must have string.h or strings.h on your system" >&5
  25940. $as_echo "$as_me: error: You must have string.h or strings.h on your system" >&2;}
  25941. { (exit 1); exit 1; }; }
  25942. fi
  25943. # =====================
  25944. # ...and limits headers
  25945. # =====================
  25946. for ac_header in limits.h sys/limits.h values.h
  25947. do
  25948. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  25949. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25950. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  25951. $as_echo_n "checking for $ac_header... " >&6; }
  25952. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25953. $as_echo_n "(cached) " >&6
  25954. fi
  25955. ac_res=`eval 'as_val=${'$as_ac_Header'}
  25956. $as_echo "$as_val"'`
  25957. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  25958. $as_echo "$ac_res" >&6; }
  25959. else
  25960. # Is the header compilable?
  25961. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  25962. $as_echo_n "checking $ac_header usability... " >&6; }
  25963. cat >conftest.$ac_ext <<_ACEOF
  25964. /* confdefs.h. */
  25965. _ACEOF
  25966. cat confdefs.h >>conftest.$ac_ext
  25967. cat >>conftest.$ac_ext <<_ACEOF
  25968. /* end confdefs.h. */
  25969. $ac_includes_default
  25970. #include <$ac_header>
  25971. _ACEOF
  25972. rm -f conftest.$ac_objext
  25973. if { (ac_try="$ac_compile"
  25974. case "(($ac_try" in
  25975. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25976. *) ac_try_echo=$ac_try;;
  25977. esac
  25978. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25979. $as_echo "$ac_try_echo") >&5
  25980. (eval "$ac_compile") 2>conftest.er1
  25981. ac_status=$?
  25982. grep -v '^ *+' conftest.er1 >conftest.err
  25983. rm -f conftest.er1
  25984. cat conftest.err >&5
  25985. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25986. (exit $ac_status); } && {
  25987. test -z "$ac_c_werror_flag" ||
  25988. test ! -s conftest.err
  25989. } && test -s conftest.$ac_objext; then
  25990. ac_header_compiler=yes
  25991. else
  25992. $as_echo "$as_me: failed program was:" >&5
  25993. sed 's/^/| /' conftest.$ac_ext >&5
  25994. ac_header_compiler=no
  25995. fi
  25996. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25997. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  25998. $as_echo "$ac_header_compiler" >&6; }
  25999. # Is the header present?
  26000. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  26001. $as_echo_n "checking $ac_header presence... " >&6; }
  26002. cat >conftest.$ac_ext <<_ACEOF
  26003. /* confdefs.h. */
  26004. _ACEOF
  26005. cat confdefs.h >>conftest.$ac_ext
  26006. cat >>conftest.$ac_ext <<_ACEOF
  26007. /* end confdefs.h. */
  26008. #include <$ac_header>
  26009. _ACEOF
  26010. if { (ac_try="$ac_cpp conftest.$ac_ext"
  26011. case "(($ac_try" in
  26012. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26013. *) ac_try_echo=$ac_try;;
  26014. esac
  26015. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26016. $as_echo "$ac_try_echo") >&5
  26017. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  26018. ac_status=$?
  26019. grep -v '^ *+' conftest.er1 >conftest.err
  26020. rm -f conftest.er1
  26021. cat conftest.err >&5
  26022. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26023. (exit $ac_status); } >/dev/null && {
  26024. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  26025. test ! -s conftest.err
  26026. }; then
  26027. ac_header_preproc=yes
  26028. else
  26029. $as_echo "$as_me: failed program was:" >&5
  26030. sed 's/^/| /' conftest.$ac_ext >&5
  26031. ac_header_preproc=no
  26032. fi
  26033. rm -f conftest.err conftest.$ac_ext
  26034. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  26035. $as_echo "$ac_header_preproc" >&6; }
  26036. # So? What about this header?
  26037. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  26038. yes:no: )
  26039. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  26040. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  26041. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  26042. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  26043. ac_header_preproc=yes
  26044. ;;
  26045. no:yes:* )
  26046. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  26047. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  26048. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  26049. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  26050. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  26051. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  26052. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  26053. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  26054. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  26055. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  26056. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  26057. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  26058. ;;
  26059. esac
  26060. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  26061. $as_echo_n "checking for $ac_header... " >&6; }
  26062. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  26063. $as_echo_n "(cached) " >&6
  26064. else
  26065. eval "$as_ac_Header=\$ac_header_preproc"
  26066. fi
  26067. ac_res=`eval 'as_val=${'$as_ac_Header'}
  26068. $as_echo "$as_val"'`
  26069. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  26070. $as_echo "$ac_res" >&6; }
  26071. fi
  26072. as_val=`eval 'as_val=${'$as_ac_Header'}
  26073. $as_echo "$as_val"'`
  26074. if test "x$as_val" = x""yes; then
  26075. cat >>confdefs.h <<_ACEOF
  26076. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  26077. _ACEOF
  26078. break
  26079. fi
  26080. done
  26081. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  26082. { { $as_echo "$as_me:$LINENO: error: You must have one of limits.h, sys/limits.h or values.h" >&5
  26083. $as_echo "$as_me: error: You must have one of limits.h, sys/limits.h or values.h" >&2;}
  26084. { (exit 1); exit 1; }; }
  26085. fi
  26086. # ========================
  26087. # ...and int types headers
  26088. # ========================
  26089. for ac_header in stdint.h inttypes.h
  26090. do
  26091. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  26092. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  26093. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  26094. $as_echo_n "checking for $ac_header... " >&6; }
  26095. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  26096. $as_echo_n "(cached) " >&6
  26097. fi
  26098. ac_res=`eval 'as_val=${'$as_ac_Header'}
  26099. $as_echo "$as_val"'`
  26100. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  26101. $as_echo "$ac_res" >&6; }
  26102. else
  26103. # Is the header compilable?
  26104. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  26105. $as_echo_n "checking $ac_header usability... " >&6; }
  26106. cat >conftest.$ac_ext <<_ACEOF
  26107. /* confdefs.h. */
  26108. _ACEOF
  26109. cat confdefs.h >>conftest.$ac_ext
  26110. cat >>conftest.$ac_ext <<_ACEOF
  26111. /* end confdefs.h. */
  26112. $ac_includes_default
  26113. #include <$ac_header>
  26114. _ACEOF
  26115. rm -f conftest.$ac_objext
  26116. if { (ac_try="$ac_compile"
  26117. case "(($ac_try" in
  26118. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26119. *) ac_try_echo=$ac_try;;
  26120. esac
  26121. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26122. $as_echo "$ac_try_echo") >&5
  26123. (eval "$ac_compile") 2>conftest.er1
  26124. ac_status=$?
  26125. grep -v '^ *+' conftest.er1 >conftest.err
  26126. rm -f conftest.er1
  26127. cat conftest.err >&5
  26128. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26129. (exit $ac_status); } && {
  26130. test -z "$ac_c_werror_flag" ||
  26131. test ! -s conftest.err
  26132. } && test -s conftest.$ac_objext; then
  26133. ac_header_compiler=yes
  26134. else
  26135. $as_echo "$as_me: failed program was:" >&5
  26136. sed 's/^/| /' conftest.$ac_ext >&5
  26137. ac_header_compiler=no
  26138. fi
  26139. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26140. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  26141. $as_echo "$ac_header_compiler" >&6; }
  26142. # Is the header present?
  26143. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  26144. $as_echo_n "checking $ac_header presence... " >&6; }
  26145. cat >conftest.$ac_ext <<_ACEOF
  26146. /* confdefs.h. */
  26147. _ACEOF
  26148. cat confdefs.h >>conftest.$ac_ext
  26149. cat >>conftest.$ac_ext <<_ACEOF
  26150. /* end confdefs.h. */
  26151. #include <$ac_header>
  26152. _ACEOF
  26153. if { (ac_try="$ac_cpp conftest.$ac_ext"
  26154. case "(($ac_try" in
  26155. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26156. *) ac_try_echo=$ac_try;;
  26157. esac
  26158. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26159. $as_echo "$ac_try_echo") >&5
  26160. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  26161. ac_status=$?
  26162. grep -v '^ *+' conftest.er1 >conftest.err
  26163. rm -f conftest.er1
  26164. cat conftest.err >&5
  26165. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26166. (exit $ac_status); } >/dev/null && {
  26167. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  26168. test ! -s conftest.err
  26169. }; then
  26170. ac_header_preproc=yes
  26171. else
  26172. $as_echo "$as_me: failed program was:" >&5
  26173. sed 's/^/| /' conftest.$ac_ext >&5
  26174. ac_header_preproc=no
  26175. fi
  26176. rm -f conftest.err conftest.$ac_ext
  26177. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  26178. $as_echo "$ac_header_preproc" >&6; }
  26179. # So? What about this header?
  26180. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  26181. yes:no: )
  26182. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  26183. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  26184. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  26185. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  26186. ac_header_preproc=yes
  26187. ;;
  26188. no:yes:* )
  26189. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  26190. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  26191. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  26192. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  26193. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  26194. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  26195. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  26196. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  26197. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  26198. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  26199. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  26200. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  26201. ;;
  26202. esac
  26203. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  26204. $as_echo_n "checking for $ac_header... " >&6; }
  26205. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  26206. $as_echo_n "(cached) " >&6
  26207. else
  26208. eval "$as_ac_Header=\$ac_header_preproc"
  26209. fi
  26210. ac_res=`eval 'as_val=${'$as_ac_Header'}
  26211. $as_echo "$as_val"'`
  26212. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  26213. $as_echo "$ac_res" >&6; }
  26214. fi
  26215. as_val=`eval 'as_val=${'$as_ac_Header'}
  26216. $as_echo "$as_val"'`
  26217. if test "x$as_val" = x""yes; then
  26218. cat >>confdefs.h <<_ACEOF
  26219. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  26220. _ACEOF
  26221. break
  26222. fi
  26223. done
  26224. { $as_echo "$as_me:$LINENO: checking for int8_t" >&5
  26225. $as_echo_n "checking for int8_t... " >&6; }
  26226. if test "${ac_cv_type_int8_t+set}" = set; then
  26227. $as_echo_n "(cached) " >&6
  26228. else
  26229. ac_cv_type_int8_t=no
  26230. cat >conftest.$ac_ext <<_ACEOF
  26231. /* confdefs.h. */
  26232. _ACEOF
  26233. cat confdefs.h >>conftest.$ac_ext
  26234. cat >>conftest.$ac_ext <<_ACEOF
  26235. /* end confdefs.h. */
  26236. $ac_includes_default
  26237. int
  26238. main ()
  26239. {
  26240. if (sizeof (int8_t))
  26241. return 0;
  26242. ;
  26243. return 0;
  26244. }
  26245. _ACEOF
  26246. rm -f conftest.$ac_objext
  26247. if { (ac_try="$ac_compile"
  26248. case "(($ac_try" in
  26249. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26250. *) ac_try_echo=$ac_try;;
  26251. esac
  26252. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26253. $as_echo "$ac_try_echo") >&5
  26254. (eval "$ac_compile") 2>conftest.er1
  26255. ac_status=$?
  26256. grep -v '^ *+' conftest.er1 >conftest.err
  26257. rm -f conftest.er1
  26258. cat conftest.err >&5
  26259. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26260. (exit $ac_status); } && {
  26261. test -z "$ac_c_werror_flag" ||
  26262. test ! -s conftest.err
  26263. } && test -s conftest.$ac_objext; then
  26264. cat >conftest.$ac_ext <<_ACEOF
  26265. /* confdefs.h. */
  26266. _ACEOF
  26267. cat confdefs.h >>conftest.$ac_ext
  26268. cat >>conftest.$ac_ext <<_ACEOF
  26269. /* end confdefs.h. */
  26270. $ac_includes_default
  26271. int
  26272. main ()
  26273. {
  26274. if (sizeof ((int8_t)))
  26275. return 0;
  26276. ;
  26277. return 0;
  26278. }
  26279. _ACEOF
  26280. rm -f conftest.$ac_objext
  26281. if { (ac_try="$ac_compile"
  26282. case "(($ac_try" in
  26283. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26284. *) ac_try_echo=$ac_try;;
  26285. esac
  26286. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26287. $as_echo "$ac_try_echo") >&5
  26288. (eval "$ac_compile") 2>conftest.er1
  26289. ac_status=$?
  26290. grep -v '^ *+' conftest.er1 >conftest.err
  26291. rm -f conftest.er1
  26292. cat conftest.err >&5
  26293. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26294. (exit $ac_status); } && {
  26295. test -z "$ac_c_werror_flag" ||
  26296. test ! -s conftest.err
  26297. } && test -s conftest.$ac_objext; then
  26298. :
  26299. else
  26300. $as_echo "$as_me: failed program was:" >&5
  26301. sed 's/^/| /' conftest.$ac_ext >&5
  26302. ac_cv_type_int8_t=yes
  26303. fi
  26304. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26305. else
  26306. $as_echo "$as_me: failed program was:" >&5
  26307. sed 's/^/| /' conftest.$ac_ext >&5
  26308. fi
  26309. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26310. fi
  26311. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
  26312. $as_echo "$ac_cv_type_int8_t" >&6; }
  26313. if test "x$ac_cv_type_int8_t" = x""yes; then
  26314. cat >>confdefs.h <<_ACEOF
  26315. #define HAVE_INT8_T 1
  26316. _ACEOF
  26317. fi
  26318. { $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
  26319. $as_echo_n "checking for uint8_t... " >&6; }
  26320. if test "${ac_cv_type_uint8_t+set}" = set; then
  26321. $as_echo_n "(cached) " >&6
  26322. else
  26323. ac_cv_type_uint8_t=no
  26324. cat >conftest.$ac_ext <<_ACEOF
  26325. /* confdefs.h. */
  26326. _ACEOF
  26327. cat confdefs.h >>conftest.$ac_ext
  26328. cat >>conftest.$ac_ext <<_ACEOF
  26329. /* end confdefs.h. */
  26330. $ac_includes_default
  26331. int
  26332. main ()
  26333. {
  26334. if (sizeof (uint8_t))
  26335. return 0;
  26336. ;
  26337. return 0;
  26338. }
  26339. _ACEOF
  26340. rm -f conftest.$ac_objext
  26341. if { (ac_try="$ac_compile"
  26342. case "(($ac_try" in
  26343. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26344. *) ac_try_echo=$ac_try;;
  26345. esac
  26346. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26347. $as_echo "$ac_try_echo") >&5
  26348. (eval "$ac_compile") 2>conftest.er1
  26349. ac_status=$?
  26350. grep -v '^ *+' conftest.er1 >conftest.err
  26351. rm -f conftest.er1
  26352. cat conftest.err >&5
  26353. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26354. (exit $ac_status); } && {
  26355. test -z "$ac_c_werror_flag" ||
  26356. test ! -s conftest.err
  26357. } && test -s conftest.$ac_objext; then
  26358. cat >conftest.$ac_ext <<_ACEOF
  26359. /* confdefs.h. */
  26360. _ACEOF
  26361. cat confdefs.h >>conftest.$ac_ext
  26362. cat >>conftest.$ac_ext <<_ACEOF
  26363. /* end confdefs.h. */
  26364. $ac_includes_default
  26365. int
  26366. main ()
  26367. {
  26368. if (sizeof ((uint8_t)))
  26369. return 0;
  26370. ;
  26371. return 0;
  26372. }
  26373. _ACEOF
  26374. rm -f conftest.$ac_objext
  26375. if { (ac_try="$ac_compile"
  26376. case "(($ac_try" in
  26377. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26378. *) ac_try_echo=$ac_try;;
  26379. esac
  26380. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26381. $as_echo "$ac_try_echo") >&5
  26382. (eval "$ac_compile") 2>conftest.er1
  26383. ac_status=$?
  26384. grep -v '^ *+' conftest.er1 >conftest.err
  26385. rm -f conftest.er1
  26386. cat conftest.err >&5
  26387. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26388. (exit $ac_status); } && {
  26389. test -z "$ac_c_werror_flag" ||
  26390. test ! -s conftest.err
  26391. } && test -s conftest.$ac_objext; then
  26392. :
  26393. else
  26394. $as_echo "$as_me: failed program was:" >&5
  26395. sed 's/^/| /' conftest.$ac_ext >&5
  26396. ac_cv_type_uint8_t=yes
  26397. fi
  26398. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26399. else
  26400. $as_echo "$as_me: failed program was:" >&5
  26401. sed 's/^/| /' conftest.$ac_ext >&5
  26402. fi
  26403. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26404. fi
  26405. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
  26406. $as_echo "$ac_cv_type_uint8_t" >&6; }
  26407. if test "x$ac_cv_type_uint8_t" = x""yes; then
  26408. cat >>confdefs.h <<_ACEOF
  26409. #define HAVE_UINT8_T 1
  26410. _ACEOF
  26411. fi
  26412. { $as_echo "$as_me:$LINENO: checking for int16_t" >&5
  26413. $as_echo_n "checking for int16_t... " >&6; }
  26414. if test "${ac_cv_type_int16_t+set}" = set; then
  26415. $as_echo_n "(cached) " >&6
  26416. else
  26417. ac_cv_type_int16_t=no
  26418. cat >conftest.$ac_ext <<_ACEOF
  26419. /* confdefs.h. */
  26420. _ACEOF
  26421. cat confdefs.h >>conftest.$ac_ext
  26422. cat >>conftest.$ac_ext <<_ACEOF
  26423. /* end confdefs.h. */
  26424. $ac_includes_default
  26425. int
  26426. main ()
  26427. {
  26428. if (sizeof (int16_t))
  26429. return 0;
  26430. ;
  26431. return 0;
  26432. }
  26433. _ACEOF
  26434. rm -f conftest.$ac_objext
  26435. if { (ac_try="$ac_compile"
  26436. case "(($ac_try" in
  26437. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26438. *) ac_try_echo=$ac_try;;
  26439. esac
  26440. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26441. $as_echo "$ac_try_echo") >&5
  26442. (eval "$ac_compile") 2>conftest.er1
  26443. ac_status=$?
  26444. grep -v '^ *+' conftest.er1 >conftest.err
  26445. rm -f conftest.er1
  26446. cat conftest.err >&5
  26447. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26448. (exit $ac_status); } && {
  26449. test -z "$ac_c_werror_flag" ||
  26450. test ! -s conftest.err
  26451. } && test -s conftest.$ac_objext; then
  26452. cat >conftest.$ac_ext <<_ACEOF
  26453. /* confdefs.h. */
  26454. _ACEOF
  26455. cat confdefs.h >>conftest.$ac_ext
  26456. cat >>conftest.$ac_ext <<_ACEOF
  26457. /* end confdefs.h. */
  26458. $ac_includes_default
  26459. int
  26460. main ()
  26461. {
  26462. if (sizeof ((int16_t)))
  26463. return 0;
  26464. ;
  26465. return 0;
  26466. }
  26467. _ACEOF
  26468. rm -f conftest.$ac_objext
  26469. if { (ac_try="$ac_compile"
  26470. case "(($ac_try" in
  26471. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26472. *) ac_try_echo=$ac_try;;
  26473. esac
  26474. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26475. $as_echo "$ac_try_echo") >&5
  26476. (eval "$ac_compile") 2>conftest.er1
  26477. ac_status=$?
  26478. grep -v '^ *+' conftest.er1 >conftest.err
  26479. rm -f conftest.er1
  26480. cat conftest.err >&5
  26481. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26482. (exit $ac_status); } && {
  26483. test -z "$ac_c_werror_flag" ||
  26484. test ! -s conftest.err
  26485. } && test -s conftest.$ac_objext; then
  26486. :
  26487. else
  26488. $as_echo "$as_me: failed program was:" >&5
  26489. sed 's/^/| /' conftest.$ac_ext >&5
  26490. ac_cv_type_int16_t=yes
  26491. fi
  26492. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26493. else
  26494. $as_echo "$as_me: failed program was:" >&5
  26495. sed 's/^/| /' conftest.$ac_ext >&5
  26496. fi
  26497. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26498. fi
  26499. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
  26500. $as_echo "$ac_cv_type_int16_t" >&6; }
  26501. if test "x$ac_cv_type_int16_t" = x""yes; then
  26502. cat >>confdefs.h <<_ACEOF
  26503. #define HAVE_INT16_T 1
  26504. _ACEOF
  26505. fi
  26506. { $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
  26507. $as_echo_n "checking for uint16_t... " >&6; }
  26508. if test "${ac_cv_type_uint16_t+set}" = set; then
  26509. $as_echo_n "(cached) " >&6
  26510. else
  26511. ac_cv_type_uint16_t=no
  26512. cat >conftest.$ac_ext <<_ACEOF
  26513. /* confdefs.h. */
  26514. _ACEOF
  26515. cat confdefs.h >>conftest.$ac_ext
  26516. cat >>conftest.$ac_ext <<_ACEOF
  26517. /* end confdefs.h. */
  26518. $ac_includes_default
  26519. int
  26520. main ()
  26521. {
  26522. if (sizeof (uint16_t))
  26523. return 0;
  26524. ;
  26525. return 0;
  26526. }
  26527. _ACEOF
  26528. rm -f conftest.$ac_objext
  26529. if { (ac_try="$ac_compile"
  26530. case "(($ac_try" in
  26531. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26532. *) ac_try_echo=$ac_try;;
  26533. esac
  26534. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26535. $as_echo "$ac_try_echo") >&5
  26536. (eval "$ac_compile") 2>conftest.er1
  26537. ac_status=$?
  26538. grep -v '^ *+' conftest.er1 >conftest.err
  26539. rm -f conftest.er1
  26540. cat conftest.err >&5
  26541. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26542. (exit $ac_status); } && {
  26543. test -z "$ac_c_werror_flag" ||
  26544. test ! -s conftest.err
  26545. } && test -s conftest.$ac_objext; then
  26546. cat >conftest.$ac_ext <<_ACEOF
  26547. /* confdefs.h. */
  26548. _ACEOF
  26549. cat confdefs.h >>conftest.$ac_ext
  26550. cat >>conftest.$ac_ext <<_ACEOF
  26551. /* end confdefs.h. */
  26552. $ac_includes_default
  26553. int
  26554. main ()
  26555. {
  26556. if (sizeof ((uint16_t)))
  26557. return 0;
  26558. ;
  26559. return 0;
  26560. }
  26561. _ACEOF
  26562. rm -f conftest.$ac_objext
  26563. if { (ac_try="$ac_compile"
  26564. case "(($ac_try" in
  26565. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26566. *) ac_try_echo=$ac_try;;
  26567. esac
  26568. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26569. $as_echo "$ac_try_echo") >&5
  26570. (eval "$ac_compile") 2>conftest.er1
  26571. ac_status=$?
  26572. grep -v '^ *+' conftest.er1 >conftest.err
  26573. rm -f conftest.er1
  26574. cat conftest.err >&5
  26575. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26576. (exit $ac_status); } && {
  26577. test -z "$ac_c_werror_flag" ||
  26578. test ! -s conftest.err
  26579. } && test -s conftest.$ac_objext; then
  26580. :
  26581. else
  26582. $as_echo "$as_me: failed program was:" >&5
  26583. sed 's/^/| /' conftest.$ac_ext >&5
  26584. ac_cv_type_uint16_t=yes
  26585. fi
  26586. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26587. else
  26588. $as_echo "$as_me: failed program was:" >&5
  26589. sed 's/^/| /' conftest.$ac_ext >&5
  26590. fi
  26591. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26592. fi
  26593. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
  26594. $as_echo "$ac_cv_type_uint16_t" >&6; }
  26595. if test "x$ac_cv_type_uint16_t" = x""yes; then
  26596. cat >>confdefs.h <<_ACEOF
  26597. #define HAVE_UINT16_T 1
  26598. _ACEOF
  26599. fi
  26600. { $as_echo "$as_me:$LINENO: checking for int32_t" >&5
  26601. $as_echo_n "checking for int32_t... " >&6; }
  26602. if test "${ac_cv_type_int32_t+set}" = set; then
  26603. $as_echo_n "(cached) " >&6
  26604. else
  26605. ac_cv_type_int32_t=no
  26606. cat >conftest.$ac_ext <<_ACEOF
  26607. /* confdefs.h. */
  26608. _ACEOF
  26609. cat confdefs.h >>conftest.$ac_ext
  26610. cat >>conftest.$ac_ext <<_ACEOF
  26611. /* end confdefs.h. */
  26612. $ac_includes_default
  26613. int
  26614. main ()
  26615. {
  26616. if (sizeof (int32_t))
  26617. return 0;
  26618. ;
  26619. return 0;
  26620. }
  26621. _ACEOF
  26622. rm -f conftest.$ac_objext
  26623. if { (ac_try="$ac_compile"
  26624. case "(($ac_try" in
  26625. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26626. *) ac_try_echo=$ac_try;;
  26627. esac
  26628. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26629. $as_echo "$ac_try_echo") >&5
  26630. (eval "$ac_compile") 2>conftest.er1
  26631. ac_status=$?
  26632. grep -v '^ *+' conftest.er1 >conftest.err
  26633. rm -f conftest.er1
  26634. cat conftest.err >&5
  26635. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26636. (exit $ac_status); } && {
  26637. test -z "$ac_c_werror_flag" ||
  26638. test ! -s conftest.err
  26639. } && test -s conftest.$ac_objext; then
  26640. cat >conftest.$ac_ext <<_ACEOF
  26641. /* confdefs.h. */
  26642. _ACEOF
  26643. cat confdefs.h >>conftest.$ac_ext
  26644. cat >>conftest.$ac_ext <<_ACEOF
  26645. /* end confdefs.h. */
  26646. $ac_includes_default
  26647. int
  26648. main ()
  26649. {
  26650. if (sizeof ((int32_t)))
  26651. return 0;
  26652. ;
  26653. return 0;
  26654. }
  26655. _ACEOF
  26656. rm -f conftest.$ac_objext
  26657. if { (ac_try="$ac_compile"
  26658. case "(($ac_try" in
  26659. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26660. *) ac_try_echo=$ac_try;;
  26661. esac
  26662. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26663. $as_echo "$ac_try_echo") >&5
  26664. (eval "$ac_compile") 2>conftest.er1
  26665. ac_status=$?
  26666. grep -v '^ *+' conftest.er1 >conftest.err
  26667. rm -f conftest.er1
  26668. cat conftest.err >&5
  26669. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26670. (exit $ac_status); } && {
  26671. test -z "$ac_c_werror_flag" ||
  26672. test ! -s conftest.err
  26673. } && test -s conftest.$ac_objext; then
  26674. :
  26675. else
  26676. $as_echo "$as_me: failed program was:" >&5
  26677. sed 's/^/| /' conftest.$ac_ext >&5
  26678. ac_cv_type_int32_t=yes
  26679. fi
  26680. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26681. else
  26682. $as_echo "$as_me: failed program was:" >&5
  26683. sed 's/^/| /' conftest.$ac_ext >&5
  26684. fi
  26685. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26686. fi
  26687. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
  26688. $as_echo "$ac_cv_type_int32_t" >&6; }
  26689. if test "x$ac_cv_type_int32_t" = x""yes; then
  26690. cat >>confdefs.h <<_ACEOF
  26691. #define HAVE_INT32_T 1
  26692. _ACEOF
  26693. fi
  26694. { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
  26695. $as_echo_n "checking for uint32_t... " >&6; }
  26696. if test "${ac_cv_type_uint32_t+set}" = set; then
  26697. $as_echo_n "(cached) " >&6
  26698. else
  26699. ac_cv_type_uint32_t=no
  26700. cat >conftest.$ac_ext <<_ACEOF
  26701. /* confdefs.h. */
  26702. _ACEOF
  26703. cat confdefs.h >>conftest.$ac_ext
  26704. cat >>conftest.$ac_ext <<_ACEOF
  26705. /* end confdefs.h. */
  26706. $ac_includes_default
  26707. int
  26708. main ()
  26709. {
  26710. if (sizeof (uint32_t))
  26711. return 0;
  26712. ;
  26713. return 0;
  26714. }
  26715. _ACEOF
  26716. rm -f conftest.$ac_objext
  26717. if { (ac_try="$ac_compile"
  26718. case "(($ac_try" in
  26719. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26720. *) ac_try_echo=$ac_try;;
  26721. esac
  26722. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26723. $as_echo "$ac_try_echo") >&5
  26724. (eval "$ac_compile") 2>conftest.er1
  26725. ac_status=$?
  26726. grep -v '^ *+' conftest.er1 >conftest.err
  26727. rm -f conftest.er1
  26728. cat conftest.err >&5
  26729. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26730. (exit $ac_status); } && {
  26731. test -z "$ac_c_werror_flag" ||
  26732. test ! -s conftest.err
  26733. } && test -s conftest.$ac_objext; then
  26734. cat >conftest.$ac_ext <<_ACEOF
  26735. /* confdefs.h. */
  26736. _ACEOF
  26737. cat confdefs.h >>conftest.$ac_ext
  26738. cat >>conftest.$ac_ext <<_ACEOF
  26739. /* end confdefs.h. */
  26740. $ac_includes_default
  26741. int
  26742. main ()
  26743. {
  26744. if (sizeof ((uint32_t)))
  26745. return 0;
  26746. ;
  26747. return 0;
  26748. }
  26749. _ACEOF
  26750. rm -f conftest.$ac_objext
  26751. if { (ac_try="$ac_compile"
  26752. case "(($ac_try" in
  26753. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26754. *) ac_try_echo=$ac_try;;
  26755. esac
  26756. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26757. $as_echo "$ac_try_echo") >&5
  26758. (eval "$ac_compile") 2>conftest.er1
  26759. ac_status=$?
  26760. grep -v '^ *+' conftest.er1 >conftest.err
  26761. rm -f conftest.er1
  26762. cat conftest.err >&5
  26763. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26764. (exit $ac_status); } && {
  26765. test -z "$ac_c_werror_flag" ||
  26766. test ! -s conftest.err
  26767. } && test -s conftest.$ac_objext; then
  26768. :
  26769. else
  26770. $as_echo "$as_me: failed program was:" >&5
  26771. sed 's/^/| /' conftest.$ac_ext >&5
  26772. ac_cv_type_uint32_t=yes
  26773. fi
  26774. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26775. else
  26776. $as_echo "$as_me: failed program was:" >&5
  26777. sed 's/^/| /' conftest.$ac_ext >&5
  26778. fi
  26779. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26780. fi
  26781. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
  26782. $as_echo "$ac_cv_type_uint32_t" >&6; }
  26783. if test "x$ac_cv_type_uint32_t" = x""yes; then
  26784. cat >>confdefs.h <<_ACEOF
  26785. #define HAVE_UINT32_T 1
  26786. _ACEOF
  26787. fi
  26788. { $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
  26789. $as_echo_n "checking for intptr_t... " >&6; }
  26790. if test "${ac_cv_type_intptr_t+set}" = set; then
  26791. $as_echo_n "(cached) " >&6
  26792. else
  26793. ac_cv_type_intptr_t=no
  26794. cat >conftest.$ac_ext <<_ACEOF
  26795. /* confdefs.h. */
  26796. _ACEOF
  26797. cat confdefs.h >>conftest.$ac_ext
  26798. cat >>conftest.$ac_ext <<_ACEOF
  26799. /* end confdefs.h. */
  26800. $ac_includes_default
  26801. int
  26802. main ()
  26803. {
  26804. if (sizeof (intptr_t))
  26805. return 0;
  26806. ;
  26807. return 0;
  26808. }
  26809. _ACEOF
  26810. rm -f conftest.$ac_objext
  26811. if { (ac_try="$ac_compile"
  26812. case "(($ac_try" in
  26813. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26814. *) ac_try_echo=$ac_try;;
  26815. esac
  26816. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26817. $as_echo "$ac_try_echo") >&5
  26818. (eval "$ac_compile") 2>conftest.er1
  26819. ac_status=$?
  26820. grep -v '^ *+' conftest.er1 >conftest.err
  26821. rm -f conftest.er1
  26822. cat conftest.err >&5
  26823. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26824. (exit $ac_status); } && {
  26825. test -z "$ac_c_werror_flag" ||
  26826. test ! -s conftest.err
  26827. } && test -s conftest.$ac_objext; then
  26828. cat >conftest.$ac_ext <<_ACEOF
  26829. /* confdefs.h. */
  26830. _ACEOF
  26831. cat confdefs.h >>conftest.$ac_ext
  26832. cat >>conftest.$ac_ext <<_ACEOF
  26833. /* end confdefs.h. */
  26834. $ac_includes_default
  26835. int
  26836. main ()
  26837. {
  26838. if (sizeof ((intptr_t)))
  26839. return 0;
  26840. ;
  26841. return 0;
  26842. }
  26843. _ACEOF
  26844. rm -f conftest.$ac_objext
  26845. if { (ac_try="$ac_compile"
  26846. case "(($ac_try" in
  26847. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26848. *) ac_try_echo=$ac_try;;
  26849. esac
  26850. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26851. $as_echo "$ac_try_echo") >&5
  26852. (eval "$ac_compile") 2>conftest.er1
  26853. ac_status=$?
  26854. grep -v '^ *+' conftest.er1 >conftest.err
  26855. rm -f conftest.er1
  26856. cat conftest.err >&5
  26857. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26858. (exit $ac_status); } && {
  26859. test -z "$ac_c_werror_flag" ||
  26860. test ! -s conftest.err
  26861. } && test -s conftest.$ac_objext; then
  26862. :
  26863. else
  26864. $as_echo "$as_me: failed program was:" >&5
  26865. sed 's/^/| /' conftest.$ac_ext >&5
  26866. ac_cv_type_intptr_t=yes
  26867. fi
  26868. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26869. else
  26870. $as_echo "$as_me: failed program was:" >&5
  26871. sed 's/^/| /' conftest.$ac_ext >&5
  26872. fi
  26873. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26874. fi
  26875. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
  26876. $as_echo "$ac_cv_type_intptr_t" >&6; }
  26877. if test "x$ac_cv_type_intptr_t" = x""yes; then
  26878. cat >>confdefs.h <<_ACEOF
  26879. #define HAVE_INTPTR_T 1
  26880. _ACEOF
  26881. fi
  26882. { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
  26883. $as_echo_n "checking for uintptr_t... " >&6; }
  26884. if test "${ac_cv_type_uintptr_t+set}" = set; then
  26885. $as_echo_n "(cached) " >&6
  26886. else
  26887. ac_cv_type_uintptr_t=no
  26888. cat >conftest.$ac_ext <<_ACEOF
  26889. /* confdefs.h. */
  26890. _ACEOF
  26891. cat confdefs.h >>conftest.$ac_ext
  26892. cat >>conftest.$ac_ext <<_ACEOF
  26893. /* end confdefs.h. */
  26894. $ac_includes_default
  26895. int
  26896. main ()
  26897. {
  26898. if (sizeof (uintptr_t))
  26899. return 0;
  26900. ;
  26901. return 0;
  26902. }
  26903. _ACEOF
  26904. rm -f conftest.$ac_objext
  26905. if { (ac_try="$ac_compile"
  26906. case "(($ac_try" in
  26907. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26908. *) ac_try_echo=$ac_try;;
  26909. esac
  26910. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26911. $as_echo "$ac_try_echo") >&5
  26912. (eval "$ac_compile") 2>conftest.er1
  26913. ac_status=$?
  26914. grep -v '^ *+' conftest.er1 >conftest.err
  26915. rm -f conftest.er1
  26916. cat conftest.err >&5
  26917. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26918. (exit $ac_status); } && {
  26919. test -z "$ac_c_werror_flag" ||
  26920. test ! -s conftest.err
  26921. } && test -s conftest.$ac_objext; then
  26922. cat >conftest.$ac_ext <<_ACEOF
  26923. /* confdefs.h. */
  26924. _ACEOF
  26925. cat confdefs.h >>conftest.$ac_ext
  26926. cat >>conftest.$ac_ext <<_ACEOF
  26927. /* end confdefs.h. */
  26928. $ac_includes_default
  26929. int
  26930. main ()
  26931. {
  26932. if (sizeof ((uintptr_t)))
  26933. return 0;
  26934. ;
  26935. return 0;
  26936. }
  26937. _ACEOF
  26938. rm -f conftest.$ac_objext
  26939. if { (ac_try="$ac_compile"
  26940. case "(($ac_try" in
  26941. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26942. *) ac_try_echo=$ac_try;;
  26943. esac
  26944. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26945. $as_echo "$ac_try_echo") >&5
  26946. (eval "$ac_compile") 2>conftest.er1
  26947. ac_status=$?
  26948. grep -v '^ *+' conftest.er1 >conftest.err
  26949. rm -f conftest.er1
  26950. cat conftest.err >&5
  26951. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26952. (exit $ac_status); } && {
  26953. test -z "$ac_c_werror_flag" ||
  26954. test ! -s conftest.err
  26955. } && test -s conftest.$ac_objext; then
  26956. :
  26957. else
  26958. $as_echo "$as_me: failed program was:" >&5
  26959. sed 's/^/| /' conftest.$ac_ext >&5
  26960. ac_cv_type_uintptr_t=yes
  26961. fi
  26962. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26963. else
  26964. $as_echo "$as_me: failed program was:" >&5
  26965. sed 's/^/| /' conftest.$ac_ext >&5
  26966. fi
  26967. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26968. fi
  26969. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
  26970. $as_echo "$ac_cv_type_uintptr_t" >&6; }
  26971. if test "x$ac_cv_type_uintptr_t" = x""yes; then
  26972. cat >>confdefs.h <<_ACEOF
  26973. #define HAVE_UINTPTR_T 1
  26974. _ACEOF
  26975. fi
  26976. { $as_echo "$as_me:$LINENO: checking for uint_t" >&5
  26977. $as_echo_n "checking for uint_t... " >&6; }
  26978. if test "${ac_cv_type_uint_t+set}" = set; then
  26979. $as_echo_n "(cached) " >&6
  26980. else
  26981. ac_cv_type_uint_t=no
  26982. cat >conftest.$ac_ext <<_ACEOF
  26983. /* confdefs.h. */
  26984. _ACEOF
  26985. cat confdefs.h >>conftest.$ac_ext
  26986. cat >>conftest.$ac_ext <<_ACEOF
  26987. /* end confdefs.h. */
  26988. $ac_includes_default
  26989. int
  26990. main ()
  26991. {
  26992. if (sizeof (uint_t))
  26993. return 0;
  26994. ;
  26995. return 0;
  26996. }
  26997. _ACEOF
  26998. rm -f conftest.$ac_objext
  26999. if { (ac_try="$ac_compile"
  27000. case "(($ac_try" in
  27001. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27002. *) ac_try_echo=$ac_try;;
  27003. esac
  27004. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27005. $as_echo "$ac_try_echo") >&5
  27006. (eval "$ac_compile") 2>conftest.er1
  27007. ac_status=$?
  27008. grep -v '^ *+' conftest.er1 >conftest.err
  27009. rm -f conftest.er1
  27010. cat conftest.err >&5
  27011. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27012. (exit $ac_status); } && {
  27013. test -z "$ac_c_werror_flag" ||
  27014. test ! -s conftest.err
  27015. } && test -s conftest.$ac_objext; then
  27016. cat >conftest.$ac_ext <<_ACEOF
  27017. /* confdefs.h. */
  27018. _ACEOF
  27019. cat confdefs.h >>conftest.$ac_ext
  27020. cat >>conftest.$ac_ext <<_ACEOF
  27021. /* end confdefs.h. */
  27022. $ac_includes_default
  27023. int
  27024. main ()
  27025. {
  27026. if (sizeof ((uint_t)))
  27027. return 0;
  27028. ;
  27029. return 0;
  27030. }
  27031. _ACEOF
  27032. rm -f conftest.$ac_objext
  27033. if { (ac_try="$ac_compile"
  27034. case "(($ac_try" in
  27035. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27036. *) ac_try_echo=$ac_try;;
  27037. esac
  27038. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27039. $as_echo "$ac_try_echo") >&5
  27040. (eval "$ac_compile") 2>conftest.er1
  27041. ac_status=$?
  27042. grep -v '^ *+' conftest.er1 >conftest.err
  27043. rm -f conftest.er1
  27044. cat conftest.err >&5
  27045. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27046. (exit $ac_status); } && {
  27047. test -z "$ac_c_werror_flag" ||
  27048. test ! -s conftest.err
  27049. } && test -s conftest.$ac_objext; then
  27050. :
  27051. else
  27052. $as_echo "$as_me: failed program was:" >&5
  27053. sed 's/^/| /' conftest.$ac_ext >&5
  27054. ac_cv_type_uint_t=yes
  27055. fi
  27056. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27057. else
  27058. $as_echo "$as_me: failed program was:" >&5
  27059. sed 's/^/| /' conftest.$ac_ext >&5
  27060. fi
  27061. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27062. fi
  27063. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint_t" >&5
  27064. $as_echo "$ac_cv_type_uint_t" >&6; }
  27065. if test "x$ac_cv_type_uint_t" = x""yes; then
  27066. cat >>confdefs.h <<_ACEOF
  27067. #define HAVE_UINT_T 1
  27068. _ACEOF
  27069. fi
  27070. { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
  27071. $as_echo_n "checking for pid_t... " >&6; }
  27072. if test "${ac_cv_type_pid_t+set}" = set; then
  27073. $as_echo_n "(cached) " >&6
  27074. else
  27075. ac_cv_type_pid_t=no
  27076. cat >conftest.$ac_ext <<_ACEOF
  27077. /* confdefs.h. */
  27078. _ACEOF
  27079. cat confdefs.h >>conftest.$ac_ext
  27080. cat >>conftest.$ac_ext <<_ACEOF
  27081. /* end confdefs.h. */
  27082. $ac_includes_default
  27083. int
  27084. main ()
  27085. {
  27086. if (sizeof (pid_t))
  27087. return 0;
  27088. ;
  27089. return 0;
  27090. }
  27091. _ACEOF
  27092. rm -f conftest.$ac_objext
  27093. if { (ac_try="$ac_compile"
  27094. case "(($ac_try" in
  27095. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27096. *) ac_try_echo=$ac_try;;
  27097. esac
  27098. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27099. $as_echo "$ac_try_echo") >&5
  27100. (eval "$ac_compile") 2>conftest.er1
  27101. ac_status=$?
  27102. grep -v '^ *+' conftest.er1 >conftest.err
  27103. rm -f conftest.er1
  27104. cat conftest.err >&5
  27105. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27106. (exit $ac_status); } && {
  27107. test -z "$ac_c_werror_flag" ||
  27108. test ! -s conftest.err
  27109. } && test -s conftest.$ac_objext; then
  27110. cat >conftest.$ac_ext <<_ACEOF
  27111. /* confdefs.h. */
  27112. _ACEOF
  27113. cat confdefs.h >>conftest.$ac_ext
  27114. cat >>conftest.$ac_ext <<_ACEOF
  27115. /* end confdefs.h. */
  27116. $ac_includes_default
  27117. int
  27118. main ()
  27119. {
  27120. if (sizeof ((pid_t)))
  27121. return 0;
  27122. ;
  27123. return 0;
  27124. }
  27125. _ACEOF
  27126. rm -f conftest.$ac_objext
  27127. if { (ac_try="$ac_compile"
  27128. case "(($ac_try" in
  27129. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27130. *) ac_try_echo=$ac_try;;
  27131. esac
  27132. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27133. $as_echo "$ac_try_echo") >&5
  27134. (eval "$ac_compile") 2>conftest.er1
  27135. ac_status=$?
  27136. grep -v '^ *+' conftest.er1 >conftest.err
  27137. rm -f conftest.er1
  27138. cat conftest.err >&5
  27139. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27140. (exit $ac_status); } && {
  27141. test -z "$ac_c_werror_flag" ||
  27142. test ! -s conftest.err
  27143. } && test -s conftest.$ac_objext; then
  27144. :
  27145. else
  27146. $as_echo "$as_me: failed program was:" >&5
  27147. sed 's/^/| /' conftest.$ac_ext >&5
  27148. ac_cv_type_pid_t=yes
  27149. fi
  27150. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27151. else
  27152. $as_echo "$as_me: failed program was:" >&5
  27153. sed 's/^/| /' conftest.$ac_ext >&5
  27154. fi
  27155. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27156. fi
  27157. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  27158. $as_echo "$ac_cv_type_pid_t" >&6; }
  27159. if test "x$ac_cv_type_pid_t" = x""yes; then
  27160. cat >>confdefs.h <<_ACEOF
  27161. #define HAVE_PID_T 1
  27162. _ACEOF
  27163. fi
  27164. # =====
  27165. # sizes
  27166. # =====
  27167. # The cast to long int works around a bug in the HP C Compiler
  27168. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  27169. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  27170. # This bug is HP SR number 8606223364.
  27171. { $as_echo "$as_me:$LINENO: checking size of char*" >&5
  27172. $as_echo_n "checking size of char*... " >&6; }
  27173. if test "${ac_cv_sizeof_charp+set}" = set; then
  27174. $as_echo_n "(cached) " >&6
  27175. else
  27176. if test "$cross_compiling" = yes; then
  27177. # Depending upon the size, compute the lo and hi bounds.
  27178. cat >conftest.$ac_ext <<_ACEOF
  27179. /* confdefs.h. */
  27180. _ACEOF
  27181. cat confdefs.h >>conftest.$ac_ext
  27182. cat >>conftest.$ac_ext <<_ACEOF
  27183. /* end confdefs.h. */
  27184. $ac_includes_default
  27185. int
  27186. main ()
  27187. {
  27188. static int test_array [1 - 2 * !(((long int) (sizeof (char*))) >= 0)];
  27189. test_array [0] = 0
  27190. ;
  27191. return 0;
  27192. }
  27193. _ACEOF
  27194. rm -f conftest.$ac_objext
  27195. if { (ac_try="$ac_compile"
  27196. case "(($ac_try" in
  27197. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27198. *) ac_try_echo=$ac_try;;
  27199. esac
  27200. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27201. $as_echo "$ac_try_echo") >&5
  27202. (eval "$ac_compile") 2>conftest.er1
  27203. ac_status=$?
  27204. grep -v '^ *+' conftest.er1 >conftest.err
  27205. rm -f conftest.er1
  27206. cat conftest.err >&5
  27207. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27208. (exit $ac_status); } && {
  27209. test -z "$ac_c_werror_flag" ||
  27210. test ! -s conftest.err
  27211. } && test -s conftest.$ac_objext; then
  27212. ac_lo=0 ac_mid=0
  27213. while :; do
  27214. cat >conftest.$ac_ext <<_ACEOF
  27215. /* confdefs.h. */
  27216. _ACEOF
  27217. cat confdefs.h >>conftest.$ac_ext
  27218. cat >>conftest.$ac_ext <<_ACEOF
  27219. /* end confdefs.h. */
  27220. $ac_includes_default
  27221. int
  27222. main ()
  27223. {
  27224. static int test_array [1 - 2 * !(((long int) (sizeof (char*))) <= $ac_mid)];
  27225. test_array [0] = 0
  27226. ;
  27227. return 0;
  27228. }
  27229. _ACEOF
  27230. rm -f conftest.$ac_objext
  27231. if { (ac_try="$ac_compile"
  27232. case "(($ac_try" in
  27233. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27234. *) ac_try_echo=$ac_try;;
  27235. esac
  27236. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27237. $as_echo "$ac_try_echo") >&5
  27238. (eval "$ac_compile") 2>conftest.er1
  27239. ac_status=$?
  27240. grep -v '^ *+' conftest.er1 >conftest.err
  27241. rm -f conftest.er1
  27242. cat conftest.err >&5
  27243. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27244. (exit $ac_status); } && {
  27245. test -z "$ac_c_werror_flag" ||
  27246. test ! -s conftest.err
  27247. } && test -s conftest.$ac_objext; then
  27248. ac_hi=$ac_mid; break
  27249. else
  27250. $as_echo "$as_me: failed program was:" >&5
  27251. sed 's/^/| /' conftest.$ac_ext >&5
  27252. ac_lo=`expr $ac_mid + 1`
  27253. if test $ac_lo -le $ac_mid; then
  27254. ac_lo= ac_hi=
  27255. break
  27256. fi
  27257. ac_mid=`expr 2 '*' $ac_mid + 1`
  27258. fi
  27259. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27260. done
  27261. else
  27262. $as_echo "$as_me: failed program was:" >&5
  27263. sed 's/^/| /' conftest.$ac_ext >&5
  27264. cat >conftest.$ac_ext <<_ACEOF
  27265. /* confdefs.h. */
  27266. _ACEOF
  27267. cat confdefs.h >>conftest.$ac_ext
  27268. cat >>conftest.$ac_ext <<_ACEOF
  27269. /* end confdefs.h. */
  27270. $ac_includes_default
  27271. int
  27272. main ()
  27273. {
  27274. static int test_array [1 - 2 * !(((long int) (sizeof (char*))) < 0)];
  27275. test_array [0] = 0
  27276. ;
  27277. return 0;
  27278. }
  27279. _ACEOF
  27280. rm -f conftest.$ac_objext
  27281. if { (ac_try="$ac_compile"
  27282. case "(($ac_try" in
  27283. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27284. *) ac_try_echo=$ac_try;;
  27285. esac
  27286. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27287. $as_echo "$ac_try_echo") >&5
  27288. (eval "$ac_compile") 2>conftest.er1
  27289. ac_status=$?
  27290. grep -v '^ *+' conftest.er1 >conftest.err
  27291. rm -f conftest.er1
  27292. cat conftest.err >&5
  27293. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27294. (exit $ac_status); } && {
  27295. test -z "$ac_c_werror_flag" ||
  27296. test ! -s conftest.err
  27297. } && test -s conftest.$ac_objext; then
  27298. ac_hi=-1 ac_mid=-1
  27299. while :; do
  27300. cat >conftest.$ac_ext <<_ACEOF
  27301. /* confdefs.h. */
  27302. _ACEOF
  27303. cat confdefs.h >>conftest.$ac_ext
  27304. cat >>conftest.$ac_ext <<_ACEOF
  27305. /* end confdefs.h. */
  27306. $ac_includes_default
  27307. int
  27308. main ()
  27309. {
  27310. static int test_array [1 - 2 * !(((long int) (sizeof (char*))) >= $ac_mid)];
  27311. test_array [0] = 0
  27312. ;
  27313. return 0;
  27314. }
  27315. _ACEOF
  27316. rm -f conftest.$ac_objext
  27317. if { (ac_try="$ac_compile"
  27318. case "(($ac_try" in
  27319. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27320. *) ac_try_echo=$ac_try;;
  27321. esac
  27322. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27323. $as_echo "$ac_try_echo") >&5
  27324. (eval "$ac_compile") 2>conftest.er1
  27325. ac_status=$?
  27326. grep -v '^ *+' conftest.er1 >conftest.err
  27327. rm -f conftest.er1
  27328. cat conftest.err >&5
  27329. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27330. (exit $ac_status); } && {
  27331. test -z "$ac_c_werror_flag" ||
  27332. test ! -s conftest.err
  27333. } && test -s conftest.$ac_objext; then
  27334. ac_lo=$ac_mid; break
  27335. else
  27336. $as_echo "$as_me: failed program was:" >&5
  27337. sed 's/^/| /' conftest.$ac_ext >&5
  27338. ac_hi=`expr '(' $ac_mid ')' - 1`
  27339. if test $ac_mid -le $ac_hi; then
  27340. ac_lo= ac_hi=
  27341. break
  27342. fi
  27343. ac_mid=`expr 2 '*' $ac_mid`
  27344. fi
  27345. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27346. done
  27347. else
  27348. $as_echo "$as_me: failed program was:" >&5
  27349. sed 's/^/| /' conftest.$ac_ext >&5
  27350. ac_lo= ac_hi=
  27351. fi
  27352. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27353. fi
  27354. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27355. # Binary search between lo and hi bounds.
  27356. while test "x$ac_lo" != "x$ac_hi"; do
  27357. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  27358. cat >conftest.$ac_ext <<_ACEOF
  27359. /* confdefs.h. */
  27360. _ACEOF
  27361. cat confdefs.h >>conftest.$ac_ext
  27362. cat >>conftest.$ac_ext <<_ACEOF
  27363. /* end confdefs.h. */
  27364. $ac_includes_default
  27365. int
  27366. main ()
  27367. {
  27368. static int test_array [1 - 2 * !(((long int) (sizeof (char*))) <= $ac_mid)];
  27369. test_array [0] = 0
  27370. ;
  27371. return 0;
  27372. }
  27373. _ACEOF
  27374. rm -f conftest.$ac_objext
  27375. if { (ac_try="$ac_compile"
  27376. case "(($ac_try" in
  27377. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27378. *) ac_try_echo=$ac_try;;
  27379. esac
  27380. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27381. $as_echo "$ac_try_echo") >&5
  27382. (eval "$ac_compile") 2>conftest.er1
  27383. ac_status=$?
  27384. grep -v '^ *+' conftest.er1 >conftest.err
  27385. rm -f conftest.er1
  27386. cat conftest.err >&5
  27387. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27388. (exit $ac_status); } && {
  27389. test -z "$ac_c_werror_flag" ||
  27390. test ! -s conftest.err
  27391. } && test -s conftest.$ac_objext; then
  27392. ac_hi=$ac_mid
  27393. else
  27394. $as_echo "$as_me: failed program was:" >&5
  27395. sed 's/^/| /' conftest.$ac_ext >&5
  27396. ac_lo=`expr '(' $ac_mid ')' + 1`
  27397. fi
  27398. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27399. done
  27400. case $ac_lo in
  27401. ?*) ac_cv_sizeof_charp=$ac_lo;;
  27402. '') if test "$ac_cv_type_charp" = yes; then
  27403. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  27404. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  27405. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char*)
  27406. See \`config.log' for more details." >&5
  27407. $as_echo "$as_me: error: cannot compute sizeof (char*)
  27408. See \`config.log' for more details." >&2;}
  27409. { (exit 77); exit 77; }; }; }
  27410. else
  27411. ac_cv_sizeof_charp=0
  27412. fi ;;
  27413. esac
  27414. else
  27415. cat >conftest.$ac_ext <<_ACEOF
  27416. /* confdefs.h. */
  27417. _ACEOF
  27418. cat confdefs.h >>conftest.$ac_ext
  27419. cat >>conftest.$ac_ext <<_ACEOF
  27420. /* end confdefs.h. */
  27421. $ac_includes_default
  27422. static long int longval () { return (long int) (sizeof (char*)); }
  27423. static unsigned long int ulongval () { return (long int) (sizeof (char*)); }
  27424. #include <stdio.h>
  27425. #include <stdlib.h>
  27426. int
  27427. main ()
  27428. {
  27429. FILE *f = fopen ("conftest.val", "w");
  27430. if (! f)
  27431. return 1;
  27432. if (((long int) (sizeof (char*))) < 0)
  27433. {
  27434. long int i = longval ();
  27435. if (i != ((long int) (sizeof (char*))))
  27436. return 1;
  27437. fprintf (f, "%ld", i);
  27438. }
  27439. else
  27440. {
  27441. unsigned long int i = ulongval ();
  27442. if (i != ((long int) (sizeof (char*))))
  27443. return 1;
  27444. fprintf (f, "%lu", i);
  27445. }
  27446. /* Do not output a trailing newline, as this causes \r\n confusion
  27447. on some platforms. */
  27448. return ferror (f) || fclose (f) != 0;
  27449. ;
  27450. return 0;
  27451. }
  27452. _ACEOF
  27453. rm -f conftest$ac_exeext
  27454. if { (ac_try="$ac_link"
  27455. case "(($ac_try" in
  27456. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27457. *) ac_try_echo=$ac_try;;
  27458. esac
  27459. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27460. $as_echo "$ac_try_echo") >&5
  27461. (eval "$ac_link") 2>&5
  27462. ac_status=$?
  27463. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27464. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  27465. { (case "(($ac_try" in
  27466. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27467. *) ac_try_echo=$ac_try;;
  27468. esac
  27469. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27470. $as_echo "$ac_try_echo") >&5
  27471. (eval "$ac_try") 2>&5
  27472. ac_status=$?
  27473. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27474. (exit $ac_status); }; }; then
  27475. ac_cv_sizeof_charp=`cat conftest.val`
  27476. else
  27477. $as_echo "$as_me: program exited with status $ac_status" >&5
  27478. $as_echo "$as_me: failed program was:" >&5
  27479. sed 's/^/| /' conftest.$ac_ext >&5
  27480. ( exit $ac_status )
  27481. if test "$ac_cv_type_charp" = yes; then
  27482. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  27483. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  27484. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char*)
  27485. See \`config.log' for more details." >&5
  27486. $as_echo "$as_me: error: cannot compute sizeof (char*)
  27487. See \`config.log' for more details." >&2;}
  27488. { (exit 77); exit 77; }; }; }
  27489. else
  27490. ac_cv_sizeof_charp=0
  27491. fi
  27492. fi
  27493. rm -rf conftest.dSYM
  27494. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  27495. fi
  27496. rm -f conftest.val
  27497. fi
  27498. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_charp" >&5
  27499. $as_echo "$ac_cv_sizeof_charp" >&6; }
  27500. cat >>confdefs.h <<_ACEOF
  27501. #define SIZEOF_CHARP $ac_cv_sizeof_charp
  27502. _ACEOF
  27503. # The cast to long int works around a bug in the HP C Compiler
  27504. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  27505. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  27506. # This bug is HP SR number 8606223364.
  27507. { $as_echo "$as_me:$LINENO: checking size of int" >&5
  27508. $as_echo_n "checking size of int... " >&6; }
  27509. if test "${ac_cv_sizeof_int+set}" = set; then
  27510. $as_echo_n "(cached) " >&6
  27511. else
  27512. if test "$cross_compiling" = yes; then
  27513. # Depending upon the size, compute the lo and hi bounds.
  27514. cat >conftest.$ac_ext <<_ACEOF
  27515. /* confdefs.h. */
  27516. _ACEOF
  27517. cat confdefs.h >>conftest.$ac_ext
  27518. cat >>conftest.$ac_ext <<_ACEOF
  27519. /* end confdefs.h. */
  27520. $ac_includes_default
  27521. int
  27522. main ()
  27523. {
  27524. static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
  27525. test_array [0] = 0
  27526. ;
  27527. return 0;
  27528. }
  27529. _ACEOF
  27530. rm -f conftest.$ac_objext
  27531. if { (ac_try="$ac_compile"
  27532. case "(($ac_try" in
  27533. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27534. *) ac_try_echo=$ac_try;;
  27535. esac
  27536. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27537. $as_echo "$ac_try_echo") >&5
  27538. (eval "$ac_compile") 2>conftest.er1
  27539. ac_status=$?
  27540. grep -v '^ *+' conftest.er1 >conftest.err
  27541. rm -f conftest.er1
  27542. cat conftest.err >&5
  27543. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27544. (exit $ac_status); } && {
  27545. test -z "$ac_c_werror_flag" ||
  27546. test ! -s conftest.err
  27547. } && test -s conftest.$ac_objext; then
  27548. ac_lo=0 ac_mid=0
  27549. while :; do
  27550. cat >conftest.$ac_ext <<_ACEOF
  27551. /* confdefs.h. */
  27552. _ACEOF
  27553. cat confdefs.h >>conftest.$ac_ext
  27554. cat >>conftest.$ac_ext <<_ACEOF
  27555. /* end confdefs.h. */
  27556. $ac_includes_default
  27557. int
  27558. main ()
  27559. {
  27560. static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
  27561. test_array [0] = 0
  27562. ;
  27563. return 0;
  27564. }
  27565. _ACEOF
  27566. rm -f conftest.$ac_objext
  27567. if { (ac_try="$ac_compile"
  27568. case "(($ac_try" in
  27569. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27570. *) ac_try_echo=$ac_try;;
  27571. esac
  27572. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27573. $as_echo "$ac_try_echo") >&5
  27574. (eval "$ac_compile") 2>conftest.er1
  27575. ac_status=$?
  27576. grep -v '^ *+' conftest.er1 >conftest.err
  27577. rm -f conftest.er1
  27578. cat conftest.err >&5
  27579. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27580. (exit $ac_status); } && {
  27581. test -z "$ac_c_werror_flag" ||
  27582. test ! -s conftest.err
  27583. } && test -s conftest.$ac_objext; then
  27584. ac_hi=$ac_mid; break
  27585. else
  27586. $as_echo "$as_me: failed program was:" >&5
  27587. sed 's/^/| /' conftest.$ac_ext >&5
  27588. ac_lo=`expr $ac_mid + 1`
  27589. if test $ac_lo -le $ac_mid; then
  27590. ac_lo= ac_hi=
  27591. break
  27592. fi
  27593. ac_mid=`expr 2 '*' $ac_mid + 1`
  27594. fi
  27595. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27596. done
  27597. else
  27598. $as_echo "$as_me: failed program was:" >&5
  27599. sed 's/^/| /' conftest.$ac_ext >&5
  27600. cat >conftest.$ac_ext <<_ACEOF
  27601. /* confdefs.h. */
  27602. _ACEOF
  27603. cat confdefs.h >>conftest.$ac_ext
  27604. cat >>conftest.$ac_ext <<_ACEOF
  27605. /* end confdefs.h. */
  27606. $ac_includes_default
  27607. int
  27608. main ()
  27609. {
  27610. static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
  27611. test_array [0] = 0
  27612. ;
  27613. return 0;
  27614. }
  27615. _ACEOF
  27616. rm -f conftest.$ac_objext
  27617. if { (ac_try="$ac_compile"
  27618. case "(($ac_try" in
  27619. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27620. *) ac_try_echo=$ac_try;;
  27621. esac
  27622. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27623. $as_echo "$ac_try_echo") >&5
  27624. (eval "$ac_compile") 2>conftest.er1
  27625. ac_status=$?
  27626. grep -v '^ *+' conftest.er1 >conftest.err
  27627. rm -f conftest.er1
  27628. cat conftest.err >&5
  27629. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27630. (exit $ac_status); } && {
  27631. test -z "$ac_c_werror_flag" ||
  27632. test ! -s conftest.err
  27633. } && test -s conftest.$ac_objext; then
  27634. ac_hi=-1 ac_mid=-1
  27635. while :; do
  27636. cat >conftest.$ac_ext <<_ACEOF
  27637. /* confdefs.h. */
  27638. _ACEOF
  27639. cat confdefs.h >>conftest.$ac_ext
  27640. cat >>conftest.$ac_ext <<_ACEOF
  27641. /* end confdefs.h. */
  27642. $ac_includes_default
  27643. int
  27644. main ()
  27645. {
  27646. static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
  27647. test_array [0] = 0
  27648. ;
  27649. return 0;
  27650. }
  27651. _ACEOF
  27652. rm -f conftest.$ac_objext
  27653. if { (ac_try="$ac_compile"
  27654. case "(($ac_try" in
  27655. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27656. *) ac_try_echo=$ac_try;;
  27657. esac
  27658. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27659. $as_echo "$ac_try_echo") >&5
  27660. (eval "$ac_compile") 2>conftest.er1
  27661. ac_status=$?
  27662. grep -v '^ *+' conftest.er1 >conftest.err
  27663. rm -f conftest.er1
  27664. cat conftest.err >&5
  27665. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27666. (exit $ac_status); } && {
  27667. test -z "$ac_c_werror_flag" ||
  27668. test ! -s conftest.err
  27669. } && test -s conftest.$ac_objext; then
  27670. ac_lo=$ac_mid; break
  27671. else
  27672. $as_echo "$as_me: failed program was:" >&5
  27673. sed 's/^/| /' conftest.$ac_ext >&5
  27674. ac_hi=`expr '(' $ac_mid ')' - 1`
  27675. if test $ac_mid -le $ac_hi; then
  27676. ac_lo= ac_hi=
  27677. break
  27678. fi
  27679. ac_mid=`expr 2 '*' $ac_mid`
  27680. fi
  27681. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27682. done
  27683. else
  27684. $as_echo "$as_me: failed program was:" >&5
  27685. sed 's/^/| /' conftest.$ac_ext >&5
  27686. ac_lo= ac_hi=
  27687. fi
  27688. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27689. fi
  27690. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27691. # Binary search between lo and hi bounds.
  27692. while test "x$ac_lo" != "x$ac_hi"; do
  27693. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  27694. cat >conftest.$ac_ext <<_ACEOF
  27695. /* confdefs.h. */
  27696. _ACEOF
  27697. cat confdefs.h >>conftest.$ac_ext
  27698. cat >>conftest.$ac_ext <<_ACEOF
  27699. /* end confdefs.h. */
  27700. $ac_includes_default
  27701. int
  27702. main ()
  27703. {
  27704. static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
  27705. test_array [0] = 0
  27706. ;
  27707. return 0;
  27708. }
  27709. _ACEOF
  27710. rm -f conftest.$ac_objext
  27711. if { (ac_try="$ac_compile"
  27712. case "(($ac_try" in
  27713. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27714. *) ac_try_echo=$ac_try;;
  27715. esac
  27716. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27717. $as_echo "$ac_try_echo") >&5
  27718. (eval "$ac_compile") 2>conftest.er1
  27719. ac_status=$?
  27720. grep -v '^ *+' conftest.er1 >conftest.err
  27721. rm -f conftest.er1
  27722. cat conftest.err >&5
  27723. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27724. (exit $ac_status); } && {
  27725. test -z "$ac_c_werror_flag" ||
  27726. test ! -s conftest.err
  27727. } && test -s conftest.$ac_objext; then
  27728. ac_hi=$ac_mid
  27729. else
  27730. $as_echo "$as_me: failed program was:" >&5
  27731. sed 's/^/| /' conftest.$ac_ext >&5
  27732. ac_lo=`expr '(' $ac_mid ')' + 1`
  27733. fi
  27734. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27735. done
  27736. case $ac_lo in
  27737. ?*) ac_cv_sizeof_int=$ac_lo;;
  27738. '') if test "$ac_cv_type_int" = yes; then
  27739. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  27740. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  27741. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  27742. See \`config.log' for more details." >&5
  27743. $as_echo "$as_me: error: cannot compute sizeof (int)
  27744. See \`config.log' for more details." >&2;}
  27745. { (exit 77); exit 77; }; }; }
  27746. else
  27747. ac_cv_sizeof_int=0
  27748. fi ;;
  27749. esac
  27750. else
  27751. cat >conftest.$ac_ext <<_ACEOF
  27752. /* confdefs.h. */
  27753. _ACEOF
  27754. cat confdefs.h >>conftest.$ac_ext
  27755. cat >>conftest.$ac_ext <<_ACEOF
  27756. /* end confdefs.h. */
  27757. $ac_includes_default
  27758. static long int longval () { return (long int) (sizeof (int)); }
  27759. static unsigned long int ulongval () { return (long int) (sizeof (int)); }
  27760. #include <stdio.h>
  27761. #include <stdlib.h>
  27762. int
  27763. main ()
  27764. {
  27765. FILE *f = fopen ("conftest.val", "w");
  27766. if (! f)
  27767. return 1;
  27768. if (((long int) (sizeof (int))) < 0)
  27769. {
  27770. long int i = longval ();
  27771. if (i != ((long int) (sizeof (int))))
  27772. return 1;
  27773. fprintf (f, "%ld", i);
  27774. }
  27775. else
  27776. {
  27777. unsigned long int i = ulongval ();
  27778. if (i != ((long int) (sizeof (int))))
  27779. return 1;
  27780. fprintf (f, "%lu", i);
  27781. }
  27782. /* Do not output a trailing newline, as this causes \r\n confusion
  27783. on some platforms. */
  27784. return ferror (f) || fclose (f) != 0;
  27785. ;
  27786. return 0;
  27787. }
  27788. _ACEOF
  27789. rm -f conftest$ac_exeext
  27790. if { (ac_try="$ac_link"
  27791. case "(($ac_try" in
  27792. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27793. *) ac_try_echo=$ac_try;;
  27794. esac
  27795. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27796. $as_echo "$ac_try_echo") >&5
  27797. (eval "$ac_link") 2>&5
  27798. ac_status=$?
  27799. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27800. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  27801. { (case "(($ac_try" in
  27802. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27803. *) ac_try_echo=$ac_try;;
  27804. esac
  27805. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27806. $as_echo "$ac_try_echo") >&5
  27807. (eval "$ac_try") 2>&5
  27808. ac_status=$?
  27809. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27810. (exit $ac_status); }; }; then
  27811. ac_cv_sizeof_int=`cat conftest.val`
  27812. else
  27813. $as_echo "$as_me: program exited with status $ac_status" >&5
  27814. $as_echo "$as_me: failed program was:" >&5
  27815. sed 's/^/| /' conftest.$ac_ext >&5
  27816. ( exit $ac_status )
  27817. if test "$ac_cv_type_int" = yes; then
  27818. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  27819. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  27820. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  27821. See \`config.log' for more details." >&5
  27822. $as_echo "$as_me: error: cannot compute sizeof (int)
  27823. See \`config.log' for more details." >&2;}
  27824. { (exit 77); exit 77; }; }; }
  27825. else
  27826. ac_cv_sizeof_int=0
  27827. fi
  27828. fi
  27829. rm -rf conftest.dSYM
  27830. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  27831. fi
  27832. rm -f conftest.val
  27833. fi
  27834. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  27835. $as_echo "$ac_cv_sizeof_int" >&6; }
  27836. cat >>confdefs.h <<_ACEOF
  27837. #define SIZEOF_INT $ac_cv_sizeof_int
  27838. _ACEOF
  27839. # The cast to long int works around a bug in the HP C Compiler
  27840. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  27841. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  27842. # This bug is HP SR number 8606223364.
  27843. { $as_echo "$as_me:$LINENO: checking size of long" >&5
  27844. $as_echo_n "checking size of long... " >&6; }
  27845. if test "${ac_cv_sizeof_long+set}" = set; then
  27846. $as_echo_n "(cached) " >&6
  27847. else
  27848. if test "$cross_compiling" = yes; then
  27849. # Depending upon the size, compute the lo and hi bounds.
  27850. cat >conftest.$ac_ext <<_ACEOF
  27851. /* confdefs.h. */
  27852. _ACEOF
  27853. cat confdefs.h >>conftest.$ac_ext
  27854. cat >>conftest.$ac_ext <<_ACEOF
  27855. /* end confdefs.h. */
  27856. $ac_includes_default
  27857. int
  27858. main ()
  27859. {
  27860. static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
  27861. test_array [0] = 0
  27862. ;
  27863. return 0;
  27864. }
  27865. _ACEOF
  27866. rm -f conftest.$ac_objext
  27867. if { (ac_try="$ac_compile"
  27868. case "(($ac_try" in
  27869. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27870. *) ac_try_echo=$ac_try;;
  27871. esac
  27872. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27873. $as_echo "$ac_try_echo") >&5
  27874. (eval "$ac_compile") 2>conftest.er1
  27875. ac_status=$?
  27876. grep -v '^ *+' conftest.er1 >conftest.err
  27877. rm -f conftest.er1
  27878. cat conftest.err >&5
  27879. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27880. (exit $ac_status); } && {
  27881. test -z "$ac_c_werror_flag" ||
  27882. test ! -s conftest.err
  27883. } && test -s conftest.$ac_objext; then
  27884. ac_lo=0 ac_mid=0
  27885. while :; do
  27886. cat >conftest.$ac_ext <<_ACEOF
  27887. /* confdefs.h. */
  27888. _ACEOF
  27889. cat confdefs.h >>conftest.$ac_ext
  27890. cat >>conftest.$ac_ext <<_ACEOF
  27891. /* end confdefs.h. */
  27892. $ac_includes_default
  27893. int
  27894. main ()
  27895. {
  27896. static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
  27897. test_array [0] = 0
  27898. ;
  27899. return 0;
  27900. }
  27901. _ACEOF
  27902. rm -f conftest.$ac_objext
  27903. if { (ac_try="$ac_compile"
  27904. case "(($ac_try" in
  27905. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27906. *) ac_try_echo=$ac_try;;
  27907. esac
  27908. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27909. $as_echo "$ac_try_echo") >&5
  27910. (eval "$ac_compile") 2>conftest.er1
  27911. ac_status=$?
  27912. grep -v '^ *+' conftest.er1 >conftest.err
  27913. rm -f conftest.er1
  27914. cat conftest.err >&5
  27915. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27916. (exit $ac_status); } && {
  27917. test -z "$ac_c_werror_flag" ||
  27918. test ! -s conftest.err
  27919. } && test -s conftest.$ac_objext; then
  27920. ac_hi=$ac_mid; break
  27921. else
  27922. $as_echo "$as_me: failed program was:" >&5
  27923. sed 's/^/| /' conftest.$ac_ext >&5
  27924. ac_lo=`expr $ac_mid + 1`
  27925. if test $ac_lo -le $ac_mid; then
  27926. ac_lo= ac_hi=
  27927. break
  27928. fi
  27929. ac_mid=`expr 2 '*' $ac_mid + 1`
  27930. fi
  27931. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27932. done
  27933. else
  27934. $as_echo "$as_me: failed program was:" >&5
  27935. sed 's/^/| /' conftest.$ac_ext >&5
  27936. cat >conftest.$ac_ext <<_ACEOF
  27937. /* confdefs.h. */
  27938. _ACEOF
  27939. cat confdefs.h >>conftest.$ac_ext
  27940. cat >>conftest.$ac_ext <<_ACEOF
  27941. /* end confdefs.h. */
  27942. $ac_includes_default
  27943. int
  27944. main ()
  27945. {
  27946. static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
  27947. test_array [0] = 0
  27948. ;
  27949. return 0;
  27950. }
  27951. _ACEOF
  27952. rm -f conftest.$ac_objext
  27953. if { (ac_try="$ac_compile"
  27954. case "(($ac_try" in
  27955. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27956. *) ac_try_echo=$ac_try;;
  27957. esac
  27958. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27959. $as_echo "$ac_try_echo") >&5
  27960. (eval "$ac_compile") 2>conftest.er1
  27961. ac_status=$?
  27962. grep -v '^ *+' conftest.er1 >conftest.err
  27963. rm -f conftest.er1
  27964. cat conftest.err >&5
  27965. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27966. (exit $ac_status); } && {
  27967. test -z "$ac_c_werror_flag" ||
  27968. test ! -s conftest.err
  27969. } && test -s conftest.$ac_objext; then
  27970. ac_hi=-1 ac_mid=-1
  27971. while :; do
  27972. cat >conftest.$ac_ext <<_ACEOF
  27973. /* confdefs.h. */
  27974. _ACEOF
  27975. cat confdefs.h >>conftest.$ac_ext
  27976. cat >>conftest.$ac_ext <<_ACEOF
  27977. /* end confdefs.h. */
  27978. $ac_includes_default
  27979. int
  27980. main ()
  27981. {
  27982. static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
  27983. test_array [0] = 0
  27984. ;
  27985. return 0;
  27986. }
  27987. _ACEOF
  27988. rm -f conftest.$ac_objext
  27989. if { (ac_try="$ac_compile"
  27990. case "(($ac_try" in
  27991. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27992. *) ac_try_echo=$ac_try;;
  27993. esac
  27994. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27995. $as_echo "$ac_try_echo") >&5
  27996. (eval "$ac_compile") 2>conftest.er1
  27997. ac_status=$?
  27998. grep -v '^ *+' conftest.er1 >conftest.err
  27999. rm -f conftest.er1
  28000. cat conftest.err >&5
  28001. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28002. (exit $ac_status); } && {
  28003. test -z "$ac_c_werror_flag" ||
  28004. test ! -s conftest.err
  28005. } && test -s conftest.$ac_objext; then
  28006. ac_lo=$ac_mid; break
  28007. else
  28008. $as_echo "$as_me: failed program was:" >&5
  28009. sed 's/^/| /' conftest.$ac_ext >&5
  28010. ac_hi=`expr '(' $ac_mid ')' - 1`
  28011. if test $ac_mid -le $ac_hi; then
  28012. ac_lo= ac_hi=
  28013. break
  28014. fi
  28015. ac_mid=`expr 2 '*' $ac_mid`
  28016. fi
  28017. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28018. done
  28019. else
  28020. $as_echo "$as_me: failed program was:" >&5
  28021. sed 's/^/| /' conftest.$ac_ext >&5
  28022. ac_lo= ac_hi=
  28023. fi
  28024. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28025. fi
  28026. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28027. # Binary search between lo and hi bounds.
  28028. while test "x$ac_lo" != "x$ac_hi"; do
  28029. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  28030. cat >conftest.$ac_ext <<_ACEOF
  28031. /* confdefs.h. */
  28032. _ACEOF
  28033. cat confdefs.h >>conftest.$ac_ext
  28034. cat >>conftest.$ac_ext <<_ACEOF
  28035. /* end confdefs.h. */
  28036. $ac_includes_default
  28037. int
  28038. main ()
  28039. {
  28040. static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
  28041. test_array [0] = 0
  28042. ;
  28043. return 0;
  28044. }
  28045. _ACEOF
  28046. rm -f conftest.$ac_objext
  28047. if { (ac_try="$ac_compile"
  28048. case "(($ac_try" in
  28049. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28050. *) ac_try_echo=$ac_try;;
  28051. esac
  28052. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28053. $as_echo "$ac_try_echo") >&5
  28054. (eval "$ac_compile") 2>conftest.er1
  28055. ac_status=$?
  28056. grep -v '^ *+' conftest.er1 >conftest.err
  28057. rm -f conftest.er1
  28058. cat conftest.err >&5
  28059. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28060. (exit $ac_status); } && {
  28061. test -z "$ac_c_werror_flag" ||
  28062. test ! -s conftest.err
  28063. } && test -s conftest.$ac_objext; then
  28064. ac_hi=$ac_mid
  28065. else
  28066. $as_echo "$as_me: failed program was:" >&5
  28067. sed 's/^/| /' conftest.$ac_ext >&5
  28068. ac_lo=`expr '(' $ac_mid ')' + 1`
  28069. fi
  28070. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28071. done
  28072. case $ac_lo in
  28073. ?*) ac_cv_sizeof_long=$ac_lo;;
  28074. '') if test "$ac_cv_type_long" = yes; then
  28075. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  28076. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  28077. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  28078. See \`config.log' for more details." >&5
  28079. $as_echo "$as_me: error: cannot compute sizeof (long)
  28080. See \`config.log' for more details." >&2;}
  28081. { (exit 77); exit 77; }; }; }
  28082. else
  28083. ac_cv_sizeof_long=0
  28084. fi ;;
  28085. esac
  28086. else
  28087. cat >conftest.$ac_ext <<_ACEOF
  28088. /* confdefs.h. */
  28089. _ACEOF
  28090. cat confdefs.h >>conftest.$ac_ext
  28091. cat >>conftest.$ac_ext <<_ACEOF
  28092. /* end confdefs.h. */
  28093. $ac_includes_default
  28094. static long int longval () { return (long int) (sizeof (long)); }
  28095. static unsigned long int ulongval () { return (long int) (sizeof (long)); }
  28096. #include <stdio.h>
  28097. #include <stdlib.h>
  28098. int
  28099. main ()
  28100. {
  28101. FILE *f = fopen ("conftest.val", "w");
  28102. if (! f)
  28103. return 1;
  28104. if (((long int) (sizeof (long))) < 0)
  28105. {
  28106. long int i = longval ();
  28107. if (i != ((long int) (sizeof (long))))
  28108. return 1;
  28109. fprintf (f, "%ld", i);
  28110. }
  28111. else
  28112. {
  28113. unsigned long int i = ulongval ();
  28114. if (i != ((long int) (sizeof (long))))
  28115. return 1;
  28116. fprintf (f, "%lu", i);
  28117. }
  28118. /* Do not output a trailing newline, as this causes \r\n confusion
  28119. on some platforms. */
  28120. return ferror (f) || fclose (f) != 0;
  28121. ;
  28122. return 0;
  28123. }
  28124. _ACEOF
  28125. rm -f conftest$ac_exeext
  28126. if { (ac_try="$ac_link"
  28127. case "(($ac_try" in
  28128. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28129. *) ac_try_echo=$ac_try;;
  28130. esac
  28131. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28132. $as_echo "$ac_try_echo") >&5
  28133. (eval "$ac_link") 2>&5
  28134. ac_status=$?
  28135. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28136. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  28137. { (case "(($ac_try" in
  28138. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28139. *) ac_try_echo=$ac_try;;
  28140. esac
  28141. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28142. $as_echo "$ac_try_echo") >&5
  28143. (eval "$ac_try") 2>&5
  28144. ac_status=$?
  28145. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28146. (exit $ac_status); }; }; then
  28147. ac_cv_sizeof_long=`cat conftest.val`
  28148. else
  28149. $as_echo "$as_me: program exited with status $ac_status" >&5
  28150. $as_echo "$as_me: failed program was:" >&5
  28151. sed 's/^/| /' conftest.$ac_ext >&5
  28152. ( exit $ac_status )
  28153. if test "$ac_cv_type_long" = yes; then
  28154. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  28155. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  28156. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  28157. See \`config.log' for more details." >&5
  28158. $as_echo "$as_me: error: cannot compute sizeof (long)
  28159. See \`config.log' for more details." >&2;}
  28160. { (exit 77); exit 77; }; }; }
  28161. else
  28162. ac_cv_sizeof_long=0
  28163. fi
  28164. fi
  28165. rm -rf conftest.dSYM
  28166. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  28167. fi
  28168. rm -f conftest.val
  28169. fi
  28170. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  28171. $as_echo "$ac_cv_sizeof_long" >&6; }
  28172. cat >>confdefs.h <<_ACEOF
  28173. #define SIZEOF_LONG $ac_cv_sizeof_long
  28174. _ACEOF
  28175. # The cast to long int works around a bug in the HP C Compiler
  28176. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  28177. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  28178. # This bug is HP SR number 8606223364.
  28179. { $as_echo "$as_me:$LINENO: checking size of short" >&5
  28180. $as_echo_n "checking size of short... " >&6; }
  28181. if test "${ac_cv_sizeof_short+set}" = set; then
  28182. $as_echo_n "(cached) " >&6
  28183. else
  28184. if test "$cross_compiling" = yes; then
  28185. # Depending upon the size, compute the lo and hi bounds.
  28186. cat >conftest.$ac_ext <<_ACEOF
  28187. /* confdefs.h. */
  28188. _ACEOF
  28189. cat confdefs.h >>conftest.$ac_ext
  28190. cat >>conftest.$ac_ext <<_ACEOF
  28191. /* end confdefs.h. */
  28192. $ac_includes_default
  28193. int
  28194. main ()
  28195. {
  28196. static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
  28197. test_array [0] = 0
  28198. ;
  28199. return 0;
  28200. }
  28201. _ACEOF
  28202. rm -f conftest.$ac_objext
  28203. if { (ac_try="$ac_compile"
  28204. case "(($ac_try" in
  28205. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28206. *) ac_try_echo=$ac_try;;
  28207. esac
  28208. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28209. $as_echo "$ac_try_echo") >&5
  28210. (eval "$ac_compile") 2>conftest.er1
  28211. ac_status=$?
  28212. grep -v '^ *+' conftest.er1 >conftest.err
  28213. rm -f conftest.er1
  28214. cat conftest.err >&5
  28215. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28216. (exit $ac_status); } && {
  28217. test -z "$ac_c_werror_flag" ||
  28218. test ! -s conftest.err
  28219. } && test -s conftest.$ac_objext; then
  28220. ac_lo=0 ac_mid=0
  28221. while :; do
  28222. cat >conftest.$ac_ext <<_ACEOF
  28223. /* confdefs.h. */
  28224. _ACEOF
  28225. cat confdefs.h >>conftest.$ac_ext
  28226. cat >>conftest.$ac_ext <<_ACEOF
  28227. /* end confdefs.h. */
  28228. $ac_includes_default
  28229. int
  28230. main ()
  28231. {
  28232. static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
  28233. test_array [0] = 0
  28234. ;
  28235. return 0;
  28236. }
  28237. _ACEOF
  28238. rm -f conftest.$ac_objext
  28239. if { (ac_try="$ac_compile"
  28240. case "(($ac_try" in
  28241. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28242. *) ac_try_echo=$ac_try;;
  28243. esac
  28244. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28245. $as_echo "$ac_try_echo") >&5
  28246. (eval "$ac_compile") 2>conftest.er1
  28247. ac_status=$?
  28248. grep -v '^ *+' conftest.er1 >conftest.err
  28249. rm -f conftest.er1
  28250. cat conftest.err >&5
  28251. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28252. (exit $ac_status); } && {
  28253. test -z "$ac_c_werror_flag" ||
  28254. test ! -s conftest.err
  28255. } && test -s conftest.$ac_objext; then
  28256. ac_hi=$ac_mid; break
  28257. else
  28258. $as_echo "$as_me: failed program was:" >&5
  28259. sed 's/^/| /' conftest.$ac_ext >&5
  28260. ac_lo=`expr $ac_mid + 1`
  28261. if test $ac_lo -le $ac_mid; then
  28262. ac_lo= ac_hi=
  28263. break
  28264. fi
  28265. ac_mid=`expr 2 '*' $ac_mid + 1`
  28266. fi
  28267. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28268. done
  28269. else
  28270. $as_echo "$as_me: failed program was:" >&5
  28271. sed 's/^/| /' conftest.$ac_ext >&5
  28272. cat >conftest.$ac_ext <<_ACEOF
  28273. /* confdefs.h. */
  28274. _ACEOF
  28275. cat confdefs.h >>conftest.$ac_ext
  28276. cat >>conftest.$ac_ext <<_ACEOF
  28277. /* end confdefs.h. */
  28278. $ac_includes_default
  28279. int
  28280. main ()
  28281. {
  28282. static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
  28283. test_array [0] = 0
  28284. ;
  28285. return 0;
  28286. }
  28287. _ACEOF
  28288. rm -f conftest.$ac_objext
  28289. if { (ac_try="$ac_compile"
  28290. case "(($ac_try" in
  28291. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28292. *) ac_try_echo=$ac_try;;
  28293. esac
  28294. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28295. $as_echo "$ac_try_echo") >&5
  28296. (eval "$ac_compile") 2>conftest.er1
  28297. ac_status=$?
  28298. grep -v '^ *+' conftest.er1 >conftest.err
  28299. rm -f conftest.er1
  28300. cat conftest.err >&5
  28301. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28302. (exit $ac_status); } && {
  28303. test -z "$ac_c_werror_flag" ||
  28304. test ! -s conftest.err
  28305. } && test -s conftest.$ac_objext; then
  28306. ac_hi=-1 ac_mid=-1
  28307. while :; do
  28308. cat >conftest.$ac_ext <<_ACEOF
  28309. /* confdefs.h. */
  28310. _ACEOF
  28311. cat confdefs.h >>conftest.$ac_ext
  28312. cat >>conftest.$ac_ext <<_ACEOF
  28313. /* end confdefs.h. */
  28314. $ac_includes_default
  28315. int
  28316. main ()
  28317. {
  28318. static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
  28319. test_array [0] = 0
  28320. ;
  28321. return 0;
  28322. }
  28323. _ACEOF
  28324. rm -f conftest.$ac_objext
  28325. if { (ac_try="$ac_compile"
  28326. case "(($ac_try" in
  28327. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28328. *) ac_try_echo=$ac_try;;
  28329. esac
  28330. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28331. $as_echo "$ac_try_echo") >&5
  28332. (eval "$ac_compile") 2>conftest.er1
  28333. ac_status=$?
  28334. grep -v '^ *+' conftest.er1 >conftest.err
  28335. rm -f conftest.er1
  28336. cat conftest.err >&5
  28337. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28338. (exit $ac_status); } && {
  28339. test -z "$ac_c_werror_flag" ||
  28340. test ! -s conftest.err
  28341. } && test -s conftest.$ac_objext; then
  28342. ac_lo=$ac_mid; break
  28343. else
  28344. $as_echo "$as_me: failed program was:" >&5
  28345. sed 's/^/| /' conftest.$ac_ext >&5
  28346. ac_hi=`expr '(' $ac_mid ')' - 1`
  28347. if test $ac_mid -le $ac_hi; then
  28348. ac_lo= ac_hi=
  28349. break
  28350. fi
  28351. ac_mid=`expr 2 '*' $ac_mid`
  28352. fi
  28353. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28354. done
  28355. else
  28356. $as_echo "$as_me: failed program was:" >&5
  28357. sed 's/^/| /' conftest.$ac_ext >&5
  28358. ac_lo= ac_hi=
  28359. fi
  28360. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28361. fi
  28362. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28363. # Binary search between lo and hi bounds.
  28364. while test "x$ac_lo" != "x$ac_hi"; do
  28365. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  28366. cat >conftest.$ac_ext <<_ACEOF
  28367. /* confdefs.h. */
  28368. _ACEOF
  28369. cat confdefs.h >>conftest.$ac_ext
  28370. cat >>conftest.$ac_ext <<_ACEOF
  28371. /* end confdefs.h. */
  28372. $ac_includes_default
  28373. int
  28374. main ()
  28375. {
  28376. static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
  28377. test_array [0] = 0
  28378. ;
  28379. return 0;
  28380. }
  28381. _ACEOF
  28382. rm -f conftest.$ac_objext
  28383. if { (ac_try="$ac_compile"
  28384. case "(($ac_try" in
  28385. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28386. *) ac_try_echo=$ac_try;;
  28387. esac
  28388. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28389. $as_echo "$ac_try_echo") >&5
  28390. (eval "$ac_compile") 2>conftest.er1
  28391. ac_status=$?
  28392. grep -v '^ *+' conftest.er1 >conftest.err
  28393. rm -f conftest.er1
  28394. cat conftest.err >&5
  28395. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28396. (exit $ac_status); } && {
  28397. test -z "$ac_c_werror_flag" ||
  28398. test ! -s conftest.err
  28399. } && test -s conftest.$ac_objext; then
  28400. ac_hi=$ac_mid
  28401. else
  28402. $as_echo "$as_me: failed program was:" >&5
  28403. sed 's/^/| /' conftest.$ac_ext >&5
  28404. ac_lo=`expr '(' $ac_mid ')' + 1`
  28405. fi
  28406. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28407. done
  28408. case $ac_lo in
  28409. ?*) ac_cv_sizeof_short=$ac_lo;;
  28410. '') if test "$ac_cv_type_short" = yes; then
  28411. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  28412. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  28413. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
  28414. See \`config.log' for more details." >&5
  28415. $as_echo "$as_me: error: cannot compute sizeof (short)
  28416. See \`config.log' for more details." >&2;}
  28417. { (exit 77); exit 77; }; }; }
  28418. else
  28419. ac_cv_sizeof_short=0
  28420. fi ;;
  28421. esac
  28422. else
  28423. cat >conftest.$ac_ext <<_ACEOF
  28424. /* confdefs.h. */
  28425. _ACEOF
  28426. cat confdefs.h >>conftest.$ac_ext
  28427. cat >>conftest.$ac_ext <<_ACEOF
  28428. /* end confdefs.h. */
  28429. $ac_includes_default
  28430. static long int longval () { return (long int) (sizeof (short)); }
  28431. static unsigned long int ulongval () { return (long int) (sizeof (short)); }
  28432. #include <stdio.h>
  28433. #include <stdlib.h>
  28434. int
  28435. main ()
  28436. {
  28437. FILE *f = fopen ("conftest.val", "w");
  28438. if (! f)
  28439. return 1;
  28440. if (((long int) (sizeof (short))) < 0)
  28441. {
  28442. long int i = longval ();
  28443. if (i != ((long int) (sizeof (short))))
  28444. return 1;
  28445. fprintf (f, "%ld", i);
  28446. }
  28447. else
  28448. {
  28449. unsigned long int i = ulongval ();
  28450. if (i != ((long int) (sizeof (short))))
  28451. return 1;
  28452. fprintf (f, "%lu", i);
  28453. }
  28454. /* Do not output a trailing newline, as this causes \r\n confusion
  28455. on some platforms. */
  28456. return ferror (f) || fclose (f) != 0;
  28457. ;
  28458. return 0;
  28459. }
  28460. _ACEOF
  28461. rm -f conftest$ac_exeext
  28462. if { (ac_try="$ac_link"
  28463. case "(($ac_try" in
  28464. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28465. *) ac_try_echo=$ac_try;;
  28466. esac
  28467. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28468. $as_echo "$ac_try_echo") >&5
  28469. (eval "$ac_link") 2>&5
  28470. ac_status=$?
  28471. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28472. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  28473. { (case "(($ac_try" in
  28474. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28475. *) ac_try_echo=$ac_try;;
  28476. esac
  28477. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28478. $as_echo "$ac_try_echo") >&5
  28479. (eval "$ac_try") 2>&5
  28480. ac_status=$?
  28481. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28482. (exit $ac_status); }; }; then
  28483. ac_cv_sizeof_short=`cat conftest.val`
  28484. else
  28485. $as_echo "$as_me: program exited with status $ac_status" >&5
  28486. $as_echo "$as_me: failed program was:" >&5
  28487. sed 's/^/| /' conftest.$ac_ext >&5
  28488. ( exit $ac_status )
  28489. if test "$ac_cv_type_short" = yes; then
  28490. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  28491. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  28492. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
  28493. See \`config.log' for more details." >&5
  28494. $as_echo "$as_me: error: cannot compute sizeof (short)
  28495. See \`config.log' for more details." >&2;}
  28496. { (exit 77); exit 77; }; }; }
  28497. else
  28498. ac_cv_sizeof_short=0
  28499. fi
  28500. fi
  28501. rm -rf conftest.dSYM
  28502. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  28503. fi
  28504. rm -f conftest.val
  28505. fi
  28506. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
  28507. $as_echo "$ac_cv_sizeof_short" >&6; }
  28508. cat >>confdefs.h <<_ACEOF
  28509. #define SIZEOF_SHORT $ac_cv_sizeof_short
  28510. _ACEOF
  28511. # ----------------------------------------------------------------------
  28512. # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind.
  28513. # ----------------------------------------------------------------------
  28514. { $as_echo "$as_me:$LINENO: checking for pathfind in -lgen" >&5
  28515. $as_echo_n "checking for pathfind in -lgen... " >&6; }
  28516. if test "${ac_cv_lib_gen_pathfind+set}" = set; then
  28517. $as_echo_n "(cached) " >&6
  28518. else
  28519. ac_check_lib_save_LIBS=$LIBS
  28520. LIBS="-lgen $LIBS"
  28521. cat >conftest.$ac_ext <<_ACEOF
  28522. /* confdefs.h. */
  28523. _ACEOF
  28524. cat confdefs.h >>conftest.$ac_ext
  28525. cat >>conftest.$ac_ext <<_ACEOF
  28526. /* end confdefs.h. */
  28527. /* Override any GCC internal prototype to avoid an error.
  28528. Use char because int might match the return type of a GCC
  28529. builtin and then its argument prototype would still apply. */
  28530. #ifdef __cplusplus
  28531. extern "C"
  28532. #endif
  28533. char pathfind ();
  28534. int
  28535. main ()
  28536. {
  28537. return pathfind ();
  28538. ;
  28539. return 0;
  28540. }
  28541. _ACEOF
  28542. rm -f conftest.$ac_objext conftest$ac_exeext
  28543. if { (ac_try="$ac_link"
  28544. case "(($ac_try" in
  28545. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28546. *) ac_try_echo=$ac_try;;
  28547. esac
  28548. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28549. $as_echo "$ac_try_echo") >&5
  28550. (eval "$ac_link") 2>conftest.er1
  28551. ac_status=$?
  28552. grep -v '^ *+' conftest.er1 >conftest.err
  28553. rm -f conftest.er1
  28554. cat conftest.err >&5
  28555. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28556. (exit $ac_status); } && {
  28557. test -z "$ac_c_werror_flag" ||
  28558. test ! -s conftest.err
  28559. } && test -s conftest$ac_exeext && {
  28560. test "$cross_compiling" = yes ||
  28561. $as_test_x conftest$ac_exeext
  28562. }; then
  28563. ac_cv_lib_gen_pathfind=yes
  28564. else
  28565. $as_echo "$as_me: failed program was:" >&5
  28566. sed 's/^/| /' conftest.$ac_ext >&5
  28567. ac_cv_lib_gen_pathfind=no
  28568. fi
  28569. rm -rf conftest.dSYM
  28570. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  28571. conftest$ac_exeext conftest.$ac_ext
  28572. LIBS=$ac_check_lib_save_LIBS
  28573. fi
  28574. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gen_pathfind" >&5
  28575. $as_echo "$ac_cv_lib_gen_pathfind" >&6; }
  28576. if test "x$ac_cv_lib_gen_pathfind" = x""yes; then
  28577. cat >>confdefs.h <<_ACEOF
  28578. #define HAVE_LIBGEN 1
  28579. _ACEOF
  28580. LIBS="-lgen $LIBS"
  28581. fi
  28582. for ac_func in vprintf
  28583. do
  28584. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  28585. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  28586. $as_echo_n "checking for $ac_func... " >&6; }
  28587. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  28588. $as_echo_n "(cached) " >&6
  28589. else
  28590. cat >conftest.$ac_ext <<_ACEOF
  28591. /* confdefs.h. */
  28592. _ACEOF
  28593. cat confdefs.h >>conftest.$ac_ext
  28594. cat >>conftest.$ac_ext <<_ACEOF
  28595. /* end confdefs.h. */
  28596. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  28597. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  28598. #define $ac_func innocuous_$ac_func
  28599. /* System header to define __stub macros and hopefully few prototypes,
  28600. which can conflict with char $ac_func (); below.
  28601. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  28602. <limits.h> exists even on freestanding compilers. */
  28603. #ifdef __STDC__
  28604. # include <limits.h>
  28605. #else
  28606. # include <assert.h>
  28607. #endif
  28608. #undef $ac_func
  28609. /* Override any GCC internal prototype to avoid an error.
  28610. Use char because int might match the return type of a GCC
  28611. builtin and then its argument prototype would still apply. */
  28612. #ifdef __cplusplus
  28613. extern "C"
  28614. #endif
  28615. char $ac_func ();
  28616. /* The GNU C library defines this for functions which it implements
  28617. to always fail with ENOSYS. Some functions are actually named
  28618. something starting with __ and the normal name is an alias. */
  28619. #if defined __stub_$ac_func || defined __stub___$ac_func
  28620. choke me
  28621. #endif
  28622. int
  28623. main ()
  28624. {
  28625. return $ac_func ();
  28626. ;
  28627. return 0;
  28628. }
  28629. _ACEOF
  28630. rm -f conftest.$ac_objext conftest$ac_exeext
  28631. if { (ac_try="$ac_link"
  28632. case "(($ac_try" in
  28633. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28634. *) ac_try_echo=$ac_try;;
  28635. esac
  28636. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28637. $as_echo "$ac_try_echo") >&5
  28638. (eval "$ac_link") 2>conftest.er1
  28639. ac_status=$?
  28640. grep -v '^ *+' conftest.er1 >conftest.err
  28641. rm -f conftest.er1
  28642. cat conftest.err >&5
  28643. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28644. (exit $ac_status); } && {
  28645. test -z "$ac_c_werror_flag" ||
  28646. test ! -s conftest.err
  28647. } && test -s conftest$ac_exeext && {
  28648. test "$cross_compiling" = yes ||
  28649. $as_test_x conftest$ac_exeext
  28650. }; then
  28651. eval "$as_ac_var=yes"
  28652. else
  28653. $as_echo "$as_me: failed program was:" >&5
  28654. sed 's/^/| /' conftest.$ac_ext >&5
  28655. eval "$as_ac_var=no"
  28656. fi
  28657. rm -rf conftest.dSYM
  28658. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  28659. conftest$ac_exeext conftest.$ac_ext
  28660. fi
  28661. ac_res=`eval 'as_val=${'$as_ac_var'}
  28662. $as_echo "$as_val"'`
  28663. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  28664. $as_echo "$ac_res" >&6; }
  28665. as_val=`eval 'as_val=${'$as_ac_var'}
  28666. $as_echo "$as_val"'`
  28667. if test "x$as_val" = x""yes; then
  28668. cat >>confdefs.h <<_ACEOF
  28669. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  28670. _ACEOF
  28671. { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
  28672. $as_echo_n "checking for _doprnt... " >&6; }
  28673. if test "${ac_cv_func__doprnt+set}" = set; then
  28674. $as_echo_n "(cached) " >&6
  28675. else
  28676. cat >conftest.$ac_ext <<_ACEOF
  28677. /* confdefs.h. */
  28678. _ACEOF
  28679. cat confdefs.h >>conftest.$ac_ext
  28680. cat >>conftest.$ac_ext <<_ACEOF
  28681. /* end confdefs.h. */
  28682. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  28683. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  28684. #define _doprnt innocuous__doprnt
  28685. /* System header to define __stub macros and hopefully few prototypes,
  28686. which can conflict with char _doprnt (); below.
  28687. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  28688. <limits.h> exists even on freestanding compilers. */
  28689. #ifdef __STDC__
  28690. # include <limits.h>
  28691. #else
  28692. # include <assert.h>
  28693. #endif
  28694. #undef _doprnt
  28695. /* Override any GCC internal prototype to avoid an error.
  28696. Use char because int might match the return type of a GCC
  28697. builtin and then its argument prototype would still apply. */
  28698. #ifdef __cplusplus
  28699. extern "C"
  28700. #endif
  28701. char _doprnt ();
  28702. /* The GNU C library defines this for functions which it implements
  28703. to always fail with ENOSYS. Some functions are actually named
  28704. something starting with __ and the normal name is an alias. */
  28705. #if defined __stub__doprnt || defined __stub____doprnt
  28706. choke me
  28707. #endif
  28708. int
  28709. main ()
  28710. {
  28711. return _doprnt ();
  28712. ;
  28713. return 0;
  28714. }
  28715. _ACEOF
  28716. rm -f conftest.$ac_objext conftest$ac_exeext
  28717. if { (ac_try="$ac_link"
  28718. case "(($ac_try" in
  28719. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28720. *) ac_try_echo=$ac_try;;
  28721. esac
  28722. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28723. $as_echo "$ac_try_echo") >&5
  28724. (eval "$ac_link") 2>conftest.er1
  28725. ac_status=$?
  28726. grep -v '^ *+' conftest.er1 >conftest.err
  28727. rm -f conftest.er1
  28728. cat conftest.err >&5
  28729. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28730. (exit $ac_status); } && {
  28731. test -z "$ac_c_werror_flag" ||
  28732. test ! -s conftest.err
  28733. } && test -s conftest$ac_exeext && {
  28734. test "$cross_compiling" = yes ||
  28735. $as_test_x conftest$ac_exeext
  28736. }; then
  28737. ac_cv_func__doprnt=yes
  28738. else
  28739. $as_echo "$as_me: failed program was:" >&5
  28740. sed 's/^/| /' conftest.$ac_ext >&5
  28741. ac_cv_func__doprnt=no
  28742. fi
  28743. rm -rf conftest.dSYM
  28744. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  28745. conftest$ac_exeext conftest.$ac_ext
  28746. fi
  28747. { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  28748. $as_echo "$ac_cv_func__doprnt" >&6; }
  28749. if test "x$ac_cv_func__doprnt" = x""yes; then
  28750. cat >>confdefs.h <<\_ACEOF
  28751. #define HAVE_DOPRNT 1
  28752. _ACEOF
  28753. fi
  28754. fi
  28755. done
  28756. for ac_func in mmap canonicalize_file_name snprintf strdup strchr \
  28757. strrchr strsignal
  28758. do
  28759. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  28760. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  28761. $as_echo_n "checking for $ac_func... " >&6; }
  28762. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  28763. $as_echo_n "(cached) " >&6
  28764. else
  28765. cat >conftest.$ac_ext <<_ACEOF
  28766. /* confdefs.h. */
  28767. _ACEOF
  28768. cat confdefs.h >>conftest.$ac_ext
  28769. cat >>conftest.$ac_ext <<_ACEOF
  28770. /* end confdefs.h. */
  28771. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  28772. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  28773. #define $ac_func innocuous_$ac_func
  28774. /* System header to define __stub macros and hopefully few prototypes,
  28775. which can conflict with char $ac_func (); below.
  28776. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  28777. <limits.h> exists even on freestanding compilers. */
  28778. #ifdef __STDC__
  28779. # include <limits.h>
  28780. #else
  28781. # include <assert.h>
  28782. #endif
  28783. #undef $ac_func
  28784. /* Override any GCC internal prototype to avoid an error.
  28785. Use char because int might match the return type of a GCC
  28786. builtin and then its argument prototype would still apply. */
  28787. #ifdef __cplusplus
  28788. extern "C"
  28789. #endif
  28790. char $ac_func ();
  28791. /* The GNU C library defines this for functions which it implements
  28792. to always fail with ENOSYS. Some functions are actually named
  28793. something starting with __ and the normal name is an alias. */
  28794. #if defined __stub_$ac_func || defined __stub___$ac_func
  28795. choke me
  28796. #endif
  28797. int
  28798. main ()
  28799. {
  28800. return $ac_func ();
  28801. ;
  28802. return 0;
  28803. }
  28804. _ACEOF
  28805. rm -f conftest.$ac_objext conftest$ac_exeext
  28806. if { (ac_try="$ac_link"
  28807. case "(($ac_try" in
  28808. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28809. *) ac_try_echo=$ac_try;;
  28810. esac
  28811. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28812. $as_echo "$ac_try_echo") >&5
  28813. (eval "$ac_link") 2>conftest.er1
  28814. ac_status=$?
  28815. grep -v '^ *+' conftest.er1 >conftest.err
  28816. rm -f conftest.er1
  28817. cat conftest.err >&5
  28818. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28819. (exit $ac_status); } && {
  28820. test -z "$ac_c_werror_flag" ||
  28821. test ! -s conftest.err
  28822. } && test -s conftest$ac_exeext && {
  28823. test "$cross_compiling" = yes ||
  28824. $as_test_x conftest$ac_exeext
  28825. }; then
  28826. eval "$as_ac_var=yes"
  28827. else
  28828. $as_echo "$as_me: failed program was:" >&5
  28829. sed 's/^/| /' conftest.$ac_ext >&5
  28830. eval "$as_ac_var=no"
  28831. fi
  28832. rm -rf conftest.dSYM
  28833. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  28834. conftest$ac_exeext conftest.$ac_ext
  28835. fi
  28836. ac_res=`eval 'as_val=${'$as_ac_var'}
  28837. $as_echo "$as_val"'`
  28838. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  28839. $as_echo "$ac_res" >&6; }
  28840. as_val=`eval 'as_val=${'$as_ac_var'}
  28841. $as_echo "$as_val"'`
  28842. if test "x$as_val" = x""yes; then
  28843. cat >>confdefs.h <<_ACEOF
  28844. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  28845. _ACEOF
  28846. fi
  28847. done
  28848. INVOKE_LIBOPTS_MACROS_FIRST_done=yes
  28849. fi
  28850. fi
  28851. # end of AC_DEFUN of LIBOPTS_CHECK
  28852. ac_config_files="$ac_config_files Makefile doxygen.cfg lib/Makefile docs/Makefile src/Makefile src/common/Makefile src/tcpedit/Makefile src/fragroute/Makefile src/defines.h test/Makefile test/config scripts/Makefile"
  28853. cat >confcache <<\_ACEOF
  28854. # This file is a shell script that caches the results of configure
  28855. # tests run on this system so they can be shared between configure
  28856. # scripts and configure runs, see configure's option --config-cache.
  28857. # It is not useful on other systems. If it contains results you don't
  28858. # want to keep, you may remove or edit it.
  28859. #
  28860. # config.status only pays attention to the cache file if you give it
  28861. # the --recheck option to rerun configure.
  28862. #
  28863. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  28864. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  28865. # following values.
  28866. _ACEOF
  28867. # The following way of writing the cache mishandles newlines in values,
  28868. # but we know of no workaround that is simple, portable, and efficient.
  28869. # So, we kill variables containing newlines.
  28870. # Ultrix sh set writes to stderr and can't be redirected directly,
  28871. # and sets the high bit in the cache file unless we assign to the vars.
  28872. (
  28873. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  28874. eval ac_val=\$$ac_var
  28875. case $ac_val in #(
  28876. *${as_nl}*)
  28877. case $ac_var in #(
  28878. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  28879. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  28880. esac
  28881. case $ac_var in #(
  28882. _ | IFS | as_nl) ;; #(
  28883. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  28884. *) $as_unset $ac_var ;;
  28885. esac ;;
  28886. esac
  28887. done
  28888. (set) 2>&1 |
  28889. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  28890. *${as_nl}ac_space=\ *)
  28891. # `set' does not quote correctly, so add quotes (double-quote
  28892. # substitution turns \\\\ into \\, and sed turns \\ into \).
  28893. sed -n \
  28894. "s/'/'\\\\''/g;
  28895. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  28896. ;; #(
  28897. *)
  28898. # `set' quotes correctly as required by POSIX, so do not add quotes.
  28899. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  28900. ;;
  28901. esac |
  28902. sort
  28903. ) |
  28904. sed '
  28905. /^ac_cv_env_/b end
  28906. t clear
  28907. :clear
  28908. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  28909. t end
  28910. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  28911. :end' >>confcache
  28912. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  28913. if test -w "$cache_file"; then
  28914. test "x$cache_file" != "x/dev/null" &&
  28915. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  28916. $as_echo "$as_me: updating cache $cache_file" >&6;}
  28917. cat confcache >$cache_file
  28918. else
  28919. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  28920. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  28921. fi
  28922. fi
  28923. rm -f confcache
  28924. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  28925. # Let make expand exec_prefix.
  28926. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  28927. DEFS=-DHAVE_CONFIG_H
  28928. ac_libobjs=
  28929. ac_ltlibobjs=
  28930. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  28931. # 1. Remove the extension, and $U if already installed.
  28932. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  28933. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  28934. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  28935. # will be set to the directory where LIBOBJS objects are built.
  28936. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  28937. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  28938. done
  28939. LIBOBJS=$ac_libobjs
  28940. LTLIBOBJS=$ac_ltlibobjs
  28941. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  28942. { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
  28943. Usually this means the macro was only invoked conditionally." >&5
  28944. $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
  28945. Usually this means the macro was only invoked conditionally." >&2;}
  28946. { (exit 1); exit 1; }; }
  28947. fi
  28948. if test -n "$EXEEXT"; then
  28949. am__EXEEXT_TRUE=
  28950. am__EXEEXT_FALSE='#'
  28951. else
  28952. am__EXEEXT_TRUE='#'
  28953. am__EXEEXT_FALSE=
  28954. fi
  28955. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  28956. { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  28957. Usually this means the macro was only invoked conditionally." >&5
  28958. $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
  28959. Usually this means the macro was only invoked conditionally." >&2;}
  28960. { (exit 1); exit 1; }; }
  28961. fi
  28962. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  28963. { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  28964. Usually this means the macro was only invoked conditionally." >&5
  28965. $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  28966. Usually this means the macro was only invoked conditionally." >&2;}
  28967. { (exit 1); exit 1; }; }
  28968. fi
  28969. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  28970. { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  28971. Usually this means the macro was only invoked conditionally." >&5
  28972. $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  28973. Usually this means the macro was only invoked conditionally." >&2;}
  28974. { (exit 1); exit 1; }; }
  28975. fi
  28976. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  28977. { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  28978. Usually this means the macro was only invoked conditionally." >&5
  28979. $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  28980. Usually this means the macro was only invoked conditionally." >&2;}
  28981. { (exit 1); exit 1; }; }
  28982. fi
  28983. if test -z "${SYSTEM_STRLCPY_TRUE}" && test -z "${SYSTEM_STRLCPY_FALSE}"; then
  28984. { { $as_echo "$as_me:$LINENO: error: conditional \"SYSTEM_STRLCPY\" was never defined.
  28985. Usually this means the macro was only invoked conditionally." >&5
  28986. $as_echo "$as_me: error: conditional \"SYSTEM_STRLCPY\" was never defined.
  28987. Usually this means the macro was only invoked conditionally." >&2;}
  28988. { (exit 1); exit 1; }; }
  28989. fi
  28990. if test -z "${WORDS_BIGENDIAN_TRUE}" && test -z "${WORDS_BIGENDIAN_FALSE}"; then
  28991. { { $as_echo "$as_me:$LINENO: error: conditional \"WORDS_BIGENDIAN\" was never defined.
  28992. Usually this means the macro was only invoked conditionally." >&5
  28993. $as_echo "$as_me: error: conditional \"WORDS_BIGENDIAN\" was never defined.
  28994. Usually this means the macro was only invoked conditionally." >&2;}
  28995. { (exit 1); exit 1; }; }
  28996. fi
  28997. if test -z "${COMPILE_TCPBRIDGE_TRUE}" && test -z "${COMPILE_TCPBRIDGE_FALSE}"; then
  28998. { { $as_echo "$as_me:$LINENO: error: conditional \"COMPILE_TCPBRIDGE\" was never defined.
  28999. Usually this means the macro was only invoked conditionally." >&5
  29000. $as_echo "$as_me: error: conditional \"COMPILE_TCPBRIDGE\" was never defined.
  29001. Usually this means the macro was only invoked conditionally." >&2;}
  29002. { (exit 1); exit 1; }; }
  29003. fi
  29004. if test -z "${COMPILE_FRAGROUTE_TRUE}" && test -z "${COMPILE_FRAGROUTE_FALSE}"; then
  29005. { { $as_echo "$as_me:$LINENO: error: conditional \"COMPILE_FRAGROUTE\" was never defined.
  29006. Usually this means the macro was only invoked conditionally." >&5
  29007. $as_echo "$as_me: error: conditional \"COMPILE_FRAGROUTE\" was never defined.
  29008. Usually this means the macro was only invoked conditionally." >&2;}
  29009. { (exit 1); exit 1; }; }
  29010. fi
  29011. if test -z "${ENABLE_TCPDUMP_TRUE}" && test -z "${ENABLE_TCPDUMP_FALSE}"; then
  29012. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_TCPDUMP\" was never defined.
  29013. Usually this means the macro was only invoked conditionally." >&5
  29014. $as_echo "$as_me: error: conditional \"ENABLE_TCPDUMP\" was never defined.
  29015. Usually this means the macro was only invoked conditionally." >&2;}
  29016. { (exit 1); exit 1; }; }
  29017. fi
  29018. if test -z "${ENABLE_OSX_FRAMEWORKS_TRUE}" && test -z "${ENABLE_OSX_FRAMEWORKS_FALSE}"; then
  29019. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_OSX_FRAMEWORKS\" was never defined.
  29020. Usually this means the macro was only invoked conditionally." >&5
  29021. $as_echo "$as_me: error: conditional \"ENABLE_OSX_FRAMEWORKS\" was never defined.
  29022. Usually this means the macro was only invoked conditionally." >&2;}
  29023. { (exit 1); exit 1; }; }
  29024. fi
  29025. if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
  29026. { { $as_echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBOPTS\" was never defined.
  29027. Usually this means the macro was only invoked conditionally." >&5
  29028. $as_echo "$as_me: error: conditional \"INSTALL_LIBOPTS\" was never defined.
  29029. Usually this means the macro was only invoked conditionally." >&2;}
  29030. { (exit 1); exit 1; }; }
  29031. fi
  29032. if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
  29033. { { $as_echo "$as_me:$LINENO: error: conditional \"NEED_LIBOPTS\" was never defined.
  29034. Usually this means the macro was only invoked conditionally." >&5
  29035. $as_echo "$as_me: error: conditional \"NEED_LIBOPTS\" was never defined.
  29036. Usually this means the macro was only invoked conditionally." >&2;}
  29037. { (exit 1); exit 1; }; }
  29038. fi
  29039. : ${CONFIG_STATUS=./config.status}
  29040. ac_write_fail=0
  29041. ac_clean_files_save=$ac_clean_files
  29042. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  29043. { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  29044. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  29045. cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  29046. #! $SHELL
  29047. # Generated by $as_me.
  29048. # Run this file to recreate the current configuration.
  29049. # Compiler output produced by configure, useful for debugging
  29050. # configure, is in config.log if it exists.
  29051. debug=false
  29052. ac_cs_recheck=false
  29053. ac_cs_silent=false
  29054. SHELL=\${CONFIG_SHELL-$SHELL}
  29055. _ACEOF
  29056. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  29057. ## --------------------- ##
  29058. ## M4sh Initialization. ##
  29059. ## --------------------- ##
  29060. # Be more Bourne compatible
  29061. DUALCASE=1; export DUALCASE # for MKS sh
  29062. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  29063. emulate sh
  29064. NULLCMD=:
  29065. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  29066. # is contrary to our usage. Disable this feature.
  29067. alias -g '${1+"$@"}'='"$@"'
  29068. setopt NO_GLOB_SUBST
  29069. else
  29070. case `(set -o) 2>/dev/null` in
  29071. *posix*) set -o posix ;;
  29072. esac
  29073. fi
  29074. # PATH needs CR
  29075. # Avoid depending upon Character Ranges.
  29076. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  29077. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  29078. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  29079. as_cr_digits='0123456789'
  29080. as_cr_alnum=$as_cr_Letters$as_cr_digits
  29081. as_nl='
  29082. '
  29083. export as_nl
  29084. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  29085. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  29086. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  29087. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  29088. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  29089. as_echo='printf %s\n'
  29090. as_echo_n='printf %s'
  29091. else
  29092. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  29093. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  29094. as_echo_n='/usr/ucb/echo -n'
  29095. else
  29096. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  29097. as_echo_n_body='eval
  29098. arg=$1;
  29099. case $arg in
  29100. *"$as_nl"*)
  29101. expr "X$arg" : "X\\(.*\\)$as_nl";
  29102. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  29103. esac;
  29104. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  29105. '
  29106. export as_echo_n_body
  29107. as_echo_n='sh -c $as_echo_n_body as_echo'
  29108. fi
  29109. export as_echo_body
  29110. as_echo='sh -c $as_echo_body as_echo'
  29111. fi
  29112. # The user is always right.
  29113. if test "${PATH_SEPARATOR+set}" != set; then
  29114. PATH_SEPARATOR=:
  29115. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  29116. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  29117. PATH_SEPARATOR=';'
  29118. }
  29119. fi
  29120. # Support unset when possible.
  29121. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  29122. as_unset=unset
  29123. else
  29124. as_unset=false
  29125. fi
  29126. # IFS
  29127. # We need space, tab and new line, in precisely that order. Quoting is
  29128. # there to prevent editors from complaining about space-tab.
  29129. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  29130. # splitting by setting IFS to empty value.)
  29131. IFS=" "" $as_nl"
  29132. # Find who we are. Look in the path if we contain no directory separator.
  29133. case $0 in
  29134. *[\\/]* ) as_myself=$0 ;;
  29135. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  29136. for as_dir in $PATH
  29137. do
  29138. IFS=$as_save_IFS
  29139. test -z "$as_dir" && as_dir=.
  29140. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  29141. done
  29142. IFS=$as_save_IFS
  29143. ;;
  29144. esac
  29145. # We did not find ourselves, most probably we were run as `sh COMMAND'
  29146. # in which case we are not to be found in the path.
  29147. if test "x$as_myself" = x; then
  29148. as_myself=$0
  29149. fi
  29150. if test ! -f "$as_myself"; then
  29151. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  29152. { (exit 1); exit 1; }
  29153. fi
  29154. # Work around bugs in pre-3.0 UWIN ksh.
  29155. for as_var in ENV MAIL MAILPATH
  29156. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  29157. done
  29158. PS1='$ '
  29159. PS2='> '
  29160. PS4='+ '
  29161. # NLS nuisances.
  29162. LC_ALL=C
  29163. export LC_ALL
  29164. LANGUAGE=C
  29165. export LANGUAGE
  29166. # Required to use basename.
  29167. if expr a : '\(a\)' >/dev/null 2>&1 &&
  29168. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  29169. as_expr=expr
  29170. else
  29171. as_expr=false
  29172. fi
  29173. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  29174. as_basename=basename
  29175. else
  29176. as_basename=false
  29177. fi
  29178. # Name of the executable.
  29179. as_me=`$as_basename -- "$0" ||
  29180. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  29181. X"$0" : 'X\(//\)$' \| \
  29182. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  29183. $as_echo X/"$0" |
  29184. sed '/^.*\/\([^/][^/]*\)\/*$/{
  29185. s//\1/
  29186. q
  29187. }
  29188. /^X\/\(\/\/\)$/{
  29189. s//\1/
  29190. q
  29191. }
  29192. /^X\/\(\/\).*/{
  29193. s//\1/
  29194. q
  29195. }
  29196. s/.*/./; q'`
  29197. # CDPATH.
  29198. $as_unset CDPATH
  29199. as_lineno_1=$LINENO
  29200. as_lineno_2=$LINENO
  29201. test "x$as_lineno_1" != "x$as_lineno_2" &&
  29202. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  29203. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  29204. # uniformly replaced by the line number. The first 'sed' inserts a
  29205. # line-number line after each line using $LINENO; the second 'sed'
  29206. # does the real work. The second script uses 'N' to pair each
  29207. # line-number line with the line containing $LINENO, and appends
  29208. # trailing '-' during substitution so that $LINENO is not a special
  29209. # case at line end.
  29210. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  29211. # scripts with optimization help from Paolo Bonzini. Blame Lee
  29212. # E. McMahon (1931-1989) for sed's syntax. :-)
  29213. sed -n '
  29214. p
  29215. /[$]LINENO/=
  29216. ' <$as_myself |
  29217. sed '
  29218. s/[$]LINENO.*/&-/
  29219. t lineno
  29220. b
  29221. :lineno
  29222. N
  29223. :loop
  29224. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  29225. t loop
  29226. s/-\n.*//
  29227. ' >$as_me.lineno &&
  29228. chmod +x "$as_me.lineno" ||
  29229. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  29230. { (exit 1); exit 1; }; }
  29231. # Don't try to exec as it changes $[0], causing all sort of problems
  29232. # (the dirname of $[0] is not the place where we might find the
  29233. # original and so on. Autoconf is especially sensitive to this).
  29234. . "./$as_me.lineno"
  29235. # Exit status is that of the last command.
  29236. exit
  29237. }
  29238. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  29239. as_dirname=dirname
  29240. else
  29241. as_dirname=false
  29242. fi
  29243. ECHO_C= ECHO_N= ECHO_T=
  29244. case `echo -n x` in
  29245. -n*)
  29246. case `echo 'x\c'` in
  29247. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  29248. *) ECHO_C='\c';;
  29249. esac;;
  29250. *)
  29251. ECHO_N='-n';;
  29252. esac
  29253. if expr a : '\(a\)' >/dev/null 2>&1 &&
  29254. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  29255. as_expr=expr
  29256. else
  29257. as_expr=false
  29258. fi
  29259. rm -f conf$$ conf$$.exe conf$$.file
  29260. if test -d conf$$.dir; then
  29261. rm -f conf$$.dir/conf$$.file
  29262. else
  29263. rm -f conf$$.dir
  29264. mkdir conf$$.dir 2>/dev/null
  29265. fi
  29266. if (echo >conf$$.file) 2>/dev/null; then
  29267. if ln -s conf$$.file conf$$ 2>/dev/null; then
  29268. as_ln_s='ln -s'
  29269. # ... but there are two gotchas:
  29270. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  29271. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  29272. # In both cases, we have to default to `cp -p'.
  29273. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  29274. as_ln_s='cp -p'
  29275. elif ln conf$$.file conf$$ 2>/dev/null; then
  29276. as_ln_s=ln
  29277. else
  29278. as_ln_s='cp -p'
  29279. fi
  29280. else
  29281. as_ln_s='cp -p'
  29282. fi
  29283. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  29284. rmdir conf$$.dir 2>/dev/null
  29285. if mkdir -p . 2>/dev/null; then
  29286. as_mkdir_p=:
  29287. else
  29288. test -d ./-p && rmdir ./-p
  29289. as_mkdir_p=false
  29290. fi
  29291. if test -x / >/dev/null 2>&1; then
  29292. as_test_x='test -x'
  29293. else
  29294. if ls -dL / >/dev/null 2>&1; then
  29295. as_ls_L_option=L
  29296. else
  29297. as_ls_L_option=
  29298. fi
  29299. as_test_x='
  29300. eval sh -c '\''
  29301. if test -d "$1"; then
  29302. test -d "$1/.";
  29303. else
  29304. case $1 in
  29305. -*)set "./$1";;
  29306. esac;
  29307. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  29308. ???[sx]*):;;*)false;;esac;fi
  29309. '\'' sh
  29310. '
  29311. fi
  29312. as_executable_p=$as_test_x
  29313. # Sed expression to map a string onto a valid CPP name.
  29314. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  29315. # Sed expression to map a string onto a valid variable name.
  29316. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  29317. exec 6>&1
  29318. # Save the log message, to keep $[0] and so on meaningful, and to
  29319. # report actual input values of CONFIG_FILES etc. instead of their
  29320. # values after options handling.
  29321. ac_log="
  29322. This file was extended by $as_me, which was
  29323. generated by GNU Autoconf 2.63. Invocation command line was
  29324. CONFIG_FILES = $CONFIG_FILES
  29325. CONFIG_HEADERS = $CONFIG_HEADERS
  29326. CONFIG_LINKS = $CONFIG_LINKS
  29327. CONFIG_COMMANDS = $CONFIG_COMMANDS
  29328. $ $0 $@
  29329. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  29330. "
  29331. _ACEOF
  29332. case $ac_config_files in *"
  29333. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  29334. esac
  29335. case $ac_config_headers in *"
  29336. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  29337. esac
  29338. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  29339. # Files that config.status was made for.
  29340. config_files="$ac_config_files"
  29341. config_headers="$ac_config_headers"
  29342. config_commands="$ac_config_commands"
  29343. _ACEOF
  29344. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  29345. ac_cs_usage="\
  29346. \`$as_me' instantiates files from templates according to the
  29347. current configuration.
  29348. Usage: $0 [OPTION]... [FILE]...
  29349. -h, --help print this help, then exit
  29350. -V, --version print version number and configuration settings, then exit
  29351. -q, --quiet, --silent
  29352. do not print progress messages
  29353. -d, --debug don't remove temporary files
  29354. --recheck update $as_me by reconfiguring in the same conditions
  29355. --file=FILE[:TEMPLATE]
  29356. instantiate the configuration file FILE
  29357. --header=FILE[:TEMPLATE]
  29358. instantiate the configuration header FILE
  29359. Configuration files:
  29360. $config_files
  29361. Configuration headers:
  29362. $config_headers
  29363. Configuration commands:
  29364. $config_commands
  29365. Report bugs to <bug-autoconf@gnu.org>."
  29366. _ACEOF
  29367. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  29368. ac_cs_version="\\
  29369. config.status
  29370. configured by $0, generated by GNU Autoconf 2.63,
  29371. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  29372. Copyright (C) 2008 Free Software Foundation, Inc.
  29373. This config.status script is free software; the Free Software Foundation
  29374. gives unlimited permission to copy, distribute and modify it."
  29375. ac_pwd='$ac_pwd'
  29376. srcdir='$srcdir'
  29377. INSTALL='$INSTALL'
  29378. MKDIR_P='$MKDIR_P'
  29379. AWK='$AWK'
  29380. test -n "\$AWK" || AWK=awk
  29381. _ACEOF
  29382. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  29383. # The default lists apply if the user does not specify any file.
  29384. ac_need_defaults=:
  29385. while test $# != 0
  29386. do
  29387. case $1 in
  29388. --*=*)
  29389. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  29390. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  29391. ac_shift=:
  29392. ;;
  29393. *)
  29394. ac_option=$1
  29395. ac_optarg=$2
  29396. ac_shift=shift
  29397. ;;
  29398. esac
  29399. case $ac_option in
  29400. # Handling of the options.
  29401. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  29402. ac_cs_recheck=: ;;
  29403. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  29404. $as_echo "$ac_cs_version"; exit ;;
  29405. --debug | --debu | --deb | --de | --d | -d )
  29406. debug=: ;;
  29407. --file | --fil | --fi | --f )
  29408. $ac_shift
  29409. case $ac_optarg in
  29410. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  29411. esac
  29412. CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
  29413. ac_need_defaults=false;;
  29414. --header | --heade | --head | --hea )
  29415. $ac_shift
  29416. case $ac_optarg in
  29417. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  29418. esac
  29419. CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
  29420. ac_need_defaults=false;;
  29421. --he | --h)
  29422. # Conflict between --help and --header
  29423. { $as_echo "$as_me: error: ambiguous option: $1
  29424. Try \`$0 --help' for more information." >&2
  29425. { (exit 1); exit 1; }; };;
  29426. --help | --hel | -h )
  29427. $as_echo "$ac_cs_usage"; exit ;;
  29428. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  29429. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  29430. ac_cs_silent=: ;;
  29431. # This is an error.
  29432. -*) { $as_echo "$as_me: error: unrecognized option: $1
  29433. Try \`$0 --help' for more information." >&2
  29434. { (exit 1); exit 1; }; } ;;
  29435. *) ac_config_targets="$ac_config_targets $1"
  29436. ac_need_defaults=false ;;
  29437. esac
  29438. shift
  29439. done
  29440. ac_configure_extra_args=
  29441. if $ac_cs_silent; then
  29442. exec 6>/dev/null
  29443. ac_configure_extra_args="$ac_configure_extra_args --silent"
  29444. fi
  29445. _ACEOF
  29446. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  29447. if \$ac_cs_recheck; then
  29448. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  29449. shift
  29450. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  29451. CONFIG_SHELL='$SHELL'
  29452. export CONFIG_SHELL
  29453. exec "\$@"
  29454. fi
  29455. _ACEOF
  29456. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  29457. exec 5>>config.log
  29458. {
  29459. echo
  29460. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  29461. ## Running $as_me. ##
  29462. _ASBOX
  29463. $as_echo "$ac_log"
  29464. } >&5
  29465. _ACEOF
  29466. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  29467. #
  29468. # INIT-COMMANDS
  29469. #
  29470. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  29471. # The HP-UX ksh and POSIX shell print the target directory to stdout
  29472. # if CDPATH is set.
  29473. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  29474. sed_quote_subst='$sed_quote_subst'
  29475. double_quote_subst='$double_quote_subst'
  29476. delay_variable_subst='$delay_variable_subst'
  29477. macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  29478. macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  29479. enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  29480. enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  29481. pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  29482. enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  29483. host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  29484. host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  29485. host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  29486. build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  29487. build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  29488. build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  29489. SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  29490. Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  29491. GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  29492. EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  29493. FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  29494. LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  29495. NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  29496. LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  29497. max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  29498. ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  29499. exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  29500. lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  29501. lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  29502. lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  29503. reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  29504. reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  29505. OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  29506. deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  29507. file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  29508. AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  29509. AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  29510. STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  29511. RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  29512. old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  29513. old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  29514. old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  29515. CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  29516. CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  29517. compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  29518. GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  29519. lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  29520. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  29521. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
  29522. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  29523. objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  29524. SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  29525. ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  29526. MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  29527. lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  29528. lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  29529. lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  29530. lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  29531. lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  29532. need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  29533. DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  29534. NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  29535. LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  29536. OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  29537. OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  29538. libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  29539. shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  29540. extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  29541. archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  29542. enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  29543. export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  29544. whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  29545. compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  29546. old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  29547. old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  29548. archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  29549. archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  29550. module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  29551. module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  29552. with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  29553. allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  29554. no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  29555. hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  29556. hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  29557. hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  29558. hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  29559. hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  29560. hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  29561. hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  29562. hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  29563. inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  29564. link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  29565. fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  29566. always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  29567. export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  29568. exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  29569. include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  29570. prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  29571. file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  29572. variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  29573. need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  29574. need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  29575. version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  29576. runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  29577. shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  29578. shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  29579. libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  29580. library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  29581. soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  29582. postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  29583. postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  29584. finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  29585. finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  29586. hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  29587. sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  29588. sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  29589. hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  29590. enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  29591. enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  29592. enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  29593. old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  29594. striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  29595. compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
  29596. predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  29597. postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  29598. predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
  29599. postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
  29600. compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
  29601. LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29602. old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29603. compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29604. GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29605. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29606. lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29607. lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29608. lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29609. lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29610. archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29611. enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29612. export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29613. whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29614. compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29615. old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29616. old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29617. archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29618. archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29619. module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29620. module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29621. with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29622. allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29623. no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29624. hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29625. hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29626. hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29627. hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29628. hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29629. hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29630. hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29631. hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29632. inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29633. link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29634. fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29635. always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29636. export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29637. exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29638. include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29639. prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29640. file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29641. hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29642. compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29643. predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29644. postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29645. predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29646. postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29647. compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29648. LTCC='$LTCC'
  29649. LTCFLAGS='$LTCFLAGS'
  29650. compiler='$compiler_DEFAULT'
  29651. # Quote evaled strings.
  29652. for var in SED \
  29653. GREP \
  29654. EGREP \
  29655. FGREP \
  29656. LD \
  29657. NM \
  29658. LN_S \
  29659. lt_SP2NL \
  29660. lt_NL2SP \
  29661. reload_flag \
  29662. OBJDUMP \
  29663. deplibs_check_method \
  29664. file_magic_cmd \
  29665. AR \
  29666. AR_FLAGS \
  29667. STRIP \
  29668. RANLIB \
  29669. CC \
  29670. CFLAGS \
  29671. compiler \
  29672. lt_cv_sys_global_symbol_pipe \
  29673. lt_cv_sys_global_symbol_to_cdecl \
  29674. lt_cv_sys_global_symbol_to_c_name_address \
  29675. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  29676. SHELL \
  29677. ECHO \
  29678. lt_prog_compiler_no_builtin_flag \
  29679. lt_prog_compiler_wl \
  29680. lt_prog_compiler_pic \
  29681. lt_prog_compiler_static \
  29682. lt_cv_prog_compiler_c_o \
  29683. need_locks \
  29684. DSYMUTIL \
  29685. NMEDIT \
  29686. LIPO \
  29687. OTOOL \
  29688. OTOOL64 \
  29689. shrext_cmds \
  29690. export_dynamic_flag_spec \
  29691. whole_archive_flag_spec \
  29692. compiler_needs_object \
  29693. with_gnu_ld \
  29694. allow_undefined_flag \
  29695. no_undefined_flag \
  29696. hardcode_libdir_flag_spec \
  29697. hardcode_libdir_flag_spec_ld \
  29698. hardcode_libdir_separator \
  29699. fix_srcfile_path \
  29700. exclude_expsyms \
  29701. include_expsyms \
  29702. file_list_spec \
  29703. variables_saved_for_relink \
  29704. libname_spec \
  29705. library_names_spec \
  29706. soname_spec \
  29707. finish_eval \
  29708. old_striplib \
  29709. striplib \
  29710. compiler_lib_search_dirs \
  29711. predep_objects \
  29712. postdep_objects \
  29713. predeps \
  29714. postdeps \
  29715. compiler_lib_search_path \
  29716. LD_CXX \
  29717. compiler_CXX \
  29718. lt_prog_compiler_no_builtin_flag_CXX \
  29719. lt_prog_compiler_wl_CXX \
  29720. lt_prog_compiler_pic_CXX \
  29721. lt_prog_compiler_static_CXX \
  29722. lt_cv_prog_compiler_c_o_CXX \
  29723. export_dynamic_flag_spec_CXX \
  29724. whole_archive_flag_spec_CXX \
  29725. compiler_needs_object_CXX \
  29726. with_gnu_ld_CXX \
  29727. allow_undefined_flag_CXX \
  29728. no_undefined_flag_CXX \
  29729. hardcode_libdir_flag_spec_CXX \
  29730. hardcode_libdir_flag_spec_ld_CXX \
  29731. hardcode_libdir_separator_CXX \
  29732. fix_srcfile_path_CXX \
  29733. exclude_expsyms_CXX \
  29734. include_expsyms_CXX \
  29735. file_list_spec_CXX \
  29736. compiler_lib_search_dirs_CXX \
  29737. predep_objects_CXX \
  29738. postdep_objects_CXX \
  29739. predeps_CXX \
  29740. postdeps_CXX \
  29741. compiler_lib_search_path_CXX; do
  29742. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  29743. *[\\\\\\\`\\"\\\$]*)
  29744. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  29745. ;;
  29746. *)
  29747. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  29748. ;;
  29749. esac
  29750. done
  29751. # Double-quote double-evaled strings.
  29752. for var in reload_cmds \
  29753. old_postinstall_cmds \
  29754. old_postuninstall_cmds \
  29755. old_archive_cmds \
  29756. extract_expsyms_cmds \
  29757. old_archive_from_new_cmds \
  29758. old_archive_from_expsyms_cmds \
  29759. archive_cmds \
  29760. archive_expsym_cmds \
  29761. module_cmds \
  29762. module_expsym_cmds \
  29763. export_symbols_cmds \
  29764. prelink_cmds \
  29765. postinstall_cmds \
  29766. postuninstall_cmds \
  29767. finish_cmds \
  29768. sys_lib_search_path_spec \
  29769. sys_lib_dlsearch_path_spec \
  29770. old_archive_cmds_CXX \
  29771. old_archive_from_new_cmds_CXX \
  29772. old_archive_from_expsyms_cmds_CXX \
  29773. archive_cmds_CXX \
  29774. archive_expsym_cmds_CXX \
  29775. module_cmds_CXX \
  29776. module_expsym_cmds_CXX \
  29777. export_symbols_cmds_CXX \
  29778. prelink_cmds_CXX; do
  29779. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  29780. *[\\\\\\\`\\"\\\$]*)
  29781. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  29782. ;;
  29783. *)
  29784. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  29785. ;;
  29786. esac
  29787. done
  29788. # Fix-up fallback echo if it was mangled by the above quoting rules.
  29789. case \$lt_ECHO in
  29790. *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  29791. ;;
  29792. esac
  29793. ac_aux_dir='$ac_aux_dir'
  29794. xsi_shell='$xsi_shell'
  29795. lt_shell_append='$lt_shell_append'
  29796. # See if we are running on zsh, and set the options which allow our
  29797. # commands through without removal of \ escapes INIT.
  29798. if test -n "\${ZSH_VERSION+set}" ; then
  29799. setopt NO_GLOB_SUBST
  29800. fi
  29801. PACKAGE='$PACKAGE'
  29802. VERSION='$VERSION'
  29803. TIMESTAMP='$TIMESTAMP'
  29804. RM='$RM'
  29805. ofile='$ofile'
  29806. _ACEOF
  29807. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  29808. # Handling of arguments.
  29809. for ac_config_target in $ac_config_targets
  29810. do
  29811. case $ac_config_target in
  29812. "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
  29813. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  29814. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  29815. "libopts/Makefile") CONFIG_FILES="$CONFIG_FILES libopts/Makefile" ;;
  29816. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  29817. "doxygen.cfg") CONFIG_FILES="$CONFIG_FILES doxygen.cfg" ;;
  29818. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  29819. "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
  29820. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  29821. "src/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/common/Makefile" ;;
  29822. "src/tcpedit/Makefile") CONFIG_FILES="$CONFIG_FILES src/tcpedit/Makefile" ;;
  29823. "src/fragroute/Makefile") CONFIG_FILES="$CONFIG_FILES src/fragroute/Makefile" ;;
  29824. "src/defines.h") CONFIG_FILES="$CONFIG_FILES src/defines.h" ;;
  29825. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  29826. "test/config") CONFIG_FILES="$CONFIG_FILES test/config" ;;
  29827. "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
  29828. *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  29829. $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  29830. { (exit 1); exit 1; }; };;
  29831. esac
  29832. done
  29833. # If the user did not use the arguments to specify the items to instantiate,
  29834. # then the envvar interface is used. Set only those that are not.
  29835. # We use the long form for the default assignment because of an extremely
  29836. # bizarre bug on SunOS 4.1.3.
  29837. if $ac_need_defaults; then
  29838. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  29839. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  29840. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  29841. fi
  29842. # Have a temporary directory for convenience. Make it in the build tree
  29843. # simply because there is no reason against having it here, and in addition,
  29844. # creating and moving files from /tmp can sometimes cause problems.
  29845. # Hook for its removal unless debugging.
  29846. # Note that there is a small window in which the directory will not be cleaned:
  29847. # after its creation but before its name has been assigned to `$tmp'.
  29848. $debug ||
  29849. {
  29850. tmp=
  29851. trap 'exit_status=$?
  29852. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  29853. ' 0
  29854. trap '{ (exit 1); exit 1; }' 1 2 13 15
  29855. }
  29856. # Create a (secure) tmp directory for tmp files.
  29857. {
  29858. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  29859. test -n "$tmp" && test -d "$tmp"
  29860. } ||
  29861. {
  29862. tmp=./conf$$-$RANDOM
  29863. (umask 077 && mkdir "$tmp")
  29864. } ||
  29865. {
  29866. $as_echo "$as_me: cannot create a temporary directory in ." >&2
  29867. { (exit 1); exit 1; }
  29868. }
  29869. # Set up the scripts for CONFIG_FILES section.
  29870. # No need to generate them if there are no CONFIG_FILES.
  29871. # This happens for instance with `./config.status config.h'.
  29872. if test -n "$CONFIG_FILES"; then
  29873. ac_cr=' '
  29874. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  29875. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  29876. ac_cs_awk_cr='\\r'
  29877. else
  29878. ac_cs_awk_cr=$ac_cr
  29879. fi
  29880. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  29881. _ACEOF
  29882. {
  29883. echo "cat >conf$$subs.awk <<_ACEOF" &&
  29884. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  29885. echo "_ACEOF"
  29886. } >conf$$subs.sh ||
  29887. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  29888. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  29889. { (exit 1); exit 1; }; }
  29890. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  29891. ac_delim='%!_!# '
  29892. for ac_last_try in false false false false false :; do
  29893. . ./conf$$subs.sh ||
  29894. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  29895. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  29896. { (exit 1); exit 1; }; }
  29897. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  29898. if test $ac_delim_n = $ac_delim_num; then
  29899. break
  29900. elif $ac_last_try; then
  29901. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  29902. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  29903. { (exit 1); exit 1; }; }
  29904. else
  29905. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  29906. fi
  29907. done
  29908. rm -f conf$$subs.sh
  29909. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  29910. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  29911. _ACEOF
  29912. sed -n '
  29913. h
  29914. s/^/S["/; s/!.*/"]=/
  29915. p
  29916. g
  29917. s/^[^!]*!//
  29918. :repl
  29919. t repl
  29920. s/'"$ac_delim"'$//
  29921. t delim
  29922. :nl
  29923. h
  29924. s/\(.\{148\}\).*/\1/
  29925. t more1
  29926. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  29927. p
  29928. n
  29929. b repl
  29930. :more1
  29931. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  29932. p
  29933. g
  29934. s/.\{148\}//
  29935. t nl
  29936. :delim
  29937. h
  29938. s/\(.\{148\}\).*/\1/
  29939. t more2
  29940. s/["\\]/\\&/g; s/^/"/; s/$/"/
  29941. p
  29942. b
  29943. :more2
  29944. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  29945. p
  29946. g
  29947. s/.\{148\}//
  29948. t delim
  29949. ' <conf$$subs.awk | sed '
  29950. /^[^""]/{
  29951. N
  29952. s/\n//
  29953. }
  29954. ' >>$CONFIG_STATUS || ac_write_fail=1
  29955. rm -f conf$$subs.awk
  29956. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  29957. _ACAWK
  29958. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  29959. for (key in S) S_is_set[key] = 1
  29960. FS = ""
  29961. }
  29962. {
  29963. line = $ 0
  29964. nfields = split(line, field, "@")
  29965. substed = 0
  29966. len = length(field[1])
  29967. for (i = 2; i < nfields; i++) {
  29968. key = field[i]
  29969. keylen = length(key)
  29970. if (S_is_set[key]) {
  29971. value = S[key]
  29972. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  29973. len += length(value) + length(field[++i])
  29974. substed = 1
  29975. } else
  29976. len += 1 + keylen
  29977. }
  29978. print line
  29979. }
  29980. _ACAWK
  29981. _ACEOF
  29982. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  29983. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  29984. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  29985. else
  29986. cat
  29987. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  29988. || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
  29989. $as_echo "$as_me: error: could not setup config files machinery" >&2;}
  29990. { (exit 1); exit 1; }; }
  29991. _ACEOF
  29992. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  29993. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  29994. # trailing colons and then remove the whole line if VPATH becomes empty
  29995. # (actually we leave an empty line to preserve line numbers).
  29996. if test "x$srcdir" = x.; then
  29997. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  29998. s/:*\$(srcdir):*/:/
  29999. s/:*\${srcdir}:*/:/
  30000. s/:*@srcdir@:*/:/
  30001. s/^\([^=]*=[ ]*\):*/\1/
  30002. s/:*$//
  30003. s/^[^=]*=[ ]*$//
  30004. }'
  30005. fi
  30006. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  30007. fi # test -n "$CONFIG_FILES"
  30008. # Set up the scripts for CONFIG_HEADERS section.
  30009. # No need to generate them if there are no CONFIG_HEADERS.
  30010. # This happens for instance with `./config.status Makefile'.
  30011. if test -n "$CONFIG_HEADERS"; then
  30012. cat >"$tmp/defines.awk" <<\_ACAWK ||
  30013. BEGIN {
  30014. _ACEOF
  30015. # Transform confdefs.h into an awk script `defines.awk', embedded as
  30016. # here-document in config.status, that substitutes the proper values into
  30017. # config.h.in to produce config.h.
  30018. # Create a delimiter string that does not exist in confdefs.h, to ease
  30019. # handling of long lines.
  30020. ac_delim='%!_!# '
  30021. for ac_last_try in false false :; do
  30022. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  30023. if test -z "$ac_t"; then
  30024. break
  30025. elif $ac_last_try; then
  30026. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
  30027. $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
  30028. { (exit 1); exit 1; }; }
  30029. else
  30030. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  30031. fi
  30032. done
  30033. # For the awk script, D is an array of macro values keyed by name,
  30034. # likewise P contains macro parameters if any. Preserve backslash
  30035. # newline sequences.
  30036. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  30037. sed -n '
  30038. s/.\{148\}/&'"$ac_delim"'/g
  30039. t rset
  30040. :rset
  30041. s/^[ ]*#[ ]*define[ ][ ]*/ /
  30042. t def
  30043. d
  30044. :def
  30045. s/\\$//
  30046. t bsnl
  30047. s/["\\]/\\&/g
  30048. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  30049. D["\1"]=" \3"/p
  30050. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  30051. d
  30052. :bsnl
  30053. s/["\\]/\\&/g
  30054. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  30055. D["\1"]=" \3\\\\\\n"\\/p
  30056. t cont
  30057. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  30058. t cont
  30059. d
  30060. :cont
  30061. n
  30062. s/.\{148\}/&'"$ac_delim"'/g
  30063. t clear
  30064. :clear
  30065. s/\\$//
  30066. t bsnlc
  30067. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  30068. d
  30069. :bsnlc
  30070. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  30071. b cont
  30072. ' <confdefs.h | sed '
  30073. s/'"$ac_delim"'/"\\\
  30074. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  30075. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  30076. for (key in D) D_is_set[key] = 1
  30077. FS = ""
  30078. }
  30079. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  30080. line = \$ 0
  30081. split(line, arg, " ")
  30082. if (arg[1] == "#") {
  30083. defundef = arg[2]
  30084. mac1 = arg[3]
  30085. } else {
  30086. defundef = substr(arg[1], 2)
  30087. mac1 = arg[2]
  30088. }
  30089. split(mac1, mac2, "(") #)
  30090. macro = mac2[1]
  30091. prefix = substr(line, 1, index(line, defundef) - 1)
  30092. if (D_is_set[macro]) {
  30093. # Preserve the white space surrounding the "#".
  30094. print prefix "define", macro P[macro] D[macro]
  30095. next
  30096. } else {
  30097. # Replace #undef with comments. This is necessary, for example,
  30098. # in the case of _POSIX_SOURCE, which is predefined and required
  30099. # on some systems where configure will not decide to define it.
  30100. if (defundef == "undef") {
  30101. print "/*", prefix defundef, macro, "*/"
  30102. next
  30103. }
  30104. }
  30105. }
  30106. { print }
  30107. _ACAWK
  30108. _ACEOF
  30109. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  30110. { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
  30111. $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
  30112. { (exit 1); exit 1; }; }
  30113. fi # test -n "$CONFIG_HEADERS"
  30114. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  30115. shift
  30116. for ac_tag
  30117. do
  30118. case $ac_tag in
  30119. :[FHLC]) ac_mode=$ac_tag; continue;;
  30120. esac
  30121. case $ac_mode$ac_tag in
  30122. :[FHL]*:*);;
  30123. :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
  30124. $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
  30125. { (exit 1); exit 1; }; };;
  30126. :[FH]-) ac_tag=-:-;;
  30127. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  30128. esac
  30129. ac_save_IFS=$IFS
  30130. IFS=:
  30131. set x $ac_tag
  30132. IFS=$ac_save_IFS
  30133. shift
  30134. ac_file=$1
  30135. shift
  30136. case $ac_mode in
  30137. :L) ac_source=$1;;
  30138. :[FH])
  30139. ac_file_inputs=
  30140. for ac_f
  30141. do
  30142. case $ac_f in
  30143. -) ac_f="$tmp/stdin";;
  30144. *) # Look for the file first in the build tree, then in the source tree
  30145. # (if the path is not absolute). The absolute path cannot be DOS-style,
  30146. # because $ac_f cannot contain `:'.
  30147. test -f "$ac_f" ||
  30148. case $ac_f in
  30149. [\\/$]*) false;;
  30150. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  30151. esac ||
  30152. { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  30153. $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  30154. { (exit 1); exit 1; }; };;
  30155. esac
  30156. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  30157. ac_file_inputs="$ac_file_inputs '$ac_f'"
  30158. done
  30159. # Let's still pretend it is `configure' which instantiates (i.e., don't
  30160. # use $as_me), people would be surprised to read:
  30161. # /* config.h. Generated by config.status. */
  30162. configure_input='Generated from '`
  30163. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  30164. `' by configure.'
  30165. if test x"$ac_file" != x-; then
  30166. configure_input="$ac_file. $configure_input"
  30167. { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
  30168. $as_echo "$as_me: creating $ac_file" >&6;}
  30169. fi
  30170. # Neutralize special characters interpreted by sed in replacement strings.
  30171. case $configure_input in #(
  30172. *\&* | *\|* | *\\* )
  30173. ac_sed_conf_input=`$as_echo "$configure_input" |
  30174. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  30175. *) ac_sed_conf_input=$configure_input;;
  30176. esac
  30177. case $ac_tag in
  30178. *:-:* | *:-) cat >"$tmp/stdin" \
  30179. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  30180. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  30181. { (exit 1); exit 1; }; } ;;
  30182. esac
  30183. ;;
  30184. esac
  30185. ac_dir=`$as_dirname -- "$ac_file" ||
  30186. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  30187. X"$ac_file" : 'X\(//\)[^/]' \| \
  30188. X"$ac_file" : 'X\(//\)$' \| \
  30189. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  30190. $as_echo X"$ac_file" |
  30191. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  30192. s//\1/
  30193. q
  30194. }
  30195. /^X\(\/\/\)[^/].*/{
  30196. s//\1/
  30197. q
  30198. }
  30199. /^X\(\/\/\)$/{
  30200. s//\1/
  30201. q
  30202. }
  30203. /^X\(\/\).*/{
  30204. s//\1/
  30205. q
  30206. }
  30207. s/.*/./; q'`
  30208. { as_dir="$ac_dir"
  30209. case $as_dir in #(
  30210. -*) as_dir=./$as_dir;;
  30211. esac
  30212. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  30213. as_dirs=
  30214. while :; do
  30215. case $as_dir in #(
  30216. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  30217. *) as_qdir=$as_dir;;
  30218. esac
  30219. as_dirs="'$as_qdir' $as_dirs"
  30220. as_dir=`$as_dirname -- "$as_dir" ||
  30221. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  30222. X"$as_dir" : 'X\(//\)[^/]' \| \
  30223. X"$as_dir" : 'X\(//\)$' \| \
  30224. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  30225. $as_echo X"$as_dir" |
  30226. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  30227. s//\1/
  30228. q
  30229. }
  30230. /^X\(\/\/\)[^/].*/{
  30231. s//\1/
  30232. q
  30233. }
  30234. /^X\(\/\/\)$/{
  30235. s//\1/
  30236. q
  30237. }
  30238. /^X\(\/\).*/{
  30239. s//\1/
  30240. q
  30241. }
  30242. s/.*/./; q'`
  30243. test -d "$as_dir" && break
  30244. done
  30245. test -z "$as_dirs" || eval "mkdir $as_dirs"
  30246. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  30247. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  30248. { (exit 1); exit 1; }; }; }
  30249. ac_builddir=.
  30250. case "$ac_dir" in
  30251. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  30252. *)
  30253. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  30254. # A ".." for each directory in $ac_dir_suffix.
  30255. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  30256. case $ac_top_builddir_sub in
  30257. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  30258. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  30259. esac ;;
  30260. esac
  30261. ac_abs_top_builddir=$ac_pwd
  30262. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  30263. # for backward compatibility:
  30264. ac_top_builddir=$ac_top_build_prefix
  30265. case $srcdir in
  30266. .) # We are building in place.
  30267. ac_srcdir=.
  30268. ac_top_srcdir=$ac_top_builddir_sub
  30269. ac_abs_top_srcdir=$ac_pwd ;;
  30270. [\\/]* | ?:[\\/]* ) # Absolute name.
  30271. ac_srcdir=$srcdir$ac_dir_suffix;
  30272. ac_top_srcdir=$srcdir
  30273. ac_abs_top_srcdir=$srcdir ;;
  30274. *) # Relative name.
  30275. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  30276. ac_top_srcdir=$ac_top_build_prefix$srcdir
  30277. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  30278. esac
  30279. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  30280. case $ac_mode in
  30281. :F)
  30282. #
  30283. # CONFIG_FILE
  30284. #
  30285. case $INSTALL in
  30286. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  30287. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  30288. esac
  30289. ac_MKDIR_P=$MKDIR_P
  30290. case $MKDIR_P in
  30291. [\\/$]* | ?:[\\/]* ) ;;
  30292. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  30293. esac
  30294. _ACEOF
  30295. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  30296. # If the template does not know about datarootdir, expand it.
  30297. # FIXME: This hack should be removed a few years after 2.60.
  30298. ac_datarootdir_hack=; ac_datarootdir_seen=
  30299. ac_sed_dataroot='
  30300. /datarootdir/ {
  30301. p
  30302. q
  30303. }
  30304. /@datadir@/p
  30305. /@docdir@/p
  30306. /@infodir@/p
  30307. /@localedir@/p
  30308. /@mandir@/p
  30309. '
  30310. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  30311. *datarootdir*) ac_datarootdir_seen=yes;;
  30312. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  30313. { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  30314. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  30315. _ACEOF
  30316. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  30317. ac_datarootdir_hack='
  30318. s&@datadir@&$datadir&g
  30319. s&@docdir@&$docdir&g
  30320. s&@infodir@&$infodir&g
  30321. s&@localedir@&$localedir&g
  30322. s&@mandir@&$mandir&g
  30323. s&\\\${datarootdir}&$datarootdir&g' ;;
  30324. esac
  30325. _ACEOF
  30326. # Neutralize VPATH when `$srcdir' = `.'.
  30327. # Shell code in configure.ac might set extrasub.
  30328. # FIXME: do we really want to maintain this feature?
  30329. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  30330. ac_sed_extra="$ac_vpsub
  30331. $extrasub
  30332. _ACEOF
  30333. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  30334. :t
  30335. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  30336. s|@configure_input@|$ac_sed_conf_input|;t t
  30337. s&@top_builddir@&$ac_top_builddir_sub&;t t
  30338. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  30339. s&@srcdir@&$ac_srcdir&;t t
  30340. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  30341. s&@top_srcdir@&$ac_top_srcdir&;t t
  30342. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  30343. s&@builddir@&$ac_builddir&;t t
  30344. s&@abs_builddir@&$ac_abs_builddir&;t t
  30345. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  30346. s&@INSTALL@&$ac_INSTALL&;t t
  30347. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  30348. $ac_datarootdir_hack
  30349. "
  30350. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  30351. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  30352. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  30353. { (exit 1); exit 1; }; }
  30354. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  30355. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  30356. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  30357. { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  30358. which seems to be undefined. Please make sure it is defined." >&5
  30359. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  30360. which seems to be undefined. Please make sure it is defined." >&2;}
  30361. rm -f "$tmp/stdin"
  30362. case $ac_file in
  30363. -) cat "$tmp/out" && rm -f "$tmp/out";;
  30364. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  30365. esac \
  30366. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  30367. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  30368. { (exit 1); exit 1; }; }
  30369. ;;
  30370. :H)
  30371. #
  30372. # CONFIG_HEADER
  30373. #
  30374. if test x"$ac_file" != x-; then
  30375. {
  30376. $as_echo "/* $configure_input */" \
  30377. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  30378. } >"$tmp/config.h" \
  30379. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  30380. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  30381. { (exit 1); exit 1; }; }
  30382. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  30383. { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  30384. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  30385. else
  30386. rm -f "$ac_file"
  30387. mv "$tmp/config.h" "$ac_file" \
  30388. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  30389. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  30390. { (exit 1); exit 1; }; }
  30391. fi
  30392. else
  30393. $as_echo "/* $configure_input */" \
  30394. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  30395. || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
  30396. $as_echo "$as_me: error: could not create -" >&2;}
  30397. { (exit 1); exit 1; }; }
  30398. fi
  30399. # Compute "$ac_file"'s index in $config_headers.
  30400. _am_arg="$ac_file"
  30401. _am_stamp_count=1
  30402. for _am_header in $config_headers :; do
  30403. case $_am_header in
  30404. $_am_arg | $_am_arg:* )
  30405. break ;;
  30406. * )
  30407. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  30408. esac
  30409. done
  30410. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  30411. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  30412. X"$_am_arg" : 'X\(//\)[^/]' \| \
  30413. X"$_am_arg" : 'X\(//\)$' \| \
  30414. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  30415. $as_echo X"$_am_arg" |
  30416. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  30417. s//\1/
  30418. q
  30419. }
  30420. /^X\(\/\/\)[^/].*/{
  30421. s//\1/
  30422. q
  30423. }
  30424. /^X\(\/\/\)$/{
  30425. s//\1/
  30426. q
  30427. }
  30428. /^X\(\/\).*/{
  30429. s//\1/
  30430. q
  30431. }
  30432. s/.*/./; q'`/stamp-h$_am_stamp_count
  30433. ;;
  30434. :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
  30435. $as_echo "$as_me: executing $ac_file commands" >&6;}
  30436. ;;
  30437. esac
  30438. case $ac_file$ac_mode in
  30439. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  30440. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  30441. # are listed without --file. Let's play safe and only enable the eval
  30442. # if we detect the quoting.
  30443. case $CONFIG_FILES in
  30444. *\'*) eval set x "$CONFIG_FILES" ;;
  30445. *) set x $CONFIG_FILES ;;
  30446. esac
  30447. shift
  30448. for mf
  30449. do
  30450. # Strip MF so we end up with the name of the file.
  30451. mf=`echo "$mf" | sed -e 's/:.*$//'`
  30452. # Check whether this is an Automake generated Makefile or not.
  30453. # We used to match only the files named `Makefile.in', but
  30454. # some people rename them; so instead we look at the file content.
  30455. # Grep'ing the first line is not enough: some people post-process
  30456. # each Makefile.in and add a new line on top of each file to say so.
  30457. # Grep'ing the whole file is not good either: AIX grep has a line
  30458. # limit of 2048, but all sed's we know have understand at least 4000.
  30459. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  30460. dirpart=`$as_dirname -- "$mf" ||
  30461. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  30462. X"$mf" : 'X\(//\)[^/]' \| \
  30463. X"$mf" : 'X\(//\)$' \| \
  30464. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  30465. $as_echo X"$mf" |
  30466. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  30467. s//\1/
  30468. q
  30469. }
  30470. /^X\(\/\/\)[^/].*/{
  30471. s//\1/
  30472. q
  30473. }
  30474. /^X\(\/\/\)$/{
  30475. s//\1/
  30476. q
  30477. }
  30478. /^X\(\/\).*/{
  30479. s//\1/
  30480. q
  30481. }
  30482. s/.*/./; q'`
  30483. else
  30484. continue
  30485. fi
  30486. # Extract the definition of DEPDIR, am__include, and am__quote
  30487. # from the Makefile without running `make'.
  30488. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  30489. test -z "$DEPDIR" && continue
  30490. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  30491. test -z "am__include" && continue
  30492. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  30493. # When using ansi2knr, U may be empty or an underscore; expand it
  30494. U=`sed -n 's/^U = //p' < "$mf"`
  30495. # Find all dependency output files, they are included files with
  30496. # $(DEPDIR) in their names. We invoke sed twice because it is the
  30497. # simplest approach to changing $(DEPDIR) to its actual value in the
  30498. # expansion.
  30499. for file in `sed -n "
  30500. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  30501. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  30502. # Make sure the directory exists.
  30503. test -f "$dirpart/$file" && continue
  30504. fdir=`$as_dirname -- "$file" ||
  30505. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  30506. X"$file" : 'X\(//\)[^/]' \| \
  30507. X"$file" : 'X\(//\)$' \| \
  30508. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  30509. $as_echo X"$file" |
  30510. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  30511. s//\1/
  30512. q
  30513. }
  30514. /^X\(\/\/\)[^/].*/{
  30515. s//\1/
  30516. q
  30517. }
  30518. /^X\(\/\/\)$/{
  30519. s//\1/
  30520. q
  30521. }
  30522. /^X\(\/\).*/{
  30523. s//\1/
  30524. q
  30525. }
  30526. s/.*/./; q'`
  30527. { as_dir=$dirpart/$fdir
  30528. case $as_dir in #(
  30529. -*) as_dir=./$as_dir;;
  30530. esac
  30531. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  30532. as_dirs=
  30533. while :; do
  30534. case $as_dir in #(
  30535. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  30536. *) as_qdir=$as_dir;;
  30537. esac
  30538. as_dirs="'$as_qdir' $as_dirs"
  30539. as_dir=`$as_dirname -- "$as_dir" ||
  30540. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  30541. X"$as_dir" : 'X\(//\)[^/]' \| \
  30542. X"$as_dir" : 'X\(//\)$' \| \
  30543. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  30544. $as_echo X"$as_dir" |
  30545. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  30546. s//\1/
  30547. q
  30548. }
  30549. /^X\(\/\/\)[^/].*/{
  30550. s//\1/
  30551. q
  30552. }
  30553. /^X\(\/\/\)$/{
  30554. s//\1/
  30555. q
  30556. }
  30557. /^X\(\/\).*/{
  30558. s//\1/
  30559. q
  30560. }
  30561. s/.*/./; q'`
  30562. test -d "$as_dir" && break
  30563. done
  30564. test -z "$as_dirs" || eval "mkdir $as_dirs"
  30565. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  30566. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  30567. { (exit 1); exit 1; }; }; }
  30568. # echo "creating $dirpart/$file"
  30569. echo '# dummy' > "$dirpart/$file"
  30570. done
  30571. done
  30572. }
  30573. ;;
  30574. "libtool":C)
  30575. # See if we are running on zsh, and set the options which allow our
  30576. # commands through without removal of \ escapes.
  30577. if test -n "${ZSH_VERSION+set}" ; then
  30578. setopt NO_GLOB_SUBST
  30579. fi
  30580. cfgfile="${ofile}T"
  30581. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  30582. $RM "$cfgfile"
  30583. cat <<_LT_EOF >> "$cfgfile"
  30584. #! $SHELL
  30585. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  30586. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  30587. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  30588. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  30589. #
  30590. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  30591. # 2006, 2007, 2008 Free Software Foundation, Inc.
  30592. # Written by Gordon Matzigkeit, 1996
  30593. #
  30594. # This file is part of GNU Libtool.
  30595. #
  30596. # GNU Libtool is free software; you can redistribute it and/or
  30597. # modify it under the terms of the GNU General Public License as
  30598. # published by the Free Software Foundation; either version 2 of
  30599. # the License, or (at your option) any later version.
  30600. #
  30601. # As a special exception to the GNU General Public License,
  30602. # if you distribute this file as part of a program or library that
  30603. # is built using GNU Libtool, you may include this file under the
  30604. # same distribution terms that you use for the rest of that program.
  30605. #
  30606. # GNU Libtool is distributed in the hope that it will be useful,
  30607. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  30608. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  30609. # GNU General Public License for more details.
  30610. #
  30611. # You should have received a copy of the GNU General Public License
  30612. # along with GNU Libtool; see the file COPYING. If not, a copy
  30613. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  30614. # obtained by writing to the Free Software Foundation, Inc.,
  30615. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  30616. # The names of the tagged configurations supported by this script.
  30617. available_tags="CXX "
  30618. # ### BEGIN LIBTOOL CONFIG
  30619. # Which release of libtool.m4 was used?
  30620. macro_version=$macro_version
  30621. macro_revision=$macro_revision
  30622. # Whether or not to build shared libraries.
  30623. build_libtool_libs=$enable_shared
  30624. # Whether or not to build static libraries.
  30625. build_old_libs=$enable_static
  30626. # What type of objects to build.
  30627. pic_mode=$pic_mode
  30628. # Whether or not to optimize for fast installation.
  30629. fast_install=$enable_fast_install
  30630. # The host system.
  30631. host_alias=$host_alias
  30632. host=$host
  30633. host_os=$host_os
  30634. # The build system.
  30635. build_alias=$build_alias
  30636. build=$build
  30637. build_os=$build_os
  30638. # A sed program that does not truncate output.
  30639. SED=$lt_SED
  30640. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  30641. Xsed="\$SED -e 1s/^X//"
  30642. # A grep program that handles long lines.
  30643. GREP=$lt_GREP
  30644. # An ERE matcher.
  30645. EGREP=$lt_EGREP
  30646. # A literal string matcher.
  30647. FGREP=$lt_FGREP
  30648. # A BSD- or MS-compatible name lister.
  30649. NM=$lt_NM
  30650. # Whether we need soft or hard links.
  30651. LN_S=$lt_LN_S
  30652. # What is the maximum length of a command?
  30653. max_cmd_len=$max_cmd_len
  30654. # Object file suffix (normally "o").
  30655. objext=$ac_objext
  30656. # Executable file suffix (normally "").
  30657. exeext=$exeext
  30658. # whether the shell understands "unset".
  30659. lt_unset=$lt_unset
  30660. # turn spaces into newlines.
  30661. SP2NL=$lt_lt_SP2NL
  30662. # turn newlines into spaces.
  30663. NL2SP=$lt_lt_NL2SP
  30664. # How to create reloadable object files.
  30665. reload_flag=$lt_reload_flag
  30666. reload_cmds=$lt_reload_cmds
  30667. # An object symbol dumper.
  30668. OBJDUMP=$lt_OBJDUMP
  30669. # Method to check whether dependent libraries are shared objects.
  30670. deplibs_check_method=$lt_deplibs_check_method
  30671. # Command to use when deplibs_check_method == "file_magic".
  30672. file_magic_cmd=$lt_file_magic_cmd
  30673. # The archiver.
  30674. AR=$lt_AR
  30675. AR_FLAGS=$lt_AR_FLAGS
  30676. # A symbol stripping program.
  30677. STRIP=$lt_STRIP
  30678. # Commands used to install an old-style archive.
  30679. RANLIB=$lt_RANLIB
  30680. old_postinstall_cmds=$lt_old_postinstall_cmds
  30681. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  30682. # A C compiler.
  30683. LTCC=$lt_CC
  30684. # LTCC compiler flags.
  30685. LTCFLAGS=$lt_CFLAGS
  30686. # Take the output of nm and produce a listing of raw symbols and C names.
  30687. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  30688. # Transform the output of nm in a proper C declaration.
  30689. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  30690. # Transform the output of nm in a C name address pair.
  30691. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  30692. # Transform the output of nm in a C name address pair when lib prefix is needed.
  30693. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  30694. # The name of the directory that contains temporary libtool files.
  30695. objdir=$objdir
  30696. # Shell to use when invoking shell scripts.
  30697. SHELL=$lt_SHELL
  30698. # An echo program that does not interpret backslashes.
  30699. ECHO=$lt_ECHO
  30700. # Used to examine libraries when file_magic_cmd begins with "file".
  30701. MAGIC_CMD=$MAGIC_CMD
  30702. # Must we lock files when doing compilation?
  30703. need_locks=$lt_need_locks
  30704. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  30705. DSYMUTIL=$lt_DSYMUTIL
  30706. # Tool to change global to local symbols on Mac OS X.
  30707. NMEDIT=$lt_NMEDIT
  30708. # Tool to manipulate fat objects and archives on Mac OS X.
  30709. LIPO=$lt_LIPO
  30710. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  30711. OTOOL=$lt_OTOOL
  30712. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  30713. OTOOL64=$lt_OTOOL64
  30714. # Old archive suffix (normally "a").
  30715. libext=$libext
  30716. # Shared library suffix (normally ".so").
  30717. shrext_cmds=$lt_shrext_cmds
  30718. # The commands to extract the exported symbol list from a shared archive.
  30719. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  30720. # Variables whose values should be saved in libtool wrapper scripts and
  30721. # restored at link time.
  30722. variables_saved_for_relink=$lt_variables_saved_for_relink
  30723. # Do we need the "lib" prefix for modules?
  30724. need_lib_prefix=$need_lib_prefix
  30725. # Do we need a version for libraries?
  30726. need_version=$need_version
  30727. # Library versioning type.
  30728. version_type=$version_type
  30729. # Shared library runtime path variable.
  30730. runpath_var=$runpath_var
  30731. # Shared library path variable.
  30732. shlibpath_var=$shlibpath_var
  30733. # Is shlibpath searched before the hard-coded library search path?
  30734. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  30735. # Format of library name prefix.
  30736. libname_spec=$lt_libname_spec
  30737. # List of archive names. First name is the real one, the rest are links.
  30738. # The last name is the one that the linker finds with -lNAME
  30739. library_names_spec=$lt_library_names_spec
  30740. # The coded name of the library, if different from the real name.
  30741. soname_spec=$lt_soname_spec
  30742. # Command to use after installation of a shared archive.
  30743. postinstall_cmds=$lt_postinstall_cmds
  30744. # Command to use after uninstallation of a shared archive.
  30745. postuninstall_cmds=$lt_postuninstall_cmds
  30746. # Commands used to finish a libtool library installation in a directory.
  30747. finish_cmds=$lt_finish_cmds
  30748. # As "finish_cmds", except a single script fragment to be evaled but
  30749. # not shown.
  30750. finish_eval=$lt_finish_eval
  30751. # Whether we should hardcode library paths into libraries.
  30752. hardcode_into_libs=$hardcode_into_libs
  30753. # Compile-time system search path for libraries.
  30754. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  30755. # Run-time system search path for libraries.
  30756. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  30757. # Whether dlopen is supported.
  30758. dlopen_support=$enable_dlopen
  30759. # Whether dlopen of programs is supported.
  30760. dlopen_self=$enable_dlopen_self
  30761. # Whether dlopen of statically linked programs is supported.
  30762. dlopen_self_static=$enable_dlopen_self_static
  30763. # Commands to strip libraries.
  30764. old_striplib=$lt_old_striplib
  30765. striplib=$lt_striplib
  30766. # The linker used to build libraries.
  30767. LD=$lt_LD
  30768. # Commands used to build an old-style archive.
  30769. old_archive_cmds=$lt_old_archive_cmds
  30770. # A language specific compiler.
  30771. CC=$lt_compiler
  30772. # Is the compiler the GNU compiler?
  30773. with_gcc=$GCC
  30774. # Compiler flag to turn off builtin functions.
  30775. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  30776. # How to pass a linker flag through the compiler.
  30777. wl=$lt_lt_prog_compiler_wl
  30778. # Additional compiler flags for building library objects.
  30779. pic_flag=$lt_lt_prog_compiler_pic
  30780. # Compiler flag to prevent dynamic linking.
  30781. link_static_flag=$lt_lt_prog_compiler_static
  30782. # Does compiler simultaneously support -c and -o options?
  30783. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  30784. # Whether or not to add -lc for building shared libraries.
  30785. build_libtool_need_lc=$archive_cmds_need_lc
  30786. # Whether or not to disallow shared libs when runtime libs are static.
  30787. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  30788. # Compiler flag to allow reflexive dlopens.
  30789. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  30790. # Compiler flag to generate shared objects directly from archives.
  30791. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  30792. # Whether the compiler copes with passing no objects directly.
  30793. compiler_needs_object=$lt_compiler_needs_object
  30794. # Create an old-style archive from a shared archive.
  30795. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  30796. # Create a temporary old-style archive to link instead of a shared archive.
  30797. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  30798. # Commands used to build a shared archive.
  30799. archive_cmds=$lt_archive_cmds
  30800. archive_expsym_cmds=$lt_archive_expsym_cmds
  30801. # Commands used to build a loadable module if different from building
  30802. # a shared archive.
  30803. module_cmds=$lt_module_cmds
  30804. module_expsym_cmds=$lt_module_expsym_cmds
  30805. # Whether we are building with GNU ld or not.
  30806. with_gnu_ld=$lt_with_gnu_ld
  30807. # Flag that allows shared libraries with undefined symbols to be built.
  30808. allow_undefined_flag=$lt_allow_undefined_flag
  30809. # Flag that enforces no undefined symbols.
  30810. no_undefined_flag=$lt_no_undefined_flag
  30811. # Flag to hardcode \$libdir into a binary during linking.
  30812. # This must work even if \$libdir does not exist
  30813. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  30814. # If ld is used when linking, flag to hardcode \$libdir into a binary
  30815. # during linking. This must work even if \$libdir does not exist.
  30816. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  30817. # Whether we need a single "-rpath" flag with a separated argument.
  30818. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  30819. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  30820. # DIR into the resulting binary.
  30821. hardcode_direct=$hardcode_direct
  30822. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  30823. # DIR into the resulting binary and the resulting library dependency is
  30824. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  30825. # library is relocated.
  30826. hardcode_direct_absolute=$hardcode_direct_absolute
  30827. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  30828. # into the resulting binary.
  30829. hardcode_minus_L=$hardcode_minus_L
  30830. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  30831. # into the resulting binary.
  30832. hardcode_shlibpath_var=$hardcode_shlibpath_var
  30833. # Set to "yes" if building a shared library automatically hardcodes DIR
  30834. # into the library and all subsequent libraries and executables linked
  30835. # against it.
  30836. hardcode_automatic=$hardcode_automatic
  30837. # Set to yes if linker adds runtime paths of dependent libraries
  30838. # to runtime path list.
  30839. inherit_rpath=$inherit_rpath
  30840. # Whether libtool must link a program against all its dependency libraries.
  30841. link_all_deplibs=$link_all_deplibs
  30842. # Fix the shell variable \$srcfile for the compiler.
  30843. fix_srcfile_path=$lt_fix_srcfile_path
  30844. # Set to "yes" if exported symbols are required.
  30845. always_export_symbols=$always_export_symbols
  30846. # The commands to list exported symbols.
  30847. export_symbols_cmds=$lt_export_symbols_cmds
  30848. # Symbols that should not be listed in the preloaded symbols.
  30849. exclude_expsyms=$lt_exclude_expsyms
  30850. # Symbols that must always be exported.
  30851. include_expsyms=$lt_include_expsyms
  30852. # Commands necessary for linking programs (against libraries) with templates.
  30853. prelink_cmds=$lt_prelink_cmds
  30854. # Specify filename containing input files.
  30855. file_list_spec=$lt_file_list_spec
  30856. # How to hardcode a shared library path into an executable.
  30857. hardcode_action=$hardcode_action
  30858. # The directories searched by this compiler when creating a shared library.
  30859. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  30860. # Dependencies to place before and after the objects being linked to
  30861. # create a shared library.
  30862. predep_objects=$lt_predep_objects
  30863. postdep_objects=$lt_postdep_objects
  30864. predeps=$lt_predeps
  30865. postdeps=$lt_postdeps
  30866. # The library search path used internally by the compiler when linking
  30867. # a shared library.
  30868. compiler_lib_search_path=$lt_compiler_lib_search_path
  30869. # ### END LIBTOOL CONFIG
  30870. _LT_EOF
  30871. case $host_os in
  30872. aix3*)
  30873. cat <<\_LT_EOF >> "$cfgfile"
  30874. # AIX sometimes has problems with the GCC collect2 program. For some
  30875. # reason, if we set the COLLECT_NAMES environment variable, the problems
  30876. # vanish in a puff of smoke.
  30877. if test "X${COLLECT_NAMES+set}" != Xset; then
  30878. COLLECT_NAMES=
  30879. export COLLECT_NAMES
  30880. fi
  30881. _LT_EOF
  30882. ;;
  30883. esac
  30884. ltmain="$ac_aux_dir/ltmain.sh"
  30885. # We use sed instead of cat because bash on DJGPP gets confused if
  30886. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  30887. # text mode, it properly converts lines to CR/LF. This bash problem
  30888. # is reportedly fixed, but why not run on old versions too?
  30889. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  30890. || (rm -f "$cfgfile"; exit 1)
  30891. case $xsi_shell in
  30892. yes)
  30893. cat << \_LT_EOF >> "$cfgfile"
  30894. # func_dirname file append nondir_replacement
  30895. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  30896. # otherwise set result to NONDIR_REPLACEMENT.
  30897. func_dirname ()
  30898. {
  30899. case ${1} in
  30900. */*) func_dirname_result="${1%/*}${2}" ;;
  30901. * ) func_dirname_result="${3}" ;;
  30902. esac
  30903. }
  30904. # func_basename file
  30905. func_basename ()
  30906. {
  30907. func_basename_result="${1##*/}"
  30908. }
  30909. # func_dirname_and_basename file append nondir_replacement
  30910. # perform func_basename and func_dirname in a single function
  30911. # call:
  30912. # dirname: Compute the dirname of FILE. If nonempty,
  30913. # add APPEND to the result, otherwise set result
  30914. # to NONDIR_REPLACEMENT.
  30915. # value returned in "$func_dirname_result"
  30916. # basename: Compute filename of FILE.
  30917. # value retuned in "$func_basename_result"
  30918. # Implementation must be kept synchronized with func_dirname
  30919. # and func_basename. For efficiency, we do not delegate to
  30920. # those functions but instead duplicate the functionality here.
  30921. func_dirname_and_basename ()
  30922. {
  30923. case ${1} in
  30924. */*) func_dirname_result="${1%/*}${2}" ;;
  30925. * ) func_dirname_result="${3}" ;;
  30926. esac
  30927. func_basename_result="${1##*/}"
  30928. }
  30929. # func_stripname prefix suffix name
  30930. # strip PREFIX and SUFFIX off of NAME.
  30931. # PREFIX and SUFFIX must not contain globbing or regex special
  30932. # characters, hashes, percent signs, but SUFFIX may contain a leading
  30933. # dot (in which case that matches only a dot).
  30934. func_stripname ()
  30935. {
  30936. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  30937. # positional parameters, so assign one to ordinary parameter first.
  30938. func_stripname_result=${3}
  30939. func_stripname_result=${func_stripname_result#"${1}"}
  30940. func_stripname_result=${func_stripname_result%"${2}"}
  30941. }
  30942. # func_opt_split
  30943. func_opt_split ()
  30944. {
  30945. func_opt_split_opt=${1%%=*}
  30946. func_opt_split_arg=${1#*=}
  30947. }
  30948. # func_lo2o object
  30949. func_lo2o ()
  30950. {
  30951. case ${1} in
  30952. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  30953. *) func_lo2o_result=${1} ;;
  30954. esac
  30955. }
  30956. # func_xform libobj-or-source
  30957. func_xform ()
  30958. {
  30959. func_xform_result=${1%.*}.lo
  30960. }
  30961. # func_arith arithmetic-term...
  30962. func_arith ()
  30963. {
  30964. func_arith_result=$(( $* ))
  30965. }
  30966. # func_len string
  30967. # STRING may not start with a hyphen.
  30968. func_len ()
  30969. {
  30970. func_len_result=${#1}
  30971. }
  30972. _LT_EOF
  30973. ;;
  30974. *) # Bourne compatible functions.
  30975. cat << \_LT_EOF >> "$cfgfile"
  30976. # func_dirname file append nondir_replacement
  30977. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  30978. # otherwise set result to NONDIR_REPLACEMENT.
  30979. func_dirname ()
  30980. {
  30981. # Extract subdirectory from the argument.
  30982. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  30983. if test "X$func_dirname_result" = "X${1}"; then
  30984. func_dirname_result="${3}"
  30985. else
  30986. func_dirname_result="$func_dirname_result${2}"
  30987. fi
  30988. }
  30989. # func_basename file
  30990. func_basename ()
  30991. {
  30992. func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  30993. }
  30994. # func_stripname prefix suffix name
  30995. # strip PREFIX and SUFFIX off of NAME.
  30996. # PREFIX and SUFFIX must not contain globbing or regex special
  30997. # characters, hashes, percent signs, but SUFFIX may contain a leading
  30998. # dot (in which case that matches only a dot).
  30999. # func_strip_suffix prefix name
  31000. func_stripname ()
  31001. {
  31002. case ${2} in
  31003. .*) func_stripname_result=`$ECHO "X${3}" \
  31004. | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  31005. *) func_stripname_result=`$ECHO "X${3}" \
  31006. | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  31007. esac
  31008. }
  31009. # sed scripts:
  31010. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  31011. my_sed_long_arg='1s/^-[^=]*=//'
  31012. # func_opt_split
  31013. func_opt_split ()
  31014. {
  31015. func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  31016. func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  31017. }
  31018. # func_lo2o object
  31019. func_lo2o ()
  31020. {
  31021. func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  31022. }
  31023. # func_xform libobj-or-source
  31024. func_xform ()
  31025. {
  31026. func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  31027. }
  31028. # func_arith arithmetic-term...
  31029. func_arith ()
  31030. {
  31031. func_arith_result=`expr "$@"`
  31032. }
  31033. # func_len string
  31034. # STRING may not start with a hyphen.
  31035. func_len ()
  31036. {
  31037. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  31038. }
  31039. _LT_EOF
  31040. esac
  31041. case $lt_shell_append in
  31042. yes)
  31043. cat << \_LT_EOF >> "$cfgfile"
  31044. # func_append var value
  31045. # Append VALUE to the end of shell variable VAR.
  31046. func_append ()
  31047. {
  31048. eval "$1+=\$2"
  31049. }
  31050. _LT_EOF
  31051. ;;
  31052. *)
  31053. cat << \_LT_EOF >> "$cfgfile"
  31054. # func_append var value
  31055. # Append VALUE to the end of shell variable VAR.
  31056. func_append ()
  31057. {
  31058. eval "$1=\$$1\$2"
  31059. }
  31060. _LT_EOF
  31061. ;;
  31062. esac
  31063. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  31064. || (rm -f "$cfgfile"; exit 1)
  31065. mv -f "$cfgfile" "$ofile" ||
  31066. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  31067. chmod +x "$ofile"
  31068. cat <<_LT_EOF >> "$ofile"
  31069. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  31070. # The linker used to build libraries.
  31071. LD=$lt_LD_CXX
  31072. # Commands used to build an old-style archive.
  31073. old_archive_cmds=$lt_old_archive_cmds_CXX
  31074. # A language specific compiler.
  31075. CC=$lt_compiler_CXX
  31076. # Is the compiler the GNU compiler?
  31077. with_gcc=$GCC_CXX
  31078. # Compiler flag to turn off builtin functions.
  31079. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  31080. # How to pass a linker flag through the compiler.
  31081. wl=$lt_lt_prog_compiler_wl_CXX
  31082. # Additional compiler flags for building library objects.
  31083. pic_flag=$lt_lt_prog_compiler_pic_CXX
  31084. # Compiler flag to prevent dynamic linking.
  31085. link_static_flag=$lt_lt_prog_compiler_static_CXX
  31086. # Does compiler simultaneously support -c and -o options?
  31087. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  31088. # Whether or not to add -lc for building shared libraries.
  31089. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  31090. # Whether or not to disallow shared libs when runtime libs are static.
  31091. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  31092. # Compiler flag to allow reflexive dlopens.
  31093. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  31094. # Compiler flag to generate shared objects directly from archives.
  31095. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  31096. # Whether the compiler copes with passing no objects directly.
  31097. compiler_needs_object=$lt_compiler_needs_object_CXX
  31098. # Create an old-style archive from a shared archive.
  31099. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  31100. # Create a temporary old-style archive to link instead of a shared archive.
  31101. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  31102. # Commands used to build a shared archive.
  31103. archive_cmds=$lt_archive_cmds_CXX
  31104. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  31105. # Commands used to build a loadable module if different from building
  31106. # a shared archive.
  31107. module_cmds=$lt_module_cmds_CXX
  31108. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  31109. # Whether we are building with GNU ld or not.
  31110. with_gnu_ld=$lt_with_gnu_ld_CXX
  31111. # Flag that allows shared libraries with undefined symbols to be built.
  31112. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  31113. # Flag that enforces no undefined symbols.
  31114. no_undefined_flag=$lt_no_undefined_flag_CXX
  31115. # Flag to hardcode \$libdir into a binary during linking.
  31116. # This must work even if \$libdir does not exist
  31117. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  31118. # If ld is used when linking, flag to hardcode \$libdir into a binary
  31119. # during linking. This must work even if \$libdir does not exist.
  31120. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  31121. # Whether we need a single "-rpath" flag with a separated argument.
  31122. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  31123. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  31124. # DIR into the resulting binary.
  31125. hardcode_direct=$hardcode_direct_CXX
  31126. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  31127. # DIR into the resulting binary and the resulting library dependency is
  31128. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  31129. # library is relocated.
  31130. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  31131. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  31132. # into the resulting binary.
  31133. hardcode_minus_L=$hardcode_minus_L_CXX
  31134. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  31135. # into the resulting binary.
  31136. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  31137. # Set to "yes" if building a shared library automatically hardcodes DIR
  31138. # into the library and all subsequent libraries and executables linked
  31139. # against it.
  31140. hardcode_automatic=$hardcode_automatic_CXX
  31141. # Set to yes if linker adds runtime paths of dependent libraries
  31142. # to runtime path list.
  31143. inherit_rpath=$inherit_rpath_CXX
  31144. # Whether libtool must link a program against all its dependency libraries.
  31145. link_all_deplibs=$link_all_deplibs_CXX
  31146. # Fix the shell variable \$srcfile for the compiler.
  31147. fix_srcfile_path=$lt_fix_srcfile_path_CXX
  31148. # Set to "yes" if exported symbols are required.
  31149. always_export_symbols=$always_export_symbols_CXX
  31150. # The commands to list exported symbols.
  31151. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  31152. # Symbols that should not be listed in the preloaded symbols.
  31153. exclude_expsyms=$lt_exclude_expsyms_CXX
  31154. # Symbols that must always be exported.
  31155. include_expsyms=$lt_include_expsyms_CXX
  31156. # Commands necessary for linking programs (against libraries) with templates.
  31157. prelink_cmds=$lt_prelink_cmds_CXX
  31158. # Specify filename containing input files.
  31159. file_list_spec=$lt_file_list_spec_CXX
  31160. # How to hardcode a shared library path into an executable.
  31161. hardcode_action=$hardcode_action_CXX
  31162. # The directories searched by this compiler when creating a shared library.
  31163. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  31164. # Dependencies to place before and after the objects being linked to
  31165. # create a shared library.
  31166. predep_objects=$lt_predep_objects_CXX
  31167. postdep_objects=$lt_postdep_objects_CXX
  31168. predeps=$lt_predeps_CXX
  31169. postdeps=$lt_postdeps_CXX
  31170. # The library search path used internally by the compiler when linking
  31171. # a shared library.
  31172. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  31173. # ### END LIBTOOL TAG CONFIG: CXX
  31174. _LT_EOF
  31175. ;;
  31176. esac
  31177. done # for ac_tag
  31178. { (exit 0); exit 0; }
  31179. _ACEOF
  31180. chmod +x $CONFIG_STATUS
  31181. ac_clean_files=$ac_clean_files_save
  31182. test $ac_write_fail = 0 ||
  31183. { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
  31184. $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
  31185. { (exit 1); exit 1; }; }
  31186. # configure is writing to config.log, and then calls config.status.
  31187. # config.status does its own redirection, appending to config.log.
  31188. # Unfortunately, on DOS this fails, as config.log is still kept open
  31189. # by configure, so config.status won't be able to write to it; its
  31190. # output is simply discarded. So we exec the FD to /dev/null,
  31191. # effectively closing config.log, so it can be properly (re)opened and
  31192. # appended to by config.status. When coming back to configure, we
  31193. # need to make the FD available again.
  31194. if test "$no_create" != yes; then
  31195. ac_cs_success=:
  31196. ac_config_status_args=
  31197. test "$silent" = yes &&
  31198. ac_config_status_args="$ac_config_status_args --quiet"
  31199. exec 5>/dev/null
  31200. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  31201. exec 5>>config.log
  31202. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  31203. # would make configure fail if this is the last instruction.
  31204. $ac_cs_success || { (exit 1); exit 1; }
  31205. fi
  31206. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  31207. { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  31208. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  31209. fi
  31210. # Configuration results
  31211. { $as_echo "$as_me:$LINENO: result: ##########################################################################
  31212. TCPREPLAY Suite Configuration Results (${TCPREPLAY_VERSION})
  31213. ##########################################################################
  31214. libpcap: ${foundpcap} (${libpcap_version})
  31215. libdnet: ${founddnet} (${libdnet_version})
  31216. autogen: ${AUTOGEN} (${AUTOGEN_VERSION})
  31217. Use libopts tearoff: ${enable_local_libopts}
  31218. 64bit counter support: ${use64bit_counters}
  31219. tcpdump binary path: ${tcpdump_path}
  31220. tcpreplay edit support: ${tcpreplay_edit}
  31221. fragroute support: ${enable_fragroute}
  31222. tcpbridge support: ${enable_tcpbridge}
  31223. Supported Packet Injection Methods (*):
  31224. Linux PF_PACKET: ${have_pf}
  31225. BSD BPF: ${have_bpf}
  31226. libdnet: ${have_libdnet}
  31227. pcap_inject: ${have_pcap_inject}
  31228. pcap_sendpacket: ${have_pcap_sendpacket} **
  31229. * In order of preference; see configure --help to override
  31230. ** Required for tcpbridge
  31231. " >&5
  31232. $as_echo "##########################################################################
  31233. TCPREPLAY Suite Configuration Results (${TCPREPLAY_VERSION})
  31234. ##########################################################################
  31235. libpcap: ${foundpcap} (${libpcap_version})
  31236. libdnet: ${founddnet} (${libdnet_version})
  31237. autogen: ${AUTOGEN} (${AUTOGEN_VERSION})
  31238. Use libopts tearoff: ${enable_local_libopts}
  31239. 64bit counter support: ${use64bit_counters}
  31240. tcpdump binary path: ${tcpdump_path}
  31241. tcpreplay edit support: ${tcpreplay_edit}
  31242. fragroute support: ${enable_fragroute}
  31243. tcpbridge support: ${enable_tcpbridge}
  31244. Supported Packet Injection Methods (*):
  31245. Linux PF_PACKET: ${have_pf}
  31246. BSD BPF: ${have_bpf}
  31247. libdnet: ${have_libdnet}
  31248. pcap_inject: ${have_pcap_inject}
  31249. pcap_sendpacket: ${have_pcap_sendpacket} **
  31250. * In order of preference; see configure --help to override
  31251. ** Required for tcpbridge
  31252. " >&6; }
  31253. case $host in
  31254. *-apple-darwin*)
  31255. { $as_echo "$as_me:$LINENO: WARNING: Apple OS X versions prior to 10.5 (Leopard) has a serious problem!
  31256. Please see: http://tcpreplay.synfin.net/trac/ticket/142 for more details" >&5
  31257. $as_echo "$as_me: WARNING: Apple OS X versions prior to 10.5 (Leopard) has a serious problem!
  31258. Please see: http://tcpreplay.synfin.net/trac/ticket/142 for more details" >&2;}
  31259. ;;
  31260. *-*-cygwin)
  31261. { $as_echo "$as_me:$LINENO: WARNING: Windows/Cygwin support is still somewhat experimental.
  31262. Please report any bugs! http://tcpreplay.synfin.net/trac/newticket" >&5
  31263. $as_echo "$as_me: WARNING: Windows/Cygwin support is still somewhat experimental.
  31264. Please report any bugs! http://tcpreplay.synfin.net/trac/newticket" >&2;}
  31265. ;;
  31266. esac