configure 1.0 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650336513365233653336543365533656336573365833659336603366133662336633366433665336663366733668336693367033671336723367333674336753367633677336783367933680336813368233683336843368533686336873368833689336903369133692336933369433695336963369733698336993370033701337023370333704337053370633707337083370933710337113371233713337143371533716337173371833719337203372133722337233372433725337263372733728337293373033731337323373333734337353373633737337383373933740337413374233743337443374533746337473374833749337503375133752337533375433755337563375733758337593376033761337623376333764337653376633767337683376933770337713377233773337743377533776337773377833779337803378133782337833378433785337863378733788337893379033791337923379333794337953379633797337983379933800338013380233803338043380533806338073380833809338103381133812338133381433815338163381733818338193382033821338223382333824338253382633827338283382933830338313383233833338343383533836338373383833839338403384133842338433384433845338463384733848338493385033851338523385333854338553385633857338583385933860338613386233863338643386533866338673386833869338703387133872338733387433875338763387733878338793388033881338823388333884338853388633887338883388933890338913389233893338943389533896338973389833899339003390133902339033390433905339063390733908339093391033911339123391333914339153391633917339183391933920339213392233923339243392533926339273392833929339303393133932339333393433935339363393733938339393394033941339423394333944339453394633947339483394933950339513395233953339543395533956339573395833959339603396133962339633396433965339663396733968339693397033971339723397333974339753397633977339783397933980339813398233983339843398533986339873398833989339903399133992339933399433995339963399733998339993400034001340023400334004340053400634007340083400934010340113401234013340143401534016340173401834019340203402134022340233402434025340263402734028340293403034031340323403334034340353403634037340383403934040340413404234043340443404534046340473404834049340503405134052340533405434055340563405734058340593406034061340623406334064340653406634067340683406934070340713407234073340743407534076340773407834079340803408134082340833408434085340863408734088340893409034091340923409334094340953409634097340983409934100341013410234103341043410534106341073410834109341103411134112341133411434115341163411734118341193412034121341223412334124341253412634127341283412934130341313413234133341343413534136341373413834139341403414134142341433414434145341463414734148341493415034151341523415334154341553415634157341583415934160341613416234163341643416534166341673416834169341703417134172341733417434175341763417734178341793418034181341823418334184341853418634187341883418934190341913419234193341943419534196341973419834199342003420134202342033420434205342063420734208342093421034211342123421334214342153421634217342183421934220342213422234223342243422534226342273422834229342303423134232342333423434235342363423734238342393424034241342423424334244342453424634247342483424934250342513425234253342543425534256342573425834259342603426134262342633426434265342663426734268342693427034271342723427334274342753427634277342783427934280342813428234283342843428534286342873428834289342903429134292342933429434295342963429734298342993430034301343023430334304343053430634307343083430934310343113431234313343143431534316343173431834319343203432134322343233432434325343263432734328343293433034331343323433334334343353433634337343383433934340343413434234343343443434534346343473434834349343503435134352343533435434355343563435734358343593436034361343623436334364343653436634367343683436934370343713437234373343743437534376343773437834379343803438134382343833438434385343863438734388343893439034391343923439334394343953439634397343983439934400344013440234403344043440534406344073440834409344103441134412344133441434415344163441734418344193442034421344223442334424344253442634427344283442934430344313443234433344343443534436344373443834439344403444134442344433444434445344463444734448344493445034451344523445334454344553445634457344583445934460344613446234463344643446534466344673446834469344703447134472344733447434475344763447734478344793448034481344823448334484344853448634487344883448934490344913449234493344943449534496344973449834499345003450134502345033450434505345063450734508345093451034511345123451334514345153451634517345183451934520345213452234523345243452534526345273452834529345303453134532345333453434535345363453734538345393454034541345423454334544345453454634547345483454934550345513455234553345543455534556345573455834559345603456134562345633456434565345663456734568345693457034571345723457334574345753457634577345783457934580345813458234583345843458534586345873458834589345903459134592345933459434595345963459734598345993460034601346023460334604346053460634607346083460934610346113461234613346143461534616346173461834619346203462134622346233462434625346263462734628346293463034631346323463334634346353463634637346383463934640346413464234643346443464534646346473464834649346503465134652346533465434655346563465734658346593466034661346623466334664346653466634667346683466934670346713467234673346743467534676346773467834679346803468134682346833468434685346863468734688346893469034691346923469334694346953469634697346983469934700347013470234703347043470534706347073470834709347103471134712347133471434715347163471734718347193472034721347223472334724347253472634727347283472934730347313473234733347343473534736347373473834739347403474134742347433474434745347463474734748347493475034751347523475334754347553475634757347583475934760347613476234763347643476534766347673476834769347703477134772347733477434775347763477734778347793478034781347823478334784347853478634787347883478934790347913479234793347943479534796347973479834799348003480134802348033480434805348063480734808348093481034811348123481334814348153481634817348183481934820348213482234823348243482534826348273482834829348303483134832348333483434835348363483734838348393484034841348423484334844348453484634847348483484934850348513485234853348543485534856348573485834859348603486134862348633486434865348663486734868348693487034871348723487334874348753487634877348783487934880348813488234883348843488534886348873488834889348903489134892348933489434895348963489734898348993490034901349023490334904349053490634907349083490934910349113491234913349143491534916349173491834919349203492134922349233492434925349263492734928349293493034931349323493334934349353493634937349383493934940349413494234943349443494534946349473494834949349503495134952349533495434955349563495734958349593496034961349623496334964349653496634967349683496934970349713497234973349743497534976349773497834979349803498134982349833498434985349863498734988349893499034991349923499334994349953499634997349983499935000350013500235003350043500535006350073500835009350103501135012350133501435015350163501735018350193502035021350223502335024350253502635027350283502935030350313503235033350343503535036350373503835039350403504135042350433504435045350463504735048350493505035051350523505335054350553505635057350583505935060350613506235063350643506535066350673506835069350703507135072350733507435075350763507735078350793508035081350823508335084350853508635087350883508935090350913509235093350943509535096350973509835099351003510135102351033510435105351063510735108351093511035111351123511335114351153511635117351183511935120351213512235123351243512535126351273512835129351303513135132351333513435135351363513735138351393514035141351423514335144351453514635147351483514935150351513515235153351543515535156351573515835159351603516135162351633516435165351663516735168351693517035171351723517335174351753517635177351783517935180351813518235183351843518535186351873518835189351903519135192351933519435195351963519735198351993520035201352023520335204352053520635207352083520935210352113521235213352143521535216352173521835219352203522135222352233522435225352263522735228352293523035231352323523335234352353523635237352383523935240352413524235243352443524535246352473524835249352503525135252352533525435255352563525735258352593526035261352623526335264352653526635267352683526935270352713527235273352743527535276352773527835279352803528135282352833528435285352863528735288352893529035291352923529335294352953529635297352983529935300353013530235303353043530535306353073530835309353103531135312353133531435315353163531735318353193532035321353223532335324353253532635327353283532935330353313533235333353343533535336353373533835339353403534135342353433534435345353463534735348353493535035351353523535335354353553535635357353583535935360353613536235363353643536535366353673536835369353703537135372353733537435375353763537735378353793538035381353823538335384353853538635387353883538935390353913539235393353943539535396353973539835399354003540135402354033540435405354063540735408354093541035411354123541335414354153541635417354183541935420354213542235423354243542535426354273542835429354303543135432354333543435435354363543735438354393544035441354423544335444354453544635447354483544935450354513545235453354543545535456354573545835459354603546135462354633546435465354663546735468354693547035471354723547335474354753547635477354783547935480354813548235483354843548535486354873548835489354903549135492354933549435495354963549735498354993550035501355023550335504355053550635507355083550935510355113551235513355143551535516355173551835519355203552135522355233552435525355263552735528355293553035531355323553335534355353553635537355383553935540355413554235543355443554535546355473554835549355503555135552355533555435555355563555735558355593556035561355623556335564355653556635567355683556935570355713557235573355743557535576355773557835579355803558135582355833558435585355863558735588355893559035591355923559335594355953559635597355983559935600356013560235603356043560535606356073560835609356103561135612356133561435615356163561735618356193562035621356223562335624356253562635627356283562935630356313563235633356343563535636356373563835639356403564135642356433564435645356463564735648356493565035651356523565335654356553565635657356583565935660356613566235663356643566535666356673566835669356703567135672356733567435675356763567735678356793568035681356823568335684356853568635687356883568935690356913569235693356943569535696356973569835699357003570135702357033570435705357063570735708357093571035711357123571335714357153571635717357183571935720357213572235723357243572535726357273572835729357303573135732357333573435735357363573735738357393574035741357423574335744357453574635747357483574935750357513575235753357543575535756357573575835759357603576135762357633576435765357663576735768357693577035771357723577335774357753577635777357783577935780357813578235783357843578535786357873578835789357903579135792357933579435795357963579735798357993580035801358023580335804358053580635807358083580935810358113581235813358143581535816358173581835819358203582135822358233582435825358263582735828358293583035831358323583335834358353583635837358383583935840358413584235843358443584535846358473584835849358503585135852358533585435855358563585735858358593586035861358623586335864358653586635867358683586935870358713587235873358743587535876358773587835879358803588135882358833588435885358863588735888358893589035891358923589335894358953589635897358983589935900359013590235903359043590535906359073590835909359103591135912359133591435915359163591735918359193592035921359223592335924359253592635927359283592935930359313593235933359343593535936359373593835939359403594135942359433594435945359463594735948359493595035951359523595335954359553595635957359583595935960359613596235963359643596535966359673596835969359703597135972359733597435975359763597735978359793598035981359823598335984359853598635987359883598935990359913599235993359943599535996359973599835999360003600136002360033600436005360063600736008360093601036011360123601336014360153601636017360183601936020360213602236023360243602536026360273602836029360303603136032360333603436035360363603736038360393604036041360423604336044360453604636047360483604936050360513605236053360543605536056360573605836059360603606136062360633606436065360663606736068360693607036071360723607336074360753607636077360783607936080360813608236083360843608536086360873608836089360903609136092360933609436095360963609736098360993610036101361023610336104361053610636107361083610936110361113611236113361143611536116361173611836119361203612136122361233612436125361263612736128361293613036131361323613336134361353613636137361383613936140361413614236143361443614536146361473614836149361503615136152361533615436155361563615736158361593616036161361623616336164361653616636167361683616936170361713617236173361743617536176361773617836179361803618136182361833618436185361863618736188361893619036191361923619336194361953619636197361983619936200362013620236203362043620536206362073620836209362103621136212362133621436215362163621736218362193622036221362223622336224362253622636227362283622936230362313623236233362343623536236362373623836239362403624136242362433624436245362463624736248362493625036251362523625336254362553625636257362583625936260362613626236263362643626536266362673626836269362703627136272362733627436275362763627736278362793628036281362823628336284362853628636287362883628936290362913629236293362943629536296362973629836299363003630136302363033630436305363063630736308363093631036311363123631336314363153631636317363183631936320363213632236323363243632536326363273632836329363303633136332363333633436335363363633736338363393634036341363423634336344363453634636347363483634936350363513635236353363543635536356363573635836359363603636136362363633636436365363663636736368363693637036371363723637336374363753637636377363783637936380363813638236383363843638536386363873638836389363903639136392363933639436395363963639736398363993640036401364023640336404364053640636407364083640936410364113641236413364143641536416364173641836419364203642136422364233642436425364263642736428364293643036431364323643336434364353643636437364383643936440364413644236443364443644536446364473644836449364503645136452364533645436455364563645736458364593646036461364623646336464364653646636467364683646936470364713647236473364743647536476364773647836479364803648136482364833648436485364863648736488364893649036491364923649336494364953649636497364983649936500365013650236503365043650536506365073650836509365103651136512365133651436515365163651736518365193652036521365223652336524365253652636527365283652936530365313653236533365343653536536365373653836539365403654136542365433654436545365463654736548365493655036551365523655336554365553655636557365583655936560365613656236563365643656536566365673656836569365703657136572365733657436575365763657736578365793658036581365823658336584365853658636587365883658936590365913659236593365943659536596365973659836599366003660136602366033660436605366063660736608366093661036611366123661336614366153661636617366183661936620366213662236623366243662536626366273662836629366303663136632366333663436635366363663736638366393664036641366423664336644366453664636647366483664936650366513665236653366543665536656366573665836659366603666136662366633666436665366663666736668366693667036671366723667336674366753667636677366783667936680366813668236683366843668536686366873668836689366903669136692366933669436695366963669736698366993670036701367023670336704367053670636707367083670936710367113671236713367143671536716367173671836719367203672136722367233672436725367263672736728367293673036731367323673336734367353673636737367383673936740367413674236743367443674536746367473674836749367503675136752367533675436755367563675736758367593676036761367623676336764367653676636767367683676936770367713677236773367743677536776367773677836779367803678136782367833678436785367863678736788367893679036791367923679336794367953679636797367983679936800368013680236803368043680536806368073680836809368103681136812368133681436815368163681736818368193682036821368223682336824368253682636827368283682936830368313683236833368343683536836368373683836839368403684136842368433684436845368463684736848368493685036851368523685336854368553685636857368583685936860368613686236863368643686536866368673686836869368703687136872368733687436875368763687736878368793688036881368823688336884368853688636887368883688936890368913689236893368943689536896368973689836899369003690136902369033690436905369063690736908369093691036911369123691336914369153691636917369183691936920369213692236923369243692536926369273692836929369303693136932369333693436935369363693736938369393694036941369423694336944369453694636947369483694936950369513695236953369543695536956369573695836959369603696136962369633696436965369663696736968369693697036971369723697336974369753697636977369783697936980369813698236983369843698536986369873698836989369903699136992369933699436995369963699736998369993700037001370023700337004370053700637007370083700937010370113701237013370143701537016370173701837019370203702137022370233702437025370263702737028370293703037031370323703337034370353703637037370383703937040370413704237043370443704537046370473704837049370503705137052370533705437055370563705737058370593706037061370623706337064370653706637067370683706937070370713707237073370743707537076370773707837079370803708137082370833708437085370863708737088370893709037091370923709337094370953709637097370983709937100371013710237103371043710537106371073710837109371103711137112371133711437115371163711737118371193712037121371223712337124371253712637127371283712937130371313713237133371343713537136371373713837139371403714137142371433714437145371463714737148371493715037151371523715337154371553715637157371583715937160371613716237163371643716537166371673716837169371703717137172371733717437175371763717737178371793718037181371823718337184371853718637187371883718937190371913719237193371943719537196371973719837199372003720137202372033720437205372063720737208372093721037211372123721337214372153721637217372183721937220372213722237223372243722537226372273722837229372303723137232372333723437235372363723737238372393724037241372423724337244372453724637247372483724937250372513725237253372543725537256372573725837259372603726137262372633726437265372663726737268372693727037271372723727337274372753727637277372783727937280372813728237283372843728537286372873728837289372903729137292372933729437295372963729737298372993730037301373023730337304373053730637307373083730937310373113731237313373143731537316373173731837319373203732137322373233732437325373263732737328373293733037331373323733337334373353733637337373383733937340373413734237343373443734537346373473734837349373503735137352373533735437355373563735737358373593736037361373623736337364373653736637367373683736937370373713737237373373743737537376373773737837379373803738137382373833738437385373863738737388373893739037391373923739337394373953739637397373983739937400374013740237403374043740537406374073740837409374103741137412374133741437415374163741737418374193742037421374223742337424374253742637427374283742937430374313743237433374343743537436374373743837439374403744137442374433744437445374463744737448374493745037451374523745337454374553745637457374583745937460374613746237463374643746537466374673746837469374703747137472374733747437475374763747737478374793748037481374823748337484374853748637487374883748937490374913749237493374943749537496374973749837499375003750137502375033750437505375063750737508375093751037511375123751337514375153751637517375183751937520375213752237523375243752537526375273752837529375303753137532375333753437535375363753737538375393754037541375423754337544375453754637547375483754937550375513755237553375543755537556375573755837559375603756137562375633756437565375663756737568375693757037571375723757337574375753757637577375783757937580375813758237583375843758537586375873758837589375903759137592375933759437595375963759737598375993760037601376023760337604376053760637607376083760937610376113761237613376143761537616376173761837619376203762137622376233762437625376263762737628376293763037631376323763337634376353763637637376383763937640376413764237643376443764537646376473764837649376503765137652376533765437655376563765737658376593766037661376623766337664376653766637667376683766937670376713767237673376743767537676376773767837679376803768137682376833768437685376863768737688376893769037691376923769337694376953769637697376983769937700377013770237703377043770537706377073770837709377103771137712377133771437715377163771737718377193772037721377223772337724377253772637727377283772937730377313773237733377343773537736377373773837739377403774137742377433774437745377463774737748377493775037751377523775337754377553775637757377583775937760377613776237763377643776537766377673776837769377703777137772377733777437775377763777737778377793778037781377823778337784377853778637787377883778937790377913779237793377943779537796377973779837799378003780137802378033780437805378063780737808378093781037811378123781337814378153781637817378183781937820378213782237823378243782537826378273782837829378303783137832378333783437835378363783737838378393784037841378423784337844378453784637847378483784937850378513785237853378543785537856378573785837859378603786137862378633786437865378663786737868378693787037871378723787337874378753787637877378783787937880378813788237883378843788537886378873788837889378903789137892378933789437895378963789737898378993790037901379023790337904379053790637907379083790937910379113791237913379143791537916379173791837919379203792137922379233792437925379263792737928379293793037931379323793337934379353793637937379383793937940379413794237943379443794537946379473794837949379503795137952379533795437955379563795737958379593796037961379623796337964379653796637967379683796937970379713797237973379743797537976379773797837979379803798137982379833798437985379863798737988379893799037991379923799337994379953799637997379983799938000380013800238003380043800538006380073800838009380103801138012380133801438015380163801738018380193802038021380223802338024380253802638027380283802938030380313803238033380343803538036380373803838039380403804138042380433804438045380463804738048
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.63 for guile 1.8.7.
  4. #
  5. # Report bugs to <bug-guile@gnu.org>.
  6. #
  7. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  8. # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. #
  12. #
  13. #
  14. # Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  15. #
  16. # This file is part of GUILE
  17. #
  18. # GUILE is free software; you can redistribute it and/or modify it
  19. # under the terms of the GNU General Public License as published by
  20. # the Free Software Foundation; either version 2, or (at your
  21. # option) any later version.
  22. #
  23. # GUILE is distributed in the hope that it will be useful, but
  24. # WITHOUT ANY WARRANTY; without even the implied warranty of
  25. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  26. # General Public License for more details.
  27. #
  28. # You should have received a copy of the GNU General Public License
  29. # along with GUILE; see the file COPYING. If not, write to the
  30. # Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  31. # Boston, MA 02110-1301, USA.
  32. #
  33. #
  34. ## --------------------- ##
  35. ## M4sh Initialization. ##
  36. ## --------------------- ##
  37. # Be more Bourne compatible
  38. DUALCASE=1; export DUALCASE # for MKS sh
  39. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  40. emulate sh
  41. NULLCMD=:
  42. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  43. # is contrary to our usage. Disable this feature.
  44. alias -g '${1+"$@"}'='"$@"'
  45. setopt NO_GLOB_SUBST
  46. else
  47. case `(set -o) 2>/dev/null` in
  48. *posix*) set -o posix ;;
  49. esac
  50. fi
  51. # PATH needs CR
  52. # Avoid depending upon Character Ranges.
  53. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  54. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  55. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  56. as_cr_digits='0123456789'
  57. as_cr_alnum=$as_cr_Letters$as_cr_digits
  58. as_nl='
  59. '
  60. export as_nl
  61. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  62. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  63. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  64. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  65. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  66. as_echo='printf %s\n'
  67. as_echo_n='printf %s'
  68. else
  69. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  70. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  71. as_echo_n='/usr/ucb/echo -n'
  72. else
  73. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  74. as_echo_n_body='eval
  75. arg=$1;
  76. case $arg in
  77. *"$as_nl"*)
  78. expr "X$arg" : "X\\(.*\\)$as_nl";
  79. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  80. esac;
  81. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  82. '
  83. export as_echo_n_body
  84. as_echo_n='sh -c $as_echo_n_body as_echo'
  85. fi
  86. export as_echo_body
  87. as_echo='sh -c $as_echo_body as_echo'
  88. fi
  89. # The user is always right.
  90. if test "${PATH_SEPARATOR+set}" != set; then
  91. PATH_SEPARATOR=:
  92. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  93. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  94. PATH_SEPARATOR=';'
  95. }
  96. fi
  97. # Support unset when possible.
  98. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  99. as_unset=unset
  100. else
  101. as_unset=false
  102. fi
  103. # IFS
  104. # We need space, tab and new line, in precisely that order. Quoting is
  105. # there to prevent editors from complaining about space-tab.
  106. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  107. # splitting by setting IFS to empty value.)
  108. IFS=" "" $as_nl"
  109. # Find who we are. Look in the path if we contain no directory separator.
  110. case $0 in
  111. *[\\/]* ) as_myself=$0 ;;
  112. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  113. for as_dir in $PATH
  114. do
  115. IFS=$as_save_IFS
  116. test -z "$as_dir" && as_dir=.
  117. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  118. done
  119. IFS=$as_save_IFS
  120. ;;
  121. esac
  122. # We did not find ourselves, most probably we were run as `sh COMMAND'
  123. # in which case we are not to be found in the path.
  124. if test "x$as_myself" = x; then
  125. as_myself=$0
  126. fi
  127. if test ! -f "$as_myself"; then
  128. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  129. { (exit 1); exit 1; }
  130. fi
  131. # Work around bugs in pre-3.0 UWIN ksh.
  132. for as_var in ENV MAIL MAILPATH
  133. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  134. done
  135. PS1='$ '
  136. PS2='> '
  137. PS4='+ '
  138. # NLS nuisances.
  139. LC_ALL=C
  140. export LC_ALL
  141. LANGUAGE=C
  142. export LANGUAGE
  143. # Required to use basename.
  144. if expr a : '\(a\)' >/dev/null 2>&1 &&
  145. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  146. as_expr=expr
  147. else
  148. as_expr=false
  149. fi
  150. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  151. as_basename=basename
  152. else
  153. as_basename=false
  154. fi
  155. # Name of the executable.
  156. as_me=`$as_basename -- "$0" ||
  157. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  158. X"$0" : 'X\(//\)$' \| \
  159. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  160. $as_echo X/"$0" |
  161. sed '/^.*\/\([^/][^/]*\)\/*$/{
  162. s//\1/
  163. q
  164. }
  165. /^X\/\(\/\/\)$/{
  166. s//\1/
  167. q
  168. }
  169. /^X\/\(\/\).*/{
  170. s//\1/
  171. q
  172. }
  173. s/.*/./; q'`
  174. # CDPATH.
  175. $as_unset CDPATH
  176. if test "x$CONFIG_SHELL" = x; then
  177. if (eval ":") 2>/dev/null; then
  178. as_have_required=yes
  179. else
  180. as_have_required=no
  181. fi
  182. if test $as_have_required = yes && (eval ":
  183. (as_func_return () {
  184. (exit \$1)
  185. }
  186. as_func_success () {
  187. as_func_return 0
  188. }
  189. as_func_failure () {
  190. as_func_return 1
  191. }
  192. as_func_ret_success () {
  193. return 0
  194. }
  195. as_func_ret_failure () {
  196. return 1
  197. }
  198. exitcode=0
  199. if as_func_success; then
  200. :
  201. else
  202. exitcode=1
  203. echo as_func_success failed.
  204. fi
  205. if as_func_failure; then
  206. exitcode=1
  207. echo as_func_failure succeeded.
  208. fi
  209. if as_func_ret_success; then
  210. :
  211. else
  212. exitcode=1
  213. echo as_func_ret_success failed.
  214. fi
  215. if as_func_ret_failure; then
  216. exitcode=1
  217. echo as_func_ret_failure succeeded.
  218. fi
  219. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  220. :
  221. else
  222. exitcode=1
  223. echo positional parameters were not saved.
  224. fi
  225. test \$exitcode = 0) || { (exit 1); exit 1; }
  226. (
  227. as_lineno_1=\$LINENO
  228. as_lineno_2=\$LINENO
  229. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  230. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  231. ") 2> /dev/null; then
  232. :
  233. else
  234. as_candidate_shells=
  235. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  236. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  237. do
  238. IFS=$as_save_IFS
  239. test -z "$as_dir" && as_dir=.
  240. case $as_dir in
  241. /*)
  242. for as_base in sh bash ksh sh5; do
  243. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  244. done;;
  245. esac
  246. done
  247. IFS=$as_save_IFS
  248. for as_shell in $as_candidate_shells $SHELL; do
  249. # Try only shells that exist, to save several forks.
  250. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  251. { ("$as_shell") 2> /dev/null <<\_ASEOF
  252. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  253. emulate sh
  254. NULLCMD=:
  255. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  256. # is contrary to our usage. Disable this feature.
  257. alias -g '${1+"$@"}'='"$@"'
  258. setopt NO_GLOB_SUBST
  259. else
  260. case `(set -o) 2>/dev/null` in
  261. *posix*) set -o posix ;;
  262. esac
  263. fi
  264. :
  265. _ASEOF
  266. }; then
  267. CONFIG_SHELL=$as_shell
  268. as_have_required=yes
  269. if { "$as_shell" 2> /dev/null <<\_ASEOF
  270. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  271. emulate sh
  272. NULLCMD=:
  273. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  274. # is contrary to our usage. Disable this feature.
  275. alias -g '${1+"$@"}'='"$@"'
  276. setopt NO_GLOB_SUBST
  277. else
  278. case `(set -o) 2>/dev/null` in
  279. *posix*) set -o posix ;;
  280. esac
  281. fi
  282. :
  283. (as_func_return () {
  284. (exit $1)
  285. }
  286. as_func_success () {
  287. as_func_return 0
  288. }
  289. as_func_failure () {
  290. as_func_return 1
  291. }
  292. as_func_ret_success () {
  293. return 0
  294. }
  295. as_func_ret_failure () {
  296. return 1
  297. }
  298. exitcode=0
  299. if as_func_success; then
  300. :
  301. else
  302. exitcode=1
  303. echo as_func_success failed.
  304. fi
  305. if as_func_failure; then
  306. exitcode=1
  307. echo as_func_failure succeeded.
  308. fi
  309. if as_func_ret_success; then
  310. :
  311. else
  312. exitcode=1
  313. echo as_func_ret_success failed.
  314. fi
  315. if as_func_ret_failure; then
  316. exitcode=1
  317. echo as_func_ret_failure succeeded.
  318. fi
  319. if ( set x; as_func_ret_success y && test x = "$1" ); then
  320. :
  321. else
  322. exitcode=1
  323. echo positional parameters were not saved.
  324. fi
  325. test $exitcode = 0) || { (exit 1); exit 1; }
  326. (
  327. as_lineno_1=$LINENO
  328. as_lineno_2=$LINENO
  329. test "x$as_lineno_1" != "x$as_lineno_2" &&
  330. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  331. _ASEOF
  332. }; then
  333. break
  334. fi
  335. fi
  336. done
  337. if test "x$CONFIG_SHELL" != x; then
  338. for as_var in BASH_ENV ENV
  339. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  340. done
  341. export CONFIG_SHELL
  342. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  343. fi
  344. if test $as_have_required = no; then
  345. echo This script requires a shell more modern than all the
  346. echo shells that I found on your system. Please install a
  347. echo modern shell, or manually run the script under such a
  348. echo shell if you do have one.
  349. { (exit 1); exit 1; }
  350. fi
  351. fi
  352. fi
  353. (eval "as_func_return () {
  354. (exit \$1)
  355. }
  356. as_func_success () {
  357. as_func_return 0
  358. }
  359. as_func_failure () {
  360. as_func_return 1
  361. }
  362. as_func_ret_success () {
  363. return 0
  364. }
  365. as_func_ret_failure () {
  366. return 1
  367. }
  368. exitcode=0
  369. if as_func_success; then
  370. :
  371. else
  372. exitcode=1
  373. echo as_func_success failed.
  374. fi
  375. if as_func_failure; then
  376. exitcode=1
  377. echo as_func_failure succeeded.
  378. fi
  379. if as_func_ret_success; then
  380. :
  381. else
  382. exitcode=1
  383. echo as_func_ret_success failed.
  384. fi
  385. if as_func_ret_failure; then
  386. exitcode=1
  387. echo as_func_ret_failure succeeded.
  388. fi
  389. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  390. :
  391. else
  392. exitcode=1
  393. echo positional parameters were not saved.
  394. fi
  395. test \$exitcode = 0") || {
  396. echo No shell found that supports shell functions.
  397. echo Please tell bug-autoconf@gnu.org about your system,
  398. echo including any error possibly output before this message.
  399. echo This can help us improve future autoconf versions.
  400. echo Configuration will now proceed without shell functions.
  401. }
  402. as_lineno_1=$LINENO
  403. as_lineno_2=$LINENO
  404. test "x$as_lineno_1" != "x$as_lineno_2" &&
  405. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  406. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  407. # uniformly replaced by the line number. The first 'sed' inserts a
  408. # line-number line after each line using $LINENO; the second 'sed'
  409. # does the real work. The second script uses 'N' to pair each
  410. # line-number line with the line containing $LINENO, and appends
  411. # trailing '-' during substitution so that $LINENO is not a special
  412. # case at line end.
  413. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  414. # scripts with optimization help from Paolo Bonzini. Blame Lee
  415. # E. McMahon (1931-1989) for sed's syntax. :-)
  416. sed -n '
  417. p
  418. /[$]LINENO/=
  419. ' <$as_myself |
  420. sed '
  421. s/[$]LINENO.*/&-/
  422. t lineno
  423. b
  424. :lineno
  425. N
  426. :loop
  427. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  428. t loop
  429. s/-\n.*//
  430. ' >$as_me.lineno &&
  431. chmod +x "$as_me.lineno" ||
  432. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  433. { (exit 1); exit 1; }; }
  434. # Don't try to exec as it changes $[0], causing all sort of problems
  435. # (the dirname of $[0] is not the place where we might find the
  436. # original and so on. Autoconf is especially sensitive to this).
  437. . "./$as_me.lineno"
  438. # Exit status is that of the last command.
  439. exit
  440. }
  441. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  442. as_dirname=dirname
  443. else
  444. as_dirname=false
  445. fi
  446. ECHO_C= ECHO_N= ECHO_T=
  447. case `echo -n x` in
  448. -n*)
  449. case `echo 'x\c'` in
  450. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  451. *) ECHO_C='\c';;
  452. esac;;
  453. *)
  454. ECHO_N='-n';;
  455. esac
  456. if expr a : '\(a\)' >/dev/null 2>&1 &&
  457. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  458. as_expr=expr
  459. else
  460. as_expr=false
  461. fi
  462. rm -f conf$$ conf$$.exe conf$$.file
  463. if test -d conf$$.dir; then
  464. rm -f conf$$.dir/conf$$.file
  465. else
  466. rm -f conf$$.dir
  467. mkdir conf$$.dir 2>/dev/null
  468. fi
  469. if (echo >conf$$.file) 2>/dev/null; then
  470. if ln -s conf$$.file conf$$ 2>/dev/null; then
  471. as_ln_s='ln -s'
  472. # ... but there are two gotchas:
  473. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  474. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  475. # In both cases, we have to default to `cp -p'.
  476. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  477. as_ln_s='cp -p'
  478. elif ln conf$$.file conf$$ 2>/dev/null; then
  479. as_ln_s=ln
  480. else
  481. as_ln_s='cp -p'
  482. fi
  483. else
  484. as_ln_s='cp -p'
  485. fi
  486. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  487. rmdir conf$$.dir 2>/dev/null
  488. if mkdir -p . 2>/dev/null; then
  489. as_mkdir_p=:
  490. else
  491. test -d ./-p && rmdir ./-p
  492. as_mkdir_p=false
  493. fi
  494. if test -x / >/dev/null 2>&1; then
  495. as_test_x='test -x'
  496. else
  497. if ls -dL / >/dev/null 2>&1; then
  498. as_ls_L_option=L
  499. else
  500. as_ls_L_option=
  501. fi
  502. as_test_x='
  503. eval sh -c '\''
  504. if test -d "$1"; then
  505. test -d "$1/.";
  506. else
  507. case $1 in
  508. -*)set "./$1";;
  509. esac;
  510. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  511. ???[sx]*):;;*)false;;esac;fi
  512. '\'' sh
  513. '
  514. fi
  515. as_executable_p=$as_test_x
  516. # Sed expression to map a string onto a valid CPP name.
  517. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  518. # Sed expression to map a string onto a valid variable name.
  519. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  520. # Check that we are running under the correct shell.
  521. SHELL=${CONFIG_SHELL-/bin/sh}
  522. case X$lt_ECHO in
  523. X*--fallback-echo)
  524. # Remove one level of quotation (which was required for Make).
  525. ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  526. ;;
  527. esac
  528. ECHO=${lt_ECHO-echo}
  529. if test "X$1" = X--no-reexec; then
  530. # Discard the --no-reexec flag, and continue.
  531. shift
  532. elif test "X$1" = X--fallback-echo; then
  533. # Avoid inline document here, it may be left over
  534. :
  535. elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  536. # Yippee, $ECHO works!
  537. :
  538. else
  539. # Restart under the correct shell.
  540. exec $SHELL "$0" --no-reexec ${1+"$@"}
  541. fi
  542. if test "X$1" = X--fallback-echo; then
  543. # used as fallback echo
  544. shift
  545. cat <<_LT_EOF
  546. $*
  547. _LT_EOF
  548. exit 0
  549. fi
  550. # The HP-UX ksh and POSIX shell print the target directory to stdout
  551. # if CDPATH is set.
  552. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  553. if test -z "$lt_ECHO"; then
  554. if test "X${echo_test_string+set}" != Xset; then
  555. # find a string as large as possible, as long as the shell can cope with it
  556. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  557. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  558. if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  559. { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  560. then
  561. break
  562. fi
  563. done
  564. fi
  565. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  566. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  567. test "X$echo_testing_string" = "X$echo_test_string"; then
  568. :
  569. else
  570. # The Solaris, AIX, and Digital Unix default echo programs unquote
  571. # backslashes. This makes it impossible to quote backslashes using
  572. # echo "$something" | sed 's/\\/\\\\/g'
  573. #
  574. # So, first we look for a working echo in the user's PATH.
  575. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  576. for dir in $PATH /usr/ucb; do
  577. IFS="$lt_save_ifs"
  578. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  579. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  580. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  581. test "X$echo_testing_string" = "X$echo_test_string"; then
  582. ECHO="$dir/echo"
  583. break
  584. fi
  585. done
  586. IFS="$lt_save_ifs"
  587. if test "X$ECHO" = Xecho; then
  588. # We didn't find a better echo, so look for alternatives.
  589. if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  590. echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  591. test "X$echo_testing_string" = "X$echo_test_string"; then
  592. # This shell has a builtin print -r that does the trick.
  593. ECHO='print -r'
  594. elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  595. test "X$CONFIG_SHELL" != X/bin/ksh; then
  596. # If we have ksh, try running configure again with it.
  597. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  598. export ORIGINAL_CONFIG_SHELL
  599. CONFIG_SHELL=/bin/ksh
  600. export CONFIG_SHELL
  601. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  602. else
  603. # Try using printf.
  604. ECHO='printf %s\n'
  605. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  606. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  607. test "X$echo_testing_string" = "X$echo_test_string"; then
  608. # Cool, printf works
  609. :
  610. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  611. test "X$echo_testing_string" = 'X\t' &&
  612. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  613. test "X$echo_testing_string" = "X$echo_test_string"; then
  614. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  615. export CONFIG_SHELL
  616. SHELL="$CONFIG_SHELL"
  617. export SHELL
  618. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  619. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  620. test "X$echo_testing_string" = 'X\t' &&
  621. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  622. test "X$echo_testing_string" = "X$echo_test_string"; then
  623. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  624. else
  625. # maybe with a smaller string...
  626. prev=:
  627. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  628. if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  629. then
  630. break
  631. fi
  632. prev="$cmd"
  633. done
  634. if test "$prev" != 'sed 50q "$0"'; then
  635. echo_test_string=`eval $prev`
  636. export echo_test_string
  637. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  638. else
  639. # Oops. We lost completely, so just stick with echo.
  640. ECHO=echo
  641. fi
  642. fi
  643. fi
  644. fi
  645. fi
  646. fi
  647. # Copy echo and quote the copy suitably for passing to libtool from
  648. # the Makefile, instead of quoting the original, which is used later.
  649. lt_ECHO=$ECHO
  650. if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  651. lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  652. fi
  653. exec 7<&0 </dev/null 6>&1
  654. # Name of the host.
  655. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  656. # so uname gets run too.
  657. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  658. #
  659. # Initializations.
  660. #
  661. ac_default_prefix=/usr/local
  662. ac_clean_files=
  663. ac_config_libobj_dir=.
  664. LIBOBJS=
  665. cross_compiling=no
  666. subdirs=
  667. MFLAGS=
  668. MAKEFLAGS=
  669. SHELL=${CONFIG_SHELL-/bin/sh}
  670. # Identity of this package.
  671. PACKAGE_NAME='guile'
  672. PACKAGE_TARNAME='guile'
  673. PACKAGE_VERSION='1.8.7'
  674. PACKAGE_STRING='guile 1.8.7'
  675. PACKAGE_BUGREPORT='bug-guile@gnu.org'
  676. ac_unique_file="GUILE-VERSION"
  677. ac_unique_file="GUILE-VERSION"
  678. enable_option_checking=no
  679. # Factoring default headers for most tests.
  680. ac_includes_default="\
  681. #include <stdio.h>
  682. #ifdef HAVE_SYS_TYPES_H
  683. # include <sys/types.h>
  684. #endif
  685. #ifdef HAVE_SYS_STAT_H
  686. # include <sys/stat.h>
  687. #endif
  688. #ifdef STDC_HEADERS
  689. # include <stdlib.h>
  690. # include <stddef.h>
  691. #else
  692. # ifdef HAVE_STDLIB_H
  693. # include <stdlib.h>
  694. # endif
  695. #endif
  696. #ifdef HAVE_STRING_H
  697. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  698. # include <memory.h>
  699. # endif
  700. # include <string.h>
  701. #endif
  702. #ifdef HAVE_STRINGS_H
  703. # include <strings.h>
  704. #endif
  705. #ifdef HAVE_INTTYPES_H
  706. # include <inttypes.h>
  707. #endif
  708. #ifdef HAVE_STDINT_H
  709. # include <stdint.h>
  710. #endif
  711. #ifdef HAVE_UNISTD_H
  712. # include <unistd.h>
  713. #endif"
  714. gt_needs=
  715. ac_subst_vars='am__EXEEXT_FALSE
  716. am__EXEEXT_TRUE
  717. LTLIBOBJS
  718. SCM_I_GSC_C_INLINE
  719. SCM_I_GSC_STACK_GROWS_UP
  720. SCM_I_GSC_ENABLE_ELISP
  721. SCM_I_GSC_ENABLE_DEPRECATED
  722. SCM_I_GSC_ENABLE_DISCOURAGED
  723. SCM_I_GSC_GUILE_DEBUG_FREELIST
  724. SCM_I_GSC_GUILE_DEBUG
  725. sitedir
  726. top_srcdir_absolute
  727. top_builddir_absolute
  728. EXTRA_DOT_X_FILES
  729. EXTRA_DOT_DOC_FILES
  730. LIBLOBJS
  731. GUILE_CFLAGS
  732. GUILE_LIBS
  733. LIBGUILE_SRFI_SRFI_60_INTERFACE
  734. LIBGUILE_SRFI_SRFI_60_INTERFACE_AGE
  735. LIBGUILE_SRFI_SRFI_60_INTERFACE_REVISION
  736. LIBGUILE_SRFI_SRFI_60_INTERFACE_CURRENT
  737. LIBGUILE_SRFI_SRFI_60_MAJOR
  738. LIBGUILE_SRFI_SRFI_13_14_INTERFACE
  739. LIBGUILE_SRFI_SRFI_13_14_INTERFACE_AGE
  740. LIBGUILE_SRFI_SRFI_13_14_INTERFACE_REVISION
  741. LIBGUILE_SRFI_SRFI_13_14_INTERFACE_CURRENT
  742. LIBGUILE_SRFI_SRFI_13_14_MAJOR
  743. LIBGUILE_SRFI_SRFI_4_INTERFACE
  744. LIBGUILE_SRFI_SRFI_4_INTERFACE_AGE
  745. LIBGUILE_SRFI_SRFI_4_INTERFACE_REVISION
  746. LIBGUILE_SRFI_SRFI_4_INTERFACE_CURRENT
  747. LIBGUILE_SRFI_SRFI_4_MAJOR
  748. LIBGUILE_SRFI_SRFI_1_INTERFACE
  749. LIBGUILE_SRFI_SRFI_1_INTERFACE_AGE
  750. LIBGUILE_SRFI_SRFI_1_INTERFACE_REVISION
  751. LIBGUILE_SRFI_SRFI_1_INTERFACE_CURRENT
  752. LIBGUILE_SRFI_SRFI_1_MAJOR
  753. LIBGUILE_INTERFACE
  754. LIBGUILE_INTERFACE_AGE
  755. LIBGUILE_INTERFACE_REVISION
  756. LIBGUILE_INTERFACE_CURRENT
  757. GUILE_VERSION
  758. GUILE_EFFECTIVE_VERSION
  759. GUILE_MICRO_VERSION
  760. GUILE_MINOR_VERSION
  761. GUILE_MAJOR_VERSION
  762. GUILE_FOR_BUILD
  763. HOST_CC
  764. CCLD_FOR_BUILD
  765. CC_FOR_BUILD
  766. cross_compiling
  767. BUILD_PTHREAD_SUPPORT_FALSE
  768. BUILD_PTHREAD_SUPPORT_TRUE
  769. PTHREAD_CFLAGS
  770. PTHREAD_LIBS
  771. PTHREAD_CC
  772. acx_pthread_config
  773. SCM_I_GSC_NEED_BRACES_ON_PTHREAD_MUTEX_INITIALIZER
  774. SCM_I_GSC_NEED_BRACES_ON_PTHREAD_ONCE_INIT
  775. SCM_I_GSC_USE_NULL_THREADS
  776. SCM_I_GSC_USE_PTHREAD_THREADS
  777. ALLOCA
  778. POSUB
  779. LTLIBINTL
  780. LIBINTL
  781. INTLLIBS
  782. LTLIBICONV
  783. LIBICONV
  784. INTL_MACOSX_LIBS
  785. XGETTEXT_EXTRA_OPTIONS
  786. MSGMERGE
  787. XGETTEXT_015
  788. XGETTEXT
  789. GMSGFMT_015
  790. MSGFMT_015
  791. GMSGFMT
  792. MSGFMT
  793. GETTEXT_MACRO_VERSION
  794. USE_NLS
  795. EXTRA_DEFS
  796. SCM_I_GSC_HAVE_STRUCT_DIRENT64
  797. SCM_I_GSC_NEEDS_INTTYPES_H
  798. SCM_I_GSC_NEEDS_STDINT_H
  799. SCM_I_GSC_T_UINTMAX
  800. SCM_I_GSC_T_INTMAX
  801. SCM_I_GSC_T_UINT64
  802. SCM_I_GSC_T_INT64
  803. SCM_I_GSC_T_UINT32
  804. SCM_I_GSC_T_INT32
  805. SCM_I_GSC_T_UINT16
  806. SCM_I_GSC_T_INT16
  807. SCM_I_GSC_T_UINT8
  808. SCM_I_GSC_T_INT8
  809. SCM_I_GSC_T_PTRDIFF
  810. LIBOBJS
  811. lispdir
  812. EMACSLOADPATH
  813. EMACS
  814. HAVE_MAKEINFO_FALSE
  815. HAVE_MAKEINFO_TRUE
  816. have_makeinfo
  817. OTOOL64
  818. OTOOL
  819. LIPO
  820. NMEDIT
  821. DSYMUTIL
  822. lt_ECHO
  823. RANLIB
  824. AR
  825. LN_S
  826. NM
  827. ac_ct_DUMPBIN
  828. DUMPBIN
  829. LD
  830. FGREP
  831. SED
  832. LIBTOOL
  833. EGREP
  834. GREP
  835. CPP
  836. am__fastdepCC_FALSE
  837. am__fastdepCC_TRUE
  838. CCDEPMODE
  839. AMDEPBACKSLASH
  840. AMDEP_FALSE
  841. AMDEP_TRUE
  842. am__quote
  843. am__include
  844. DEPDIR
  845. OBJEXT
  846. EXEEXT
  847. ac_ct_CC
  848. CPPFLAGS
  849. LDFLAGS
  850. CFLAGS
  851. CC
  852. OBJDUMP
  853. DLLTOOL
  854. AS
  855. host_os
  856. host_vendor
  857. host_cpu
  858. host
  859. build_os
  860. build_vendor
  861. build_cpu
  862. build
  863. subdirs
  864. am__untar
  865. am__tar
  866. AMTAR
  867. am__leading_dot
  868. SET_MAKE
  869. AWK
  870. mkdir_p
  871. MKDIR_P
  872. INSTALL_STRIP_PROGRAM
  873. STRIP
  874. install_sh
  875. MAKEINFO
  876. AUTOHEADER
  877. AUTOMAKE
  878. AUTOCONF
  879. ACLOCAL
  880. VERSION
  881. PACKAGE
  882. CYGPATH_W
  883. am__isrc
  884. INSTALL_DATA
  885. INSTALL_SCRIPT
  886. INSTALL_PROGRAM
  887. target_alias
  888. host_alias
  889. build_alias
  890. LIBS
  891. ECHO_T
  892. ECHO_N
  893. ECHO_C
  894. DEFS
  895. mandir
  896. localedir
  897. libdir
  898. psdir
  899. pdfdir
  900. dvidir
  901. htmldir
  902. infodir
  903. docdir
  904. oldincludedir
  905. includedir
  906. localstatedir
  907. sharedstatedir
  908. sysconfdir
  909. datadir
  910. datarootdir
  911. libexecdir
  912. sbindir
  913. bindir
  914. program_transform_name
  915. prefix
  916. exec_prefix
  917. PACKAGE_BUGREPORT
  918. PACKAGE_STRING
  919. PACKAGE_VERSION
  920. PACKAGE_TARNAME
  921. PACKAGE_NAME
  922. PATH_SEPARATOR
  923. SHELL'
  924. ac_subst_files=''
  925. ac_user_opts='
  926. enable_option_checking
  927. enable_dependency_tracking
  928. enable_shared
  929. enable_static
  930. with_pic
  931. enable_fast_install
  932. with_gnu_ld
  933. enable_libtool_lock
  934. with_lispdir
  935. enable_error_on_warning
  936. enable_debug_freelist
  937. enable_debug_malloc
  938. enable_guile_debug
  939. enable_posix
  940. enable_networking
  941. enable_regex
  942. enable_discouraged
  943. enable_deprecated
  944. enable_elisp
  945. with_64_calls
  946. with_modules
  947. enable_nls
  948. enable_rpath
  949. with_libiconv_prefix
  950. with_libintl_prefix
  951. with_threads
  952. '
  953. ac_precious_vars='build_alias
  954. host_alias
  955. target_alias
  956. CC
  957. CFLAGS
  958. LDFLAGS
  959. LIBS
  960. CPPFLAGS
  961. CPP
  962. EMACS
  963. EMACSLOADPATH
  964. CC_FOR_BUILD
  965. GUILE_FOR_BUILD'
  966. ac_subdirs_all='guile-readline'
  967. # Initialize some variables set by options.
  968. ac_init_help=
  969. ac_init_version=false
  970. ac_unrecognized_opts=
  971. ac_unrecognized_sep=
  972. # The variables have the same names as the options, with
  973. # dashes changed to underlines.
  974. cache_file=/dev/null
  975. exec_prefix=NONE
  976. no_create=
  977. no_recursion=
  978. prefix=NONE
  979. program_prefix=NONE
  980. program_suffix=NONE
  981. program_transform_name=s,x,x,
  982. silent=
  983. site=
  984. srcdir=
  985. verbose=
  986. x_includes=NONE
  987. x_libraries=NONE
  988. # Installation directory options.
  989. # These are left unexpanded so users can "make install exec_prefix=/foo"
  990. # and all the variables that are supposed to be based on exec_prefix
  991. # by default will actually change.
  992. # Use braces instead of parens because sh, perl, etc. also accept them.
  993. # (The list follows the same order as the GNU Coding Standards.)
  994. bindir='${exec_prefix}/bin'
  995. sbindir='${exec_prefix}/sbin'
  996. libexecdir='${exec_prefix}/libexec'
  997. datarootdir='${prefix}/share'
  998. datadir='${datarootdir}'
  999. sysconfdir='${prefix}/etc'
  1000. sharedstatedir='${prefix}/com'
  1001. localstatedir='${prefix}/var'
  1002. includedir='${prefix}/include'
  1003. oldincludedir='/usr/include'
  1004. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  1005. infodir='${datarootdir}/info'
  1006. htmldir='${docdir}'
  1007. dvidir='${docdir}'
  1008. pdfdir='${docdir}'
  1009. psdir='${docdir}'
  1010. libdir='${exec_prefix}/lib'
  1011. localedir='${datarootdir}/locale'
  1012. mandir='${datarootdir}/man'
  1013. ac_prev=
  1014. ac_dashdash=
  1015. for ac_option
  1016. do
  1017. # If the previous option needs an argument, assign it.
  1018. if test -n "$ac_prev"; then
  1019. eval $ac_prev=\$ac_option
  1020. ac_prev=
  1021. continue
  1022. fi
  1023. case $ac_option in
  1024. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  1025. *) ac_optarg=yes ;;
  1026. esac
  1027. # Accept the important Cygnus configure options, so we can diagnose typos.
  1028. case $ac_dashdash$ac_option in
  1029. --)
  1030. ac_dashdash=yes ;;
  1031. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1032. ac_prev=bindir ;;
  1033. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1034. bindir=$ac_optarg ;;
  1035. -build | --build | --buil | --bui | --bu)
  1036. ac_prev=build_alias ;;
  1037. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1038. build_alias=$ac_optarg ;;
  1039. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1040. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1041. ac_prev=cache_file ;;
  1042. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1043. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1044. cache_file=$ac_optarg ;;
  1045. --config-cache | -C)
  1046. cache_file=config.cache ;;
  1047. -datadir | --datadir | --datadi | --datad)
  1048. ac_prev=datadir ;;
  1049. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1050. datadir=$ac_optarg ;;
  1051. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1052. | --dataroo | --dataro | --datar)
  1053. ac_prev=datarootdir ;;
  1054. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1055. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1056. datarootdir=$ac_optarg ;;
  1057. -disable-* | --disable-*)
  1058. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1059. # Reject names that are not valid shell variable names.
  1060. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1061. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  1062. { (exit 1); exit 1; }; }
  1063. ac_useropt_orig=$ac_useropt
  1064. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1065. case $ac_user_opts in
  1066. *"
  1067. "enable_$ac_useropt"
  1068. "*) ;;
  1069. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1070. ac_unrecognized_sep=', ';;
  1071. esac
  1072. eval enable_$ac_useropt=no ;;
  1073. -docdir | --docdir | --docdi | --doc | --do)
  1074. ac_prev=docdir ;;
  1075. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1076. docdir=$ac_optarg ;;
  1077. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1078. ac_prev=dvidir ;;
  1079. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1080. dvidir=$ac_optarg ;;
  1081. -enable-* | --enable-*)
  1082. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1083. # Reject names that are not valid shell variable names.
  1084. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1085. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  1086. { (exit 1); exit 1; }; }
  1087. ac_useropt_orig=$ac_useropt
  1088. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1089. case $ac_user_opts in
  1090. *"
  1091. "enable_$ac_useropt"
  1092. "*) ;;
  1093. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1094. ac_unrecognized_sep=', ';;
  1095. esac
  1096. eval enable_$ac_useropt=\$ac_optarg ;;
  1097. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1098. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1099. | --exec | --exe | --ex)
  1100. ac_prev=exec_prefix ;;
  1101. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1102. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1103. | --exec=* | --exe=* | --ex=*)
  1104. exec_prefix=$ac_optarg ;;
  1105. -gas | --gas | --ga | --g)
  1106. # Obsolete; use --with-gas.
  1107. with_gas=yes ;;
  1108. -help | --help | --hel | --he | -h)
  1109. ac_init_help=long ;;
  1110. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1111. ac_init_help=recursive ;;
  1112. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1113. ac_init_help=short ;;
  1114. -host | --host | --hos | --ho)
  1115. ac_prev=host_alias ;;
  1116. -host=* | --host=* | --hos=* | --ho=*)
  1117. host_alias=$ac_optarg ;;
  1118. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1119. ac_prev=htmldir ;;
  1120. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1121. | --ht=*)
  1122. htmldir=$ac_optarg ;;
  1123. -includedir | --includedir | --includedi | --included | --include \
  1124. | --includ | --inclu | --incl | --inc)
  1125. ac_prev=includedir ;;
  1126. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1127. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1128. includedir=$ac_optarg ;;
  1129. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1130. ac_prev=infodir ;;
  1131. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1132. infodir=$ac_optarg ;;
  1133. -libdir | --libdir | --libdi | --libd)
  1134. ac_prev=libdir ;;
  1135. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1136. libdir=$ac_optarg ;;
  1137. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1138. | --libexe | --libex | --libe)
  1139. ac_prev=libexecdir ;;
  1140. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1141. | --libexe=* | --libex=* | --libe=*)
  1142. libexecdir=$ac_optarg ;;
  1143. -localedir | --localedir | --localedi | --localed | --locale)
  1144. ac_prev=localedir ;;
  1145. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1146. localedir=$ac_optarg ;;
  1147. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1148. | --localstate | --localstat | --localsta | --localst | --locals)
  1149. ac_prev=localstatedir ;;
  1150. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1151. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1152. localstatedir=$ac_optarg ;;
  1153. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1154. ac_prev=mandir ;;
  1155. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1156. mandir=$ac_optarg ;;
  1157. -nfp | --nfp | --nf)
  1158. # Obsolete; use --without-fp.
  1159. with_fp=no ;;
  1160. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1161. | --no-cr | --no-c | -n)
  1162. no_create=yes ;;
  1163. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1164. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1165. no_recursion=yes ;;
  1166. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1167. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1168. | --oldin | --oldi | --old | --ol | --o)
  1169. ac_prev=oldincludedir ;;
  1170. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1171. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1172. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1173. oldincludedir=$ac_optarg ;;
  1174. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1175. ac_prev=prefix ;;
  1176. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1177. prefix=$ac_optarg ;;
  1178. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1179. | --program-pre | --program-pr | --program-p)
  1180. ac_prev=program_prefix ;;
  1181. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1182. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1183. program_prefix=$ac_optarg ;;
  1184. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1185. | --program-suf | --program-su | --program-s)
  1186. ac_prev=program_suffix ;;
  1187. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1188. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1189. program_suffix=$ac_optarg ;;
  1190. -program-transform-name | --program-transform-name \
  1191. | --program-transform-nam | --program-transform-na \
  1192. | --program-transform-n | --program-transform- \
  1193. | --program-transform | --program-transfor \
  1194. | --program-transfo | --program-transf \
  1195. | --program-trans | --program-tran \
  1196. | --progr-tra | --program-tr | --program-t)
  1197. ac_prev=program_transform_name ;;
  1198. -program-transform-name=* | --program-transform-name=* \
  1199. | --program-transform-nam=* | --program-transform-na=* \
  1200. | --program-transform-n=* | --program-transform-=* \
  1201. | --program-transform=* | --program-transfor=* \
  1202. | --program-transfo=* | --program-transf=* \
  1203. | --program-trans=* | --program-tran=* \
  1204. | --progr-tra=* | --program-tr=* | --program-t=*)
  1205. program_transform_name=$ac_optarg ;;
  1206. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1207. ac_prev=pdfdir ;;
  1208. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1209. pdfdir=$ac_optarg ;;
  1210. -psdir | --psdir | --psdi | --psd | --ps)
  1211. ac_prev=psdir ;;
  1212. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1213. psdir=$ac_optarg ;;
  1214. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1215. | -silent | --silent | --silen | --sile | --sil)
  1216. silent=yes ;;
  1217. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1218. ac_prev=sbindir ;;
  1219. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1220. | --sbi=* | --sb=*)
  1221. sbindir=$ac_optarg ;;
  1222. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1223. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1224. | --sharedst | --shareds | --shared | --share | --shar \
  1225. | --sha | --sh)
  1226. ac_prev=sharedstatedir ;;
  1227. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1228. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1229. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1230. | --sha=* | --sh=*)
  1231. sharedstatedir=$ac_optarg ;;
  1232. -site | --site | --sit)
  1233. ac_prev=site ;;
  1234. -site=* | --site=* | --sit=*)
  1235. site=$ac_optarg ;;
  1236. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1237. ac_prev=srcdir ;;
  1238. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1239. srcdir=$ac_optarg ;;
  1240. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1241. | --syscon | --sysco | --sysc | --sys | --sy)
  1242. ac_prev=sysconfdir ;;
  1243. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1244. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1245. sysconfdir=$ac_optarg ;;
  1246. -target | --target | --targe | --targ | --tar | --ta | --t)
  1247. ac_prev=target_alias ;;
  1248. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1249. target_alias=$ac_optarg ;;
  1250. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1251. verbose=yes ;;
  1252. -version | --version | --versio | --versi | --vers | -V)
  1253. ac_init_version=: ;;
  1254. -with-* | --with-*)
  1255. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1256. # Reject names that are not valid shell variable names.
  1257. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1258. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1259. { (exit 1); exit 1; }; }
  1260. ac_useropt_orig=$ac_useropt
  1261. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1262. case $ac_user_opts in
  1263. *"
  1264. "with_$ac_useropt"
  1265. "*) ;;
  1266. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1267. ac_unrecognized_sep=', ';;
  1268. esac
  1269. eval with_$ac_useropt=\$ac_optarg ;;
  1270. -without-* | --without-*)
  1271. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1272. # Reject names that are not valid shell variable names.
  1273. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1274. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1275. { (exit 1); exit 1; }; }
  1276. ac_useropt_orig=$ac_useropt
  1277. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1278. case $ac_user_opts in
  1279. *"
  1280. "with_$ac_useropt"
  1281. "*) ;;
  1282. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1283. ac_unrecognized_sep=', ';;
  1284. esac
  1285. eval with_$ac_useropt=no ;;
  1286. --x)
  1287. # Obsolete; use --with-x.
  1288. with_x=yes ;;
  1289. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1290. | --x-incl | --x-inc | --x-in | --x-i)
  1291. ac_prev=x_includes ;;
  1292. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1293. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1294. x_includes=$ac_optarg ;;
  1295. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1296. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1297. ac_prev=x_libraries ;;
  1298. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1299. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1300. x_libraries=$ac_optarg ;;
  1301. -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
  1302. Try \`$0 --help' for more information." >&2
  1303. { (exit 1); exit 1; }; }
  1304. ;;
  1305. *=*)
  1306. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1307. # Reject names that are not valid shell variable names.
  1308. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1309. { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1310. { (exit 1); exit 1; }; }
  1311. eval $ac_envvar=\$ac_optarg
  1312. export $ac_envvar ;;
  1313. *)
  1314. # FIXME: should be removed in autoconf 3.0.
  1315. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1316. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1317. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1318. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1319. ;;
  1320. esac
  1321. done
  1322. if test -n "$ac_prev"; then
  1323. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1324. { $as_echo "$as_me: error: missing argument to $ac_option" >&2
  1325. { (exit 1); exit 1; }; }
  1326. fi
  1327. if test -n "$ac_unrecognized_opts"; then
  1328. case $enable_option_checking in
  1329. no) ;;
  1330. fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
  1331. { (exit 1); exit 1; }; } ;;
  1332. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1333. esac
  1334. fi
  1335. # Check all directory arguments for consistency.
  1336. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1337. datadir sysconfdir sharedstatedir localstatedir includedir \
  1338. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1339. libdir localedir mandir
  1340. do
  1341. eval ac_val=\$$ac_var
  1342. # Remove trailing slashes.
  1343. case $ac_val in
  1344. */ )
  1345. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1346. eval $ac_var=\$ac_val;;
  1347. esac
  1348. # Be sure to have absolute directory names.
  1349. case $ac_val in
  1350. [\\/$]* | ?:[\\/]* ) continue;;
  1351. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1352. esac
  1353. { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1354. { (exit 1); exit 1; }; }
  1355. done
  1356. # There might be people who depend on the old broken behavior: `$host'
  1357. # used to hold the argument of --host etc.
  1358. # FIXME: To remove some day.
  1359. build=$build_alias
  1360. host=$host_alias
  1361. target=$target_alias
  1362. # FIXME: To remove some day.
  1363. if test "x$host_alias" != x; then
  1364. if test "x$build_alias" = x; then
  1365. cross_compiling=maybe
  1366. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1367. If a cross compiler is detected then cross compile mode will be used." >&2
  1368. elif test "x$build_alias" != "x$host_alias"; then
  1369. cross_compiling=yes
  1370. fi
  1371. fi
  1372. ac_tool_prefix=
  1373. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1374. test "$silent" = yes && exec 6>/dev/null
  1375. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1376. ac_ls_di=`ls -di .` &&
  1377. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1378. { $as_echo "$as_me: error: working directory cannot be determined" >&2
  1379. { (exit 1); exit 1; }; }
  1380. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1381. { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
  1382. { (exit 1); exit 1; }; }
  1383. # Find the source files, if location was not specified.
  1384. if test -z "$srcdir"; then
  1385. ac_srcdir_defaulted=yes
  1386. # Try the directory containing this script, then the parent directory.
  1387. ac_confdir=`$as_dirname -- "$as_myself" ||
  1388. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1389. X"$as_myself" : 'X\(//\)[^/]' \| \
  1390. X"$as_myself" : 'X\(//\)$' \| \
  1391. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1392. $as_echo X"$as_myself" |
  1393. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1394. s//\1/
  1395. q
  1396. }
  1397. /^X\(\/\/\)[^/].*/{
  1398. s//\1/
  1399. q
  1400. }
  1401. /^X\(\/\/\)$/{
  1402. s//\1/
  1403. q
  1404. }
  1405. /^X\(\/\).*/{
  1406. s//\1/
  1407. q
  1408. }
  1409. s/.*/./; q'`
  1410. srcdir=$ac_confdir
  1411. if test ! -r "$srcdir/$ac_unique_file"; then
  1412. srcdir=..
  1413. fi
  1414. else
  1415. ac_srcdir_defaulted=no
  1416. fi
  1417. if test ! -r "$srcdir/$ac_unique_file"; then
  1418. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1419. { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1420. { (exit 1); exit 1; }; }
  1421. fi
  1422. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1423. ac_abs_confdir=`(
  1424. cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
  1425. { (exit 1); exit 1; }; }
  1426. pwd)`
  1427. # When building in place, set srcdir=.
  1428. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1429. srcdir=.
  1430. fi
  1431. # Remove unnecessary trailing slashes from srcdir.
  1432. # Double slashes in file names in object file debugging info
  1433. # mess up M-x gdb in Emacs.
  1434. case $srcdir in
  1435. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1436. esac
  1437. for ac_var in $ac_precious_vars; do
  1438. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1439. eval ac_env_${ac_var}_value=\$${ac_var}
  1440. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1441. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1442. done
  1443. #
  1444. # Report the --help message.
  1445. #
  1446. if test "$ac_init_help" = "long"; then
  1447. # Omit some internal or obsolete options to make the list less imposing.
  1448. # This message is too long to be a string in the A/UX 3.1 sh.
  1449. cat <<_ACEOF
  1450. \`configure' configures guile 1.8.7 to adapt to many kinds of systems.
  1451. Usage: $0 [OPTION]... [VAR=VALUE]...
  1452. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1453. VAR=VALUE. See below for descriptions of some of the useful variables.
  1454. Defaults for the options are specified in brackets.
  1455. Configuration:
  1456. -h, --help display this help and exit
  1457. --help=short display options specific to this package
  1458. --help=recursive display the short help of all the included packages
  1459. -V, --version display version information and exit
  1460. -q, --quiet, --silent do not print \`checking...' messages
  1461. --cache-file=FILE cache test results in FILE [disabled]
  1462. -C, --config-cache alias for \`--cache-file=config.cache'
  1463. -n, --no-create do not create output files
  1464. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1465. Installation directories:
  1466. --prefix=PREFIX install architecture-independent files in PREFIX
  1467. [$ac_default_prefix]
  1468. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1469. [PREFIX]
  1470. By default, \`make install' will install all the files in
  1471. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1472. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1473. for instance \`--prefix=\$HOME'.
  1474. For better control, use the options below.
  1475. Fine tuning of the installation directories:
  1476. --bindir=DIR user executables [EPREFIX/bin]
  1477. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1478. --libexecdir=DIR program executables [EPREFIX/libexec]
  1479. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1480. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1481. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1482. --libdir=DIR object code libraries [EPREFIX/lib]
  1483. --includedir=DIR C header files [PREFIX/include]
  1484. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1485. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1486. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1487. --infodir=DIR info documentation [DATAROOTDIR/info]
  1488. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1489. --mandir=DIR man documentation [DATAROOTDIR/man]
  1490. --docdir=DIR documentation root [DATAROOTDIR/doc/guile]
  1491. --htmldir=DIR html documentation [DOCDIR]
  1492. --dvidir=DIR dvi documentation [DOCDIR]
  1493. --pdfdir=DIR pdf documentation [DOCDIR]
  1494. --psdir=DIR ps documentation [DOCDIR]
  1495. _ACEOF
  1496. cat <<\_ACEOF
  1497. Program names:
  1498. --program-prefix=PREFIX prepend PREFIX to installed program names
  1499. --program-suffix=SUFFIX append SUFFIX to installed program names
  1500. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1501. System types:
  1502. --build=BUILD configure for building on BUILD [guessed]
  1503. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1504. _ACEOF
  1505. fi
  1506. if test -n "$ac_init_help"; then
  1507. case $ac_init_help in
  1508. short | recursive ) echo "Configuration of guile 1.8.7:";;
  1509. esac
  1510. cat <<\_ACEOF
  1511. Optional Features:
  1512. --disable-option-checking ignore unrecognized --enable/--with options
  1513. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1514. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1515. --disable-dependency-tracking speeds up one-time build
  1516. --enable-dependency-tracking do not reject slow dependency extractors
  1517. --enable-shared[=PKGS] build shared libraries [default=yes]
  1518. --enable-static[=PKGS] build static libraries [default=yes]
  1519. --enable-fast-install[=PKGS]
  1520. optimize for fast installation [default=yes]
  1521. --disable-libtool-lock avoid locking (might break parallel builds)
  1522. --enable-error-on-warning treat compile warnings as errors
  1523. --enable-debug-freelist include garbage collector freelist debugging code
  1524. --enable-debug-malloc include malloc debugging code
  1525. --enable-guile-debug include internal debugging functions
  1526. --disable-posix omit posix interfaces
  1527. --disable-networking omit networking interfaces
  1528. --disable-regex omit regular expression interfaces
  1529. --disable-discouraged omit discouraged features
  1530. --disable-deprecated omit deprecated features
  1531. --disable-elisp omit Emacs Lisp support
  1532. --disable-nls do not use Native Language Support
  1533. --disable-rpath do not hardcode runtime library paths
  1534. Optional Packages:
  1535. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1536. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1537. --with-pic try to use only PIC/non-PIC objects [default=use
  1538. both]
  1539. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1540. --with-lispdir override the default lisp directory
  1541. --without-64-calls don't attempt to use system and library calls with
  1542. "64" in their names
  1543. --with-modules=FILES Add support for dynamic modules
  1544. --with-gnu-ld assume the C compiler uses GNU ld default=no
  1545. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  1546. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  1547. --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
  1548. --without-libintl-prefix don't search for libintl in includedir and libdir
  1549. --with-threads thread interface
  1550. Some influential environment variables:
  1551. CC C compiler command
  1552. CFLAGS C compiler flags
  1553. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1554. nonstandard directory <lib dir>
  1555. LIBS libraries to pass to the linker, e.g. -l<library>
  1556. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1557. you have headers in a nonstandard directory <include dir>
  1558. CPP C preprocessor
  1559. EMACS the Emacs editor command
  1560. EMACSLOADPATH
  1561. the Emacs library search path
  1562. CC_FOR_BUILD
  1563. build system C compiler
  1564. GUILE_FOR_BUILD
  1565. guile for build system
  1566. Use these variables to override the choices made by `configure' or to help
  1567. it to find libraries and programs with nonstandard names/locations.
  1568. Report bugs to <bug-guile@gnu.org>.
  1569. _ACEOF
  1570. ac_status=$?
  1571. fi
  1572. if test "$ac_init_help" = "recursive"; then
  1573. # If there are subdirs, report their specific --help.
  1574. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1575. test -d "$ac_dir" ||
  1576. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1577. continue
  1578. ac_builddir=.
  1579. case "$ac_dir" in
  1580. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1581. *)
  1582. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1583. # A ".." for each directory in $ac_dir_suffix.
  1584. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1585. case $ac_top_builddir_sub in
  1586. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1587. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1588. esac ;;
  1589. esac
  1590. ac_abs_top_builddir=$ac_pwd
  1591. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1592. # for backward compatibility:
  1593. ac_top_builddir=$ac_top_build_prefix
  1594. case $srcdir in
  1595. .) # We are building in place.
  1596. ac_srcdir=.
  1597. ac_top_srcdir=$ac_top_builddir_sub
  1598. ac_abs_top_srcdir=$ac_pwd ;;
  1599. [\\/]* | ?:[\\/]* ) # Absolute name.
  1600. ac_srcdir=$srcdir$ac_dir_suffix;
  1601. ac_top_srcdir=$srcdir
  1602. ac_abs_top_srcdir=$srcdir ;;
  1603. *) # Relative name.
  1604. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1605. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1606. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1607. esac
  1608. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1609. cd "$ac_dir" || { ac_status=$?; continue; }
  1610. # Check for guested configure.
  1611. if test -f "$ac_srcdir/configure.gnu"; then
  1612. echo &&
  1613. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1614. elif test -f "$ac_srcdir/configure"; then
  1615. echo &&
  1616. $SHELL "$ac_srcdir/configure" --help=recursive
  1617. else
  1618. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1619. fi || ac_status=$?
  1620. cd "$ac_pwd" || { ac_status=$?; break; }
  1621. done
  1622. fi
  1623. test -n "$ac_init_help" && exit $ac_status
  1624. if $ac_init_version; then
  1625. cat <<\_ACEOF
  1626. guile configure 1.8.7
  1627. generated by GNU Autoconf 2.63
  1628. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1629. 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  1630. This configure script is free software; the Free Software Foundation
  1631. gives unlimited permission to copy, distribute and modify it.
  1632. Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  1633. This file is part of GUILE
  1634. GUILE is free software; you can redistribute it and/or modify it
  1635. under the terms of the GNU General Public License as published by
  1636. the Free Software Foundation; either version 2, or (at your
  1637. option) any later version.
  1638. GUILE is distributed in the hope that it will be useful, but
  1639. WITHOUT ANY WARRANTY; without even the implied warranty of
  1640. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1641. General Public License for more details.
  1642. You should have received a copy of the GNU General Public License
  1643. along with GUILE; see the file COPYING. If not, write to the
  1644. Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  1645. Boston, MA 02110-1301, USA.
  1646. _ACEOF
  1647. exit
  1648. fi
  1649. cat >config.log <<_ACEOF
  1650. This file contains any messages produced by compilers while
  1651. running configure, to aid debugging if configure makes a mistake.
  1652. It was created by guile $as_me 1.8.7, which was
  1653. generated by GNU Autoconf 2.63. Invocation command line was
  1654. $ $0 $@
  1655. _ACEOF
  1656. exec 5>>config.log
  1657. {
  1658. cat <<_ASUNAME
  1659. ## --------- ##
  1660. ## Platform. ##
  1661. ## --------- ##
  1662. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1663. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1664. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1665. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1666. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1667. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1668. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1669. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1670. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1671. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1672. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1673. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1674. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1675. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1676. _ASUNAME
  1677. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1678. for as_dir in $PATH
  1679. do
  1680. IFS=$as_save_IFS
  1681. test -z "$as_dir" && as_dir=.
  1682. $as_echo "PATH: $as_dir"
  1683. done
  1684. IFS=$as_save_IFS
  1685. } >&5
  1686. cat >&5 <<_ACEOF
  1687. ## ----------- ##
  1688. ## Core tests. ##
  1689. ## ----------- ##
  1690. _ACEOF
  1691. # Keep a trace of the command line.
  1692. # Strip out --no-create and --no-recursion so they do not pile up.
  1693. # Strip out --silent because we don't want to record it for future runs.
  1694. # Also quote any args containing shell meta-characters.
  1695. # Make two passes to allow for proper duplicate-argument suppression.
  1696. ac_configure_args=
  1697. ac_configure_args0=
  1698. ac_configure_args1=
  1699. ac_must_keep_next=false
  1700. for ac_pass in 1 2
  1701. do
  1702. for ac_arg
  1703. do
  1704. case $ac_arg in
  1705. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1706. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1707. | -silent | --silent | --silen | --sile | --sil)
  1708. continue ;;
  1709. *\'*)
  1710. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1711. esac
  1712. case $ac_pass in
  1713. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1714. 2)
  1715. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1716. if test $ac_must_keep_next = true; then
  1717. ac_must_keep_next=false # Got value, back to normal.
  1718. else
  1719. case $ac_arg in
  1720. *=* | --config-cache | -C | -disable-* | --disable-* \
  1721. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1722. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1723. | -with-* | --with-* | -without-* | --without-* | --x)
  1724. case "$ac_configure_args0 " in
  1725. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1726. esac
  1727. ;;
  1728. -* ) ac_must_keep_next=true ;;
  1729. esac
  1730. fi
  1731. ac_configure_args="$ac_configure_args '$ac_arg'"
  1732. ;;
  1733. esac
  1734. done
  1735. done
  1736. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1737. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1738. # When interrupted or exit'd, cleanup temporary files, and complete
  1739. # config.log. We remove comments because anyway the quotes in there
  1740. # would cause problems or look ugly.
  1741. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1742. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1743. trap 'exit_status=$?
  1744. # Save into config.log some information that might help in debugging.
  1745. {
  1746. echo
  1747. cat <<\_ASBOX
  1748. ## ---------------- ##
  1749. ## Cache variables. ##
  1750. ## ---------------- ##
  1751. _ASBOX
  1752. echo
  1753. # The following way of writing the cache mishandles newlines in values,
  1754. (
  1755. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1756. eval ac_val=\$$ac_var
  1757. case $ac_val in #(
  1758. *${as_nl}*)
  1759. case $ac_var in #(
  1760. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  1761. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1762. esac
  1763. case $ac_var in #(
  1764. _ | IFS | as_nl) ;; #(
  1765. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1766. *) $as_unset $ac_var ;;
  1767. esac ;;
  1768. esac
  1769. done
  1770. (set) 2>&1 |
  1771. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1772. *${as_nl}ac_space=\ *)
  1773. sed -n \
  1774. "s/'\''/'\''\\\\'\'''\''/g;
  1775. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1776. ;; #(
  1777. *)
  1778. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1779. ;;
  1780. esac |
  1781. sort
  1782. )
  1783. echo
  1784. cat <<\_ASBOX
  1785. ## ----------------- ##
  1786. ## Output variables. ##
  1787. ## ----------------- ##
  1788. _ASBOX
  1789. echo
  1790. for ac_var in $ac_subst_vars
  1791. do
  1792. eval ac_val=\$$ac_var
  1793. case $ac_val in
  1794. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1795. esac
  1796. $as_echo "$ac_var='\''$ac_val'\''"
  1797. done | sort
  1798. echo
  1799. if test -n "$ac_subst_files"; then
  1800. cat <<\_ASBOX
  1801. ## ------------------- ##
  1802. ## File substitutions. ##
  1803. ## ------------------- ##
  1804. _ASBOX
  1805. echo
  1806. for ac_var in $ac_subst_files
  1807. do
  1808. eval ac_val=\$$ac_var
  1809. case $ac_val in
  1810. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1811. esac
  1812. $as_echo "$ac_var='\''$ac_val'\''"
  1813. done | sort
  1814. echo
  1815. fi
  1816. if test -s confdefs.h; then
  1817. cat <<\_ASBOX
  1818. ## ----------- ##
  1819. ## confdefs.h. ##
  1820. ## ----------- ##
  1821. _ASBOX
  1822. echo
  1823. cat confdefs.h
  1824. echo
  1825. fi
  1826. test "$ac_signal" != 0 &&
  1827. $as_echo "$as_me: caught signal $ac_signal"
  1828. $as_echo "$as_me: exit $exit_status"
  1829. } >&5
  1830. rm -f core *.core core.conftest.* &&
  1831. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1832. exit $exit_status
  1833. ' 0
  1834. for ac_signal in 1 2 13 15; do
  1835. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1836. done
  1837. ac_signal=0
  1838. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1839. rm -f -r conftest* confdefs.h
  1840. # Predefined preprocessor variables.
  1841. cat >>confdefs.h <<_ACEOF
  1842. #define PACKAGE_NAME "$PACKAGE_NAME"
  1843. _ACEOF
  1844. cat >>confdefs.h <<_ACEOF
  1845. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1846. _ACEOF
  1847. cat >>confdefs.h <<_ACEOF
  1848. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1849. _ACEOF
  1850. cat >>confdefs.h <<_ACEOF
  1851. #define PACKAGE_STRING "$PACKAGE_STRING"
  1852. _ACEOF
  1853. cat >>confdefs.h <<_ACEOF
  1854. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1855. _ACEOF
  1856. # Let the site file select an alternate cache file if it wants to.
  1857. # Prefer an explicitly selected file to automatically selected ones.
  1858. ac_site_file1=NONE
  1859. ac_site_file2=NONE
  1860. if test -n "$CONFIG_SITE"; then
  1861. ac_site_file1=$CONFIG_SITE
  1862. elif test "x$prefix" != xNONE; then
  1863. ac_site_file1=$prefix/share/config.site
  1864. ac_site_file2=$prefix/etc/config.site
  1865. else
  1866. ac_site_file1=$ac_default_prefix/share/config.site
  1867. ac_site_file2=$ac_default_prefix/etc/config.site
  1868. fi
  1869. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1870. do
  1871. test "x$ac_site_file" = xNONE && continue
  1872. if test -r "$ac_site_file"; then
  1873. { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1874. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1875. sed 's/^/| /' "$ac_site_file" >&5
  1876. . "$ac_site_file"
  1877. fi
  1878. done
  1879. if test -r "$cache_file"; then
  1880. # Some versions of bash will fail to source /dev/null (special
  1881. # files actually), so we avoid doing that.
  1882. if test -f "$cache_file"; then
  1883. { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1884. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1885. case $cache_file in
  1886. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1887. *) . "./$cache_file";;
  1888. esac
  1889. fi
  1890. else
  1891. { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1892. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1893. >$cache_file
  1894. fi
  1895. gt_needs="$gt_needs need-ngettext"
  1896. # Check that the precious variables saved in the cache have kept the same
  1897. # value.
  1898. ac_cache_corrupted=false
  1899. for ac_var in $ac_precious_vars; do
  1900. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1901. eval ac_new_set=\$ac_env_${ac_var}_set
  1902. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1903. eval ac_new_val=\$ac_env_${ac_var}_value
  1904. case $ac_old_set,$ac_new_set in
  1905. set,)
  1906. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1907. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1908. ac_cache_corrupted=: ;;
  1909. ,set)
  1910. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1911. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1912. ac_cache_corrupted=: ;;
  1913. ,);;
  1914. *)
  1915. if test "x$ac_old_val" != "x$ac_new_val"; then
  1916. # differences in whitespace do not lead to failure.
  1917. ac_old_val_w=`echo x $ac_old_val`
  1918. ac_new_val_w=`echo x $ac_new_val`
  1919. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1920. { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1921. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1922. ac_cache_corrupted=:
  1923. else
  1924. { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1925. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1926. eval $ac_var=\$ac_old_val
  1927. fi
  1928. { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
  1929. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1930. { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
  1931. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1932. fi;;
  1933. esac
  1934. # Pass precious variables to config.status.
  1935. if test "$ac_new_set" = set; then
  1936. case $ac_new_val in
  1937. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1938. *) ac_arg=$ac_var=$ac_new_val ;;
  1939. esac
  1940. case " $ac_configure_args " in
  1941. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1942. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1943. esac
  1944. fi
  1945. done
  1946. if $ac_cache_corrupted; then
  1947. { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  1948. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1949. { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1950. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1951. { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1952. $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1953. { (exit 1); exit 1; }; }
  1954. fi
  1955. ac_ext=c
  1956. ac_cpp='$CPP $CPPFLAGS'
  1957. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1958. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1959. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1960. ac_aux_dir=
  1961. for ac_dir in build-aux "$srcdir"/build-aux; do
  1962. if test -f "$ac_dir/install-sh"; then
  1963. ac_aux_dir=$ac_dir
  1964. ac_install_sh="$ac_aux_dir/install-sh -c"
  1965. break
  1966. elif test -f "$ac_dir/install.sh"; then
  1967. ac_aux_dir=$ac_dir
  1968. ac_install_sh="$ac_aux_dir/install.sh -c"
  1969. break
  1970. elif test -f "$ac_dir/shtool"; then
  1971. ac_aux_dir=$ac_dir
  1972. ac_install_sh="$ac_aux_dir/shtool install -c"
  1973. break
  1974. fi
  1975. done
  1976. if test -z "$ac_aux_dir"; then
  1977. { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&5
  1978. $as_echo "$as_me: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&2;}
  1979. { (exit 1); exit 1; }; }
  1980. fi
  1981. # These three variables are undocumented and unsupported,
  1982. # and are intended to be withdrawn in a future Autoconf release.
  1983. # They can cause serious problems if a builder's source tree is in a directory
  1984. # whose full name contains unusual characters.
  1985. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1986. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1987. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1988. am__api_version='1.11'
  1989. # Find a good install program. We prefer a C program (faster),
  1990. # so one script is as good as another. But avoid the broken or
  1991. # incompatible versions:
  1992. # SysV /etc/install, /usr/sbin/install
  1993. # SunOS /usr/etc/install
  1994. # IRIX /sbin/install
  1995. # AIX /bin/install
  1996. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1997. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1998. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1999. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2000. # OS/2's system install, which has a completely different semantic
  2001. # ./install, which can be erroneously created by make from ./install.sh.
  2002. # Reject install programs that cannot install multiple files.
  2003. { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  2004. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2005. if test -z "$INSTALL"; then
  2006. if test "${ac_cv_path_install+set}" = set; then
  2007. $as_echo_n "(cached) " >&6
  2008. else
  2009. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2010. for as_dir in $PATH
  2011. do
  2012. IFS=$as_save_IFS
  2013. test -z "$as_dir" && as_dir=.
  2014. # Account for people who put trailing slashes in PATH elements.
  2015. case $as_dir/ in
  2016. ./ | .// | /cC/* | \
  2017. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2018. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  2019. /usr/ucb/* ) ;;
  2020. *)
  2021. # OSF1 and SCO ODT 3.0 have their own names for install.
  2022. # Don't use installbsd from OSF since it installs stuff as root
  2023. # by default.
  2024. for ac_prog in ginstall scoinst install; do
  2025. for ac_exec_ext in '' $ac_executable_extensions; do
  2026. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2027. if test $ac_prog = install &&
  2028. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2029. # AIX install. It has an incompatible calling convention.
  2030. :
  2031. elif test $ac_prog = install &&
  2032. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2033. # program-specific install script used by HP pwplus--don't use.
  2034. :
  2035. else
  2036. rm -rf conftest.one conftest.two conftest.dir
  2037. echo one > conftest.one
  2038. echo two > conftest.two
  2039. mkdir conftest.dir
  2040. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2041. test -s conftest.one && test -s conftest.two &&
  2042. test -s conftest.dir/conftest.one &&
  2043. test -s conftest.dir/conftest.two
  2044. then
  2045. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2046. break 3
  2047. fi
  2048. fi
  2049. fi
  2050. done
  2051. done
  2052. ;;
  2053. esac
  2054. done
  2055. IFS=$as_save_IFS
  2056. rm -rf conftest.one conftest.two conftest.dir
  2057. fi
  2058. if test "${ac_cv_path_install+set}" = set; then
  2059. INSTALL=$ac_cv_path_install
  2060. else
  2061. # As a last resort, use the slow shell script. Don't cache a
  2062. # value for INSTALL within a source directory, because that will
  2063. # break other packages using the cache if that directory is
  2064. # removed, or if the value is a relative name.
  2065. INSTALL=$ac_install_sh
  2066. fi
  2067. fi
  2068. { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
  2069. $as_echo "$INSTALL" >&6; }
  2070. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2071. # It thinks the first close brace ends the variable substitution.
  2072. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2073. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2074. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2075. { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  2076. $as_echo_n "checking whether build environment is sane... " >&6; }
  2077. # Just in case
  2078. sleep 1
  2079. echo timestamp > conftest.file
  2080. # Reject unsafe characters in $srcdir or the absolute working directory
  2081. # name. Accept space and tab only in the latter.
  2082. am_lf='
  2083. '
  2084. case `pwd` in
  2085. *[\\\"\#\$\&\'\`$am_lf]*)
  2086. { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
  2087. $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
  2088. { (exit 1); exit 1; }; };;
  2089. esac
  2090. case $srcdir in
  2091. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2092. { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
  2093. $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
  2094. { (exit 1); exit 1; }; };;
  2095. esac
  2096. # Do `set' in a subshell so we don't clobber the current shell's
  2097. # arguments. Must try -L first in case configure is actually a
  2098. # symlink; some systems play weird games with the mod time of symlinks
  2099. # (eg FreeBSD returns the mod time of the symlink's containing
  2100. # directory).
  2101. if (
  2102. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2103. if test "$*" = "X"; then
  2104. # -L didn't work.
  2105. set X `ls -t "$srcdir/configure" conftest.file`
  2106. fi
  2107. rm -f conftest.file
  2108. if test "$*" != "X $srcdir/configure conftest.file" \
  2109. && test "$*" != "X conftest.file $srcdir/configure"; then
  2110. # If neither matched, then we have a broken ls. This can happen
  2111. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2112. # broken ls alias from the environment. This has actually
  2113. # happened. Such a system could not be considered "sane".
  2114. { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  2115. alias in your environment" >&5
  2116. $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  2117. alias in your environment" >&2;}
  2118. { (exit 1); exit 1; }; }
  2119. fi
  2120. test "$2" = conftest.file
  2121. )
  2122. then
  2123. # Ok.
  2124. :
  2125. else
  2126. { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  2127. Check your system clock" >&5
  2128. $as_echo "$as_me: error: newly created file is older than distributed files!
  2129. Check your system clock" >&2;}
  2130. { (exit 1); exit 1; }; }
  2131. fi
  2132. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2133. $as_echo "yes" >&6; }
  2134. test "$program_prefix" != NONE &&
  2135. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2136. # Use a double $ so make ignores it.
  2137. test "$program_suffix" != NONE &&
  2138. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2139. # Double any \ or $.
  2140. # By default was `s,x,x', remove it if useless.
  2141. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2142. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2143. # expand $ac_aux_dir to an absolute path
  2144. am_aux_dir=`cd $ac_aux_dir && pwd`
  2145. if test x"${MISSING+set}" != xset; then
  2146. case $am_aux_dir in
  2147. *\ * | *\ *)
  2148. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2149. *)
  2150. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2151. esac
  2152. fi
  2153. # Use eval to expand $SHELL
  2154. if eval "$MISSING --run true"; then
  2155. am_missing_run="$MISSING --run "
  2156. else
  2157. am_missing_run=
  2158. { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  2159. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2160. fi
  2161. if test x"${install_sh}" != xset; then
  2162. case $am_aux_dir in
  2163. *\ * | *\ *)
  2164. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2165. *)
  2166. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2167. esac
  2168. fi
  2169. # Installed binaries are usually stripped using `strip' when the user
  2170. # run `make install-strip'. However `strip' might not be the right
  2171. # tool to use in cross-compilation environments, therefore Automake
  2172. # will honor the `STRIP' environment variable to overrule this program.
  2173. if test "$cross_compiling" != no; then
  2174. if test -n "$ac_tool_prefix"; then
  2175. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2176. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2177. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2178. $as_echo_n "checking for $ac_word... " >&6; }
  2179. if test "${ac_cv_prog_STRIP+set}" = set; then
  2180. $as_echo_n "(cached) " >&6
  2181. else
  2182. if test -n "$STRIP"; then
  2183. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2184. else
  2185. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2186. for as_dir in $PATH
  2187. do
  2188. IFS=$as_save_IFS
  2189. test -z "$as_dir" && as_dir=.
  2190. for ac_exec_ext in '' $ac_executable_extensions; do
  2191. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2192. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2193. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2194. break 2
  2195. fi
  2196. done
  2197. done
  2198. IFS=$as_save_IFS
  2199. fi
  2200. fi
  2201. STRIP=$ac_cv_prog_STRIP
  2202. if test -n "$STRIP"; then
  2203. { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  2204. $as_echo "$STRIP" >&6; }
  2205. else
  2206. { $as_echo "$as_me:$LINENO: result: no" >&5
  2207. $as_echo "no" >&6; }
  2208. fi
  2209. fi
  2210. if test -z "$ac_cv_prog_STRIP"; then
  2211. ac_ct_STRIP=$STRIP
  2212. # Extract the first word of "strip", so it can be a program name with args.
  2213. set dummy strip; ac_word=$2
  2214. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2215. $as_echo_n "checking for $ac_word... " >&6; }
  2216. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2217. $as_echo_n "(cached) " >&6
  2218. else
  2219. if test -n "$ac_ct_STRIP"; then
  2220. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2221. else
  2222. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2223. for as_dir in $PATH
  2224. do
  2225. IFS=$as_save_IFS
  2226. test -z "$as_dir" && as_dir=.
  2227. for ac_exec_ext in '' $ac_executable_extensions; do
  2228. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2229. ac_cv_prog_ac_ct_STRIP="strip"
  2230. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2231. break 2
  2232. fi
  2233. done
  2234. done
  2235. IFS=$as_save_IFS
  2236. fi
  2237. fi
  2238. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2239. if test -n "$ac_ct_STRIP"; then
  2240. { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2241. $as_echo "$ac_ct_STRIP" >&6; }
  2242. else
  2243. { $as_echo "$as_me:$LINENO: result: no" >&5
  2244. $as_echo "no" >&6; }
  2245. fi
  2246. if test "x$ac_ct_STRIP" = x; then
  2247. STRIP=":"
  2248. else
  2249. case $cross_compiling:$ac_tool_warned in
  2250. yes:)
  2251. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2252. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2253. ac_tool_warned=yes ;;
  2254. esac
  2255. STRIP=$ac_ct_STRIP
  2256. fi
  2257. else
  2258. STRIP="$ac_cv_prog_STRIP"
  2259. fi
  2260. fi
  2261. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2262. { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  2263. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2264. if test -z "$MKDIR_P"; then
  2265. if test "${ac_cv_path_mkdir+set}" = set; then
  2266. $as_echo_n "(cached) " >&6
  2267. else
  2268. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2269. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2270. do
  2271. IFS=$as_save_IFS
  2272. test -z "$as_dir" && as_dir=.
  2273. for ac_prog in mkdir gmkdir; do
  2274. for ac_exec_ext in '' $ac_executable_extensions; do
  2275. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2276. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2277. 'mkdir (GNU coreutils) '* | \
  2278. 'mkdir (coreutils) '* | \
  2279. 'mkdir (fileutils) '4.1*)
  2280. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2281. break 3;;
  2282. esac
  2283. done
  2284. done
  2285. done
  2286. IFS=$as_save_IFS
  2287. fi
  2288. if test "${ac_cv_path_mkdir+set}" = set; then
  2289. MKDIR_P="$ac_cv_path_mkdir -p"
  2290. else
  2291. # As a last resort, use the slow shell script. Don't cache a
  2292. # value for MKDIR_P within a source directory, because that will
  2293. # break other packages using the cache if that directory is
  2294. # removed, or if the value is a relative name.
  2295. test -d ./--version && rmdir ./--version
  2296. MKDIR_P="$ac_install_sh -d"
  2297. fi
  2298. fi
  2299. { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  2300. $as_echo "$MKDIR_P" >&6; }
  2301. mkdir_p="$MKDIR_P"
  2302. case $mkdir_p in
  2303. [\\/$]* | ?:[\\/]*) ;;
  2304. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2305. esac
  2306. for ac_prog in gawk mawk nawk awk
  2307. do
  2308. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2309. set dummy $ac_prog; ac_word=$2
  2310. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2311. $as_echo_n "checking for $ac_word... " >&6; }
  2312. if test "${ac_cv_prog_AWK+set}" = set; then
  2313. $as_echo_n "(cached) " >&6
  2314. else
  2315. if test -n "$AWK"; then
  2316. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2317. else
  2318. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2319. for as_dir in $PATH
  2320. do
  2321. IFS=$as_save_IFS
  2322. test -z "$as_dir" && as_dir=.
  2323. for ac_exec_ext in '' $ac_executable_extensions; do
  2324. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2325. ac_cv_prog_AWK="$ac_prog"
  2326. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2327. break 2
  2328. fi
  2329. done
  2330. done
  2331. IFS=$as_save_IFS
  2332. fi
  2333. fi
  2334. AWK=$ac_cv_prog_AWK
  2335. if test -n "$AWK"; then
  2336. { $as_echo "$as_me:$LINENO: result: $AWK" >&5
  2337. $as_echo "$AWK" >&6; }
  2338. else
  2339. { $as_echo "$as_me:$LINENO: result: no" >&5
  2340. $as_echo "no" >&6; }
  2341. fi
  2342. test -n "$AWK" && break
  2343. done
  2344. { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2345. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2346. set x ${MAKE-make}
  2347. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2348. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2349. $as_echo_n "(cached) " >&6
  2350. else
  2351. cat >conftest.make <<\_ACEOF
  2352. SHELL = /bin/sh
  2353. all:
  2354. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2355. _ACEOF
  2356. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2357. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2358. *@@@%%%=?*=@@@%%%*)
  2359. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2360. *)
  2361. eval ac_cv_prog_make_${ac_make}_set=no;;
  2362. esac
  2363. rm -f conftest.make
  2364. fi
  2365. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2366. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2367. $as_echo "yes" >&6; }
  2368. SET_MAKE=
  2369. else
  2370. { $as_echo "$as_me:$LINENO: result: no" >&5
  2371. $as_echo "no" >&6; }
  2372. SET_MAKE="MAKE=${MAKE-make}"
  2373. fi
  2374. rm -rf .tst 2>/dev/null
  2375. mkdir .tst 2>/dev/null
  2376. if test -d .tst; then
  2377. am__leading_dot=.
  2378. else
  2379. am__leading_dot=_
  2380. fi
  2381. rmdir .tst 2>/dev/null
  2382. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2383. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2384. # is not polluted with repeated "-I."
  2385. am__isrc=' -I$(srcdir)'
  2386. # test to see if srcdir already configured
  2387. if test -f $srcdir/config.status; then
  2388. { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2389. $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2390. { (exit 1); exit 1; }; }
  2391. fi
  2392. fi
  2393. # test whether we have cygpath
  2394. if test -z "$CYGPATH_W"; then
  2395. if (cygpath --version) >/dev/null 2>/dev/null; then
  2396. CYGPATH_W='cygpath -w'
  2397. else
  2398. CYGPATH_W=echo
  2399. fi
  2400. fi
  2401. # Define the identity of the package.
  2402. PACKAGE='guile'
  2403. VERSION='1.8.7'
  2404. # Some tools Automake needs.
  2405. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2406. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2407. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2408. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2409. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2410. # We need awk for the "check" target. The system "awk" is bad on
  2411. # some platforms.
  2412. # Always define AMTAR for backward compatibility.
  2413. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2414. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2415. . $srcdir/GUILE-VERSION
  2416. ac_config_headers="$ac_config_headers config.h"
  2417. #--------------------------------------------------------------------
  2418. #
  2419. # Independent Subdirectories
  2420. #
  2421. #--------------------------------------------------------------------
  2422. subdirs="$subdirs guile-readline"
  2423. #--------------------------------------------------------------------
  2424. ac_ext=c
  2425. ac_cpp='$CPP $CPPFLAGS'
  2426. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2427. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2428. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2429. # Make sure we can run config.sub.
  2430. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2431. { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  2432. $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  2433. { (exit 1); exit 1; }; }
  2434. { $as_echo "$as_me:$LINENO: checking build system type" >&5
  2435. $as_echo_n "checking build system type... " >&6; }
  2436. if test "${ac_cv_build+set}" = set; then
  2437. $as_echo_n "(cached) " >&6
  2438. else
  2439. ac_build_alias=$build_alias
  2440. test "x$ac_build_alias" = x &&
  2441. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2442. test "x$ac_build_alias" = x &&
  2443. { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  2444. $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  2445. { (exit 1); exit 1; }; }
  2446. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2447. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  2448. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  2449. { (exit 1); exit 1; }; }
  2450. fi
  2451. { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  2452. $as_echo "$ac_cv_build" >&6; }
  2453. case $ac_cv_build in
  2454. *-*-*) ;;
  2455. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  2456. $as_echo "$as_me: error: invalid value of canonical build" >&2;}
  2457. { (exit 1); exit 1; }; };;
  2458. esac
  2459. build=$ac_cv_build
  2460. ac_save_IFS=$IFS; IFS='-'
  2461. set x $ac_cv_build
  2462. shift
  2463. build_cpu=$1
  2464. build_vendor=$2
  2465. shift; shift
  2466. # Remember, the first character of IFS is used to create $*,
  2467. # except with old shells:
  2468. build_os=$*
  2469. IFS=$ac_save_IFS
  2470. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2471. { $as_echo "$as_me:$LINENO: checking host system type" >&5
  2472. $as_echo_n "checking host system type... " >&6; }
  2473. if test "${ac_cv_host+set}" = set; then
  2474. $as_echo_n "(cached) " >&6
  2475. else
  2476. if test "x$host_alias" = x; then
  2477. ac_cv_host=$ac_cv_build
  2478. else
  2479. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2480. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  2481. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  2482. { (exit 1); exit 1; }; }
  2483. fi
  2484. fi
  2485. { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  2486. $as_echo "$ac_cv_host" >&6; }
  2487. case $ac_cv_host in
  2488. *-*-*) ;;
  2489. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  2490. $as_echo "$as_me: error: invalid value of canonical host" >&2;}
  2491. { (exit 1); exit 1; }; };;
  2492. esac
  2493. host=$ac_cv_host
  2494. ac_save_IFS=$IFS; IFS='-'
  2495. set x $ac_cv_host
  2496. shift
  2497. host_cpu=$1
  2498. host_vendor=$2
  2499. shift; shift
  2500. # Remember, the first character of IFS is used to create $*,
  2501. # except with old shells:
  2502. host_os=$*
  2503. IFS=$ac_save_IFS
  2504. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2505. if test -z "$AB_PACKAGE"; then
  2506. AB_PACKAGE=${PACKAGE_NAME:-$PACKAGE}
  2507. fi
  2508. { $as_echo "$as_me:$LINENO: autobuild project... $AB_PACKAGE" >&5
  2509. $as_echo "$as_me: autobuild project... $AB_PACKAGE" >&6;}
  2510. if test -z "$AB_VERSION"; then
  2511. AB_VERSION=${PACKAGE_VERSION:-$VERSION}
  2512. fi
  2513. { $as_echo "$as_me:$LINENO: autobuild revision... $AB_VERSION" >&5
  2514. $as_echo "$as_me: autobuild revision... $AB_VERSION" >&6;}
  2515. hostname=`hostname`
  2516. if test "$hostname"; then
  2517. { $as_echo "$as_me:$LINENO: autobuild hostname... $hostname" >&5
  2518. $as_echo "$as_me: autobuild hostname... $hostname" >&6;}
  2519. fi
  2520. date=`TZ=UTC0 date +%Y%m%dT%H%M%SZ`
  2521. if test "$?" != 0; then
  2522. date=`date`
  2523. fi
  2524. if test "$date"; then
  2525. { $as_echo "$as_me:$LINENO: autobuild timestamp... $date" >&5
  2526. $as_echo "$as_me: autobuild timestamp... $date" >&6;}
  2527. fi
  2528. enable_win32_dll=yes
  2529. case $host in
  2530. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
  2531. if test -n "$ac_tool_prefix"; then
  2532. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  2533. set dummy ${ac_tool_prefix}as; ac_word=$2
  2534. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2535. $as_echo_n "checking for $ac_word... " >&6; }
  2536. if test "${ac_cv_prog_AS+set}" = set; then
  2537. $as_echo_n "(cached) " >&6
  2538. else
  2539. if test -n "$AS"; then
  2540. ac_cv_prog_AS="$AS" # Let the user override the test.
  2541. else
  2542. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2543. for as_dir in $PATH
  2544. do
  2545. IFS=$as_save_IFS
  2546. test -z "$as_dir" && as_dir=.
  2547. for ac_exec_ext in '' $ac_executable_extensions; do
  2548. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2549. ac_cv_prog_AS="${ac_tool_prefix}as"
  2550. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2551. break 2
  2552. fi
  2553. done
  2554. done
  2555. IFS=$as_save_IFS
  2556. fi
  2557. fi
  2558. AS=$ac_cv_prog_AS
  2559. if test -n "$AS"; then
  2560. { $as_echo "$as_me:$LINENO: result: $AS" >&5
  2561. $as_echo "$AS" >&6; }
  2562. else
  2563. { $as_echo "$as_me:$LINENO: result: no" >&5
  2564. $as_echo "no" >&6; }
  2565. fi
  2566. fi
  2567. if test -z "$ac_cv_prog_AS"; then
  2568. ac_ct_AS=$AS
  2569. # Extract the first word of "as", so it can be a program name with args.
  2570. set dummy as; ac_word=$2
  2571. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2572. $as_echo_n "checking for $ac_word... " >&6; }
  2573. if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
  2574. $as_echo_n "(cached) " >&6
  2575. else
  2576. if test -n "$ac_ct_AS"; then
  2577. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  2578. else
  2579. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2580. for as_dir in $PATH
  2581. do
  2582. IFS=$as_save_IFS
  2583. test -z "$as_dir" && as_dir=.
  2584. for ac_exec_ext in '' $ac_executable_extensions; do
  2585. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2586. ac_cv_prog_ac_ct_AS="as"
  2587. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2588. break 2
  2589. fi
  2590. done
  2591. done
  2592. IFS=$as_save_IFS
  2593. fi
  2594. fi
  2595. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  2596. if test -n "$ac_ct_AS"; then
  2597. { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
  2598. $as_echo "$ac_ct_AS" >&6; }
  2599. else
  2600. { $as_echo "$as_me:$LINENO: result: no" >&5
  2601. $as_echo "no" >&6; }
  2602. fi
  2603. if test "x$ac_ct_AS" = x; then
  2604. AS="false"
  2605. else
  2606. case $cross_compiling:$ac_tool_warned in
  2607. yes:)
  2608. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2609. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2610. ac_tool_warned=yes ;;
  2611. esac
  2612. AS=$ac_ct_AS
  2613. fi
  2614. else
  2615. AS="$ac_cv_prog_AS"
  2616. fi
  2617. if test -n "$ac_tool_prefix"; then
  2618. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  2619. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  2620. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2621. $as_echo_n "checking for $ac_word... " >&6; }
  2622. if test "${ac_cv_prog_DLLTOOL+set}" = set; then
  2623. $as_echo_n "(cached) " >&6
  2624. else
  2625. if test -n "$DLLTOOL"; then
  2626. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  2627. else
  2628. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2629. for as_dir in $PATH
  2630. do
  2631. IFS=$as_save_IFS
  2632. test -z "$as_dir" && as_dir=.
  2633. for ac_exec_ext in '' $ac_executable_extensions; do
  2634. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2635. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  2636. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2637. break 2
  2638. fi
  2639. done
  2640. done
  2641. IFS=$as_save_IFS
  2642. fi
  2643. fi
  2644. DLLTOOL=$ac_cv_prog_DLLTOOL
  2645. if test -n "$DLLTOOL"; then
  2646. { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
  2647. $as_echo "$DLLTOOL" >&6; }
  2648. else
  2649. { $as_echo "$as_me:$LINENO: result: no" >&5
  2650. $as_echo "no" >&6; }
  2651. fi
  2652. fi
  2653. if test -z "$ac_cv_prog_DLLTOOL"; then
  2654. ac_ct_DLLTOOL=$DLLTOOL
  2655. # Extract the first word of "dlltool", so it can be a program name with args.
  2656. set dummy dlltool; ac_word=$2
  2657. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2658. $as_echo_n "checking for $ac_word... " >&6; }
  2659. if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
  2660. $as_echo_n "(cached) " >&6
  2661. else
  2662. if test -n "$ac_ct_DLLTOOL"; then
  2663. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  2664. else
  2665. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2666. for as_dir in $PATH
  2667. do
  2668. IFS=$as_save_IFS
  2669. test -z "$as_dir" && as_dir=.
  2670. for ac_exec_ext in '' $ac_executable_extensions; do
  2671. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2672. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  2673. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2674. break 2
  2675. fi
  2676. done
  2677. done
  2678. IFS=$as_save_IFS
  2679. fi
  2680. fi
  2681. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  2682. if test -n "$ac_ct_DLLTOOL"; then
  2683. { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
  2684. $as_echo "$ac_ct_DLLTOOL" >&6; }
  2685. else
  2686. { $as_echo "$as_me:$LINENO: result: no" >&5
  2687. $as_echo "no" >&6; }
  2688. fi
  2689. if test "x$ac_ct_DLLTOOL" = x; then
  2690. DLLTOOL="false"
  2691. else
  2692. case $cross_compiling:$ac_tool_warned in
  2693. yes:)
  2694. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2695. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2696. ac_tool_warned=yes ;;
  2697. esac
  2698. DLLTOOL=$ac_ct_DLLTOOL
  2699. fi
  2700. else
  2701. DLLTOOL="$ac_cv_prog_DLLTOOL"
  2702. fi
  2703. if test -n "$ac_tool_prefix"; then
  2704. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  2705. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  2706. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2707. $as_echo_n "checking for $ac_word... " >&6; }
  2708. if test "${ac_cv_prog_OBJDUMP+set}" = set; then
  2709. $as_echo_n "(cached) " >&6
  2710. else
  2711. if test -n "$OBJDUMP"; then
  2712. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  2713. else
  2714. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2715. for as_dir in $PATH
  2716. do
  2717. IFS=$as_save_IFS
  2718. test -z "$as_dir" && as_dir=.
  2719. for ac_exec_ext in '' $ac_executable_extensions; do
  2720. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2721. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  2722. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2723. break 2
  2724. fi
  2725. done
  2726. done
  2727. IFS=$as_save_IFS
  2728. fi
  2729. fi
  2730. OBJDUMP=$ac_cv_prog_OBJDUMP
  2731. if test -n "$OBJDUMP"; then
  2732. { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
  2733. $as_echo "$OBJDUMP" >&6; }
  2734. else
  2735. { $as_echo "$as_me:$LINENO: result: no" >&5
  2736. $as_echo "no" >&6; }
  2737. fi
  2738. fi
  2739. if test -z "$ac_cv_prog_OBJDUMP"; then
  2740. ac_ct_OBJDUMP=$OBJDUMP
  2741. # Extract the first word of "objdump", so it can be a program name with args.
  2742. set dummy objdump; ac_word=$2
  2743. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2744. $as_echo_n "checking for $ac_word... " >&6; }
  2745. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
  2746. $as_echo_n "(cached) " >&6
  2747. else
  2748. if test -n "$ac_ct_OBJDUMP"; then
  2749. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  2750. else
  2751. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2752. for as_dir in $PATH
  2753. do
  2754. IFS=$as_save_IFS
  2755. test -z "$as_dir" && as_dir=.
  2756. for ac_exec_ext in '' $ac_executable_extensions; do
  2757. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2758. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  2759. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2760. break 2
  2761. fi
  2762. done
  2763. done
  2764. IFS=$as_save_IFS
  2765. fi
  2766. fi
  2767. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  2768. if test -n "$ac_ct_OBJDUMP"; then
  2769. { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
  2770. $as_echo "$ac_ct_OBJDUMP" >&6; }
  2771. else
  2772. { $as_echo "$as_me:$LINENO: result: no" >&5
  2773. $as_echo "no" >&6; }
  2774. fi
  2775. if test "x$ac_ct_OBJDUMP" = x; then
  2776. OBJDUMP="false"
  2777. else
  2778. case $cross_compiling:$ac_tool_warned in
  2779. yes:)
  2780. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2781. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2782. ac_tool_warned=yes ;;
  2783. esac
  2784. OBJDUMP=$ac_ct_OBJDUMP
  2785. fi
  2786. else
  2787. OBJDUMP="$ac_cv_prog_OBJDUMP"
  2788. fi
  2789. ;;
  2790. esac
  2791. test -z "$AS" && AS=as
  2792. test -z "$DLLTOOL" && DLLTOOL=dlltool
  2793. test -z "$OBJDUMP" && OBJDUMP=objdump
  2794. # Find a good install program. We prefer a C program (faster),
  2795. # so one script is as good as another. But avoid the broken or
  2796. # incompatible versions:
  2797. # SysV /etc/install, /usr/sbin/install
  2798. # SunOS /usr/etc/install
  2799. # IRIX /sbin/install
  2800. # AIX /bin/install
  2801. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2802. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2803. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2804. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2805. # OS/2's system install, which has a completely different semantic
  2806. # ./install, which can be erroneously created by make from ./install.sh.
  2807. # Reject install programs that cannot install multiple files.
  2808. { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  2809. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2810. if test -z "$INSTALL"; then
  2811. if test "${ac_cv_path_install+set}" = set; then
  2812. $as_echo_n "(cached) " >&6
  2813. else
  2814. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2815. for as_dir in $PATH
  2816. do
  2817. IFS=$as_save_IFS
  2818. test -z "$as_dir" && as_dir=.
  2819. # Account for people who put trailing slashes in PATH elements.
  2820. case $as_dir/ in
  2821. ./ | .// | /cC/* | \
  2822. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2823. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  2824. /usr/ucb/* ) ;;
  2825. *)
  2826. # OSF1 and SCO ODT 3.0 have their own names for install.
  2827. # Don't use installbsd from OSF since it installs stuff as root
  2828. # by default.
  2829. for ac_prog in ginstall scoinst install; do
  2830. for ac_exec_ext in '' $ac_executable_extensions; do
  2831. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2832. if test $ac_prog = install &&
  2833. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2834. # AIX install. It has an incompatible calling convention.
  2835. :
  2836. elif test $ac_prog = install &&
  2837. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2838. # program-specific install script used by HP pwplus--don't use.
  2839. :
  2840. else
  2841. rm -rf conftest.one conftest.two conftest.dir
  2842. echo one > conftest.one
  2843. echo two > conftest.two
  2844. mkdir conftest.dir
  2845. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2846. test -s conftest.one && test -s conftest.two &&
  2847. test -s conftest.dir/conftest.one &&
  2848. test -s conftest.dir/conftest.two
  2849. then
  2850. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2851. break 3
  2852. fi
  2853. fi
  2854. fi
  2855. done
  2856. done
  2857. ;;
  2858. esac
  2859. done
  2860. IFS=$as_save_IFS
  2861. rm -rf conftest.one conftest.two conftest.dir
  2862. fi
  2863. if test "${ac_cv_path_install+set}" = set; then
  2864. INSTALL=$ac_cv_path_install
  2865. else
  2866. # As a last resort, use the slow shell script. Don't cache a
  2867. # value for INSTALL within a source directory, because that will
  2868. # break other packages using the cache if that directory is
  2869. # removed, or if the value is a relative name.
  2870. INSTALL=$ac_install_sh
  2871. fi
  2872. fi
  2873. { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
  2874. $as_echo "$INSTALL" >&6; }
  2875. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2876. # It thinks the first close brace ends the variable substitution.
  2877. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2878. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2879. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2880. ac_ext=c
  2881. ac_cpp='$CPP $CPPFLAGS'
  2882. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2883. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2884. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2885. if test -n "$ac_tool_prefix"; then
  2886. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2887. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2888. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2889. $as_echo_n "checking for $ac_word... " >&6; }
  2890. if test "${ac_cv_prog_CC+set}" = set; then
  2891. $as_echo_n "(cached) " >&6
  2892. else
  2893. if test -n "$CC"; then
  2894. ac_cv_prog_CC="$CC" # Let the user override the test.
  2895. else
  2896. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2897. for as_dir in $PATH
  2898. do
  2899. IFS=$as_save_IFS
  2900. test -z "$as_dir" && as_dir=.
  2901. for ac_exec_ext in '' $ac_executable_extensions; do
  2902. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2903. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2904. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2905. break 2
  2906. fi
  2907. done
  2908. done
  2909. IFS=$as_save_IFS
  2910. fi
  2911. fi
  2912. CC=$ac_cv_prog_CC
  2913. if test -n "$CC"; then
  2914. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2915. $as_echo "$CC" >&6; }
  2916. else
  2917. { $as_echo "$as_me:$LINENO: result: no" >&5
  2918. $as_echo "no" >&6; }
  2919. fi
  2920. fi
  2921. if test -z "$ac_cv_prog_CC"; then
  2922. ac_ct_CC=$CC
  2923. # Extract the first word of "gcc", so it can be a program name with args.
  2924. set dummy gcc; ac_word=$2
  2925. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2926. $as_echo_n "checking for $ac_word... " >&6; }
  2927. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2928. $as_echo_n "(cached) " >&6
  2929. else
  2930. if test -n "$ac_ct_CC"; then
  2931. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2932. else
  2933. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2934. for as_dir in $PATH
  2935. do
  2936. IFS=$as_save_IFS
  2937. test -z "$as_dir" && as_dir=.
  2938. for ac_exec_ext in '' $ac_executable_extensions; do
  2939. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2940. ac_cv_prog_ac_ct_CC="gcc"
  2941. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2942. break 2
  2943. fi
  2944. done
  2945. done
  2946. IFS=$as_save_IFS
  2947. fi
  2948. fi
  2949. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2950. if test -n "$ac_ct_CC"; then
  2951. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2952. $as_echo "$ac_ct_CC" >&6; }
  2953. else
  2954. { $as_echo "$as_me:$LINENO: result: no" >&5
  2955. $as_echo "no" >&6; }
  2956. fi
  2957. if test "x$ac_ct_CC" = x; then
  2958. CC=""
  2959. else
  2960. case $cross_compiling:$ac_tool_warned in
  2961. yes:)
  2962. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2963. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2964. ac_tool_warned=yes ;;
  2965. esac
  2966. CC=$ac_ct_CC
  2967. fi
  2968. else
  2969. CC="$ac_cv_prog_CC"
  2970. fi
  2971. if test -z "$CC"; then
  2972. if test -n "$ac_tool_prefix"; then
  2973. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2974. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2975. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2976. $as_echo_n "checking for $ac_word... " >&6; }
  2977. if test "${ac_cv_prog_CC+set}" = set; then
  2978. $as_echo_n "(cached) " >&6
  2979. else
  2980. if test -n "$CC"; then
  2981. ac_cv_prog_CC="$CC" # Let the user override the test.
  2982. else
  2983. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2984. for as_dir in $PATH
  2985. do
  2986. IFS=$as_save_IFS
  2987. test -z "$as_dir" && as_dir=.
  2988. for ac_exec_ext in '' $ac_executable_extensions; do
  2989. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2990. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2991. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2992. break 2
  2993. fi
  2994. done
  2995. done
  2996. IFS=$as_save_IFS
  2997. fi
  2998. fi
  2999. CC=$ac_cv_prog_CC
  3000. if test -n "$CC"; then
  3001. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3002. $as_echo "$CC" >&6; }
  3003. else
  3004. { $as_echo "$as_me:$LINENO: result: no" >&5
  3005. $as_echo "no" >&6; }
  3006. fi
  3007. fi
  3008. fi
  3009. if test -z "$CC"; then
  3010. # Extract the first word of "cc", so it can be a program name with args.
  3011. set dummy cc; ac_word=$2
  3012. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3013. $as_echo_n "checking for $ac_word... " >&6; }
  3014. if test "${ac_cv_prog_CC+set}" = set; then
  3015. $as_echo_n "(cached) " >&6
  3016. else
  3017. if test -n "$CC"; then
  3018. ac_cv_prog_CC="$CC" # Let the user override the test.
  3019. else
  3020. ac_prog_rejected=no
  3021. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3022. for as_dir in $PATH
  3023. do
  3024. IFS=$as_save_IFS
  3025. test -z "$as_dir" && as_dir=.
  3026. for ac_exec_ext in '' $ac_executable_extensions; do
  3027. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3028. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3029. ac_prog_rejected=yes
  3030. continue
  3031. fi
  3032. ac_cv_prog_CC="cc"
  3033. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3034. break 2
  3035. fi
  3036. done
  3037. done
  3038. IFS=$as_save_IFS
  3039. if test $ac_prog_rejected = yes; then
  3040. # We found a bogon in the path, so make sure we never use it.
  3041. set dummy $ac_cv_prog_CC
  3042. shift
  3043. if test $# != 0; then
  3044. # We chose a different compiler from the bogus one.
  3045. # However, it has the same basename, so the bogon will be chosen
  3046. # first if we set CC to just the basename; use the full file name.
  3047. shift
  3048. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3049. fi
  3050. fi
  3051. fi
  3052. fi
  3053. CC=$ac_cv_prog_CC
  3054. if test -n "$CC"; then
  3055. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3056. $as_echo "$CC" >&6; }
  3057. else
  3058. { $as_echo "$as_me:$LINENO: result: no" >&5
  3059. $as_echo "no" >&6; }
  3060. fi
  3061. fi
  3062. if test -z "$CC"; then
  3063. if test -n "$ac_tool_prefix"; then
  3064. for ac_prog in cl.exe
  3065. do
  3066. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3067. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3068. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3069. $as_echo_n "checking for $ac_word... " >&6; }
  3070. if test "${ac_cv_prog_CC+set}" = set; then
  3071. $as_echo_n "(cached) " >&6
  3072. else
  3073. if test -n "$CC"; then
  3074. ac_cv_prog_CC="$CC" # Let the user override the test.
  3075. else
  3076. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3077. for as_dir in $PATH
  3078. do
  3079. IFS=$as_save_IFS
  3080. test -z "$as_dir" && as_dir=.
  3081. for ac_exec_ext in '' $ac_executable_extensions; do
  3082. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3083. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3084. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3085. break 2
  3086. fi
  3087. done
  3088. done
  3089. IFS=$as_save_IFS
  3090. fi
  3091. fi
  3092. CC=$ac_cv_prog_CC
  3093. if test -n "$CC"; then
  3094. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3095. $as_echo "$CC" >&6; }
  3096. else
  3097. { $as_echo "$as_me:$LINENO: result: no" >&5
  3098. $as_echo "no" >&6; }
  3099. fi
  3100. test -n "$CC" && break
  3101. done
  3102. fi
  3103. if test -z "$CC"; then
  3104. ac_ct_CC=$CC
  3105. for ac_prog in cl.exe
  3106. do
  3107. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3108. set dummy $ac_prog; ac_word=$2
  3109. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3110. $as_echo_n "checking for $ac_word... " >&6; }
  3111. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3112. $as_echo_n "(cached) " >&6
  3113. else
  3114. if test -n "$ac_ct_CC"; then
  3115. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3116. else
  3117. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3118. for as_dir in $PATH
  3119. do
  3120. IFS=$as_save_IFS
  3121. test -z "$as_dir" && as_dir=.
  3122. for ac_exec_ext in '' $ac_executable_extensions; do
  3123. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3124. ac_cv_prog_ac_ct_CC="$ac_prog"
  3125. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3126. break 2
  3127. fi
  3128. done
  3129. done
  3130. IFS=$as_save_IFS
  3131. fi
  3132. fi
  3133. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3134. if test -n "$ac_ct_CC"; then
  3135. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3136. $as_echo "$ac_ct_CC" >&6; }
  3137. else
  3138. { $as_echo "$as_me:$LINENO: result: no" >&5
  3139. $as_echo "no" >&6; }
  3140. fi
  3141. test -n "$ac_ct_CC" && break
  3142. done
  3143. if test "x$ac_ct_CC" = x; then
  3144. CC=""
  3145. else
  3146. case $cross_compiling:$ac_tool_warned in
  3147. yes:)
  3148. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  3149. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3150. ac_tool_warned=yes ;;
  3151. esac
  3152. CC=$ac_ct_CC
  3153. fi
  3154. fi
  3155. fi
  3156. test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  3157. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3158. { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  3159. See \`config.log' for more details." >&5
  3160. $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  3161. See \`config.log' for more details." >&2;}
  3162. { (exit 1); exit 1; }; }; }
  3163. # Provide some information about the compiler.
  3164. $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  3165. set X $ac_compile
  3166. ac_compiler=$2
  3167. { (ac_try="$ac_compiler --version >&5"
  3168. case "(($ac_try" in
  3169. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3170. *) ac_try_echo=$ac_try;;
  3171. esac
  3172. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3173. $as_echo "$ac_try_echo") >&5
  3174. (eval "$ac_compiler --version >&5") 2>&5
  3175. ac_status=$?
  3176. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3177. (exit $ac_status); }
  3178. { (ac_try="$ac_compiler -v >&5"
  3179. case "(($ac_try" in
  3180. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3181. *) ac_try_echo=$ac_try;;
  3182. esac
  3183. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3184. $as_echo "$ac_try_echo") >&5
  3185. (eval "$ac_compiler -v >&5") 2>&5
  3186. ac_status=$?
  3187. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3188. (exit $ac_status); }
  3189. { (ac_try="$ac_compiler -V >&5"
  3190. case "(($ac_try" in
  3191. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3192. *) ac_try_echo=$ac_try;;
  3193. esac
  3194. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3195. $as_echo "$ac_try_echo") >&5
  3196. (eval "$ac_compiler -V >&5") 2>&5
  3197. ac_status=$?
  3198. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3199. (exit $ac_status); }
  3200. cat >conftest.$ac_ext <<_ACEOF
  3201. /* confdefs.h. */
  3202. _ACEOF
  3203. cat confdefs.h >>conftest.$ac_ext
  3204. cat >>conftest.$ac_ext <<_ACEOF
  3205. /* end confdefs.h. */
  3206. int
  3207. main ()
  3208. {
  3209. ;
  3210. return 0;
  3211. }
  3212. _ACEOF
  3213. ac_clean_files_save=$ac_clean_files
  3214. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3215. # Try to create an executable without -o first, disregard a.out.
  3216. # It will help us diagnose broken compilers, and finding out an intuition
  3217. # of exeext.
  3218. { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  3219. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3220. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3221. # The possible output files:
  3222. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3223. ac_rmfiles=
  3224. for ac_file in $ac_files
  3225. do
  3226. case $ac_file in
  3227. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3228. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3229. esac
  3230. done
  3231. rm -f $ac_rmfiles
  3232. if { (ac_try="$ac_link_default"
  3233. case "(($ac_try" in
  3234. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3235. *) ac_try_echo=$ac_try;;
  3236. esac
  3237. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3238. $as_echo "$ac_try_echo") >&5
  3239. (eval "$ac_link_default") 2>&5
  3240. ac_status=$?
  3241. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3242. (exit $ac_status); }; then
  3243. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3244. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3245. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3246. # so that the user can short-circuit this test for compilers unknown to
  3247. # Autoconf.
  3248. for ac_file in $ac_files ''
  3249. do
  3250. test -f "$ac_file" || continue
  3251. case $ac_file in
  3252. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3253. ;;
  3254. [ab].out )
  3255. # We found the default executable, but exeext='' is most
  3256. # certainly right.
  3257. break;;
  3258. *.* )
  3259. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3260. then :; else
  3261. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3262. fi
  3263. # We set ac_cv_exeext here because the later test for it is not
  3264. # safe: cross compilers may not add the suffix if given an `-o'
  3265. # argument, so we may need to know it at that point already.
  3266. # Even if this section looks crufty: it has the advantage of
  3267. # actually working.
  3268. break;;
  3269. * )
  3270. break;;
  3271. esac
  3272. done
  3273. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3274. else
  3275. ac_file=''
  3276. fi
  3277. { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
  3278. $as_echo "$ac_file" >&6; }
  3279. if test -z "$ac_file"; then
  3280. $as_echo "$as_me: failed program was:" >&5
  3281. sed 's/^/| /' conftest.$ac_ext >&5
  3282. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  3283. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3284. { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
  3285. See \`config.log' for more details." >&5
  3286. $as_echo "$as_me: error: C compiler cannot create executables
  3287. See \`config.log' for more details." >&2;}
  3288. { (exit 77); exit 77; }; }; }
  3289. fi
  3290. ac_exeext=$ac_cv_exeext
  3291. # Check that the compiler produces executables we can run. If not, either
  3292. # the compiler is broken, or we cross compile.
  3293. { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  3294. $as_echo_n "checking whether the C compiler works... " >&6; }
  3295. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  3296. # If not cross compiling, check that we can run a simple program.
  3297. if test "$cross_compiling" != yes; then
  3298. if { ac_try='./$ac_file'
  3299. { (case "(($ac_try" in
  3300. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3301. *) ac_try_echo=$ac_try;;
  3302. esac
  3303. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3304. $as_echo "$ac_try_echo") >&5
  3305. (eval "$ac_try") 2>&5
  3306. ac_status=$?
  3307. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3308. (exit $ac_status); }; }; then
  3309. cross_compiling=no
  3310. else
  3311. if test "$cross_compiling" = maybe; then
  3312. cross_compiling=yes
  3313. else
  3314. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  3315. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3316. { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
  3317. If you meant to cross compile, use \`--host'.
  3318. See \`config.log' for more details." >&5
  3319. $as_echo "$as_me: error: cannot run C compiled programs.
  3320. If you meant to cross compile, use \`--host'.
  3321. See \`config.log' for more details." >&2;}
  3322. { (exit 1); exit 1; }; }; }
  3323. fi
  3324. fi
  3325. fi
  3326. { $as_echo "$as_me:$LINENO: result: yes" >&5
  3327. $as_echo "yes" >&6; }
  3328. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3329. ac_clean_files=$ac_clean_files_save
  3330. # Check that the compiler produces executables we can run. If not, either
  3331. # the compiler is broken, or we cross compile.
  3332. { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  3333. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3334. { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
  3335. $as_echo "$cross_compiling" >&6; }
  3336. { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
  3337. $as_echo_n "checking for suffix of executables... " >&6; }
  3338. if { (ac_try="$ac_link"
  3339. case "(($ac_try" in
  3340. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3341. *) ac_try_echo=$ac_try;;
  3342. esac
  3343. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3344. $as_echo "$ac_try_echo") >&5
  3345. (eval "$ac_link") 2>&5
  3346. ac_status=$?
  3347. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3348. (exit $ac_status); }; then
  3349. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3350. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3351. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3352. # `rm'.
  3353. for ac_file in conftest.exe conftest conftest.*; do
  3354. test -f "$ac_file" || continue
  3355. case $ac_file in
  3356. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3357. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3358. break;;
  3359. * ) break;;
  3360. esac
  3361. done
  3362. else
  3363. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  3364. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3365. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  3366. See \`config.log' for more details." >&5
  3367. $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  3368. See \`config.log' for more details." >&2;}
  3369. { (exit 1); exit 1; }; }; }
  3370. fi
  3371. rm -f conftest$ac_cv_exeext
  3372. { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  3373. $as_echo "$ac_cv_exeext" >&6; }
  3374. rm -f conftest.$ac_ext
  3375. EXEEXT=$ac_cv_exeext
  3376. ac_exeext=$EXEEXT
  3377. { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
  3378. $as_echo_n "checking for suffix of object files... " >&6; }
  3379. if test "${ac_cv_objext+set}" = set; then
  3380. $as_echo_n "(cached) " >&6
  3381. else
  3382. cat >conftest.$ac_ext <<_ACEOF
  3383. /* confdefs.h. */
  3384. _ACEOF
  3385. cat confdefs.h >>conftest.$ac_ext
  3386. cat >>conftest.$ac_ext <<_ACEOF
  3387. /* end confdefs.h. */
  3388. int
  3389. main ()
  3390. {
  3391. ;
  3392. return 0;
  3393. }
  3394. _ACEOF
  3395. rm -f conftest.o conftest.obj
  3396. if { (ac_try="$ac_compile"
  3397. case "(($ac_try" in
  3398. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3399. *) ac_try_echo=$ac_try;;
  3400. esac
  3401. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3402. $as_echo "$ac_try_echo") >&5
  3403. (eval "$ac_compile") 2>&5
  3404. ac_status=$?
  3405. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3406. (exit $ac_status); }; then
  3407. for ac_file in conftest.o conftest.obj conftest.*; do
  3408. test -f "$ac_file" || continue;
  3409. case $ac_file in
  3410. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3411. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3412. break;;
  3413. esac
  3414. done
  3415. else
  3416. $as_echo "$as_me: failed program was:" >&5
  3417. sed 's/^/| /' conftest.$ac_ext >&5
  3418. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  3419. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3420. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  3421. See \`config.log' for more details." >&5
  3422. $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
  3423. See \`config.log' for more details." >&2;}
  3424. { (exit 1); exit 1; }; }; }
  3425. fi
  3426. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3427. fi
  3428. { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  3429. $as_echo "$ac_cv_objext" >&6; }
  3430. OBJEXT=$ac_cv_objext
  3431. ac_objext=$OBJEXT
  3432. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3433. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3434. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3435. $as_echo_n "(cached) " >&6
  3436. else
  3437. cat >conftest.$ac_ext <<_ACEOF
  3438. /* confdefs.h. */
  3439. _ACEOF
  3440. cat confdefs.h >>conftest.$ac_ext
  3441. cat >>conftest.$ac_ext <<_ACEOF
  3442. /* end confdefs.h. */
  3443. int
  3444. main ()
  3445. {
  3446. #ifndef __GNUC__
  3447. choke me
  3448. #endif
  3449. ;
  3450. return 0;
  3451. }
  3452. _ACEOF
  3453. rm -f conftest.$ac_objext
  3454. if { (ac_try="$ac_compile"
  3455. case "(($ac_try" in
  3456. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3457. *) ac_try_echo=$ac_try;;
  3458. esac
  3459. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3460. $as_echo "$ac_try_echo") >&5
  3461. (eval "$ac_compile") 2>conftest.er1
  3462. ac_status=$?
  3463. grep -v '^ *+' conftest.er1 >conftest.err
  3464. rm -f conftest.er1
  3465. cat conftest.err >&5
  3466. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3467. (exit $ac_status); } && {
  3468. test -z "$ac_c_werror_flag" ||
  3469. test ! -s conftest.err
  3470. } && test -s conftest.$ac_objext; then
  3471. ac_compiler_gnu=yes
  3472. else
  3473. $as_echo "$as_me: failed program was:" >&5
  3474. sed 's/^/| /' conftest.$ac_ext >&5
  3475. ac_compiler_gnu=no
  3476. fi
  3477. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3478. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3479. fi
  3480. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3481. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3482. if test $ac_compiler_gnu = yes; then
  3483. GCC=yes
  3484. else
  3485. GCC=
  3486. fi
  3487. ac_test_CFLAGS=${CFLAGS+set}
  3488. ac_save_CFLAGS=$CFLAGS
  3489. { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3490. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3491. if test "${ac_cv_prog_cc_g+set}" = set; then
  3492. $as_echo_n "(cached) " >&6
  3493. else
  3494. ac_save_c_werror_flag=$ac_c_werror_flag
  3495. ac_c_werror_flag=yes
  3496. ac_cv_prog_cc_g=no
  3497. CFLAGS="-g"
  3498. cat >conftest.$ac_ext <<_ACEOF
  3499. /* confdefs.h. */
  3500. _ACEOF
  3501. cat confdefs.h >>conftest.$ac_ext
  3502. cat >>conftest.$ac_ext <<_ACEOF
  3503. /* end confdefs.h. */
  3504. int
  3505. main ()
  3506. {
  3507. ;
  3508. return 0;
  3509. }
  3510. _ACEOF
  3511. rm -f conftest.$ac_objext
  3512. if { (ac_try="$ac_compile"
  3513. case "(($ac_try" in
  3514. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3515. *) ac_try_echo=$ac_try;;
  3516. esac
  3517. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3518. $as_echo "$ac_try_echo") >&5
  3519. (eval "$ac_compile") 2>conftest.er1
  3520. ac_status=$?
  3521. grep -v '^ *+' conftest.er1 >conftest.err
  3522. rm -f conftest.er1
  3523. cat conftest.err >&5
  3524. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3525. (exit $ac_status); } && {
  3526. test -z "$ac_c_werror_flag" ||
  3527. test ! -s conftest.err
  3528. } && test -s conftest.$ac_objext; then
  3529. ac_cv_prog_cc_g=yes
  3530. else
  3531. $as_echo "$as_me: failed program was:" >&5
  3532. sed 's/^/| /' conftest.$ac_ext >&5
  3533. CFLAGS=""
  3534. cat >conftest.$ac_ext <<_ACEOF
  3535. /* confdefs.h. */
  3536. _ACEOF
  3537. cat confdefs.h >>conftest.$ac_ext
  3538. cat >>conftest.$ac_ext <<_ACEOF
  3539. /* end confdefs.h. */
  3540. int
  3541. main ()
  3542. {
  3543. ;
  3544. return 0;
  3545. }
  3546. _ACEOF
  3547. rm -f conftest.$ac_objext
  3548. if { (ac_try="$ac_compile"
  3549. case "(($ac_try" in
  3550. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3551. *) ac_try_echo=$ac_try;;
  3552. esac
  3553. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3554. $as_echo "$ac_try_echo") >&5
  3555. (eval "$ac_compile") 2>conftest.er1
  3556. ac_status=$?
  3557. grep -v '^ *+' conftest.er1 >conftest.err
  3558. rm -f conftest.er1
  3559. cat conftest.err >&5
  3560. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3561. (exit $ac_status); } && {
  3562. test -z "$ac_c_werror_flag" ||
  3563. test ! -s conftest.err
  3564. } && test -s conftest.$ac_objext; then
  3565. :
  3566. else
  3567. $as_echo "$as_me: failed program was:" >&5
  3568. sed 's/^/| /' conftest.$ac_ext >&5
  3569. ac_c_werror_flag=$ac_save_c_werror_flag
  3570. CFLAGS="-g"
  3571. cat >conftest.$ac_ext <<_ACEOF
  3572. /* confdefs.h. */
  3573. _ACEOF
  3574. cat confdefs.h >>conftest.$ac_ext
  3575. cat >>conftest.$ac_ext <<_ACEOF
  3576. /* end confdefs.h. */
  3577. int
  3578. main ()
  3579. {
  3580. ;
  3581. return 0;
  3582. }
  3583. _ACEOF
  3584. rm -f conftest.$ac_objext
  3585. if { (ac_try="$ac_compile"
  3586. case "(($ac_try" in
  3587. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3588. *) ac_try_echo=$ac_try;;
  3589. esac
  3590. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3591. $as_echo "$ac_try_echo") >&5
  3592. (eval "$ac_compile") 2>conftest.er1
  3593. ac_status=$?
  3594. grep -v '^ *+' conftest.er1 >conftest.err
  3595. rm -f conftest.er1
  3596. cat conftest.err >&5
  3597. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3598. (exit $ac_status); } && {
  3599. test -z "$ac_c_werror_flag" ||
  3600. test ! -s conftest.err
  3601. } && test -s conftest.$ac_objext; then
  3602. ac_cv_prog_cc_g=yes
  3603. else
  3604. $as_echo "$as_me: failed program was:" >&5
  3605. sed 's/^/| /' conftest.$ac_ext >&5
  3606. fi
  3607. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3608. fi
  3609. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3610. fi
  3611. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3612. ac_c_werror_flag=$ac_save_c_werror_flag
  3613. fi
  3614. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3615. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3616. if test "$ac_test_CFLAGS" = set; then
  3617. CFLAGS=$ac_save_CFLAGS
  3618. elif test $ac_cv_prog_cc_g = yes; then
  3619. if test "$GCC" = yes; then
  3620. CFLAGS="-g -O2"
  3621. else
  3622. CFLAGS="-g"
  3623. fi
  3624. else
  3625. if test "$GCC" = yes; then
  3626. CFLAGS="-O2"
  3627. else
  3628. CFLAGS=
  3629. fi
  3630. fi
  3631. { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3632. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3633. if test "${ac_cv_prog_cc_c89+set}" = set; then
  3634. $as_echo_n "(cached) " >&6
  3635. else
  3636. ac_cv_prog_cc_c89=no
  3637. ac_save_CC=$CC
  3638. cat >conftest.$ac_ext <<_ACEOF
  3639. /* confdefs.h. */
  3640. _ACEOF
  3641. cat confdefs.h >>conftest.$ac_ext
  3642. cat >>conftest.$ac_ext <<_ACEOF
  3643. /* end confdefs.h. */
  3644. #include <stdarg.h>
  3645. #include <stdio.h>
  3646. #include <sys/types.h>
  3647. #include <sys/stat.h>
  3648. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3649. struct buf { int x; };
  3650. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3651. static char *e (p, i)
  3652. char **p;
  3653. int i;
  3654. {
  3655. return p[i];
  3656. }
  3657. static char *f (char * (*g) (char **, int), char **p, ...)
  3658. {
  3659. char *s;
  3660. va_list v;
  3661. va_start (v,p);
  3662. s = g (p, va_arg (v,int));
  3663. va_end (v);
  3664. return s;
  3665. }
  3666. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3667. function prototypes and stuff, but not '\xHH' hex character constants.
  3668. These don't provoke an error unfortunately, instead are silently treated
  3669. as 'x'. The following induces an error, until -std is added to get
  3670. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3671. array size at least. It's necessary to write '\x00'==0 to get something
  3672. that's true only with -std. */
  3673. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3674. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3675. inside strings and character constants. */
  3676. #define FOO(x) 'x'
  3677. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3678. int test (int i, double x);
  3679. struct s1 {int (*f) (int a);};
  3680. struct s2 {int (*f) (double a);};
  3681. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3682. int argc;
  3683. char **argv;
  3684. int
  3685. main ()
  3686. {
  3687. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3688. ;
  3689. return 0;
  3690. }
  3691. _ACEOF
  3692. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3693. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3694. do
  3695. CC="$ac_save_CC $ac_arg"
  3696. rm -f conftest.$ac_objext
  3697. if { (ac_try="$ac_compile"
  3698. case "(($ac_try" in
  3699. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3700. *) ac_try_echo=$ac_try;;
  3701. esac
  3702. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3703. $as_echo "$ac_try_echo") >&5
  3704. (eval "$ac_compile") 2>conftest.er1
  3705. ac_status=$?
  3706. grep -v '^ *+' conftest.er1 >conftest.err
  3707. rm -f conftest.er1
  3708. cat conftest.err >&5
  3709. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3710. (exit $ac_status); } && {
  3711. test -z "$ac_c_werror_flag" ||
  3712. test ! -s conftest.err
  3713. } && test -s conftest.$ac_objext; then
  3714. ac_cv_prog_cc_c89=$ac_arg
  3715. else
  3716. $as_echo "$as_me: failed program was:" >&5
  3717. sed 's/^/| /' conftest.$ac_ext >&5
  3718. fi
  3719. rm -f core conftest.err conftest.$ac_objext
  3720. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3721. done
  3722. rm -f conftest.$ac_ext
  3723. CC=$ac_save_CC
  3724. fi
  3725. # AC_CACHE_VAL
  3726. case "x$ac_cv_prog_cc_c89" in
  3727. x)
  3728. { $as_echo "$as_me:$LINENO: result: none needed" >&5
  3729. $as_echo "none needed" >&6; } ;;
  3730. xno)
  3731. { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  3732. $as_echo "unsupported" >&6; } ;;
  3733. *)
  3734. CC="$CC $ac_cv_prog_cc_c89"
  3735. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3736. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3737. esac
  3738. ac_ext=c
  3739. ac_cpp='$CPP $CPPFLAGS'
  3740. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3741. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3742. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3743. DEPDIR="${am__leading_dot}deps"
  3744. ac_config_commands="$ac_config_commands depfiles"
  3745. am_make=${MAKE-make}
  3746. cat > confinc << 'END'
  3747. am__doit:
  3748. @echo this is the am__doit target
  3749. .PHONY: am__doit
  3750. END
  3751. # If we don't find an include directive, just comment out the code.
  3752. { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  3753. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3754. am__include="#"
  3755. am__quote=
  3756. _am_result=none
  3757. # First try GNU make style include.
  3758. echo "include confinc" > confmf
  3759. # Ignore all kinds of additional output from `make'.
  3760. case `$am_make -s -f confmf 2> /dev/null` in #(
  3761. *the\ am__doit\ target*)
  3762. am__include=include
  3763. am__quote=
  3764. _am_result=GNU
  3765. ;;
  3766. esac
  3767. # Now try BSD make style include.
  3768. if test "$am__include" = "#"; then
  3769. echo '.include "confinc"' > confmf
  3770. case `$am_make -s -f confmf 2> /dev/null` in #(
  3771. *the\ am__doit\ target*)
  3772. am__include=.include
  3773. am__quote="\""
  3774. _am_result=BSD
  3775. ;;
  3776. esac
  3777. fi
  3778. { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
  3779. $as_echo "$_am_result" >&6; }
  3780. rm -f confinc confmf
  3781. # Check whether --enable-dependency-tracking was given.
  3782. if test "${enable_dependency_tracking+set}" = set; then
  3783. enableval=$enable_dependency_tracking;
  3784. fi
  3785. if test "x$enable_dependency_tracking" != xno; then
  3786. am_depcomp="$ac_aux_dir/depcomp"
  3787. AMDEPBACKSLASH='\'
  3788. fi
  3789. if test "x$enable_dependency_tracking" != xno; then
  3790. AMDEP_TRUE=
  3791. AMDEP_FALSE='#'
  3792. else
  3793. AMDEP_TRUE='#'
  3794. AMDEP_FALSE=
  3795. fi
  3796. depcc="$CC" am_compiler_list=
  3797. { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3798. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3799. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3800. $as_echo_n "(cached) " >&6
  3801. else
  3802. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3803. # We make a subdir and do the tests there. Otherwise we can end up
  3804. # making bogus files that we don't know about and never remove. For
  3805. # instance it was reported that on HP-UX the gcc test will end up
  3806. # making a dummy file named `D' -- because `-MD' means `put the output
  3807. # in D'.
  3808. mkdir conftest.dir
  3809. # Copy depcomp to subdir because otherwise we won't find it if we're
  3810. # using a relative directory.
  3811. cp "$am_depcomp" conftest.dir
  3812. cd conftest.dir
  3813. # We will build objects and dependencies in a subdirectory because
  3814. # it helps to detect inapplicable dependency modes. For instance
  3815. # both Tru64's cc and ICC support -MD to output dependencies as a
  3816. # side effect of compilation, but ICC will put the dependencies in
  3817. # the current directory while Tru64 will put them in the object
  3818. # directory.
  3819. mkdir sub
  3820. am_cv_CC_dependencies_compiler_type=none
  3821. if test "$am_compiler_list" = ""; then
  3822. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3823. fi
  3824. am__universal=false
  3825. case " $depcc " in #(
  3826. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3827. esac
  3828. for depmode in $am_compiler_list; do
  3829. # Setup a source with many dependencies, because some compilers
  3830. # like to wrap large dependency lists on column 80 (with \), and
  3831. # we should not choose a depcomp mode which is confused by this.
  3832. #
  3833. # We need to recreate these files for each test, as the compiler may
  3834. # overwrite some of them when testing with obscure command lines.
  3835. # This happens at least with the AIX C compiler.
  3836. : > sub/conftest.c
  3837. for i in 1 2 3 4 5 6; do
  3838. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3839. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3840. # Solaris 8's {/usr,}/bin/sh.
  3841. touch sub/conftst$i.h
  3842. done
  3843. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3844. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3845. # mode. It turns out that the SunPro C++ compiler does not properly
  3846. # handle `-M -o', and we need to detect this. Also, some Intel
  3847. # versions had trouble with output in subdirs
  3848. am__obj=sub/conftest.${OBJEXT-o}
  3849. am__minus_obj="-o $am__obj"
  3850. case $depmode in
  3851. gcc)
  3852. # This depmode causes a compiler race in universal mode.
  3853. test "$am__universal" = false || continue
  3854. ;;
  3855. nosideeffect)
  3856. # after this tag, mechanisms are not by side-effect, so they'll
  3857. # only be used when explicitly requested
  3858. if test "x$enable_dependency_tracking" = xyes; then
  3859. continue
  3860. else
  3861. break
  3862. fi
  3863. ;;
  3864. msvisualcpp | msvcmsys)
  3865. # This compiler won't grok `-c -o', but also, the minuso test has
  3866. # not run yet. These depmodes are late enough in the game, and
  3867. # so weak that their functioning should not be impacted.
  3868. am__obj=conftest.${OBJEXT-o}
  3869. am__minus_obj=
  3870. ;;
  3871. none) break ;;
  3872. esac
  3873. if depmode=$depmode \
  3874. source=sub/conftest.c object=$am__obj \
  3875. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3876. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3877. >/dev/null 2>conftest.err &&
  3878. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3879. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3880. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3881. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3882. # icc doesn't choke on unknown options, it will just issue warnings
  3883. # or remarks (even with -Werror). So we grep stderr for any message
  3884. # that says an option was ignored or not supported.
  3885. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3886. # icc: Command line warning: ignoring option '-M'; no argument required
  3887. # The diagnosis changed in icc 8.0:
  3888. # icc: Command line remark: option '-MP' not supported
  3889. if (grep 'ignoring option' conftest.err ||
  3890. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3891. am_cv_CC_dependencies_compiler_type=$depmode
  3892. break
  3893. fi
  3894. fi
  3895. done
  3896. cd ..
  3897. rm -rf conftest.dir
  3898. else
  3899. am_cv_CC_dependencies_compiler_type=none
  3900. fi
  3901. fi
  3902. { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3903. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3904. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3905. if
  3906. test "x$enable_dependency_tracking" != xno \
  3907. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3908. am__fastdepCC_TRUE=
  3909. am__fastdepCC_FALSE='#'
  3910. else
  3911. am__fastdepCC_TRUE='#'
  3912. am__fastdepCC_FALSE=
  3913. fi
  3914. ac_ext=c
  3915. ac_cpp='$CPP $CPPFLAGS'
  3916. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3917. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3918. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3919. { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  3920. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3921. # On Suns, sometimes $CPP names a directory.
  3922. if test -n "$CPP" && test -d "$CPP"; then
  3923. CPP=
  3924. fi
  3925. if test -z "$CPP"; then
  3926. if test "${ac_cv_prog_CPP+set}" = set; then
  3927. $as_echo_n "(cached) " >&6
  3928. else
  3929. # Double quotes because CPP needs to be expanded
  3930. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3931. do
  3932. ac_preproc_ok=false
  3933. for ac_c_preproc_warn_flag in '' yes
  3934. do
  3935. # Use a header file that comes with gcc, so configuring glibc
  3936. # with a fresh cross-compiler works.
  3937. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3938. # <limits.h> exists even on freestanding compilers.
  3939. # On the NeXT, cc -E runs the code through the compiler's parser,
  3940. # not just through cpp. "Syntax error" is here to catch this case.
  3941. cat >conftest.$ac_ext <<_ACEOF
  3942. /* confdefs.h. */
  3943. _ACEOF
  3944. cat confdefs.h >>conftest.$ac_ext
  3945. cat >>conftest.$ac_ext <<_ACEOF
  3946. /* end confdefs.h. */
  3947. #ifdef __STDC__
  3948. # include <limits.h>
  3949. #else
  3950. # include <assert.h>
  3951. #endif
  3952. Syntax error
  3953. _ACEOF
  3954. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3955. case "(($ac_try" in
  3956. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3957. *) ac_try_echo=$ac_try;;
  3958. esac
  3959. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3960. $as_echo "$ac_try_echo") >&5
  3961. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3962. ac_status=$?
  3963. grep -v '^ *+' conftest.er1 >conftest.err
  3964. rm -f conftest.er1
  3965. cat conftest.err >&5
  3966. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3967. (exit $ac_status); } >/dev/null && {
  3968. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3969. test ! -s conftest.err
  3970. }; then
  3971. :
  3972. else
  3973. $as_echo "$as_me: failed program was:" >&5
  3974. sed 's/^/| /' conftest.$ac_ext >&5
  3975. # Broken: fails on valid input.
  3976. continue
  3977. fi
  3978. rm -f conftest.err conftest.$ac_ext
  3979. # OK, works on sane cases. Now check whether nonexistent headers
  3980. # can be detected and how.
  3981. cat >conftest.$ac_ext <<_ACEOF
  3982. /* confdefs.h. */
  3983. _ACEOF
  3984. cat confdefs.h >>conftest.$ac_ext
  3985. cat >>conftest.$ac_ext <<_ACEOF
  3986. /* end confdefs.h. */
  3987. #include <ac_nonexistent.h>
  3988. _ACEOF
  3989. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3990. case "(($ac_try" in
  3991. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3992. *) ac_try_echo=$ac_try;;
  3993. esac
  3994. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3995. $as_echo "$ac_try_echo") >&5
  3996. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3997. ac_status=$?
  3998. grep -v '^ *+' conftest.er1 >conftest.err
  3999. rm -f conftest.er1
  4000. cat conftest.err >&5
  4001. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4002. (exit $ac_status); } >/dev/null && {
  4003. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4004. test ! -s conftest.err
  4005. }; then
  4006. # Broken: success on invalid input.
  4007. continue
  4008. else
  4009. $as_echo "$as_me: failed program was:" >&5
  4010. sed 's/^/| /' conftest.$ac_ext >&5
  4011. # Passes both tests.
  4012. ac_preproc_ok=:
  4013. break
  4014. fi
  4015. rm -f conftest.err conftest.$ac_ext
  4016. done
  4017. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4018. rm -f conftest.err conftest.$ac_ext
  4019. if $ac_preproc_ok; then
  4020. break
  4021. fi
  4022. done
  4023. ac_cv_prog_CPP=$CPP
  4024. fi
  4025. CPP=$ac_cv_prog_CPP
  4026. else
  4027. ac_cv_prog_CPP=$CPP
  4028. fi
  4029. { $as_echo "$as_me:$LINENO: result: $CPP" >&5
  4030. $as_echo "$CPP" >&6; }
  4031. ac_preproc_ok=false
  4032. for ac_c_preproc_warn_flag in '' yes
  4033. do
  4034. # Use a header file that comes with gcc, so configuring glibc
  4035. # with a fresh cross-compiler works.
  4036. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4037. # <limits.h> exists even on freestanding compilers.
  4038. # On the NeXT, cc -E runs the code through the compiler's parser,
  4039. # not just through cpp. "Syntax error" is here to catch this case.
  4040. cat >conftest.$ac_ext <<_ACEOF
  4041. /* confdefs.h. */
  4042. _ACEOF
  4043. cat confdefs.h >>conftest.$ac_ext
  4044. cat >>conftest.$ac_ext <<_ACEOF
  4045. /* end confdefs.h. */
  4046. #ifdef __STDC__
  4047. # include <limits.h>
  4048. #else
  4049. # include <assert.h>
  4050. #endif
  4051. Syntax error
  4052. _ACEOF
  4053. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4054. case "(($ac_try" in
  4055. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4056. *) ac_try_echo=$ac_try;;
  4057. esac
  4058. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4059. $as_echo "$ac_try_echo") >&5
  4060. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4061. ac_status=$?
  4062. grep -v '^ *+' conftest.er1 >conftest.err
  4063. rm -f conftest.er1
  4064. cat conftest.err >&5
  4065. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4066. (exit $ac_status); } >/dev/null && {
  4067. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4068. test ! -s conftest.err
  4069. }; then
  4070. :
  4071. else
  4072. $as_echo "$as_me: failed program was:" >&5
  4073. sed 's/^/| /' conftest.$ac_ext >&5
  4074. # Broken: fails on valid input.
  4075. continue
  4076. fi
  4077. rm -f conftest.err conftest.$ac_ext
  4078. # OK, works on sane cases. Now check whether nonexistent headers
  4079. # can be detected and how.
  4080. cat >conftest.$ac_ext <<_ACEOF
  4081. /* confdefs.h. */
  4082. _ACEOF
  4083. cat confdefs.h >>conftest.$ac_ext
  4084. cat >>conftest.$ac_ext <<_ACEOF
  4085. /* end confdefs.h. */
  4086. #include <ac_nonexistent.h>
  4087. _ACEOF
  4088. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4089. case "(($ac_try" in
  4090. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4091. *) ac_try_echo=$ac_try;;
  4092. esac
  4093. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4094. $as_echo "$ac_try_echo") >&5
  4095. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4096. ac_status=$?
  4097. grep -v '^ *+' conftest.er1 >conftest.err
  4098. rm -f conftest.er1
  4099. cat conftest.err >&5
  4100. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4101. (exit $ac_status); } >/dev/null && {
  4102. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4103. test ! -s conftest.err
  4104. }; then
  4105. # Broken: success on invalid input.
  4106. continue
  4107. else
  4108. $as_echo "$as_me: failed program was:" >&5
  4109. sed 's/^/| /' conftest.$ac_ext >&5
  4110. # Passes both tests.
  4111. ac_preproc_ok=:
  4112. break
  4113. fi
  4114. rm -f conftest.err conftest.$ac_ext
  4115. done
  4116. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4117. rm -f conftest.err conftest.$ac_ext
  4118. if $ac_preproc_ok; then
  4119. :
  4120. else
  4121. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  4122. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4123. { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  4124. See \`config.log' for more details." >&5
  4125. $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  4126. See \`config.log' for more details." >&2;}
  4127. { (exit 1); exit 1; }; }; }
  4128. fi
  4129. ac_ext=c
  4130. ac_cpp='$CPP $CPPFLAGS'
  4131. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4132. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4133. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4134. for ac_prog in gawk mawk nawk awk
  4135. do
  4136. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4137. set dummy $ac_prog; ac_word=$2
  4138. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4139. $as_echo_n "checking for $ac_word... " >&6; }
  4140. if test "${ac_cv_prog_AWK+set}" = set; then
  4141. $as_echo_n "(cached) " >&6
  4142. else
  4143. if test -n "$AWK"; then
  4144. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  4145. else
  4146. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4147. for as_dir in $PATH
  4148. do
  4149. IFS=$as_save_IFS
  4150. test -z "$as_dir" && as_dir=.
  4151. for ac_exec_ext in '' $ac_executable_extensions; do
  4152. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4153. ac_cv_prog_AWK="$ac_prog"
  4154. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4155. break 2
  4156. fi
  4157. done
  4158. done
  4159. IFS=$as_save_IFS
  4160. fi
  4161. fi
  4162. AWK=$ac_cv_prog_AWK
  4163. if test -n "$AWK"; then
  4164. { $as_echo "$as_me:$LINENO: result: $AWK" >&5
  4165. $as_echo "$AWK" >&6; }
  4166. else
  4167. { $as_echo "$as_me:$LINENO: result: no" >&5
  4168. $as_echo "no" >&6; }
  4169. fi
  4170. test -n "$AWK" && break
  4171. done
  4172. { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  4173. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4174. if test "${ac_cv_path_GREP+set}" = set; then
  4175. $as_echo_n "(cached) " >&6
  4176. else
  4177. if test -z "$GREP"; then
  4178. ac_path_GREP_found=false
  4179. # Loop through the user's path and test for each of PROGNAME-LIST
  4180. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4181. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4182. do
  4183. IFS=$as_save_IFS
  4184. test -z "$as_dir" && as_dir=.
  4185. for ac_prog in grep ggrep; do
  4186. for ac_exec_ext in '' $ac_executable_extensions; do
  4187. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4188. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4189. # Check for GNU ac_path_GREP and select it if it is found.
  4190. # Check for GNU $ac_path_GREP
  4191. case `"$ac_path_GREP" --version 2>&1` in
  4192. *GNU*)
  4193. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4194. *)
  4195. ac_count=0
  4196. $as_echo_n 0123456789 >"conftest.in"
  4197. while :
  4198. do
  4199. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4200. mv "conftest.tmp" "conftest.in"
  4201. cp "conftest.in" "conftest.nl"
  4202. $as_echo 'GREP' >> "conftest.nl"
  4203. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4204. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4205. ac_count=`expr $ac_count + 1`
  4206. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4207. # Best one so far, save it but keep looking for a better one
  4208. ac_cv_path_GREP="$ac_path_GREP"
  4209. ac_path_GREP_max=$ac_count
  4210. fi
  4211. # 10*(2^10) chars as input seems more than enough
  4212. test $ac_count -gt 10 && break
  4213. done
  4214. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4215. esac
  4216. $ac_path_GREP_found && break 3
  4217. done
  4218. done
  4219. done
  4220. IFS=$as_save_IFS
  4221. if test -z "$ac_cv_path_GREP"; then
  4222. { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4223. $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4224. { (exit 1); exit 1; }; }
  4225. fi
  4226. else
  4227. ac_cv_path_GREP=$GREP
  4228. fi
  4229. fi
  4230. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  4231. $as_echo "$ac_cv_path_GREP" >&6; }
  4232. GREP="$ac_cv_path_GREP"
  4233. { $as_echo "$as_me:$LINENO: checking for egrep" >&5
  4234. $as_echo_n "checking for egrep... " >&6; }
  4235. if test "${ac_cv_path_EGREP+set}" = set; then
  4236. $as_echo_n "(cached) " >&6
  4237. else
  4238. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4239. then ac_cv_path_EGREP="$GREP -E"
  4240. else
  4241. if test -z "$EGREP"; then
  4242. ac_path_EGREP_found=false
  4243. # Loop through the user's path and test for each of PROGNAME-LIST
  4244. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4245. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4246. do
  4247. IFS=$as_save_IFS
  4248. test -z "$as_dir" && as_dir=.
  4249. for ac_prog in egrep; do
  4250. for ac_exec_ext in '' $ac_executable_extensions; do
  4251. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4252. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4253. # Check for GNU ac_path_EGREP and select it if it is found.
  4254. # Check for GNU $ac_path_EGREP
  4255. case `"$ac_path_EGREP" --version 2>&1` in
  4256. *GNU*)
  4257. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4258. *)
  4259. ac_count=0
  4260. $as_echo_n 0123456789 >"conftest.in"
  4261. while :
  4262. do
  4263. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4264. mv "conftest.tmp" "conftest.in"
  4265. cp "conftest.in" "conftest.nl"
  4266. $as_echo 'EGREP' >> "conftest.nl"
  4267. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4268. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4269. ac_count=`expr $ac_count + 1`
  4270. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4271. # Best one so far, save it but keep looking for a better one
  4272. ac_cv_path_EGREP="$ac_path_EGREP"
  4273. ac_path_EGREP_max=$ac_count
  4274. fi
  4275. # 10*(2^10) chars as input seems more than enough
  4276. test $ac_count -gt 10 && break
  4277. done
  4278. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4279. esac
  4280. $ac_path_EGREP_found && break 3
  4281. done
  4282. done
  4283. done
  4284. IFS=$as_save_IFS
  4285. if test -z "$ac_cv_path_EGREP"; then
  4286. { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4287. $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4288. { (exit 1); exit 1; }; }
  4289. fi
  4290. else
  4291. ac_cv_path_EGREP=$EGREP
  4292. fi
  4293. fi
  4294. fi
  4295. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  4296. $as_echo "$ac_cv_path_EGREP" >&6; }
  4297. EGREP="$ac_cv_path_EGREP"
  4298. { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4299. $as_echo_n "checking for ANSI C header files... " >&6; }
  4300. if test "${ac_cv_header_stdc+set}" = set; then
  4301. $as_echo_n "(cached) " >&6
  4302. else
  4303. cat >conftest.$ac_ext <<_ACEOF
  4304. /* confdefs.h. */
  4305. _ACEOF
  4306. cat confdefs.h >>conftest.$ac_ext
  4307. cat >>conftest.$ac_ext <<_ACEOF
  4308. /* end confdefs.h. */
  4309. #include <stdlib.h>
  4310. #include <stdarg.h>
  4311. #include <string.h>
  4312. #include <float.h>
  4313. int
  4314. main ()
  4315. {
  4316. ;
  4317. return 0;
  4318. }
  4319. _ACEOF
  4320. rm -f conftest.$ac_objext
  4321. if { (ac_try="$ac_compile"
  4322. case "(($ac_try" in
  4323. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4324. *) ac_try_echo=$ac_try;;
  4325. esac
  4326. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4327. $as_echo "$ac_try_echo") >&5
  4328. (eval "$ac_compile") 2>conftest.er1
  4329. ac_status=$?
  4330. grep -v '^ *+' conftest.er1 >conftest.err
  4331. rm -f conftest.er1
  4332. cat conftest.err >&5
  4333. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4334. (exit $ac_status); } && {
  4335. test -z "$ac_c_werror_flag" ||
  4336. test ! -s conftest.err
  4337. } && test -s conftest.$ac_objext; then
  4338. ac_cv_header_stdc=yes
  4339. else
  4340. $as_echo "$as_me: failed program was:" >&5
  4341. sed 's/^/| /' conftest.$ac_ext >&5
  4342. ac_cv_header_stdc=no
  4343. fi
  4344. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4345. if test $ac_cv_header_stdc = yes; then
  4346. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4347. cat >conftest.$ac_ext <<_ACEOF
  4348. /* confdefs.h. */
  4349. _ACEOF
  4350. cat confdefs.h >>conftest.$ac_ext
  4351. cat >>conftest.$ac_ext <<_ACEOF
  4352. /* end confdefs.h. */
  4353. #include <string.h>
  4354. _ACEOF
  4355. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4356. $EGREP "memchr" >/dev/null 2>&1; then
  4357. :
  4358. else
  4359. ac_cv_header_stdc=no
  4360. fi
  4361. rm -f conftest*
  4362. fi
  4363. if test $ac_cv_header_stdc = yes; then
  4364. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4365. cat >conftest.$ac_ext <<_ACEOF
  4366. /* confdefs.h. */
  4367. _ACEOF
  4368. cat confdefs.h >>conftest.$ac_ext
  4369. cat >>conftest.$ac_ext <<_ACEOF
  4370. /* end confdefs.h. */
  4371. #include <stdlib.h>
  4372. _ACEOF
  4373. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4374. $EGREP "free" >/dev/null 2>&1; then
  4375. :
  4376. else
  4377. ac_cv_header_stdc=no
  4378. fi
  4379. rm -f conftest*
  4380. fi
  4381. if test $ac_cv_header_stdc = yes; then
  4382. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4383. if test "$cross_compiling" = yes; then
  4384. :
  4385. else
  4386. cat >conftest.$ac_ext <<_ACEOF
  4387. /* confdefs.h. */
  4388. _ACEOF
  4389. cat confdefs.h >>conftest.$ac_ext
  4390. cat >>conftest.$ac_ext <<_ACEOF
  4391. /* end confdefs.h. */
  4392. #include <ctype.h>
  4393. #include <stdlib.h>
  4394. #if ((' ' & 0x0FF) == 0x020)
  4395. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4396. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4397. #else
  4398. # define ISLOWER(c) \
  4399. (('a' <= (c) && (c) <= 'i') \
  4400. || ('j' <= (c) && (c) <= 'r') \
  4401. || ('s' <= (c) && (c) <= 'z'))
  4402. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4403. #endif
  4404. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4405. int
  4406. main ()
  4407. {
  4408. int i;
  4409. for (i = 0; i < 256; i++)
  4410. if (XOR (islower (i), ISLOWER (i))
  4411. || toupper (i) != TOUPPER (i))
  4412. return 2;
  4413. return 0;
  4414. }
  4415. _ACEOF
  4416. rm -f conftest$ac_exeext
  4417. if { (ac_try="$ac_link"
  4418. case "(($ac_try" in
  4419. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4420. *) ac_try_echo=$ac_try;;
  4421. esac
  4422. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4423. $as_echo "$ac_try_echo") >&5
  4424. (eval "$ac_link") 2>&5
  4425. ac_status=$?
  4426. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4427. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4428. { (case "(($ac_try" in
  4429. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4430. *) ac_try_echo=$ac_try;;
  4431. esac
  4432. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4433. $as_echo "$ac_try_echo") >&5
  4434. (eval "$ac_try") 2>&5
  4435. ac_status=$?
  4436. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4437. (exit $ac_status); }; }; then
  4438. :
  4439. else
  4440. $as_echo "$as_me: program exited with status $ac_status" >&5
  4441. $as_echo "$as_me: failed program was:" >&5
  4442. sed 's/^/| /' conftest.$ac_ext >&5
  4443. ( exit $ac_status )
  4444. ac_cv_header_stdc=no
  4445. fi
  4446. rm -rf conftest.dSYM
  4447. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4448. fi
  4449. fi
  4450. fi
  4451. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4452. $as_echo "$ac_cv_header_stdc" >&6; }
  4453. if test $ac_cv_header_stdc = yes; then
  4454. cat >>confdefs.h <<\_ACEOF
  4455. #define STDC_HEADERS 1
  4456. _ACEOF
  4457. fi
  4458. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4459. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4460. inttypes.h stdint.h unistd.h
  4461. do
  4462. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4463. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  4464. $as_echo_n "checking for $ac_header... " >&6; }
  4465. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4466. $as_echo_n "(cached) " >&6
  4467. else
  4468. cat >conftest.$ac_ext <<_ACEOF
  4469. /* confdefs.h. */
  4470. _ACEOF
  4471. cat confdefs.h >>conftest.$ac_ext
  4472. cat >>conftest.$ac_ext <<_ACEOF
  4473. /* end confdefs.h. */
  4474. $ac_includes_default
  4475. #include <$ac_header>
  4476. _ACEOF
  4477. rm -f conftest.$ac_objext
  4478. if { (ac_try="$ac_compile"
  4479. case "(($ac_try" in
  4480. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4481. *) ac_try_echo=$ac_try;;
  4482. esac
  4483. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4484. $as_echo "$ac_try_echo") >&5
  4485. (eval "$ac_compile") 2>conftest.er1
  4486. ac_status=$?
  4487. grep -v '^ *+' conftest.er1 >conftest.err
  4488. rm -f conftest.er1
  4489. cat conftest.err >&5
  4490. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4491. (exit $ac_status); } && {
  4492. test -z "$ac_c_werror_flag" ||
  4493. test ! -s conftest.err
  4494. } && test -s conftest.$ac_objext; then
  4495. eval "$as_ac_Header=yes"
  4496. else
  4497. $as_echo "$as_me: failed program was:" >&5
  4498. sed 's/^/| /' conftest.$ac_ext >&5
  4499. eval "$as_ac_Header=no"
  4500. fi
  4501. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4502. fi
  4503. ac_res=`eval 'as_val=${'$as_ac_Header'}
  4504. $as_echo "$as_val"'`
  4505. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  4506. $as_echo "$ac_res" >&6; }
  4507. as_val=`eval 'as_val=${'$as_ac_Header'}
  4508. $as_echo "$as_val"'`
  4509. if test "x$as_val" = x""yes; then
  4510. cat >>confdefs.h <<_ACEOF
  4511. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4512. _ACEOF
  4513. fi
  4514. done
  4515. if test "${ac_cv_header_minix_config_h+set}" = set; then
  4516. { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
  4517. $as_echo_n "checking for minix/config.h... " >&6; }
  4518. if test "${ac_cv_header_minix_config_h+set}" = set; then
  4519. $as_echo_n "(cached) " >&6
  4520. fi
  4521. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  4522. $as_echo "$ac_cv_header_minix_config_h" >&6; }
  4523. else
  4524. # Is the header compilable?
  4525. { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  4526. $as_echo_n "checking minix/config.h usability... " >&6; }
  4527. cat >conftest.$ac_ext <<_ACEOF
  4528. /* confdefs.h. */
  4529. _ACEOF
  4530. cat confdefs.h >>conftest.$ac_ext
  4531. cat >>conftest.$ac_ext <<_ACEOF
  4532. /* end confdefs.h. */
  4533. $ac_includes_default
  4534. #include <minix/config.h>
  4535. _ACEOF
  4536. rm -f conftest.$ac_objext
  4537. if { (ac_try="$ac_compile"
  4538. case "(($ac_try" in
  4539. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4540. *) ac_try_echo=$ac_try;;
  4541. esac
  4542. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4543. $as_echo "$ac_try_echo") >&5
  4544. (eval "$ac_compile") 2>conftest.er1
  4545. ac_status=$?
  4546. grep -v '^ *+' conftest.er1 >conftest.err
  4547. rm -f conftest.er1
  4548. cat conftest.err >&5
  4549. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4550. (exit $ac_status); } && {
  4551. test -z "$ac_c_werror_flag" ||
  4552. test ! -s conftest.err
  4553. } && test -s conftest.$ac_objext; then
  4554. ac_header_compiler=yes
  4555. else
  4556. $as_echo "$as_me: failed program was:" >&5
  4557. sed 's/^/| /' conftest.$ac_ext >&5
  4558. ac_header_compiler=no
  4559. fi
  4560. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4561. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4562. $as_echo "$ac_header_compiler" >&6; }
  4563. # Is the header present?
  4564. { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  4565. $as_echo_n "checking minix/config.h presence... " >&6; }
  4566. cat >conftest.$ac_ext <<_ACEOF
  4567. /* confdefs.h. */
  4568. _ACEOF
  4569. cat confdefs.h >>conftest.$ac_ext
  4570. cat >>conftest.$ac_ext <<_ACEOF
  4571. /* end confdefs.h. */
  4572. #include <minix/config.h>
  4573. _ACEOF
  4574. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4575. case "(($ac_try" in
  4576. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4577. *) ac_try_echo=$ac_try;;
  4578. esac
  4579. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4580. $as_echo "$ac_try_echo") >&5
  4581. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4582. ac_status=$?
  4583. grep -v '^ *+' conftest.er1 >conftest.err
  4584. rm -f conftest.er1
  4585. cat conftest.err >&5
  4586. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4587. (exit $ac_status); } >/dev/null && {
  4588. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4589. test ! -s conftest.err
  4590. }; then
  4591. ac_header_preproc=yes
  4592. else
  4593. $as_echo "$as_me: failed program was:" >&5
  4594. sed 's/^/| /' conftest.$ac_ext >&5
  4595. ac_header_preproc=no
  4596. fi
  4597. rm -f conftest.err conftest.$ac_ext
  4598. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4599. $as_echo "$ac_header_preproc" >&6; }
  4600. # So? What about this header?
  4601. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4602. yes:no: )
  4603. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  4604. $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4605. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  4606. $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  4607. ac_header_preproc=yes
  4608. ;;
  4609. no:yes:* )
  4610. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  4611. $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  4612. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  4613. $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  4614. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  4615. $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  4616. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  4617. $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  4618. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  4619. $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  4620. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  4621. $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  4622. ( cat <<\_ASBOX
  4623. ## -------------------------------- ##
  4624. ## Report this to bug-guile@gnu.org ##
  4625. ## -------------------------------- ##
  4626. _ASBOX
  4627. ) | sed "s/^/$as_me: WARNING: /" >&2
  4628. ;;
  4629. esac
  4630. { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
  4631. $as_echo_n "checking for minix/config.h... " >&6; }
  4632. if test "${ac_cv_header_minix_config_h+set}" = set; then
  4633. $as_echo_n "(cached) " >&6
  4634. else
  4635. ac_cv_header_minix_config_h=$ac_header_preproc
  4636. fi
  4637. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  4638. $as_echo "$ac_cv_header_minix_config_h" >&6; }
  4639. fi
  4640. if test "x$ac_cv_header_minix_config_h" = x""yes; then
  4641. MINIX=yes
  4642. else
  4643. MINIX=
  4644. fi
  4645. if test "$MINIX" = yes; then
  4646. cat >>confdefs.h <<\_ACEOF
  4647. #define _POSIX_SOURCE 1
  4648. _ACEOF
  4649. cat >>confdefs.h <<\_ACEOF
  4650. #define _POSIX_1_SOURCE 2
  4651. _ACEOF
  4652. cat >>confdefs.h <<\_ACEOF
  4653. #define _MINIX 1
  4654. _ACEOF
  4655. fi
  4656. { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
  4657. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  4658. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
  4659. $as_echo_n "(cached) " >&6
  4660. else
  4661. cat >conftest.$ac_ext <<_ACEOF
  4662. /* confdefs.h. */
  4663. _ACEOF
  4664. cat confdefs.h >>conftest.$ac_ext
  4665. cat >>conftest.$ac_ext <<_ACEOF
  4666. /* end confdefs.h. */
  4667. # define __EXTENSIONS__ 1
  4668. $ac_includes_default
  4669. int
  4670. main ()
  4671. {
  4672. ;
  4673. return 0;
  4674. }
  4675. _ACEOF
  4676. rm -f conftest.$ac_objext
  4677. if { (ac_try="$ac_compile"
  4678. case "(($ac_try" in
  4679. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4680. *) ac_try_echo=$ac_try;;
  4681. esac
  4682. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4683. $as_echo "$ac_try_echo") >&5
  4684. (eval "$ac_compile") 2>conftest.er1
  4685. ac_status=$?
  4686. grep -v '^ *+' conftest.er1 >conftest.err
  4687. rm -f conftest.er1
  4688. cat conftest.err >&5
  4689. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4690. (exit $ac_status); } && {
  4691. test -z "$ac_c_werror_flag" ||
  4692. test ! -s conftest.err
  4693. } && test -s conftest.$ac_objext; then
  4694. ac_cv_safe_to_define___extensions__=yes
  4695. else
  4696. $as_echo "$as_me: failed program was:" >&5
  4697. sed 's/^/| /' conftest.$ac_ext >&5
  4698. ac_cv_safe_to_define___extensions__=no
  4699. fi
  4700. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4701. fi
  4702. { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
  4703. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  4704. test $ac_cv_safe_to_define___extensions__ = yes &&
  4705. cat >>confdefs.h <<\_ACEOF
  4706. #define __EXTENSIONS__ 1
  4707. _ACEOF
  4708. cat >>confdefs.h <<\_ACEOF
  4709. #define _ALL_SOURCE 1
  4710. _ACEOF
  4711. cat >>confdefs.h <<\_ACEOF
  4712. #define _GNU_SOURCE 1
  4713. _ACEOF
  4714. cat >>confdefs.h <<\_ACEOF
  4715. #define _POSIX_PTHREAD_SEMANTICS 1
  4716. _ACEOF
  4717. cat >>confdefs.h <<\_ACEOF
  4718. #define _TANDEM_SOURCE 1
  4719. _ACEOF
  4720. { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  4721. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4722. if test "${ac_cv_prog_cc_c89+set}" = set; then
  4723. $as_echo_n "(cached) " >&6
  4724. else
  4725. ac_cv_prog_cc_c89=no
  4726. ac_save_CC=$CC
  4727. cat >conftest.$ac_ext <<_ACEOF
  4728. /* confdefs.h. */
  4729. _ACEOF
  4730. cat confdefs.h >>conftest.$ac_ext
  4731. cat >>conftest.$ac_ext <<_ACEOF
  4732. /* end confdefs.h. */
  4733. #include <stdarg.h>
  4734. #include <stdio.h>
  4735. #include <sys/types.h>
  4736. #include <sys/stat.h>
  4737. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4738. struct buf { int x; };
  4739. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4740. static char *e (p, i)
  4741. char **p;
  4742. int i;
  4743. {
  4744. return p[i];
  4745. }
  4746. static char *f (char * (*g) (char **, int), char **p, ...)
  4747. {
  4748. char *s;
  4749. va_list v;
  4750. va_start (v,p);
  4751. s = g (p, va_arg (v,int));
  4752. va_end (v);
  4753. return s;
  4754. }
  4755. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4756. function prototypes and stuff, but not '\xHH' hex character constants.
  4757. These don't provoke an error unfortunately, instead are silently treated
  4758. as 'x'. The following induces an error, until -std is added to get
  4759. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4760. array size at least. It's necessary to write '\x00'==0 to get something
  4761. that's true only with -std. */
  4762. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4763. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4764. inside strings and character constants. */
  4765. #define FOO(x) 'x'
  4766. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4767. int test (int i, double x);
  4768. struct s1 {int (*f) (int a);};
  4769. struct s2 {int (*f) (double a);};
  4770. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4771. int argc;
  4772. char **argv;
  4773. int
  4774. main ()
  4775. {
  4776. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4777. ;
  4778. return 0;
  4779. }
  4780. _ACEOF
  4781. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4782. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4783. do
  4784. CC="$ac_save_CC $ac_arg"
  4785. rm -f conftest.$ac_objext
  4786. if { (ac_try="$ac_compile"
  4787. case "(($ac_try" in
  4788. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4789. *) ac_try_echo=$ac_try;;
  4790. esac
  4791. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4792. $as_echo "$ac_try_echo") >&5
  4793. (eval "$ac_compile") 2>conftest.er1
  4794. ac_status=$?
  4795. grep -v '^ *+' conftest.er1 >conftest.err
  4796. rm -f conftest.er1
  4797. cat conftest.err >&5
  4798. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4799. (exit $ac_status); } && {
  4800. test -z "$ac_c_werror_flag" ||
  4801. test ! -s conftest.err
  4802. } && test -s conftest.$ac_objext; then
  4803. ac_cv_prog_cc_c89=$ac_arg
  4804. else
  4805. $as_echo "$as_me: failed program was:" >&5
  4806. sed 's/^/| /' conftest.$ac_ext >&5
  4807. fi
  4808. rm -f core conftest.err conftest.$ac_objext
  4809. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4810. done
  4811. rm -f conftest.$ac_ext
  4812. CC=$ac_save_CC
  4813. fi
  4814. # AC_CACHE_VAL
  4815. case "x$ac_cv_prog_cc_c89" in
  4816. x)
  4817. { $as_echo "$as_me:$LINENO: result: none needed" >&5
  4818. $as_echo "none needed" >&6; } ;;
  4819. xno)
  4820. { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  4821. $as_echo "unsupported" >&6; } ;;
  4822. *)
  4823. CC="$CC $ac_cv_prog_cc_c89"
  4824. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  4825. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4826. esac
  4827. # for per-target cflags in the libguile subdir
  4828. if test "x$CC" != xcc; then
  4829. { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
  4830. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  4831. else
  4832. { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
  4833. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  4834. fi
  4835. set dummy $CC; ac_cc=`$as_echo "$2" |
  4836. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  4837. if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
  4838. $as_echo_n "(cached) " >&6
  4839. else
  4840. cat >conftest.$ac_ext <<_ACEOF
  4841. /* confdefs.h. */
  4842. _ACEOF
  4843. cat confdefs.h >>conftest.$ac_ext
  4844. cat >>conftest.$ac_ext <<_ACEOF
  4845. /* end confdefs.h. */
  4846. int
  4847. main ()
  4848. {
  4849. ;
  4850. return 0;
  4851. }
  4852. _ACEOF
  4853. # Make sure it works both with $CC and with simple cc.
  4854. # We do the test twice because some compilers refuse to overwrite an
  4855. # existing .o file with -o, though they will create one.
  4856. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  4857. rm -f conftest2.*
  4858. if { (case "(($ac_try" in
  4859. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4860. *) ac_try_echo=$ac_try;;
  4861. esac
  4862. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4863. $as_echo "$ac_try_echo") >&5
  4864. (eval "$ac_try") 2>&5
  4865. ac_status=$?
  4866. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4867. (exit $ac_status); } &&
  4868. test -f conftest2.$ac_objext && { (case "(($ac_try" in
  4869. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4870. *) ac_try_echo=$ac_try;;
  4871. esac
  4872. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4873. $as_echo "$ac_try_echo") >&5
  4874. (eval "$ac_try") 2>&5
  4875. ac_status=$?
  4876. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4877. (exit $ac_status); };
  4878. then
  4879. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  4880. if test "x$CC" != xcc; then
  4881. # Test first that cc exists at all.
  4882. if { ac_try='cc -c conftest.$ac_ext >&5'
  4883. { (case "(($ac_try" in
  4884. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4885. *) ac_try_echo=$ac_try;;
  4886. esac
  4887. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4888. $as_echo "$ac_try_echo") >&5
  4889. (eval "$ac_try") 2>&5
  4890. ac_status=$?
  4891. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4892. (exit $ac_status); }; }; then
  4893. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  4894. rm -f conftest2.*
  4895. if { (case "(($ac_try" in
  4896. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4897. *) ac_try_echo=$ac_try;;
  4898. esac
  4899. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4900. $as_echo "$ac_try_echo") >&5
  4901. (eval "$ac_try") 2>&5
  4902. ac_status=$?
  4903. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4904. (exit $ac_status); } &&
  4905. test -f conftest2.$ac_objext && { (case "(($ac_try" in
  4906. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4907. *) ac_try_echo=$ac_try;;
  4908. esac
  4909. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4910. $as_echo "$ac_try_echo") >&5
  4911. (eval "$ac_try") 2>&5
  4912. ac_status=$?
  4913. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4914. (exit $ac_status); };
  4915. then
  4916. # cc works too.
  4917. :
  4918. else
  4919. # cc exists but doesn't like -o.
  4920. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4921. fi
  4922. fi
  4923. fi
  4924. else
  4925. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4926. fi
  4927. rm -f core conftest*
  4928. fi
  4929. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  4930. { $as_echo "$as_me:$LINENO: result: yes" >&5
  4931. $as_echo "yes" >&6; }
  4932. else
  4933. { $as_echo "$as_me:$LINENO: result: no" >&5
  4934. $as_echo "no" >&6; }
  4935. cat >>confdefs.h <<\_ACEOF
  4936. #define NO_MINUS_C_MINUS_O 1
  4937. _ACEOF
  4938. fi
  4939. # FIXME: we rely on the cache variable name because
  4940. # there is no other way.
  4941. set dummy $CC
  4942. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  4943. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  4944. if test "$am_t" != yes; then
  4945. # Losing compiler, so override with the script.
  4946. # FIXME: It is wrong to rewrite CC.
  4947. # But if we don't then we get into trouble of one sort or another.
  4948. # A longer-term fix would be to have automake use am__CC in this case,
  4949. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4950. CC="$am_aux_dir/compile $CC"
  4951. fi
  4952. enable_dlopen=yes
  4953. case `pwd` in
  4954. *\ * | *\ *)
  4955. { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4956. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4957. esac
  4958. macro_version='2.2.6'
  4959. macro_revision='1.3012'
  4960. ltmain="$ac_aux_dir/ltmain.sh"
  4961. { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  4962. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4963. if test "${ac_cv_path_SED+set}" = set; then
  4964. $as_echo_n "(cached) " >&6
  4965. else
  4966. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4967. for ac_i in 1 2 3 4 5 6 7; do
  4968. ac_script="$ac_script$as_nl$ac_script"
  4969. done
  4970. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4971. $as_unset ac_script || ac_script=
  4972. if test -z "$SED"; then
  4973. ac_path_SED_found=false
  4974. # Loop through the user's path and test for each of PROGNAME-LIST
  4975. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4976. for as_dir in $PATH
  4977. do
  4978. IFS=$as_save_IFS
  4979. test -z "$as_dir" && as_dir=.
  4980. for ac_prog in sed gsed; do
  4981. for ac_exec_ext in '' $ac_executable_extensions; do
  4982. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4983. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4984. # Check for GNU ac_path_SED and select it if it is found.
  4985. # Check for GNU $ac_path_SED
  4986. case `"$ac_path_SED" --version 2>&1` in
  4987. *GNU*)
  4988. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4989. *)
  4990. ac_count=0
  4991. $as_echo_n 0123456789 >"conftest.in"
  4992. while :
  4993. do
  4994. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4995. mv "conftest.tmp" "conftest.in"
  4996. cp "conftest.in" "conftest.nl"
  4997. $as_echo '' >> "conftest.nl"
  4998. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4999. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5000. ac_count=`expr $ac_count + 1`
  5001. if test $ac_count -gt ${ac_path_SED_max-0}; then
  5002. # Best one so far, save it but keep looking for a better one
  5003. ac_cv_path_SED="$ac_path_SED"
  5004. ac_path_SED_max=$ac_count
  5005. fi
  5006. # 10*(2^10) chars as input seems more than enough
  5007. test $ac_count -gt 10 && break
  5008. done
  5009. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5010. esac
  5011. $ac_path_SED_found && break 3
  5012. done
  5013. done
  5014. done
  5015. IFS=$as_save_IFS
  5016. if test -z "$ac_cv_path_SED"; then
  5017. { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
  5018. $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
  5019. { (exit 1); exit 1; }; }
  5020. fi
  5021. else
  5022. ac_cv_path_SED=$SED
  5023. fi
  5024. fi
  5025. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
  5026. $as_echo "$ac_cv_path_SED" >&6; }
  5027. SED="$ac_cv_path_SED"
  5028. rm -f conftest.sed
  5029. test -z "$SED" && SED=sed
  5030. Xsed="$SED -e 1s/^X//"
  5031. { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
  5032. $as_echo_n "checking for fgrep... " >&6; }
  5033. if test "${ac_cv_path_FGREP+set}" = set; then
  5034. $as_echo_n "(cached) " >&6
  5035. else
  5036. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  5037. then ac_cv_path_FGREP="$GREP -F"
  5038. else
  5039. if test -z "$FGREP"; then
  5040. ac_path_FGREP_found=false
  5041. # Loop through the user's path and test for each of PROGNAME-LIST
  5042. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5043. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5044. do
  5045. IFS=$as_save_IFS
  5046. test -z "$as_dir" && as_dir=.
  5047. for ac_prog in fgrep; do
  5048. for ac_exec_ext in '' $ac_executable_extensions; do
  5049. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  5050. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  5051. # Check for GNU ac_path_FGREP and select it if it is found.
  5052. # Check for GNU $ac_path_FGREP
  5053. case `"$ac_path_FGREP" --version 2>&1` in
  5054. *GNU*)
  5055. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  5056. *)
  5057. ac_count=0
  5058. $as_echo_n 0123456789 >"conftest.in"
  5059. while :
  5060. do
  5061. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5062. mv "conftest.tmp" "conftest.in"
  5063. cp "conftest.in" "conftest.nl"
  5064. $as_echo 'FGREP' >> "conftest.nl"
  5065. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5066. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5067. ac_count=`expr $ac_count + 1`
  5068. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  5069. # Best one so far, save it but keep looking for a better one
  5070. ac_cv_path_FGREP="$ac_path_FGREP"
  5071. ac_path_FGREP_max=$ac_count
  5072. fi
  5073. # 10*(2^10) chars as input seems more than enough
  5074. test $ac_count -gt 10 && break
  5075. done
  5076. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5077. esac
  5078. $ac_path_FGREP_found && break 3
  5079. done
  5080. done
  5081. done
  5082. IFS=$as_save_IFS
  5083. if test -z "$ac_cv_path_FGREP"; then
  5084. { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  5085. $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  5086. { (exit 1); exit 1; }; }
  5087. fi
  5088. else
  5089. ac_cv_path_FGREP=$FGREP
  5090. fi
  5091. fi
  5092. fi
  5093. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
  5094. $as_echo "$ac_cv_path_FGREP" >&6; }
  5095. FGREP="$ac_cv_path_FGREP"
  5096. test -z "$GREP" && GREP=grep
  5097. # Check whether --with-gnu-ld was given.
  5098. if test "${with_gnu_ld+set}" = set; then
  5099. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  5100. else
  5101. with_gnu_ld=no
  5102. fi
  5103. ac_prog=ld
  5104. if test "$GCC" = yes; then
  5105. # Check if gcc -print-prog-name=ld gives a path.
  5106. { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  5107. $as_echo_n "checking for ld used by $CC... " >&6; }
  5108. case $host in
  5109. *-*-mingw*)
  5110. # gcc leaves a trailing carriage return which upsets mingw
  5111. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5112. *)
  5113. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5114. esac
  5115. case $ac_prog in
  5116. # Accept absolute paths.
  5117. [\\/]* | ?:[\\/]*)
  5118. re_direlt='/[^/][^/]*/\.\./'
  5119. # Canonicalize the pathname of ld
  5120. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5121. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5122. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5123. done
  5124. test -z "$LD" && LD="$ac_prog"
  5125. ;;
  5126. "")
  5127. # If it fails, then pretend we aren't using GCC.
  5128. ac_prog=ld
  5129. ;;
  5130. *)
  5131. # If it is relative, then search for the first ld in PATH.
  5132. with_gnu_ld=unknown
  5133. ;;
  5134. esac
  5135. elif test "$with_gnu_ld" = yes; then
  5136. { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
  5137. $as_echo_n "checking for GNU ld... " >&6; }
  5138. else
  5139. { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  5140. $as_echo_n "checking for non-GNU ld... " >&6; }
  5141. fi
  5142. if test "${lt_cv_path_LD+set}" = set; then
  5143. $as_echo_n "(cached) " >&6
  5144. else
  5145. if test -z "$LD"; then
  5146. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5147. for ac_dir in $PATH; do
  5148. IFS="$lt_save_ifs"
  5149. test -z "$ac_dir" && ac_dir=.
  5150. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5151. lt_cv_path_LD="$ac_dir/$ac_prog"
  5152. # Check to see if the program is GNU ld. I'd rather use --version,
  5153. # but apparently some variants of GNU ld only accept -v.
  5154. # Break only if it was the GNU/non-GNU ld that we prefer.
  5155. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5156. *GNU* | *'with BFD'*)
  5157. test "$with_gnu_ld" != no && break
  5158. ;;
  5159. *)
  5160. test "$with_gnu_ld" != yes && break
  5161. ;;
  5162. esac
  5163. fi
  5164. done
  5165. IFS="$lt_save_ifs"
  5166. else
  5167. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  5168. fi
  5169. fi
  5170. LD="$lt_cv_path_LD"
  5171. if test -n "$LD"; then
  5172. { $as_echo "$as_me:$LINENO: result: $LD" >&5
  5173. $as_echo "$LD" >&6; }
  5174. else
  5175. { $as_echo "$as_me:$LINENO: result: no" >&5
  5176. $as_echo "no" >&6; }
  5177. fi
  5178. test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  5179. $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  5180. { (exit 1); exit 1; }; }
  5181. { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  5182. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5183. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  5184. $as_echo_n "(cached) " >&6
  5185. else
  5186. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5187. case `$LD -v 2>&1 </dev/null` in
  5188. *GNU* | *'with BFD'*)
  5189. lt_cv_prog_gnu_ld=yes
  5190. ;;
  5191. *)
  5192. lt_cv_prog_gnu_ld=no
  5193. ;;
  5194. esac
  5195. fi
  5196. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  5197. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  5198. with_gnu_ld=$lt_cv_prog_gnu_ld
  5199. { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
  5200. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5201. if test "${lt_cv_path_NM+set}" = set; then
  5202. $as_echo_n "(cached) " >&6
  5203. else
  5204. if test -n "$NM"; then
  5205. # Let the user override the test.
  5206. lt_cv_path_NM="$NM"
  5207. else
  5208. lt_nm_to_check="${ac_tool_prefix}nm"
  5209. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5210. lt_nm_to_check="$lt_nm_to_check nm"
  5211. fi
  5212. for lt_tmp_nm in $lt_nm_to_check; do
  5213. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5214. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5215. IFS="$lt_save_ifs"
  5216. test -z "$ac_dir" && ac_dir=.
  5217. tmp_nm="$ac_dir/$lt_tmp_nm"
  5218. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  5219. # Check to see if the nm accepts a BSD-compat flag.
  5220. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  5221. # nm: unknown option "B" ignored
  5222. # Tru64's nm complains that /dev/null is an invalid object file
  5223. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  5224. */dev/null* | *'Invalid file or object type'*)
  5225. lt_cv_path_NM="$tmp_nm -B"
  5226. break
  5227. ;;
  5228. *)
  5229. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5230. */dev/null*)
  5231. lt_cv_path_NM="$tmp_nm -p"
  5232. break
  5233. ;;
  5234. *)
  5235. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5236. continue # so that we can try to find one that supports BSD flags
  5237. ;;
  5238. esac
  5239. ;;
  5240. esac
  5241. fi
  5242. done
  5243. IFS="$lt_save_ifs"
  5244. done
  5245. : ${lt_cv_path_NM=no}
  5246. fi
  5247. fi
  5248. { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  5249. $as_echo "$lt_cv_path_NM" >&6; }
  5250. if test "$lt_cv_path_NM" != "no"; then
  5251. NM="$lt_cv_path_NM"
  5252. else
  5253. # Didn't find any BSD compatible name lister, look for dumpbin.
  5254. if test -n "$ac_tool_prefix"; then
  5255. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  5256. do
  5257. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5258. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5259. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5260. $as_echo_n "checking for $ac_word... " >&6; }
  5261. if test "${ac_cv_prog_DUMPBIN+set}" = set; then
  5262. $as_echo_n "(cached) " >&6
  5263. else
  5264. if test -n "$DUMPBIN"; then
  5265. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5266. else
  5267. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5268. for as_dir in $PATH
  5269. do
  5270. IFS=$as_save_IFS
  5271. test -z "$as_dir" && as_dir=.
  5272. for ac_exec_ext in '' $ac_executable_extensions; do
  5273. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5274. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5275. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5276. break 2
  5277. fi
  5278. done
  5279. done
  5280. IFS=$as_save_IFS
  5281. fi
  5282. fi
  5283. DUMPBIN=$ac_cv_prog_DUMPBIN
  5284. if test -n "$DUMPBIN"; then
  5285. { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
  5286. $as_echo "$DUMPBIN" >&6; }
  5287. else
  5288. { $as_echo "$as_me:$LINENO: result: no" >&5
  5289. $as_echo "no" >&6; }
  5290. fi
  5291. test -n "$DUMPBIN" && break
  5292. done
  5293. fi
  5294. if test -z "$DUMPBIN"; then
  5295. ac_ct_DUMPBIN=$DUMPBIN
  5296. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  5297. do
  5298. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5299. set dummy $ac_prog; ac_word=$2
  5300. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5301. $as_echo_n "checking for $ac_word... " >&6; }
  5302. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
  5303. $as_echo_n "(cached) " >&6
  5304. else
  5305. if test -n "$ac_ct_DUMPBIN"; then
  5306. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5307. else
  5308. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5309. for as_dir in $PATH
  5310. do
  5311. IFS=$as_save_IFS
  5312. test -z "$as_dir" && as_dir=.
  5313. for ac_exec_ext in '' $ac_executable_extensions; do
  5314. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5315. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5316. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5317. break 2
  5318. fi
  5319. done
  5320. done
  5321. IFS=$as_save_IFS
  5322. fi
  5323. fi
  5324. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5325. if test -n "$ac_ct_DUMPBIN"; then
  5326. { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
  5327. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5328. else
  5329. { $as_echo "$as_me:$LINENO: result: no" >&5
  5330. $as_echo "no" >&6; }
  5331. fi
  5332. test -n "$ac_ct_DUMPBIN" && break
  5333. done
  5334. if test "x$ac_ct_DUMPBIN" = x; then
  5335. DUMPBIN=":"
  5336. else
  5337. case $cross_compiling:$ac_tool_warned in
  5338. yes:)
  5339. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5340. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5341. ac_tool_warned=yes ;;
  5342. esac
  5343. DUMPBIN=$ac_ct_DUMPBIN
  5344. fi
  5345. fi
  5346. if test "$DUMPBIN" != ":"; then
  5347. NM="$DUMPBIN"
  5348. fi
  5349. fi
  5350. test -z "$NM" && NM=nm
  5351. { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
  5352. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5353. if test "${lt_cv_nm_interface+set}" = set; then
  5354. $as_echo_n "(cached) " >&6
  5355. else
  5356. lt_cv_nm_interface="BSD nm"
  5357. echo "int some_variable = 0;" > conftest.$ac_ext
  5358. (eval echo "\"\$as_me:6047: $ac_compile\"" >&5)
  5359. (eval "$ac_compile" 2>conftest.err)
  5360. cat conftest.err >&5
  5361. (eval echo "\"\$as_me:6050: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5362. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5363. cat conftest.err >&5
  5364. (eval echo "\"\$as_me:6053: output\"" >&5)
  5365. cat conftest.out >&5
  5366. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5367. lt_cv_nm_interface="MS dumpbin"
  5368. fi
  5369. rm -f conftest*
  5370. fi
  5371. { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
  5372. $as_echo "$lt_cv_nm_interface" >&6; }
  5373. { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
  5374. $as_echo_n "checking whether ln -s works... " >&6; }
  5375. LN_S=$as_ln_s
  5376. if test "$LN_S" = "ln -s"; then
  5377. { $as_echo "$as_me:$LINENO: result: yes" >&5
  5378. $as_echo "yes" >&6; }
  5379. else
  5380. { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  5381. $as_echo "no, using $LN_S" >&6; }
  5382. fi
  5383. # find the maximum length of command line arguments
  5384. { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  5385. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5386. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  5387. $as_echo_n "(cached) " >&6
  5388. else
  5389. i=0
  5390. teststring="ABCD"
  5391. case $build_os in
  5392. msdosdjgpp*)
  5393. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5394. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5395. # during glob expansion). Even if it were fixed, the result of this
  5396. # check would be larger than it should be.
  5397. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5398. ;;
  5399. gnu*)
  5400. # Under GNU Hurd, this test is not required because there is
  5401. # no limit to the length of command line arguments.
  5402. # Libtool will interpret -1 as no limit whatsoever
  5403. lt_cv_sys_max_cmd_len=-1;
  5404. ;;
  5405. cygwin* | mingw* | cegcc*)
  5406. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5407. # about 5 minutes as the teststring grows exponentially.
  5408. # Worse, since 9x/ME are not pre-emptively multitasking,
  5409. # you end up with a "frozen" computer, even though with patience
  5410. # the test eventually succeeds (with a max line length of 256k).
  5411. # Instead, let's just punt: use the minimum linelength reported by
  5412. # all of the supported platforms: 8192 (on NT/2K/XP).
  5413. lt_cv_sys_max_cmd_len=8192;
  5414. ;;
  5415. amigaos*)
  5416. # On AmigaOS with pdksh, this test takes hours, literally.
  5417. # So we just punt and use a minimum line length of 8192.
  5418. lt_cv_sys_max_cmd_len=8192;
  5419. ;;
  5420. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5421. # This has been around since 386BSD, at least. Likely further.
  5422. if test -x /sbin/sysctl; then
  5423. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5424. elif test -x /usr/sbin/sysctl; then
  5425. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5426. else
  5427. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5428. fi
  5429. # And add a safety zone
  5430. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5431. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5432. ;;
  5433. interix*)
  5434. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5435. lt_cv_sys_max_cmd_len=196608
  5436. ;;
  5437. osf*)
  5438. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5439. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5440. # nice to cause kernel panics so lets avoid the loop below.
  5441. # First set a reasonable default.
  5442. lt_cv_sys_max_cmd_len=16384
  5443. #
  5444. if test -x /sbin/sysconfig; then
  5445. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5446. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5447. esac
  5448. fi
  5449. ;;
  5450. sco3.2v5*)
  5451. lt_cv_sys_max_cmd_len=102400
  5452. ;;
  5453. sysv5* | sco5v6* | sysv4.2uw2*)
  5454. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5455. if test -n "$kargmax"; then
  5456. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5457. else
  5458. lt_cv_sys_max_cmd_len=32768
  5459. fi
  5460. ;;
  5461. *)
  5462. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5463. if test -n "$lt_cv_sys_max_cmd_len"; then
  5464. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5465. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5466. else
  5467. # Make teststring a little bigger before we do anything with it.
  5468. # a 1K string should be a reasonable start.
  5469. for i in 1 2 3 4 5 6 7 8 ; do
  5470. teststring=$teststring$teststring
  5471. done
  5472. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5473. # If test is not a shell built-in, we'll probably end up computing a
  5474. # maximum length that is only half of the actual maximum length, but
  5475. # we can't tell.
  5476. while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  5477. = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  5478. test $i != 17 # 1/2 MB should be enough
  5479. do
  5480. i=`expr $i + 1`
  5481. teststring=$teststring$teststring
  5482. done
  5483. # Only check the string length outside the loop.
  5484. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5485. teststring=
  5486. # Add a significant safety factor because C++ compilers can tack on
  5487. # massive amounts of additional arguments before passing them to the
  5488. # linker. It appears as though 1/2 is a usable value.
  5489. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5490. fi
  5491. ;;
  5492. esac
  5493. fi
  5494. if test -n $lt_cv_sys_max_cmd_len ; then
  5495. { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  5496. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5497. else
  5498. { $as_echo "$as_me:$LINENO: result: none" >&5
  5499. $as_echo "none" >&6; }
  5500. fi
  5501. max_cmd_len=$lt_cv_sys_max_cmd_len
  5502. : ${CP="cp -f"}
  5503. : ${MV="mv -f"}
  5504. : ${RM="rm -f"}
  5505. { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
  5506. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5507. # Try some XSI features
  5508. xsi_shell=no
  5509. ( _lt_dummy="a/b/c"
  5510. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  5511. = c,a/b,, \
  5512. && eval 'test $(( 1 + 1 )) -eq 2 \
  5513. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5514. && xsi_shell=yes
  5515. { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
  5516. $as_echo "$xsi_shell" >&6; }
  5517. { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
  5518. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5519. lt_shell_append=no
  5520. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5521. >/dev/null 2>&1 \
  5522. && lt_shell_append=yes
  5523. { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
  5524. $as_echo "$lt_shell_append" >&6; }
  5525. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5526. lt_unset=unset
  5527. else
  5528. lt_unset=false
  5529. fi
  5530. # test EBCDIC or ASCII
  5531. case `echo X|tr X '\101'` in
  5532. A) # ASCII based system
  5533. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5534. lt_SP2NL='tr \040 \012'
  5535. lt_NL2SP='tr \015\012 \040\040'
  5536. ;;
  5537. *) # EBCDIC based system
  5538. lt_SP2NL='tr \100 \n'
  5539. lt_NL2SP='tr \r\n \100\100'
  5540. ;;
  5541. esac
  5542. { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  5543. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5544. if test "${lt_cv_ld_reload_flag+set}" = set; then
  5545. $as_echo_n "(cached) " >&6
  5546. else
  5547. lt_cv_ld_reload_flag='-r'
  5548. fi
  5549. { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  5550. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5551. reload_flag=$lt_cv_ld_reload_flag
  5552. case $reload_flag in
  5553. "" | " "*) ;;
  5554. *) reload_flag=" $reload_flag" ;;
  5555. esac
  5556. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5557. case $host_os in
  5558. darwin*)
  5559. if test "$GCC" = yes; then
  5560. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5561. else
  5562. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5563. fi
  5564. ;;
  5565. esac
  5566. if test -n "$ac_tool_prefix"; then
  5567. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5568. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5569. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5570. $as_echo_n "checking for $ac_word... " >&6; }
  5571. if test "${ac_cv_prog_OBJDUMP+set}" = set; then
  5572. $as_echo_n "(cached) " >&6
  5573. else
  5574. if test -n "$OBJDUMP"; then
  5575. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5576. else
  5577. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5578. for as_dir in $PATH
  5579. do
  5580. IFS=$as_save_IFS
  5581. test -z "$as_dir" && as_dir=.
  5582. for ac_exec_ext in '' $ac_executable_extensions; do
  5583. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5584. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5585. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5586. break 2
  5587. fi
  5588. done
  5589. done
  5590. IFS=$as_save_IFS
  5591. fi
  5592. fi
  5593. OBJDUMP=$ac_cv_prog_OBJDUMP
  5594. if test -n "$OBJDUMP"; then
  5595. { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
  5596. $as_echo "$OBJDUMP" >&6; }
  5597. else
  5598. { $as_echo "$as_me:$LINENO: result: no" >&5
  5599. $as_echo "no" >&6; }
  5600. fi
  5601. fi
  5602. if test -z "$ac_cv_prog_OBJDUMP"; then
  5603. ac_ct_OBJDUMP=$OBJDUMP
  5604. # Extract the first word of "objdump", so it can be a program name with args.
  5605. set dummy objdump; ac_word=$2
  5606. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5607. $as_echo_n "checking for $ac_word... " >&6; }
  5608. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
  5609. $as_echo_n "(cached) " >&6
  5610. else
  5611. if test -n "$ac_ct_OBJDUMP"; then
  5612. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5613. else
  5614. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5615. for as_dir in $PATH
  5616. do
  5617. IFS=$as_save_IFS
  5618. test -z "$as_dir" && as_dir=.
  5619. for ac_exec_ext in '' $ac_executable_extensions; do
  5620. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5621. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5622. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5623. break 2
  5624. fi
  5625. done
  5626. done
  5627. IFS=$as_save_IFS
  5628. fi
  5629. fi
  5630. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5631. if test -n "$ac_ct_OBJDUMP"; then
  5632. { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
  5633. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5634. else
  5635. { $as_echo "$as_me:$LINENO: result: no" >&5
  5636. $as_echo "no" >&6; }
  5637. fi
  5638. if test "x$ac_ct_OBJDUMP" = x; then
  5639. OBJDUMP="false"
  5640. else
  5641. case $cross_compiling:$ac_tool_warned in
  5642. yes:)
  5643. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5644. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5645. ac_tool_warned=yes ;;
  5646. esac
  5647. OBJDUMP=$ac_ct_OBJDUMP
  5648. fi
  5649. else
  5650. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5651. fi
  5652. test -z "$OBJDUMP" && OBJDUMP=objdump
  5653. { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
  5654. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5655. if test "${lt_cv_deplibs_check_method+set}" = set; then
  5656. $as_echo_n "(cached) " >&6
  5657. else
  5658. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5659. lt_cv_file_magic_test_file=
  5660. lt_cv_deplibs_check_method='unknown'
  5661. # Need to set the preceding variable on all platforms that support
  5662. # interlibrary dependencies.
  5663. # 'none' -- dependencies not supported.
  5664. # `unknown' -- same as none, but documents that we really don't know.
  5665. # 'pass_all' -- all dependencies passed with no checks.
  5666. # 'test_compile' -- check by making test program.
  5667. # 'file_magic [[regex]]' -- check by looking for files in library path
  5668. # which responds to the $file_magic_cmd with a given extended regex.
  5669. # If you have `file' or equivalent on your system and you're not sure
  5670. # whether `pass_all' will *always* work, you probably want this one.
  5671. case $host_os in
  5672. aix[4-9]*)
  5673. lt_cv_deplibs_check_method=pass_all
  5674. ;;
  5675. beos*)
  5676. lt_cv_deplibs_check_method=pass_all
  5677. ;;
  5678. bsdi[45]*)
  5679. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5680. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5681. lt_cv_file_magic_test_file=/shlib/libc.so
  5682. ;;
  5683. cygwin*)
  5684. # func_win32_libid is a shell function defined in ltmain.sh
  5685. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5686. lt_cv_file_magic_cmd='func_win32_libid'
  5687. ;;
  5688. mingw* | pw32*)
  5689. # Base MSYS/MinGW do not provide the 'file' command needed by
  5690. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5691. # unless we find 'file', for example because we are cross-compiling.
  5692. if ( file / ) >/dev/null 2>&1; then
  5693. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5694. lt_cv_file_magic_cmd='func_win32_libid'
  5695. else
  5696. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5697. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5698. fi
  5699. ;;
  5700. cegcc)
  5701. # use the weaker test based on 'objdump'. See mingw*.
  5702. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5703. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5704. ;;
  5705. darwin* | rhapsody*)
  5706. lt_cv_deplibs_check_method=pass_all
  5707. ;;
  5708. freebsd* | dragonfly*)
  5709. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5710. case $host_cpu in
  5711. i*86 )
  5712. # Not sure whether the presence of OpenBSD here was a mistake.
  5713. # Let's accept both of them until this is cleared up.
  5714. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5715. lt_cv_file_magic_cmd=/usr/bin/file
  5716. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5717. ;;
  5718. esac
  5719. else
  5720. lt_cv_deplibs_check_method=pass_all
  5721. fi
  5722. ;;
  5723. gnu*)
  5724. lt_cv_deplibs_check_method=pass_all
  5725. ;;
  5726. hpux10.20* | hpux11*)
  5727. lt_cv_file_magic_cmd=/usr/bin/file
  5728. case $host_cpu in
  5729. ia64*)
  5730. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5731. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5732. ;;
  5733. hppa*64*)
  5734. 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]'
  5735. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5736. ;;
  5737. *)
  5738. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  5739. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5740. ;;
  5741. esac
  5742. ;;
  5743. interix[3-9]*)
  5744. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5745. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5746. ;;
  5747. irix5* | irix6* | nonstopux*)
  5748. case $LD in
  5749. *-32|*"-32 ") libmagic=32-bit;;
  5750. *-n32|*"-n32 ") libmagic=N32;;
  5751. *-64|*"-64 ") libmagic=64-bit;;
  5752. *) libmagic=never-match;;
  5753. esac
  5754. lt_cv_deplibs_check_method=pass_all
  5755. ;;
  5756. # This must be Linux ELF.
  5757. linux* | k*bsd*-gnu)
  5758. lt_cv_deplibs_check_method=pass_all
  5759. ;;
  5760. netbsd*)
  5761. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5762. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5763. else
  5764. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5765. fi
  5766. ;;
  5767. newos6*)
  5768. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5769. lt_cv_file_magic_cmd=/usr/bin/file
  5770. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5771. ;;
  5772. *nto* | *qnx*)
  5773. lt_cv_deplibs_check_method=pass_all
  5774. ;;
  5775. openbsd*)
  5776. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5777. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5778. else
  5779. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5780. fi
  5781. ;;
  5782. osf3* | osf4* | osf5*)
  5783. lt_cv_deplibs_check_method=pass_all
  5784. ;;
  5785. rdos*)
  5786. lt_cv_deplibs_check_method=pass_all
  5787. ;;
  5788. solaris*)
  5789. lt_cv_deplibs_check_method=pass_all
  5790. ;;
  5791. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5792. lt_cv_deplibs_check_method=pass_all
  5793. ;;
  5794. sysv4 | sysv4.3*)
  5795. case $host_vendor in
  5796. motorola)
  5797. 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]'
  5798. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5799. ;;
  5800. ncr)
  5801. lt_cv_deplibs_check_method=pass_all
  5802. ;;
  5803. sequent)
  5804. lt_cv_file_magic_cmd='/bin/file'
  5805. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5806. ;;
  5807. sni)
  5808. lt_cv_file_magic_cmd='/bin/file'
  5809. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5810. lt_cv_file_magic_test_file=/lib/libc.so
  5811. ;;
  5812. siemens)
  5813. lt_cv_deplibs_check_method=pass_all
  5814. ;;
  5815. pc)
  5816. lt_cv_deplibs_check_method=pass_all
  5817. ;;
  5818. esac
  5819. ;;
  5820. tpf*)
  5821. lt_cv_deplibs_check_method=pass_all
  5822. ;;
  5823. esac
  5824. fi
  5825. { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  5826. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5827. file_magic_cmd=$lt_cv_file_magic_cmd
  5828. deplibs_check_method=$lt_cv_deplibs_check_method
  5829. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5830. if test -n "$ac_tool_prefix"; then
  5831. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5832. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5833. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5834. $as_echo_n "checking for $ac_word... " >&6; }
  5835. if test "${ac_cv_prog_AR+set}" = set; then
  5836. $as_echo_n "(cached) " >&6
  5837. else
  5838. if test -n "$AR"; then
  5839. ac_cv_prog_AR="$AR" # Let the user override the test.
  5840. else
  5841. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5842. for as_dir in $PATH
  5843. do
  5844. IFS=$as_save_IFS
  5845. test -z "$as_dir" && as_dir=.
  5846. for ac_exec_ext in '' $ac_executable_extensions; do
  5847. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5848. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5849. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5850. break 2
  5851. fi
  5852. done
  5853. done
  5854. IFS=$as_save_IFS
  5855. fi
  5856. fi
  5857. AR=$ac_cv_prog_AR
  5858. if test -n "$AR"; then
  5859. { $as_echo "$as_me:$LINENO: result: $AR" >&5
  5860. $as_echo "$AR" >&6; }
  5861. else
  5862. { $as_echo "$as_me:$LINENO: result: no" >&5
  5863. $as_echo "no" >&6; }
  5864. fi
  5865. fi
  5866. if test -z "$ac_cv_prog_AR"; then
  5867. ac_ct_AR=$AR
  5868. # Extract the first word of "ar", so it can be a program name with args.
  5869. set dummy ar; ac_word=$2
  5870. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5871. $as_echo_n "checking for $ac_word... " >&6; }
  5872. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  5873. $as_echo_n "(cached) " >&6
  5874. else
  5875. if test -n "$ac_ct_AR"; then
  5876. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5877. else
  5878. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5879. for as_dir in $PATH
  5880. do
  5881. IFS=$as_save_IFS
  5882. test -z "$as_dir" && as_dir=.
  5883. for ac_exec_ext in '' $ac_executable_extensions; do
  5884. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5885. ac_cv_prog_ac_ct_AR="ar"
  5886. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5887. break 2
  5888. fi
  5889. done
  5890. done
  5891. IFS=$as_save_IFS
  5892. fi
  5893. fi
  5894. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5895. if test -n "$ac_ct_AR"; then
  5896. { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  5897. $as_echo "$ac_ct_AR" >&6; }
  5898. else
  5899. { $as_echo "$as_me:$LINENO: result: no" >&5
  5900. $as_echo "no" >&6; }
  5901. fi
  5902. if test "x$ac_ct_AR" = x; then
  5903. AR="false"
  5904. else
  5905. case $cross_compiling:$ac_tool_warned in
  5906. yes:)
  5907. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5908. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5909. ac_tool_warned=yes ;;
  5910. esac
  5911. AR=$ac_ct_AR
  5912. fi
  5913. else
  5914. AR="$ac_cv_prog_AR"
  5915. fi
  5916. test -z "$AR" && AR=ar
  5917. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5918. if test -n "$ac_tool_prefix"; then
  5919. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5920. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5921. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5922. $as_echo_n "checking for $ac_word... " >&6; }
  5923. if test "${ac_cv_prog_STRIP+set}" = set; then
  5924. $as_echo_n "(cached) " >&6
  5925. else
  5926. if test -n "$STRIP"; then
  5927. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5928. else
  5929. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5930. for as_dir in $PATH
  5931. do
  5932. IFS=$as_save_IFS
  5933. test -z "$as_dir" && as_dir=.
  5934. for ac_exec_ext in '' $ac_executable_extensions; do
  5935. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5936. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5937. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5938. break 2
  5939. fi
  5940. done
  5941. done
  5942. IFS=$as_save_IFS
  5943. fi
  5944. fi
  5945. STRIP=$ac_cv_prog_STRIP
  5946. if test -n "$STRIP"; then
  5947. { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  5948. $as_echo "$STRIP" >&6; }
  5949. else
  5950. { $as_echo "$as_me:$LINENO: result: no" >&5
  5951. $as_echo "no" >&6; }
  5952. fi
  5953. fi
  5954. if test -z "$ac_cv_prog_STRIP"; then
  5955. ac_ct_STRIP=$STRIP
  5956. # Extract the first word of "strip", so it can be a program name with args.
  5957. set dummy strip; ac_word=$2
  5958. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5959. $as_echo_n "checking for $ac_word... " >&6; }
  5960. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  5961. $as_echo_n "(cached) " >&6
  5962. else
  5963. if test -n "$ac_ct_STRIP"; then
  5964. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5965. else
  5966. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5967. for as_dir in $PATH
  5968. do
  5969. IFS=$as_save_IFS
  5970. test -z "$as_dir" && as_dir=.
  5971. for ac_exec_ext in '' $ac_executable_extensions; do
  5972. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5973. ac_cv_prog_ac_ct_STRIP="strip"
  5974. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5975. break 2
  5976. fi
  5977. done
  5978. done
  5979. IFS=$as_save_IFS
  5980. fi
  5981. fi
  5982. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5983. if test -n "$ac_ct_STRIP"; then
  5984. { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  5985. $as_echo "$ac_ct_STRIP" >&6; }
  5986. else
  5987. { $as_echo "$as_me:$LINENO: result: no" >&5
  5988. $as_echo "no" >&6; }
  5989. fi
  5990. if test "x$ac_ct_STRIP" = x; then
  5991. STRIP=":"
  5992. else
  5993. case $cross_compiling:$ac_tool_warned in
  5994. yes:)
  5995. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5996. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5997. ac_tool_warned=yes ;;
  5998. esac
  5999. STRIP=$ac_ct_STRIP
  6000. fi
  6001. else
  6002. STRIP="$ac_cv_prog_STRIP"
  6003. fi
  6004. test -z "$STRIP" && STRIP=:
  6005. if test -n "$ac_tool_prefix"; then
  6006. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6007. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6008. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6009. $as_echo_n "checking for $ac_word... " >&6; }
  6010. if test "${ac_cv_prog_RANLIB+set}" = set; then
  6011. $as_echo_n "(cached) " >&6
  6012. else
  6013. if test -n "$RANLIB"; then
  6014. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6015. else
  6016. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6017. for as_dir in $PATH
  6018. do
  6019. IFS=$as_save_IFS
  6020. test -z "$as_dir" && as_dir=.
  6021. for ac_exec_ext in '' $ac_executable_extensions; do
  6022. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6023. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6024. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6025. break 2
  6026. fi
  6027. done
  6028. done
  6029. IFS=$as_save_IFS
  6030. fi
  6031. fi
  6032. RANLIB=$ac_cv_prog_RANLIB
  6033. if test -n "$RANLIB"; then
  6034. { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
  6035. $as_echo "$RANLIB" >&6; }
  6036. else
  6037. { $as_echo "$as_me:$LINENO: result: no" >&5
  6038. $as_echo "no" >&6; }
  6039. fi
  6040. fi
  6041. if test -z "$ac_cv_prog_RANLIB"; then
  6042. ac_ct_RANLIB=$RANLIB
  6043. # Extract the first word of "ranlib", so it can be a program name with args.
  6044. set dummy ranlib; ac_word=$2
  6045. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6046. $as_echo_n "checking for $ac_word... " >&6; }
  6047. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  6048. $as_echo_n "(cached) " >&6
  6049. else
  6050. if test -n "$ac_ct_RANLIB"; then
  6051. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6052. else
  6053. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6054. for as_dir in $PATH
  6055. do
  6056. IFS=$as_save_IFS
  6057. test -z "$as_dir" && as_dir=.
  6058. for ac_exec_ext in '' $ac_executable_extensions; do
  6059. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6060. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6061. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6062. break 2
  6063. fi
  6064. done
  6065. done
  6066. IFS=$as_save_IFS
  6067. fi
  6068. fi
  6069. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6070. if test -n "$ac_ct_RANLIB"; then
  6071. { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  6072. $as_echo "$ac_ct_RANLIB" >&6; }
  6073. else
  6074. { $as_echo "$as_me:$LINENO: result: no" >&5
  6075. $as_echo "no" >&6; }
  6076. fi
  6077. if test "x$ac_ct_RANLIB" = x; then
  6078. RANLIB=":"
  6079. else
  6080. case $cross_compiling:$ac_tool_warned in
  6081. yes:)
  6082. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  6083. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6084. ac_tool_warned=yes ;;
  6085. esac
  6086. RANLIB=$ac_ct_RANLIB
  6087. fi
  6088. else
  6089. RANLIB="$ac_cv_prog_RANLIB"
  6090. fi
  6091. test -z "$RANLIB" && RANLIB=:
  6092. # Determine commands to create old-style static archives.
  6093. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6094. old_postinstall_cmds='chmod 644 $oldlib'
  6095. old_postuninstall_cmds=
  6096. if test -n "$RANLIB"; then
  6097. case $host_os in
  6098. openbsd*)
  6099. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  6100. ;;
  6101. *)
  6102. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  6103. ;;
  6104. esac
  6105. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  6106. fi
  6107. # If no C compiler was specified, use CC.
  6108. LTCC=${LTCC-"$CC"}
  6109. # If no C compiler flags were specified, use CFLAGS.
  6110. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6111. # Allow CC to be a program name with arguments.
  6112. compiler=$CC
  6113. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6114. { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  6115. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6116. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  6117. $as_echo_n "(cached) " >&6
  6118. else
  6119. # These are sane defaults that work on at least a few old systems.
  6120. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6121. # Character class describing NM global symbol codes.
  6122. symcode='[BCDEGRST]'
  6123. # Regexp to match symbols that can be accessed directly from C.
  6124. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6125. # Define system-specific variables.
  6126. case $host_os in
  6127. aix*)
  6128. symcode='[BCDT]'
  6129. ;;
  6130. cygwin* | mingw* | pw32* | cegcc*)
  6131. symcode='[ABCDGISTW]'
  6132. ;;
  6133. hpux*)
  6134. if test "$host_cpu" = ia64; then
  6135. symcode='[ABCDEGRST]'
  6136. fi
  6137. ;;
  6138. irix* | nonstopux*)
  6139. symcode='[BCDEGRST]'
  6140. ;;
  6141. osf*)
  6142. symcode='[BCDEGQRST]'
  6143. ;;
  6144. solaris*)
  6145. symcode='[BDRT]'
  6146. ;;
  6147. sco3.2v5*)
  6148. symcode='[DT]'
  6149. ;;
  6150. sysv4.2uw2*)
  6151. symcode='[DT]'
  6152. ;;
  6153. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6154. symcode='[ABDT]'
  6155. ;;
  6156. sysv4)
  6157. symcode='[DFNSTU]'
  6158. ;;
  6159. esac
  6160. # If we're using GNU nm, then use its standard symbol codes.
  6161. case `$NM -V 2>&1` in
  6162. *GNU* | *'with BFD'*)
  6163. symcode='[ABCDGIRSTW]' ;;
  6164. esac
  6165. # Transform an extracted symbol line into a proper C declaration.
  6166. # Some systems (esp. on ia64) link data and code symbols differently,
  6167. # so use this general approach.
  6168. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6169. # Transform an extracted symbol line into symbol name and symbol address
  6170. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  6171. 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'"
  6172. # Handle CRLF in mingw tool chain
  6173. opt_cr=
  6174. case $build_os in
  6175. mingw*)
  6176. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6177. ;;
  6178. esac
  6179. # Try without a prefix underscore, then with it.
  6180. for ac_symprfx in "" "_"; do
  6181. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6182. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6183. # Write the raw and C identifiers.
  6184. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6185. # Fake it for dumpbin and say T for any non-static function
  6186. # and D for any global variable.
  6187. # Also find C++ and __fastcall symbols from MSVC++,
  6188. # which start with @ or ?.
  6189. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6190. " {last_section=section; section=\$ 3};"\
  6191. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6192. " \$ 0!~/External *\|/{next};"\
  6193. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6194. " {if(hide[section]) next};"\
  6195. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6196. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6197. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6198. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6199. " ' prfx=^$ac_symprfx"
  6200. else
  6201. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6202. fi
  6203. # Check to see that the pipe works correctly.
  6204. pipe_works=no
  6205. rm -f conftest*
  6206. cat > conftest.$ac_ext <<_LT_EOF
  6207. #ifdef __cplusplus
  6208. extern "C" {
  6209. #endif
  6210. char nm_test_var;
  6211. void nm_test_func(void);
  6212. void nm_test_func(void){}
  6213. #ifdef __cplusplus
  6214. }
  6215. #endif
  6216. int main(){nm_test_var='a';nm_test_func();return(0);}
  6217. _LT_EOF
  6218. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6219. (eval $ac_compile) 2>&5
  6220. ac_status=$?
  6221. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6222. (exit $ac_status); }; then
  6223. # Now try to grab the symbols.
  6224. nlist=conftest.nm
  6225. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  6226. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  6227. ac_status=$?
  6228. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6229. (exit $ac_status); } && test -s "$nlist"; then
  6230. # Try sorting and uniquifying the output.
  6231. if sort "$nlist" | uniq > "$nlist"T; then
  6232. mv -f "$nlist"T "$nlist"
  6233. else
  6234. rm -f "$nlist"T
  6235. fi
  6236. # Make sure that we snagged all the symbols we need.
  6237. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6238. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6239. cat <<_LT_EOF > conftest.$ac_ext
  6240. #ifdef __cplusplus
  6241. extern "C" {
  6242. #endif
  6243. _LT_EOF
  6244. # Now generate the symbol file.
  6245. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6246. cat <<_LT_EOF >> conftest.$ac_ext
  6247. /* The mapping between symbol names and symbols. */
  6248. const struct {
  6249. const char *name;
  6250. void *address;
  6251. }
  6252. lt__PROGRAM__LTX_preloaded_symbols[] =
  6253. {
  6254. { "@PROGRAM@", (void *) 0 },
  6255. _LT_EOF
  6256. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6257. cat <<\_LT_EOF >> conftest.$ac_ext
  6258. {0, (void *) 0}
  6259. };
  6260. /* This works around a problem in FreeBSD linker */
  6261. #ifdef FREEBSD_WORKAROUND
  6262. static const void *lt_preloaded_setup() {
  6263. return lt__PROGRAM__LTX_preloaded_symbols;
  6264. }
  6265. #endif
  6266. #ifdef __cplusplus
  6267. }
  6268. #endif
  6269. _LT_EOF
  6270. # Now try linking the two files.
  6271. mv conftest.$ac_objext conftstm.$ac_objext
  6272. lt_save_LIBS="$LIBS"
  6273. lt_save_CFLAGS="$CFLAGS"
  6274. LIBS="conftstm.$ac_objext"
  6275. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6276. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6277. (eval $ac_link) 2>&5
  6278. ac_status=$?
  6279. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6280. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  6281. pipe_works=yes
  6282. fi
  6283. LIBS="$lt_save_LIBS"
  6284. CFLAGS="$lt_save_CFLAGS"
  6285. else
  6286. echo "cannot find nm_test_func in $nlist" >&5
  6287. fi
  6288. else
  6289. echo "cannot find nm_test_var in $nlist" >&5
  6290. fi
  6291. else
  6292. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6293. fi
  6294. else
  6295. echo "$progname: failed program was:" >&5
  6296. cat conftest.$ac_ext >&5
  6297. fi
  6298. rm -rf conftest* conftst*
  6299. # Do not use the global_symbol_pipe unless it works.
  6300. if test "$pipe_works" = yes; then
  6301. break
  6302. else
  6303. lt_cv_sys_global_symbol_pipe=
  6304. fi
  6305. done
  6306. fi
  6307. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6308. lt_cv_sys_global_symbol_to_cdecl=
  6309. fi
  6310. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6311. { $as_echo "$as_me:$LINENO: result: failed" >&5
  6312. $as_echo "failed" >&6; }
  6313. else
  6314. { $as_echo "$as_me:$LINENO: result: ok" >&5
  6315. $as_echo "ok" >&6; }
  6316. fi
  6317. # Check whether --enable-libtool-lock was given.
  6318. if test "${enable_libtool_lock+set}" = set; then
  6319. enableval=$enable_libtool_lock;
  6320. fi
  6321. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6322. # Some flags need to be propagated to the compiler or linker for good
  6323. # libtool support.
  6324. case $host in
  6325. ia64-*-hpux*)
  6326. # Find out which ABI we are using.
  6327. echo 'int i;' > conftest.$ac_ext
  6328. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6329. (eval $ac_compile) 2>&5
  6330. ac_status=$?
  6331. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6332. (exit $ac_status); }; then
  6333. case `/usr/bin/file conftest.$ac_objext` in
  6334. *ELF-32*)
  6335. HPUX_IA64_MODE="32"
  6336. ;;
  6337. *ELF-64*)
  6338. HPUX_IA64_MODE="64"
  6339. ;;
  6340. esac
  6341. fi
  6342. rm -rf conftest*
  6343. ;;
  6344. *-*-irix6*)
  6345. # Find out which ABI we are using.
  6346. echo '#line 7255 "configure"' > conftest.$ac_ext
  6347. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6348. (eval $ac_compile) 2>&5
  6349. ac_status=$?
  6350. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6351. (exit $ac_status); }; then
  6352. if test "$lt_cv_prog_gnu_ld" = yes; then
  6353. case `/usr/bin/file conftest.$ac_objext` in
  6354. *32-bit*)
  6355. LD="${LD-ld} -melf32bsmip"
  6356. ;;
  6357. *N32*)
  6358. LD="${LD-ld} -melf32bmipn32"
  6359. ;;
  6360. *64-bit*)
  6361. LD="${LD-ld} -melf64bmip"
  6362. ;;
  6363. esac
  6364. else
  6365. case `/usr/bin/file conftest.$ac_objext` in
  6366. *32-bit*)
  6367. LD="${LD-ld} -32"
  6368. ;;
  6369. *N32*)
  6370. LD="${LD-ld} -n32"
  6371. ;;
  6372. *64-bit*)
  6373. LD="${LD-ld} -64"
  6374. ;;
  6375. esac
  6376. fi
  6377. fi
  6378. rm -rf conftest*
  6379. ;;
  6380. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  6381. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6382. # Find out which ABI we are using.
  6383. echo 'int i;' > conftest.$ac_ext
  6384. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6385. (eval $ac_compile) 2>&5
  6386. ac_status=$?
  6387. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6388. (exit $ac_status); }; then
  6389. case `/usr/bin/file conftest.o` in
  6390. *32-bit*)
  6391. case $host in
  6392. x86_64-*kfreebsd*-gnu)
  6393. LD="${LD-ld} -m elf_i386_fbsd"
  6394. ;;
  6395. x86_64-*linux*)
  6396. LD="${LD-ld} -m elf_i386"
  6397. ;;
  6398. ppc64-*linux*|powerpc64-*linux*)
  6399. LD="${LD-ld} -m elf32ppclinux"
  6400. ;;
  6401. s390x-*linux*)
  6402. LD="${LD-ld} -m elf_s390"
  6403. ;;
  6404. sparc64-*linux*)
  6405. LD="${LD-ld} -m elf32_sparc"
  6406. ;;
  6407. esac
  6408. ;;
  6409. *64-bit*)
  6410. case $host in
  6411. x86_64-*kfreebsd*-gnu)
  6412. LD="${LD-ld} -m elf_x86_64_fbsd"
  6413. ;;
  6414. x86_64-*linux*)
  6415. LD="${LD-ld} -m elf_x86_64"
  6416. ;;
  6417. ppc*-*linux*|powerpc*-*linux*)
  6418. LD="${LD-ld} -m elf64ppc"
  6419. ;;
  6420. s390*-*linux*|s390*-*tpf*)
  6421. LD="${LD-ld} -m elf64_s390"
  6422. ;;
  6423. sparc*-*linux*)
  6424. LD="${LD-ld} -m elf64_sparc"
  6425. ;;
  6426. esac
  6427. ;;
  6428. esac
  6429. fi
  6430. rm -rf conftest*
  6431. ;;
  6432. *-*-sco3.2v5*)
  6433. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6434. SAVE_CFLAGS="$CFLAGS"
  6435. CFLAGS="$CFLAGS -belf"
  6436. { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  6437. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6438. if test "${lt_cv_cc_needs_belf+set}" = set; then
  6439. $as_echo_n "(cached) " >&6
  6440. else
  6441. ac_ext=c
  6442. ac_cpp='$CPP $CPPFLAGS'
  6443. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6444. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6445. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6446. cat >conftest.$ac_ext <<_ACEOF
  6447. /* confdefs.h. */
  6448. _ACEOF
  6449. cat confdefs.h >>conftest.$ac_ext
  6450. cat >>conftest.$ac_ext <<_ACEOF
  6451. /* end confdefs.h. */
  6452. int
  6453. main ()
  6454. {
  6455. ;
  6456. return 0;
  6457. }
  6458. _ACEOF
  6459. rm -f conftest.$ac_objext conftest$ac_exeext
  6460. if { (ac_try="$ac_link"
  6461. case "(($ac_try" in
  6462. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6463. *) ac_try_echo=$ac_try;;
  6464. esac
  6465. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6466. $as_echo "$ac_try_echo") >&5
  6467. (eval "$ac_link") 2>conftest.er1
  6468. ac_status=$?
  6469. grep -v '^ *+' conftest.er1 >conftest.err
  6470. rm -f conftest.er1
  6471. cat conftest.err >&5
  6472. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6473. (exit $ac_status); } && {
  6474. test -z "$ac_c_werror_flag" ||
  6475. test ! -s conftest.err
  6476. } && test -s conftest$ac_exeext && {
  6477. test "$cross_compiling" = yes ||
  6478. $as_test_x conftest$ac_exeext
  6479. }; then
  6480. lt_cv_cc_needs_belf=yes
  6481. else
  6482. $as_echo "$as_me: failed program was:" >&5
  6483. sed 's/^/| /' conftest.$ac_ext >&5
  6484. lt_cv_cc_needs_belf=no
  6485. fi
  6486. rm -rf conftest.dSYM
  6487. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6488. conftest$ac_exeext conftest.$ac_ext
  6489. ac_ext=c
  6490. ac_cpp='$CPP $CPPFLAGS'
  6491. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6492. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6493. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6494. fi
  6495. { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  6496. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6497. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6498. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6499. CFLAGS="$SAVE_CFLAGS"
  6500. fi
  6501. ;;
  6502. sparc*-*solaris*)
  6503. # Find out which ABI we are using.
  6504. echo 'int i;' > conftest.$ac_ext
  6505. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6506. (eval $ac_compile) 2>&5
  6507. ac_status=$?
  6508. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6509. (exit $ac_status); }; then
  6510. case `/usr/bin/file conftest.o` in
  6511. *64-bit*)
  6512. case $lt_cv_prog_gnu_ld in
  6513. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  6514. *)
  6515. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6516. LD="${LD-ld} -64"
  6517. fi
  6518. ;;
  6519. esac
  6520. ;;
  6521. esac
  6522. fi
  6523. rm -rf conftest*
  6524. ;;
  6525. esac
  6526. need_locks="$enable_libtool_lock"
  6527. case $host_os in
  6528. rhapsody* | darwin*)
  6529. if test -n "$ac_tool_prefix"; then
  6530. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6531. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6532. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6533. $as_echo_n "checking for $ac_word... " >&6; }
  6534. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
  6535. $as_echo_n "(cached) " >&6
  6536. else
  6537. if test -n "$DSYMUTIL"; then
  6538. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6539. else
  6540. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6541. for as_dir in $PATH
  6542. do
  6543. IFS=$as_save_IFS
  6544. test -z "$as_dir" && as_dir=.
  6545. for ac_exec_ext in '' $ac_executable_extensions; do
  6546. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6547. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6548. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6549. break 2
  6550. fi
  6551. done
  6552. done
  6553. IFS=$as_save_IFS
  6554. fi
  6555. fi
  6556. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6557. if test -n "$DSYMUTIL"; then
  6558. { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
  6559. $as_echo "$DSYMUTIL" >&6; }
  6560. else
  6561. { $as_echo "$as_me:$LINENO: result: no" >&5
  6562. $as_echo "no" >&6; }
  6563. fi
  6564. fi
  6565. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6566. ac_ct_DSYMUTIL=$DSYMUTIL
  6567. # Extract the first word of "dsymutil", so it can be a program name with args.
  6568. set dummy dsymutil; ac_word=$2
  6569. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6570. $as_echo_n "checking for $ac_word... " >&6; }
  6571. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
  6572. $as_echo_n "(cached) " >&6
  6573. else
  6574. if test -n "$ac_ct_DSYMUTIL"; then
  6575. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6576. else
  6577. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6578. for as_dir in $PATH
  6579. do
  6580. IFS=$as_save_IFS
  6581. test -z "$as_dir" && as_dir=.
  6582. for ac_exec_ext in '' $ac_executable_extensions; do
  6583. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6584. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6585. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6586. break 2
  6587. fi
  6588. done
  6589. done
  6590. IFS=$as_save_IFS
  6591. fi
  6592. fi
  6593. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6594. if test -n "$ac_ct_DSYMUTIL"; then
  6595. { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
  6596. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6597. else
  6598. { $as_echo "$as_me:$LINENO: result: no" >&5
  6599. $as_echo "no" >&6; }
  6600. fi
  6601. if test "x$ac_ct_DSYMUTIL" = x; then
  6602. DSYMUTIL=":"
  6603. else
  6604. case $cross_compiling:$ac_tool_warned in
  6605. yes:)
  6606. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  6607. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6608. ac_tool_warned=yes ;;
  6609. esac
  6610. DSYMUTIL=$ac_ct_DSYMUTIL
  6611. fi
  6612. else
  6613. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6614. fi
  6615. if test -n "$ac_tool_prefix"; then
  6616. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6617. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6618. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6619. $as_echo_n "checking for $ac_word... " >&6; }
  6620. if test "${ac_cv_prog_NMEDIT+set}" = set; then
  6621. $as_echo_n "(cached) " >&6
  6622. else
  6623. if test -n "$NMEDIT"; then
  6624. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6625. else
  6626. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6627. for as_dir in $PATH
  6628. do
  6629. IFS=$as_save_IFS
  6630. test -z "$as_dir" && as_dir=.
  6631. for ac_exec_ext in '' $ac_executable_extensions; do
  6632. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6633. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6634. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6635. break 2
  6636. fi
  6637. done
  6638. done
  6639. IFS=$as_save_IFS
  6640. fi
  6641. fi
  6642. NMEDIT=$ac_cv_prog_NMEDIT
  6643. if test -n "$NMEDIT"; then
  6644. { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
  6645. $as_echo "$NMEDIT" >&6; }
  6646. else
  6647. { $as_echo "$as_me:$LINENO: result: no" >&5
  6648. $as_echo "no" >&6; }
  6649. fi
  6650. fi
  6651. if test -z "$ac_cv_prog_NMEDIT"; then
  6652. ac_ct_NMEDIT=$NMEDIT
  6653. # Extract the first word of "nmedit", so it can be a program name with args.
  6654. set dummy nmedit; ac_word=$2
  6655. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6656. $as_echo_n "checking for $ac_word... " >&6; }
  6657. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
  6658. $as_echo_n "(cached) " >&6
  6659. else
  6660. if test -n "$ac_ct_NMEDIT"; then
  6661. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6662. else
  6663. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6664. for as_dir in $PATH
  6665. do
  6666. IFS=$as_save_IFS
  6667. test -z "$as_dir" && as_dir=.
  6668. for ac_exec_ext in '' $ac_executable_extensions; do
  6669. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6670. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6671. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6672. break 2
  6673. fi
  6674. done
  6675. done
  6676. IFS=$as_save_IFS
  6677. fi
  6678. fi
  6679. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6680. if test -n "$ac_ct_NMEDIT"; then
  6681. { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
  6682. $as_echo "$ac_ct_NMEDIT" >&6; }
  6683. else
  6684. { $as_echo "$as_me:$LINENO: result: no" >&5
  6685. $as_echo "no" >&6; }
  6686. fi
  6687. if test "x$ac_ct_NMEDIT" = x; then
  6688. NMEDIT=":"
  6689. else
  6690. case $cross_compiling:$ac_tool_warned in
  6691. yes:)
  6692. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  6693. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6694. ac_tool_warned=yes ;;
  6695. esac
  6696. NMEDIT=$ac_ct_NMEDIT
  6697. fi
  6698. else
  6699. NMEDIT="$ac_cv_prog_NMEDIT"
  6700. fi
  6701. if test -n "$ac_tool_prefix"; then
  6702. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6703. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6704. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6705. $as_echo_n "checking for $ac_word... " >&6; }
  6706. if test "${ac_cv_prog_LIPO+set}" = set; then
  6707. $as_echo_n "(cached) " >&6
  6708. else
  6709. if test -n "$LIPO"; then
  6710. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6711. else
  6712. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6713. for as_dir in $PATH
  6714. do
  6715. IFS=$as_save_IFS
  6716. test -z "$as_dir" && as_dir=.
  6717. for ac_exec_ext in '' $ac_executable_extensions; do
  6718. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6719. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6720. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6721. break 2
  6722. fi
  6723. done
  6724. done
  6725. IFS=$as_save_IFS
  6726. fi
  6727. fi
  6728. LIPO=$ac_cv_prog_LIPO
  6729. if test -n "$LIPO"; then
  6730. { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
  6731. $as_echo "$LIPO" >&6; }
  6732. else
  6733. { $as_echo "$as_me:$LINENO: result: no" >&5
  6734. $as_echo "no" >&6; }
  6735. fi
  6736. fi
  6737. if test -z "$ac_cv_prog_LIPO"; then
  6738. ac_ct_LIPO=$LIPO
  6739. # Extract the first word of "lipo", so it can be a program name with args.
  6740. set dummy lipo; ac_word=$2
  6741. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6742. $as_echo_n "checking for $ac_word... " >&6; }
  6743. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
  6744. $as_echo_n "(cached) " >&6
  6745. else
  6746. if test -n "$ac_ct_LIPO"; then
  6747. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6748. else
  6749. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6750. for as_dir in $PATH
  6751. do
  6752. IFS=$as_save_IFS
  6753. test -z "$as_dir" && as_dir=.
  6754. for ac_exec_ext in '' $ac_executable_extensions; do
  6755. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6756. ac_cv_prog_ac_ct_LIPO="lipo"
  6757. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6758. break 2
  6759. fi
  6760. done
  6761. done
  6762. IFS=$as_save_IFS
  6763. fi
  6764. fi
  6765. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6766. if test -n "$ac_ct_LIPO"; then
  6767. { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
  6768. $as_echo "$ac_ct_LIPO" >&6; }
  6769. else
  6770. { $as_echo "$as_me:$LINENO: result: no" >&5
  6771. $as_echo "no" >&6; }
  6772. fi
  6773. if test "x$ac_ct_LIPO" = x; then
  6774. LIPO=":"
  6775. else
  6776. case $cross_compiling:$ac_tool_warned in
  6777. yes:)
  6778. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  6779. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6780. ac_tool_warned=yes ;;
  6781. esac
  6782. LIPO=$ac_ct_LIPO
  6783. fi
  6784. else
  6785. LIPO="$ac_cv_prog_LIPO"
  6786. fi
  6787. if test -n "$ac_tool_prefix"; then
  6788. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6789. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6790. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6791. $as_echo_n "checking for $ac_word... " >&6; }
  6792. if test "${ac_cv_prog_OTOOL+set}" = set; then
  6793. $as_echo_n "(cached) " >&6
  6794. else
  6795. if test -n "$OTOOL"; then
  6796. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6797. else
  6798. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6799. for as_dir in $PATH
  6800. do
  6801. IFS=$as_save_IFS
  6802. test -z "$as_dir" && as_dir=.
  6803. for ac_exec_ext in '' $ac_executable_extensions; do
  6804. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6805. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6806. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6807. break 2
  6808. fi
  6809. done
  6810. done
  6811. IFS=$as_save_IFS
  6812. fi
  6813. fi
  6814. OTOOL=$ac_cv_prog_OTOOL
  6815. if test -n "$OTOOL"; then
  6816. { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
  6817. $as_echo "$OTOOL" >&6; }
  6818. else
  6819. { $as_echo "$as_me:$LINENO: result: no" >&5
  6820. $as_echo "no" >&6; }
  6821. fi
  6822. fi
  6823. if test -z "$ac_cv_prog_OTOOL"; then
  6824. ac_ct_OTOOL=$OTOOL
  6825. # Extract the first word of "otool", so it can be a program name with args.
  6826. set dummy otool; ac_word=$2
  6827. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6828. $as_echo_n "checking for $ac_word... " >&6; }
  6829. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
  6830. $as_echo_n "(cached) " >&6
  6831. else
  6832. if test -n "$ac_ct_OTOOL"; then
  6833. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6834. else
  6835. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6836. for as_dir in $PATH
  6837. do
  6838. IFS=$as_save_IFS
  6839. test -z "$as_dir" && as_dir=.
  6840. for ac_exec_ext in '' $ac_executable_extensions; do
  6841. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6842. ac_cv_prog_ac_ct_OTOOL="otool"
  6843. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6844. break 2
  6845. fi
  6846. done
  6847. done
  6848. IFS=$as_save_IFS
  6849. fi
  6850. fi
  6851. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6852. if test -n "$ac_ct_OTOOL"; then
  6853. { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
  6854. $as_echo "$ac_ct_OTOOL" >&6; }
  6855. else
  6856. { $as_echo "$as_me:$LINENO: result: no" >&5
  6857. $as_echo "no" >&6; }
  6858. fi
  6859. if test "x$ac_ct_OTOOL" = x; then
  6860. OTOOL=":"
  6861. else
  6862. case $cross_compiling:$ac_tool_warned in
  6863. yes:)
  6864. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  6865. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6866. ac_tool_warned=yes ;;
  6867. esac
  6868. OTOOL=$ac_ct_OTOOL
  6869. fi
  6870. else
  6871. OTOOL="$ac_cv_prog_OTOOL"
  6872. fi
  6873. if test -n "$ac_tool_prefix"; then
  6874. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6875. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6876. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6877. $as_echo_n "checking for $ac_word... " >&6; }
  6878. if test "${ac_cv_prog_OTOOL64+set}" = set; then
  6879. $as_echo_n "(cached) " >&6
  6880. else
  6881. if test -n "$OTOOL64"; then
  6882. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6883. else
  6884. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6885. for as_dir in $PATH
  6886. do
  6887. IFS=$as_save_IFS
  6888. test -z "$as_dir" && as_dir=.
  6889. for ac_exec_ext in '' $ac_executable_extensions; do
  6890. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6891. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6892. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6893. break 2
  6894. fi
  6895. done
  6896. done
  6897. IFS=$as_save_IFS
  6898. fi
  6899. fi
  6900. OTOOL64=$ac_cv_prog_OTOOL64
  6901. if test -n "$OTOOL64"; then
  6902. { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
  6903. $as_echo "$OTOOL64" >&6; }
  6904. else
  6905. { $as_echo "$as_me:$LINENO: result: no" >&5
  6906. $as_echo "no" >&6; }
  6907. fi
  6908. fi
  6909. if test -z "$ac_cv_prog_OTOOL64"; then
  6910. ac_ct_OTOOL64=$OTOOL64
  6911. # Extract the first word of "otool64", so it can be a program name with args.
  6912. set dummy otool64; ac_word=$2
  6913. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6914. $as_echo_n "checking for $ac_word... " >&6; }
  6915. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
  6916. $as_echo_n "(cached) " >&6
  6917. else
  6918. if test -n "$ac_ct_OTOOL64"; then
  6919. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6920. else
  6921. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6922. for as_dir in $PATH
  6923. do
  6924. IFS=$as_save_IFS
  6925. test -z "$as_dir" && as_dir=.
  6926. for ac_exec_ext in '' $ac_executable_extensions; do
  6927. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6928. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6929. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6930. break 2
  6931. fi
  6932. done
  6933. done
  6934. IFS=$as_save_IFS
  6935. fi
  6936. fi
  6937. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6938. if test -n "$ac_ct_OTOOL64"; then
  6939. { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
  6940. $as_echo "$ac_ct_OTOOL64" >&6; }
  6941. else
  6942. { $as_echo "$as_me:$LINENO: result: no" >&5
  6943. $as_echo "no" >&6; }
  6944. fi
  6945. if test "x$ac_ct_OTOOL64" = x; then
  6946. OTOOL64=":"
  6947. else
  6948. case $cross_compiling:$ac_tool_warned in
  6949. yes:)
  6950. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  6951. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6952. ac_tool_warned=yes ;;
  6953. esac
  6954. OTOOL64=$ac_ct_OTOOL64
  6955. fi
  6956. else
  6957. OTOOL64="$ac_cv_prog_OTOOL64"
  6958. fi
  6959. { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
  6960. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6961. if test "${lt_cv_apple_cc_single_mod+set}" = set; then
  6962. $as_echo_n "(cached) " >&6
  6963. else
  6964. lt_cv_apple_cc_single_mod=no
  6965. if test -z "${LT_MULTI_MODULE}"; then
  6966. # By default we will add the -single_module flag. You can override
  6967. # by either setting the environment variable LT_MULTI_MODULE
  6968. # non-empty at configure time, or by adding -multi_module to the
  6969. # link flags.
  6970. rm -rf libconftest.dylib*
  6971. echo "int foo(void){return 1;}" > conftest.c
  6972. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6973. -dynamiclib -Wl,-single_module conftest.c" >&5
  6974. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6975. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6976. _lt_result=$?
  6977. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6978. lt_cv_apple_cc_single_mod=yes
  6979. else
  6980. cat conftest.err >&5
  6981. fi
  6982. rm -rf libconftest.dylib*
  6983. rm -f conftest.*
  6984. fi
  6985. fi
  6986. { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
  6987. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6988. { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
  6989. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6990. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
  6991. $as_echo_n "(cached) " >&6
  6992. else
  6993. lt_cv_ld_exported_symbols_list=no
  6994. save_LDFLAGS=$LDFLAGS
  6995. echo "_main" > conftest.sym
  6996. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6997. cat >conftest.$ac_ext <<_ACEOF
  6998. /* confdefs.h. */
  6999. _ACEOF
  7000. cat confdefs.h >>conftest.$ac_ext
  7001. cat >>conftest.$ac_ext <<_ACEOF
  7002. /* end confdefs.h. */
  7003. int
  7004. main ()
  7005. {
  7006. ;
  7007. return 0;
  7008. }
  7009. _ACEOF
  7010. rm -f conftest.$ac_objext conftest$ac_exeext
  7011. if { (ac_try="$ac_link"
  7012. case "(($ac_try" in
  7013. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7014. *) ac_try_echo=$ac_try;;
  7015. esac
  7016. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7017. $as_echo "$ac_try_echo") >&5
  7018. (eval "$ac_link") 2>conftest.er1
  7019. ac_status=$?
  7020. grep -v '^ *+' conftest.er1 >conftest.err
  7021. rm -f conftest.er1
  7022. cat conftest.err >&5
  7023. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7024. (exit $ac_status); } && {
  7025. test -z "$ac_c_werror_flag" ||
  7026. test ! -s conftest.err
  7027. } && test -s conftest$ac_exeext && {
  7028. test "$cross_compiling" = yes ||
  7029. $as_test_x conftest$ac_exeext
  7030. }; then
  7031. lt_cv_ld_exported_symbols_list=yes
  7032. else
  7033. $as_echo "$as_me: failed program was:" >&5
  7034. sed 's/^/| /' conftest.$ac_ext >&5
  7035. lt_cv_ld_exported_symbols_list=no
  7036. fi
  7037. rm -rf conftest.dSYM
  7038. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7039. conftest$ac_exeext conftest.$ac_ext
  7040. LDFLAGS="$save_LDFLAGS"
  7041. fi
  7042. { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
  7043. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7044. case $host_os in
  7045. rhapsody* | darwin1.[012])
  7046. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  7047. darwin1.*)
  7048. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7049. darwin*) # darwin 5.x on
  7050. # if running on 10.5 or later, the deployment target defaults
  7051. # to the OS version, if on x86, and 10.4, the deployment
  7052. # target defaults to 10.4. Don't you love it?
  7053. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7054. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7055. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7056. 10.[012]*)
  7057. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7058. 10.*)
  7059. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7060. esac
  7061. ;;
  7062. esac
  7063. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  7064. _lt_dar_single_mod='$single_module'
  7065. fi
  7066. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  7067. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  7068. else
  7069. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7070. fi
  7071. if test "$DSYMUTIL" != ":"; then
  7072. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7073. else
  7074. _lt_dsymutil=
  7075. fi
  7076. ;;
  7077. esac
  7078. for ac_header in dlfcn.h
  7079. do
  7080. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7081. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  7082. $as_echo_n "checking for $ac_header... " >&6; }
  7083. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7084. $as_echo_n "(cached) " >&6
  7085. else
  7086. cat >conftest.$ac_ext <<_ACEOF
  7087. /* confdefs.h. */
  7088. _ACEOF
  7089. cat confdefs.h >>conftest.$ac_ext
  7090. cat >>conftest.$ac_ext <<_ACEOF
  7091. /* end confdefs.h. */
  7092. $ac_includes_default
  7093. #include <$ac_header>
  7094. _ACEOF
  7095. rm -f conftest.$ac_objext
  7096. if { (ac_try="$ac_compile"
  7097. case "(($ac_try" in
  7098. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7099. *) ac_try_echo=$ac_try;;
  7100. esac
  7101. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7102. $as_echo "$ac_try_echo") >&5
  7103. (eval "$ac_compile") 2>conftest.er1
  7104. ac_status=$?
  7105. grep -v '^ *+' conftest.er1 >conftest.err
  7106. rm -f conftest.er1
  7107. cat conftest.err >&5
  7108. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7109. (exit $ac_status); } && {
  7110. test -z "$ac_c_werror_flag" ||
  7111. test ! -s conftest.err
  7112. } && test -s conftest.$ac_objext; then
  7113. eval "$as_ac_Header=yes"
  7114. else
  7115. $as_echo "$as_me: failed program was:" >&5
  7116. sed 's/^/| /' conftest.$ac_ext >&5
  7117. eval "$as_ac_Header=no"
  7118. fi
  7119. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7120. fi
  7121. ac_res=`eval 'as_val=${'$as_ac_Header'}
  7122. $as_echo "$as_val"'`
  7123. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  7124. $as_echo "$ac_res" >&6; }
  7125. as_val=`eval 'as_val=${'$as_ac_Header'}
  7126. $as_echo "$as_val"'`
  7127. if test "x$as_val" = x""yes; then
  7128. cat >>confdefs.h <<_ACEOF
  7129. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7130. _ACEOF
  7131. fi
  7132. done
  7133. # Set options
  7134. # Check whether --enable-shared was given.
  7135. if test "${enable_shared+set}" = set; then
  7136. enableval=$enable_shared; p=${PACKAGE-default}
  7137. case $enableval in
  7138. yes) enable_shared=yes ;;
  7139. no) enable_shared=no ;;
  7140. *)
  7141. enable_shared=no
  7142. # Look at the argument we got. We use all the common list separators.
  7143. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7144. for pkg in $enableval; do
  7145. IFS="$lt_save_ifs"
  7146. if test "X$pkg" = "X$p"; then
  7147. enable_shared=yes
  7148. fi
  7149. done
  7150. IFS="$lt_save_ifs"
  7151. ;;
  7152. esac
  7153. else
  7154. enable_shared=yes
  7155. fi
  7156. # Check whether --enable-static was given.
  7157. if test "${enable_static+set}" = set; then
  7158. enableval=$enable_static; p=${PACKAGE-default}
  7159. case $enableval in
  7160. yes) enable_static=yes ;;
  7161. no) enable_static=no ;;
  7162. *)
  7163. enable_static=no
  7164. # Look at the argument we got. We use all the common list separators.
  7165. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7166. for pkg in $enableval; do
  7167. IFS="$lt_save_ifs"
  7168. if test "X$pkg" = "X$p"; then
  7169. enable_static=yes
  7170. fi
  7171. done
  7172. IFS="$lt_save_ifs"
  7173. ;;
  7174. esac
  7175. else
  7176. enable_static=yes
  7177. fi
  7178. # Check whether --with-pic was given.
  7179. if test "${with_pic+set}" = set; then
  7180. withval=$with_pic; pic_mode="$withval"
  7181. else
  7182. pic_mode=default
  7183. fi
  7184. test -z "$pic_mode" && pic_mode=default
  7185. # Check whether --enable-fast-install was given.
  7186. if test "${enable_fast_install+set}" = set; then
  7187. enableval=$enable_fast_install; p=${PACKAGE-default}
  7188. case $enableval in
  7189. yes) enable_fast_install=yes ;;
  7190. no) enable_fast_install=no ;;
  7191. *)
  7192. enable_fast_install=no
  7193. # Look at the argument we got. We use all the common list separators.
  7194. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7195. for pkg in $enableval; do
  7196. IFS="$lt_save_ifs"
  7197. if test "X$pkg" = "X$p"; then
  7198. enable_fast_install=yes
  7199. fi
  7200. done
  7201. IFS="$lt_save_ifs"
  7202. ;;
  7203. esac
  7204. else
  7205. enable_fast_install=yes
  7206. fi
  7207. # This can be used to rebuild libtool when needed
  7208. LIBTOOL_DEPS="$ltmain"
  7209. # Always use our own libtool.
  7210. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7211. test -z "$LN_S" && LN_S="ln -s"
  7212. if test -n "${ZSH_VERSION+set}" ; then
  7213. setopt NO_GLOB_SUBST
  7214. fi
  7215. { $as_echo "$as_me:$LINENO: checking for objdir" >&5
  7216. $as_echo_n "checking for objdir... " >&6; }
  7217. if test "${lt_cv_objdir+set}" = set; then
  7218. $as_echo_n "(cached) " >&6
  7219. else
  7220. rm -f .libs 2>/dev/null
  7221. mkdir .libs 2>/dev/null
  7222. if test -d .libs; then
  7223. lt_cv_objdir=.libs
  7224. else
  7225. # MS-DOS does not allow filenames that begin with a dot.
  7226. lt_cv_objdir=_libs
  7227. fi
  7228. rmdir .libs 2>/dev/null
  7229. fi
  7230. { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  7231. $as_echo "$lt_cv_objdir" >&6; }
  7232. objdir=$lt_cv_objdir
  7233. cat >>confdefs.h <<_ACEOF
  7234. #define LT_OBJDIR "$lt_cv_objdir/"
  7235. _ACEOF
  7236. case $host_os in
  7237. aix3*)
  7238. # AIX sometimes has problems with the GCC collect2 program. For some
  7239. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7240. # vanish in a puff of smoke.
  7241. if test "X${COLLECT_NAMES+set}" != Xset; then
  7242. COLLECT_NAMES=
  7243. export COLLECT_NAMES
  7244. fi
  7245. ;;
  7246. esac
  7247. # Sed substitution that helps us do robust quoting. It backslashifies
  7248. # metacharacters that are still active within double-quoted strings.
  7249. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  7250. # Same as above, but do not quote variable references.
  7251. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  7252. # Sed substitution to delay expansion of an escaped shell variable in a
  7253. # double_quote_subst'ed string.
  7254. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  7255. # Sed substitution to delay expansion of an escaped single quote.
  7256. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  7257. # Sed substitution to avoid accidental globbing in evaled expressions
  7258. no_glob_subst='s/\*/\\\*/g'
  7259. # Global variables:
  7260. ofile=libtool
  7261. can_build_shared=yes
  7262. # All known linkers require a `.a' archive for static linking (except MSVC,
  7263. # which needs '.lib').
  7264. libext=a
  7265. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7266. old_CC="$CC"
  7267. old_CFLAGS="$CFLAGS"
  7268. # Set sane defaults for various variables
  7269. test -z "$CC" && CC=cc
  7270. test -z "$LTCC" && LTCC=$CC
  7271. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7272. test -z "$LD" && LD=ld
  7273. test -z "$ac_objext" && ac_objext=o
  7274. for cc_temp in $compiler""; do
  7275. case $cc_temp in
  7276. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7277. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7278. \-*) ;;
  7279. *) break;;
  7280. esac
  7281. done
  7282. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  7283. # Only perform the check for file, if the check method requires it
  7284. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7285. case $deplibs_check_method in
  7286. file_magic*)
  7287. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7288. { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  7289. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7290. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  7291. $as_echo_n "(cached) " >&6
  7292. else
  7293. case $MAGIC_CMD in
  7294. [\\/*] | ?:[\\/]*)
  7295. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7296. ;;
  7297. *)
  7298. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7299. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7300. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7301. for ac_dir in $ac_dummy; do
  7302. IFS="$lt_save_ifs"
  7303. test -z "$ac_dir" && ac_dir=.
  7304. if test -f $ac_dir/${ac_tool_prefix}file; then
  7305. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7306. if test -n "$file_magic_test_file"; then
  7307. case $deplibs_check_method in
  7308. "file_magic "*)
  7309. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7310. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7311. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7312. $EGREP "$file_magic_regex" > /dev/null; then
  7313. :
  7314. else
  7315. cat <<_LT_EOF 1>&2
  7316. *** Warning: the command libtool uses to detect shared libraries,
  7317. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7318. *** The result is that libtool may fail to recognize shared libraries
  7319. *** as such. This will affect the creation of libtool libraries that
  7320. *** depend on shared libraries, but programs linked with such libtool
  7321. *** libraries will work regardless of this problem. Nevertheless, you
  7322. *** may want to report the problem to your system manager and/or to
  7323. *** bug-libtool@gnu.org
  7324. _LT_EOF
  7325. fi ;;
  7326. esac
  7327. fi
  7328. break
  7329. fi
  7330. done
  7331. IFS="$lt_save_ifs"
  7332. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7333. ;;
  7334. esac
  7335. fi
  7336. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7337. if test -n "$MAGIC_CMD"; then
  7338. { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  7339. $as_echo "$MAGIC_CMD" >&6; }
  7340. else
  7341. { $as_echo "$as_me:$LINENO: result: no" >&5
  7342. $as_echo "no" >&6; }
  7343. fi
  7344. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7345. if test -n "$ac_tool_prefix"; then
  7346. { $as_echo "$as_me:$LINENO: checking for file" >&5
  7347. $as_echo_n "checking for file... " >&6; }
  7348. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  7349. $as_echo_n "(cached) " >&6
  7350. else
  7351. case $MAGIC_CMD in
  7352. [\\/*] | ?:[\\/]*)
  7353. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7354. ;;
  7355. *)
  7356. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7357. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7358. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7359. for ac_dir in $ac_dummy; do
  7360. IFS="$lt_save_ifs"
  7361. test -z "$ac_dir" && ac_dir=.
  7362. if test -f $ac_dir/file; then
  7363. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7364. if test -n "$file_magic_test_file"; then
  7365. case $deplibs_check_method in
  7366. "file_magic "*)
  7367. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7368. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7369. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7370. $EGREP "$file_magic_regex" > /dev/null; then
  7371. :
  7372. else
  7373. cat <<_LT_EOF 1>&2
  7374. *** Warning: the command libtool uses to detect shared libraries,
  7375. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7376. *** The result is that libtool may fail to recognize shared libraries
  7377. *** as such. This will affect the creation of libtool libraries that
  7378. *** depend on shared libraries, but programs linked with such libtool
  7379. *** libraries will work regardless of this problem. Nevertheless, you
  7380. *** may want to report the problem to your system manager and/or to
  7381. *** bug-libtool@gnu.org
  7382. _LT_EOF
  7383. fi ;;
  7384. esac
  7385. fi
  7386. break
  7387. fi
  7388. done
  7389. IFS="$lt_save_ifs"
  7390. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7391. ;;
  7392. esac
  7393. fi
  7394. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7395. if test -n "$MAGIC_CMD"; then
  7396. { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  7397. $as_echo "$MAGIC_CMD" >&6; }
  7398. else
  7399. { $as_echo "$as_me:$LINENO: result: no" >&5
  7400. $as_echo "no" >&6; }
  7401. fi
  7402. else
  7403. MAGIC_CMD=:
  7404. fi
  7405. fi
  7406. fi
  7407. ;;
  7408. esac
  7409. # Use C for the default configuration in the libtool script
  7410. lt_save_CC="$CC"
  7411. ac_ext=c
  7412. ac_cpp='$CPP $CPPFLAGS'
  7413. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7414. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7415. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7416. # Source file extension for C test sources.
  7417. ac_ext=c
  7418. # Object file extension for compiled C test sources.
  7419. objext=o
  7420. objext=$objext
  7421. # Code to be used in simple compile tests
  7422. lt_simple_compile_test_code="int some_variable = 0;"
  7423. # Code to be used in simple link tests
  7424. lt_simple_link_test_code='int main(){return(0);}'
  7425. # If no C compiler was specified, use CC.
  7426. LTCC=${LTCC-"$CC"}
  7427. # If no C compiler flags were specified, use CFLAGS.
  7428. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7429. # Allow CC to be a program name with arguments.
  7430. compiler=$CC
  7431. # Save the default compiler, since it gets overwritten when the other
  7432. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7433. compiler_DEFAULT=$CC
  7434. # save warnings/boilerplate of simple test code
  7435. ac_outfile=conftest.$ac_objext
  7436. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7437. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7438. _lt_compiler_boilerplate=`cat conftest.err`
  7439. $RM conftest*
  7440. ac_outfile=conftest.$ac_objext
  7441. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7442. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7443. _lt_linker_boilerplate=`cat conftest.err`
  7444. $RM -r conftest*
  7445. if test -n "$compiler"; then
  7446. lt_prog_compiler_no_builtin_flag=
  7447. if test "$GCC" = yes; then
  7448. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  7449. { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7450. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7451. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  7452. $as_echo_n "(cached) " >&6
  7453. else
  7454. lt_cv_prog_compiler_rtti_exceptions=no
  7455. ac_outfile=conftest.$ac_objext
  7456. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7457. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7458. # Insert the option either (1) after the last *FLAGS variable, or
  7459. # (2) before a word containing "conftest.", or (3) at the end.
  7460. # Note that $ac_compile itself does not contain backslashes and begins
  7461. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7462. # The option is referenced via a variable to avoid confusing sed.
  7463. lt_compile=`echo "$ac_compile" | $SED \
  7464. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7465. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7466. -e 's:$: $lt_compiler_flag:'`
  7467. (eval echo "\"\$as_me:8616: $lt_compile\"" >&5)
  7468. (eval "$lt_compile" 2>conftest.err)
  7469. ac_status=$?
  7470. cat conftest.err >&5
  7471. echo "$as_me:8620: \$? = $ac_status" >&5
  7472. if (exit $ac_status) && test -s "$ac_outfile"; then
  7473. # The compiler can only warn and ignore the option if not recognized
  7474. # So say no if there are warnings other than the usual output.
  7475. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  7476. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7477. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7478. lt_cv_prog_compiler_rtti_exceptions=yes
  7479. fi
  7480. fi
  7481. $RM conftest*
  7482. fi
  7483. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7484. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7485. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7486. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7487. else
  7488. :
  7489. fi
  7490. fi
  7491. lt_prog_compiler_wl=
  7492. lt_prog_compiler_pic=
  7493. lt_prog_compiler_static=
  7494. { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  7495. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7496. if test "$GCC" = yes; then
  7497. lt_prog_compiler_wl='-Wl,'
  7498. lt_prog_compiler_static='-static'
  7499. case $host_os in
  7500. aix*)
  7501. # All AIX code is PIC.
  7502. if test "$host_cpu" = ia64; then
  7503. # AIX 5 now supports IA64 processor
  7504. lt_prog_compiler_static='-Bstatic'
  7505. fi
  7506. ;;
  7507. amigaos*)
  7508. case $host_cpu in
  7509. powerpc)
  7510. # see comment about AmigaOS4 .so support
  7511. lt_prog_compiler_pic='-fPIC'
  7512. ;;
  7513. m68k)
  7514. # FIXME: we need at least 68020 code to build shared libraries, but
  7515. # adding the `-m68020' flag to GCC prevents building anything better,
  7516. # like `-m68040'.
  7517. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7518. ;;
  7519. esac
  7520. ;;
  7521. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7522. # PIC is the default for these OSes.
  7523. ;;
  7524. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7525. # This hack is so that the source file can tell whether it is being
  7526. # built for inclusion in a dll (and should export symbols for example).
  7527. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7528. # (--disable-auto-import) libraries
  7529. lt_prog_compiler_pic='-DDLL_EXPORT'
  7530. ;;
  7531. darwin* | rhapsody*)
  7532. # PIC is the default on this platform
  7533. # Common symbols not allowed in MH_DYLIB files
  7534. lt_prog_compiler_pic='-fno-common'
  7535. ;;
  7536. hpux*)
  7537. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7538. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7539. # sets the default TLS model and affects inlining.
  7540. case $host_cpu in
  7541. hppa*64*)
  7542. # +Z the default
  7543. ;;
  7544. *)
  7545. lt_prog_compiler_pic='-fPIC'
  7546. ;;
  7547. esac
  7548. ;;
  7549. interix[3-9]*)
  7550. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7551. # Instead, we relocate shared libraries at runtime.
  7552. ;;
  7553. msdosdjgpp*)
  7554. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7555. # on systems that don't support them.
  7556. lt_prog_compiler_can_build_shared=no
  7557. enable_shared=no
  7558. ;;
  7559. *nto* | *qnx*)
  7560. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7561. # it will coredump.
  7562. lt_prog_compiler_pic='-fPIC -shared'
  7563. ;;
  7564. sysv4*MP*)
  7565. if test -d /usr/nec; then
  7566. lt_prog_compiler_pic=-Kconform_pic
  7567. fi
  7568. ;;
  7569. *)
  7570. lt_prog_compiler_pic='-fPIC'
  7571. ;;
  7572. esac
  7573. else
  7574. # PORTME Check for flag to pass linker flags through the system compiler.
  7575. case $host_os in
  7576. aix*)
  7577. lt_prog_compiler_wl='-Wl,'
  7578. if test "$host_cpu" = ia64; then
  7579. # AIX 5 now supports IA64 processor
  7580. lt_prog_compiler_static='-Bstatic'
  7581. else
  7582. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7583. fi
  7584. ;;
  7585. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7586. # This hack is so that the source file can tell whether it is being
  7587. # built for inclusion in a dll (and should export symbols for example).
  7588. lt_prog_compiler_pic='-DDLL_EXPORT'
  7589. ;;
  7590. hpux9* | hpux10* | hpux11*)
  7591. lt_prog_compiler_wl='-Wl,'
  7592. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7593. # not for PA HP-UX.
  7594. case $host_cpu in
  7595. hppa*64*|ia64*)
  7596. # +Z the default
  7597. ;;
  7598. *)
  7599. lt_prog_compiler_pic='+Z'
  7600. ;;
  7601. esac
  7602. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7603. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7604. ;;
  7605. irix5* | irix6* | nonstopux*)
  7606. lt_prog_compiler_wl='-Wl,'
  7607. # PIC (with -KPIC) is the default.
  7608. lt_prog_compiler_static='-non_shared'
  7609. ;;
  7610. linux* | k*bsd*-gnu)
  7611. case $cc_basename in
  7612. # old Intel for x86_64 which still supported -KPIC.
  7613. ecc*)
  7614. lt_prog_compiler_wl='-Wl,'
  7615. lt_prog_compiler_pic='-KPIC'
  7616. lt_prog_compiler_static='-static'
  7617. ;;
  7618. # icc used to be incompatible with GCC.
  7619. # ICC 10 doesn't accept -KPIC any more.
  7620. icc* | ifort*)
  7621. lt_prog_compiler_wl='-Wl,'
  7622. lt_prog_compiler_pic='-fPIC'
  7623. lt_prog_compiler_static='-static'
  7624. ;;
  7625. # Lahey Fortran 8.1.
  7626. lf95*)
  7627. lt_prog_compiler_wl='-Wl,'
  7628. lt_prog_compiler_pic='--shared'
  7629. lt_prog_compiler_static='--static'
  7630. ;;
  7631. pgcc* | pgf77* | pgf90* | pgf95*)
  7632. # Portland Group compilers (*not* the Pentium gcc compiler,
  7633. # which looks to be a dead project)
  7634. lt_prog_compiler_wl='-Wl,'
  7635. lt_prog_compiler_pic='-fpic'
  7636. lt_prog_compiler_static='-Bstatic'
  7637. ;;
  7638. ccc*)
  7639. lt_prog_compiler_wl='-Wl,'
  7640. # All Alpha code is PIC.
  7641. lt_prog_compiler_static='-non_shared'
  7642. ;;
  7643. xl*)
  7644. # IBM XL C 8.0/Fortran 10.1 on PPC
  7645. lt_prog_compiler_wl='-Wl,'
  7646. lt_prog_compiler_pic='-qpic'
  7647. lt_prog_compiler_static='-qstaticlink'
  7648. ;;
  7649. *)
  7650. case `$CC -V 2>&1 | sed 5q` in
  7651. *Sun\ C*)
  7652. # Sun C 5.9
  7653. lt_prog_compiler_pic='-KPIC'
  7654. lt_prog_compiler_static='-Bstatic'
  7655. lt_prog_compiler_wl='-Wl,'
  7656. ;;
  7657. *Sun\ F*)
  7658. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7659. lt_prog_compiler_pic='-KPIC'
  7660. lt_prog_compiler_static='-Bstatic'
  7661. lt_prog_compiler_wl=''
  7662. ;;
  7663. esac
  7664. ;;
  7665. esac
  7666. ;;
  7667. newsos6)
  7668. lt_prog_compiler_pic='-KPIC'
  7669. lt_prog_compiler_static='-Bstatic'
  7670. ;;
  7671. *nto* | *qnx*)
  7672. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7673. # it will coredump.
  7674. lt_prog_compiler_pic='-fPIC -shared'
  7675. ;;
  7676. osf3* | osf4* | osf5*)
  7677. lt_prog_compiler_wl='-Wl,'
  7678. # All OSF/1 code is PIC.
  7679. lt_prog_compiler_static='-non_shared'
  7680. ;;
  7681. rdos*)
  7682. lt_prog_compiler_static='-non_shared'
  7683. ;;
  7684. solaris*)
  7685. lt_prog_compiler_pic='-KPIC'
  7686. lt_prog_compiler_static='-Bstatic'
  7687. case $cc_basename in
  7688. f77* | f90* | f95*)
  7689. lt_prog_compiler_wl='-Qoption ld ';;
  7690. *)
  7691. lt_prog_compiler_wl='-Wl,';;
  7692. esac
  7693. ;;
  7694. sunos4*)
  7695. lt_prog_compiler_wl='-Qoption ld '
  7696. lt_prog_compiler_pic='-PIC'
  7697. lt_prog_compiler_static='-Bstatic'
  7698. ;;
  7699. sysv4 | sysv4.2uw2* | sysv4.3*)
  7700. lt_prog_compiler_wl='-Wl,'
  7701. lt_prog_compiler_pic='-KPIC'
  7702. lt_prog_compiler_static='-Bstatic'
  7703. ;;
  7704. sysv4*MP*)
  7705. if test -d /usr/nec ;then
  7706. lt_prog_compiler_pic='-Kconform_pic'
  7707. lt_prog_compiler_static='-Bstatic'
  7708. fi
  7709. ;;
  7710. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7711. lt_prog_compiler_wl='-Wl,'
  7712. lt_prog_compiler_pic='-KPIC'
  7713. lt_prog_compiler_static='-Bstatic'
  7714. ;;
  7715. unicos*)
  7716. lt_prog_compiler_wl='-Wl,'
  7717. lt_prog_compiler_can_build_shared=no
  7718. ;;
  7719. uts4*)
  7720. lt_prog_compiler_pic='-pic'
  7721. lt_prog_compiler_static='-Bstatic'
  7722. ;;
  7723. *)
  7724. lt_prog_compiler_can_build_shared=no
  7725. ;;
  7726. esac
  7727. fi
  7728. case $host_os in
  7729. # For platforms which do not support PIC, -DPIC is meaningless:
  7730. *djgpp*)
  7731. lt_prog_compiler_pic=
  7732. ;;
  7733. *)
  7734. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7735. ;;
  7736. esac
  7737. { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  7738. $as_echo "$lt_prog_compiler_pic" >&6; }
  7739. #
  7740. # Check to make sure the PIC flag actually works.
  7741. #
  7742. if test -n "$lt_prog_compiler_pic"; then
  7743. { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7744. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7745. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
  7746. $as_echo_n "(cached) " >&6
  7747. else
  7748. lt_cv_prog_compiler_pic_works=no
  7749. ac_outfile=conftest.$ac_objext
  7750. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7751. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7752. # Insert the option either (1) after the last *FLAGS variable, or
  7753. # (2) before a word containing "conftest.", or (3) at the end.
  7754. # Note that $ac_compile itself does not contain backslashes and begins
  7755. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7756. # The option is referenced via a variable to avoid confusing sed.
  7757. lt_compile=`echo "$ac_compile" | $SED \
  7758. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7759. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7760. -e 's:$: $lt_compiler_flag:'`
  7761. (eval echo "\"\$as_me:8955: $lt_compile\"" >&5)
  7762. (eval "$lt_compile" 2>conftest.err)
  7763. ac_status=$?
  7764. cat conftest.err >&5
  7765. echo "$as_me:8959: \$? = $ac_status" >&5
  7766. if (exit $ac_status) && test -s "$ac_outfile"; then
  7767. # The compiler can only warn and ignore the option if not recognized
  7768. # So say no if there are warnings other than the usual output.
  7769. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  7770. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7771. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7772. lt_cv_prog_compiler_pic_works=yes
  7773. fi
  7774. fi
  7775. $RM conftest*
  7776. fi
  7777. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
  7778. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7779. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7780. case $lt_prog_compiler_pic in
  7781. "" | " "*) ;;
  7782. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7783. esac
  7784. else
  7785. lt_prog_compiler_pic=
  7786. lt_prog_compiler_can_build_shared=no
  7787. fi
  7788. fi
  7789. #
  7790. # Check to make sure the static flag actually works.
  7791. #
  7792. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7793. { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7794. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7795. if test "${lt_cv_prog_compiler_static_works+set}" = set; then
  7796. $as_echo_n "(cached) " >&6
  7797. else
  7798. lt_cv_prog_compiler_static_works=no
  7799. save_LDFLAGS="$LDFLAGS"
  7800. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7801. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7802. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7803. # The linker can only warn and ignore the option if not recognized
  7804. # So say no if there are warnings
  7805. if test -s conftest.err; then
  7806. # Append any errors to the config.log.
  7807. cat conftest.err 1>&5
  7808. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  7809. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7810. if diff conftest.exp conftest.er2 >/dev/null; then
  7811. lt_cv_prog_compiler_static_works=yes
  7812. fi
  7813. else
  7814. lt_cv_prog_compiler_static_works=yes
  7815. fi
  7816. fi
  7817. $RM -r conftest*
  7818. LDFLAGS="$save_LDFLAGS"
  7819. fi
  7820. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
  7821. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7822. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7823. :
  7824. else
  7825. lt_prog_compiler_static=
  7826. fi
  7827. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  7828. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7829. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  7830. $as_echo_n "(cached) " >&6
  7831. else
  7832. lt_cv_prog_compiler_c_o=no
  7833. $RM -r conftest 2>/dev/null
  7834. mkdir conftest
  7835. cd conftest
  7836. mkdir out
  7837. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7838. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7839. # Insert the option either (1) after the last *FLAGS variable, or
  7840. # (2) before a word containing "conftest.", or (3) at the end.
  7841. # Note that $ac_compile itself does not contain backslashes and begins
  7842. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7843. lt_compile=`echo "$ac_compile" | $SED \
  7844. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7845. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7846. -e 's:$: $lt_compiler_flag:'`
  7847. (eval echo "\"\$as_me:9060: $lt_compile\"" >&5)
  7848. (eval "$lt_compile" 2>out/conftest.err)
  7849. ac_status=$?
  7850. cat out/conftest.err >&5
  7851. echo "$as_me:9064: \$? = $ac_status" >&5
  7852. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7853. then
  7854. # The compiler can only warn and ignore the option if not recognized
  7855. # So say no if there are warnings
  7856. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7857. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7858. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7859. lt_cv_prog_compiler_c_o=yes
  7860. fi
  7861. fi
  7862. chmod u+w . 2>&5
  7863. $RM conftest*
  7864. # SGI C++ compiler will create directory out/ii_files/ for
  7865. # template instantiation
  7866. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7867. $RM out/* && rmdir out
  7868. cd ..
  7869. $RM -r conftest
  7870. $RM conftest*
  7871. fi
  7872. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  7873. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7874. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  7875. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7876. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  7877. $as_echo_n "(cached) " >&6
  7878. else
  7879. lt_cv_prog_compiler_c_o=no
  7880. $RM -r conftest 2>/dev/null
  7881. mkdir conftest
  7882. cd conftest
  7883. mkdir out
  7884. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7885. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7886. # Insert the option either (1) after the last *FLAGS variable, or
  7887. # (2) before a word containing "conftest.", or (3) at the end.
  7888. # Note that $ac_compile itself does not contain backslashes and begins
  7889. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7890. lt_compile=`echo "$ac_compile" | $SED \
  7891. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7892. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7893. -e 's:$: $lt_compiler_flag:'`
  7894. (eval echo "\"\$as_me:9115: $lt_compile\"" >&5)
  7895. (eval "$lt_compile" 2>out/conftest.err)
  7896. ac_status=$?
  7897. cat out/conftest.err >&5
  7898. echo "$as_me:9119: \$? = $ac_status" >&5
  7899. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7900. then
  7901. # The compiler can only warn and ignore the option if not recognized
  7902. # So say no if there are warnings
  7903. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7904. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7905. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7906. lt_cv_prog_compiler_c_o=yes
  7907. fi
  7908. fi
  7909. chmod u+w . 2>&5
  7910. $RM conftest*
  7911. # SGI C++ compiler will create directory out/ii_files/ for
  7912. # template instantiation
  7913. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7914. $RM out/* && rmdir out
  7915. cd ..
  7916. $RM -r conftest
  7917. $RM conftest*
  7918. fi
  7919. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  7920. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7921. hard_links="nottested"
  7922. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7923. # do not overwrite the value of need_locks provided by the user
  7924. { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  7925. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7926. hard_links=yes
  7927. $RM conftest*
  7928. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7929. touch conftest.a
  7930. ln conftest.a conftest.b 2>&5 || hard_links=no
  7931. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7932. { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
  7933. $as_echo "$hard_links" >&6; }
  7934. if test "$hard_links" = no; then
  7935. { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7936. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7937. need_locks=warn
  7938. fi
  7939. else
  7940. need_locks=no
  7941. fi
  7942. { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7943. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7944. runpath_var=
  7945. allow_undefined_flag=
  7946. always_export_symbols=no
  7947. archive_cmds=
  7948. archive_expsym_cmds=
  7949. compiler_needs_object=no
  7950. enable_shared_with_static_runtimes=no
  7951. export_dynamic_flag_spec=
  7952. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7953. hardcode_automatic=no
  7954. hardcode_direct=no
  7955. hardcode_direct_absolute=no
  7956. hardcode_libdir_flag_spec=
  7957. hardcode_libdir_flag_spec_ld=
  7958. hardcode_libdir_separator=
  7959. hardcode_minus_L=no
  7960. hardcode_shlibpath_var=unsupported
  7961. inherit_rpath=no
  7962. link_all_deplibs=unknown
  7963. module_cmds=
  7964. module_expsym_cmds=
  7965. old_archive_from_new_cmds=
  7966. old_archive_from_expsyms_cmds=
  7967. thread_safe_flag_spec=
  7968. whole_archive_flag_spec=
  7969. # include_expsyms should be a list of space-separated symbols to be *always*
  7970. # included in the symbol list
  7971. include_expsyms=
  7972. # exclude_expsyms can be an extended regexp of symbols to exclude
  7973. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7974. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7975. # as well as any symbol that contains `d'.
  7976. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7977. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7978. # platforms (ab)use it in PIC code, but their linkers get confused if
  7979. # the symbol is explicitly referenced. Since portable code cannot
  7980. # rely on this symbol name, it's probably fine to never include it in
  7981. # preloaded symbol tables.
  7982. # Exclude shared library initialization/finalization symbols.
  7983. extract_expsyms_cmds=
  7984. case $host_os in
  7985. cygwin* | mingw* | pw32* | cegcc*)
  7986. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7987. # When not using gcc, we currently assume that we are using
  7988. # Microsoft Visual C++.
  7989. if test "$GCC" != yes; then
  7990. with_gnu_ld=no
  7991. fi
  7992. ;;
  7993. interix*)
  7994. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7995. with_gnu_ld=yes
  7996. ;;
  7997. openbsd*)
  7998. with_gnu_ld=no
  7999. ;;
  8000. esac
  8001. ld_shlibs=yes
  8002. if test "$with_gnu_ld" = yes; then
  8003. # If archive_cmds runs LD, not CC, wlarc should be empty
  8004. wlarc='${wl}'
  8005. # Set some defaults for GNU ld with shared library support. These
  8006. # are reset later if shared libraries are not supported. Putting them
  8007. # here allows them to be overridden if necessary.
  8008. runpath_var=LD_RUN_PATH
  8009. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8010. export_dynamic_flag_spec='${wl}--export-dynamic'
  8011. # ancient GNU ld didn't support --whole-archive et. al.
  8012. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8013. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8014. else
  8015. whole_archive_flag_spec=
  8016. fi
  8017. supports_anon_versioning=no
  8018. case `$LD -v 2>&1` in
  8019. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8020. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8021. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8022. *\ 2.11.*) ;; # other 2.11 versions
  8023. *) supports_anon_versioning=yes ;;
  8024. esac
  8025. # See if GNU ld supports shared libraries.
  8026. case $host_os in
  8027. aix[3-9]*)
  8028. # On AIX/PPC, the GNU linker is very broken
  8029. if test "$host_cpu" != ia64; then
  8030. ld_shlibs=no
  8031. cat <<_LT_EOF 1>&2
  8032. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  8033. *** to be unable to reliably create shared libraries on AIX.
  8034. *** Therefore, libtool is disabling shared libraries support. If you
  8035. *** really care for shared libraries, you may want to modify your PATH
  8036. *** so that a non-GNU linker is found, and then restart.
  8037. _LT_EOF
  8038. fi
  8039. ;;
  8040. amigaos*)
  8041. case $host_cpu in
  8042. powerpc)
  8043. # see comment about AmigaOS4 .so support
  8044. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8045. archive_expsym_cmds=''
  8046. ;;
  8047. m68k)
  8048. 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)'
  8049. hardcode_libdir_flag_spec='-L$libdir'
  8050. hardcode_minus_L=yes
  8051. ;;
  8052. esac
  8053. ;;
  8054. beos*)
  8055. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8056. allow_undefined_flag=unsupported
  8057. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8058. # support --undefined. This deserves some investigation. FIXME
  8059. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8060. else
  8061. ld_shlibs=no
  8062. fi
  8063. ;;
  8064. cygwin* | mingw* | pw32* | cegcc*)
  8065. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8066. # as there is no search path for DLLs.
  8067. hardcode_libdir_flag_spec='-L$libdir'
  8068. allow_undefined_flag=unsupported
  8069. always_export_symbols=no
  8070. enable_shared_with_static_runtimes=yes
  8071. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8072. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8073. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8074. # If the export-symbols file already is a .def file (1st line
  8075. # is EXPORTS), use it as is; otherwise, prepend...
  8076. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8077. cp $export_symbols $output_objdir/$soname.def;
  8078. else
  8079. echo EXPORTS > $output_objdir/$soname.def;
  8080. cat $export_symbols >> $output_objdir/$soname.def;
  8081. fi~
  8082. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8083. else
  8084. ld_shlibs=no
  8085. fi
  8086. ;;
  8087. interix[3-9]*)
  8088. hardcode_direct=no
  8089. hardcode_shlibpath_var=no
  8090. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8091. export_dynamic_flag_spec='${wl}-E'
  8092. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8093. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8094. # default) and relocated if they conflict, which is a slow very memory
  8095. # consuming and fragmenting process. To avoid this, we pick a random,
  8096. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8097. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8098. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8099. 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'
  8100. ;;
  8101. gnu* | linux* | tpf* | k*bsd*-gnu)
  8102. tmp_diet=no
  8103. if test "$host_os" = linux-dietlibc; then
  8104. case $cc_basename in
  8105. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8106. esac
  8107. fi
  8108. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8109. && test "$tmp_diet" = no
  8110. then
  8111. tmp_addflag=
  8112. tmp_sharedflag='-shared'
  8113. case $cc_basename,$host_cpu in
  8114. pgcc*) # Portland Group C compiler
  8115. 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'
  8116. tmp_addflag=' $pic_flag'
  8117. ;;
  8118. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  8119. 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'
  8120. tmp_addflag=' $pic_flag -Mnomain' ;;
  8121. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8122. tmp_addflag=' -i_dynamic' ;;
  8123. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8124. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8125. ifc* | ifort*) # Intel Fortran compiler
  8126. tmp_addflag=' -nofor_main' ;;
  8127. lf95*) # Lahey Fortran 8.1
  8128. whole_archive_flag_spec=
  8129. tmp_sharedflag='--shared' ;;
  8130. xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8131. tmp_sharedflag='-qmkshrobj'
  8132. tmp_addflag= ;;
  8133. esac
  8134. case `$CC -V 2>&1 | sed 5q` in
  8135. *Sun\ C*) # Sun C 5.9
  8136. 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'
  8137. compiler_needs_object=yes
  8138. tmp_sharedflag='-G' ;;
  8139. *Sun\ F*) # Sun Fortran 8.3
  8140. tmp_sharedflag='-G' ;;
  8141. esac
  8142. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8143. if test "x$supports_anon_versioning" = xyes; then
  8144. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8145. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8146. echo "local: *; };" >> $output_objdir/$libname.ver~
  8147. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8148. fi
  8149. case $cc_basename in
  8150. xlf*)
  8151. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8152. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8153. hardcode_libdir_flag_spec=
  8154. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  8155. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  8156. if test "x$supports_anon_versioning" = xyes; then
  8157. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8158. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8159. echo "local: *; };" >> $output_objdir/$libname.ver~
  8160. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8161. fi
  8162. ;;
  8163. esac
  8164. else
  8165. ld_shlibs=no
  8166. fi
  8167. ;;
  8168. netbsd*)
  8169. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8170. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8171. wlarc=
  8172. else
  8173. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8174. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8175. fi
  8176. ;;
  8177. solaris*)
  8178. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8179. ld_shlibs=no
  8180. cat <<_LT_EOF 1>&2
  8181. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8182. *** create shared libraries on Solaris systems. Therefore, libtool
  8183. *** is disabling shared libraries support. We urge you to upgrade GNU
  8184. *** binutils to release 2.9.1 or newer. Another option is to modify
  8185. *** your PATH or compiler configuration so that the native linker is
  8186. *** used, and then restart.
  8187. _LT_EOF
  8188. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8189. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8190. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8191. else
  8192. ld_shlibs=no
  8193. fi
  8194. ;;
  8195. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8196. case `$LD -v 2>&1` in
  8197. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8198. ld_shlibs=no
  8199. cat <<_LT_EOF 1>&2
  8200. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8201. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8202. *** is disabling shared libraries support. We urge you to upgrade GNU
  8203. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8204. *** your PATH or compiler configuration so that the native linker is
  8205. *** used, and then restart.
  8206. _LT_EOF
  8207. ;;
  8208. *)
  8209. # For security reasons, it is highly recommended that you always
  8210. # use absolute paths for naming shared libraries, and exclude the
  8211. # DT_RUNPATH tag from executables and libraries. But doing so
  8212. # requires that you compile everything twice, which is a pain.
  8213. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8214. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8215. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8216. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8217. else
  8218. ld_shlibs=no
  8219. fi
  8220. ;;
  8221. esac
  8222. ;;
  8223. sunos4*)
  8224. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8225. wlarc=
  8226. hardcode_direct=yes
  8227. hardcode_shlibpath_var=no
  8228. ;;
  8229. *)
  8230. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8231. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8232. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8233. else
  8234. ld_shlibs=no
  8235. fi
  8236. ;;
  8237. esac
  8238. if test "$ld_shlibs" = no; then
  8239. runpath_var=
  8240. hardcode_libdir_flag_spec=
  8241. export_dynamic_flag_spec=
  8242. whole_archive_flag_spec=
  8243. fi
  8244. else
  8245. # PORTME fill in a description of your system's linker (not GNU ld)
  8246. case $host_os in
  8247. aix3*)
  8248. allow_undefined_flag=unsupported
  8249. always_export_symbols=yes
  8250. 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'
  8251. # Note: this linker hardcodes the directories in LIBPATH if there
  8252. # are no directories specified by -L.
  8253. hardcode_minus_L=yes
  8254. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8255. # Neither direct hardcoding nor static linking is supported with a
  8256. # broken collect2.
  8257. hardcode_direct=unsupported
  8258. fi
  8259. ;;
  8260. aix[4-9]*)
  8261. if test "$host_cpu" = ia64; then
  8262. # On IA64, the linker does run time linking by default, so we don't
  8263. # have to do anything special.
  8264. aix_use_runtimelinking=no
  8265. exp_sym_flag='-Bexport'
  8266. no_entry_flag=""
  8267. else
  8268. # If we're using GNU nm, then we don't want the "-C" option.
  8269. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8270. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8271. 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'
  8272. else
  8273. 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'
  8274. fi
  8275. aix_use_runtimelinking=no
  8276. # Test if we are trying to use run time linking or normal
  8277. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8278. # need to do runtime linking.
  8279. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8280. for ld_flag in $LDFLAGS; do
  8281. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8282. aix_use_runtimelinking=yes
  8283. break
  8284. fi
  8285. done
  8286. ;;
  8287. esac
  8288. exp_sym_flag='-bexport'
  8289. no_entry_flag='-bnoentry'
  8290. fi
  8291. # When large executables or shared objects are built, AIX ld can
  8292. # have problems creating the table of contents. If linking a library
  8293. # or program results in "error TOC overflow" add -mminimal-toc to
  8294. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8295. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8296. archive_cmds=''
  8297. hardcode_direct=yes
  8298. hardcode_direct_absolute=yes
  8299. hardcode_libdir_separator=':'
  8300. link_all_deplibs=yes
  8301. file_list_spec='${wl}-f,'
  8302. if test "$GCC" = yes; then
  8303. case $host_os in aix4.[012]|aix4.[012].*)
  8304. # We only want to do this on AIX 4.2 and lower, the check
  8305. # below for broken collect2 doesn't work under 4.3+
  8306. collect2name=`${CC} -print-prog-name=collect2`
  8307. if test -f "$collect2name" &&
  8308. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8309. then
  8310. # We have reworked collect2
  8311. :
  8312. else
  8313. # We have old collect2
  8314. hardcode_direct=unsupported
  8315. # It fails to find uninstalled libraries when the uninstalled
  8316. # path is not listed in the libpath. Setting hardcode_minus_L
  8317. # to unsupported forces relinking
  8318. hardcode_minus_L=yes
  8319. hardcode_libdir_flag_spec='-L$libdir'
  8320. hardcode_libdir_separator=
  8321. fi
  8322. ;;
  8323. esac
  8324. shared_flag='-shared'
  8325. if test "$aix_use_runtimelinking" = yes; then
  8326. shared_flag="$shared_flag "'${wl}-G'
  8327. fi
  8328. else
  8329. # not using gcc
  8330. if test "$host_cpu" = ia64; then
  8331. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8332. # chokes on -Wl,-G. The following line is correct:
  8333. shared_flag='-G'
  8334. else
  8335. if test "$aix_use_runtimelinking" = yes; then
  8336. shared_flag='${wl}-G'
  8337. else
  8338. shared_flag='${wl}-bM:SRE'
  8339. fi
  8340. fi
  8341. fi
  8342. export_dynamic_flag_spec='${wl}-bexpall'
  8343. # It seems that -bexpall does not export symbols beginning with
  8344. # underscore (_), so it is better to generate a list of symbols to export.
  8345. always_export_symbols=yes
  8346. if test "$aix_use_runtimelinking" = yes; then
  8347. # Warning - without using the other runtime loading flags (-brtl),
  8348. # -berok will link without error, but may produce a broken library.
  8349. allow_undefined_flag='-berok'
  8350. # Determine the default libpath from the value encoded in an
  8351. # empty executable.
  8352. cat >conftest.$ac_ext <<_ACEOF
  8353. /* confdefs.h. */
  8354. _ACEOF
  8355. cat confdefs.h >>conftest.$ac_ext
  8356. cat >>conftest.$ac_ext <<_ACEOF
  8357. /* end confdefs.h. */
  8358. int
  8359. main ()
  8360. {
  8361. ;
  8362. return 0;
  8363. }
  8364. _ACEOF
  8365. rm -f conftest.$ac_objext conftest$ac_exeext
  8366. if { (ac_try="$ac_link"
  8367. case "(($ac_try" in
  8368. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8369. *) ac_try_echo=$ac_try;;
  8370. esac
  8371. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8372. $as_echo "$ac_try_echo") >&5
  8373. (eval "$ac_link") 2>conftest.er1
  8374. ac_status=$?
  8375. grep -v '^ *+' conftest.er1 >conftest.err
  8376. rm -f conftest.er1
  8377. cat conftest.err >&5
  8378. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8379. (exit $ac_status); } && {
  8380. test -z "$ac_c_werror_flag" ||
  8381. test ! -s conftest.err
  8382. } && test -s conftest$ac_exeext && {
  8383. test "$cross_compiling" = yes ||
  8384. $as_test_x conftest$ac_exeext
  8385. }; then
  8386. lt_aix_libpath_sed='
  8387. /Import File Strings/,/^$/ {
  8388. /^0/ {
  8389. s/^0 *\(.*\)$/\1/
  8390. p
  8391. }
  8392. }'
  8393. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8394. # Check for a 64-bit object if we didn't find anything.
  8395. if test -z "$aix_libpath"; then
  8396. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8397. fi
  8398. else
  8399. $as_echo "$as_me: failed program was:" >&5
  8400. sed 's/^/| /' conftest.$ac_ext >&5
  8401. fi
  8402. rm -rf conftest.dSYM
  8403. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8404. conftest$ac_exeext conftest.$ac_ext
  8405. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8406. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8407. 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"
  8408. else
  8409. if test "$host_cpu" = ia64; then
  8410. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8411. allow_undefined_flag="-z nodefs"
  8412. 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"
  8413. else
  8414. # Determine the default libpath from the value encoded in an
  8415. # empty executable.
  8416. cat >conftest.$ac_ext <<_ACEOF
  8417. /* confdefs.h. */
  8418. _ACEOF
  8419. cat confdefs.h >>conftest.$ac_ext
  8420. cat >>conftest.$ac_ext <<_ACEOF
  8421. /* end confdefs.h. */
  8422. int
  8423. main ()
  8424. {
  8425. ;
  8426. return 0;
  8427. }
  8428. _ACEOF
  8429. rm -f conftest.$ac_objext conftest$ac_exeext
  8430. if { (ac_try="$ac_link"
  8431. case "(($ac_try" in
  8432. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8433. *) ac_try_echo=$ac_try;;
  8434. esac
  8435. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8436. $as_echo "$ac_try_echo") >&5
  8437. (eval "$ac_link") 2>conftest.er1
  8438. ac_status=$?
  8439. grep -v '^ *+' conftest.er1 >conftest.err
  8440. rm -f conftest.er1
  8441. cat conftest.err >&5
  8442. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8443. (exit $ac_status); } && {
  8444. test -z "$ac_c_werror_flag" ||
  8445. test ! -s conftest.err
  8446. } && test -s conftest$ac_exeext && {
  8447. test "$cross_compiling" = yes ||
  8448. $as_test_x conftest$ac_exeext
  8449. }; then
  8450. lt_aix_libpath_sed='
  8451. /Import File Strings/,/^$/ {
  8452. /^0/ {
  8453. s/^0 *\(.*\)$/\1/
  8454. p
  8455. }
  8456. }'
  8457. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8458. # Check for a 64-bit object if we didn't find anything.
  8459. if test -z "$aix_libpath"; then
  8460. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8461. fi
  8462. else
  8463. $as_echo "$as_me: failed program was:" >&5
  8464. sed 's/^/| /' conftest.$ac_ext >&5
  8465. fi
  8466. rm -rf conftest.dSYM
  8467. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8468. conftest$ac_exeext conftest.$ac_ext
  8469. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8470. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8471. # Warning - without using the other run time loading flags,
  8472. # -berok will link without error, but may produce a broken library.
  8473. no_undefined_flag=' ${wl}-bernotok'
  8474. allow_undefined_flag=' ${wl}-berok'
  8475. # Exported symbols can be pulled into shared objects from archives
  8476. whole_archive_flag_spec='$convenience'
  8477. archive_cmds_need_lc=yes
  8478. # This is similar to how AIX traditionally builds its shared libraries.
  8479. 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'
  8480. fi
  8481. fi
  8482. ;;
  8483. amigaos*)
  8484. case $host_cpu in
  8485. powerpc)
  8486. # see comment about AmigaOS4 .so support
  8487. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8488. archive_expsym_cmds=''
  8489. ;;
  8490. m68k)
  8491. 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)'
  8492. hardcode_libdir_flag_spec='-L$libdir'
  8493. hardcode_minus_L=yes
  8494. ;;
  8495. esac
  8496. ;;
  8497. bsdi[45]*)
  8498. export_dynamic_flag_spec=-rdynamic
  8499. ;;
  8500. cygwin* | mingw* | pw32* | cegcc*)
  8501. # When not using gcc, we currently assume that we are using
  8502. # Microsoft Visual C++.
  8503. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8504. # no search path for DLLs.
  8505. hardcode_libdir_flag_spec=' '
  8506. allow_undefined_flag=unsupported
  8507. # Tell ltmain to make .lib files, not .a files.
  8508. libext=lib
  8509. # Tell ltmain to make .dll files, not .so files.
  8510. shrext_cmds=".dll"
  8511. # FIXME: Setting linknames here is a bad hack.
  8512. archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  8513. # The linker will automatically build a .lib file if we build a DLL.
  8514. old_archive_from_new_cmds='true'
  8515. # FIXME: Should let the user specify the lib program.
  8516. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8517. fix_srcfile_path='`cygpath -w "$srcfile"`'
  8518. enable_shared_with_static_runtimes=yes
  8519. ;;
  8520. darwin* | rhapsody*)
  8521. archive_cmds_need_lc=no
  8522. hardcode_direct=no
  8523. hardcode_automatic=yes
  8524. hardcode_shlibpath_var=unsupported
  8525. whole_archive_flag_spec=''
  8526. link_all_deplibs=yes
  8527. allow_undefined_flag="$_lt_dar_allow_undefined"
  8528. case $cc_basename in
  8529. ifort*) _lt_dar_can_shared=yes ;;
  8530. *) _lt_dar_can_shared=$GCC ;;
  8531. esac
  8532. if test "$_lt_dar_can_shared" = "yes"; then
  8533. output_verbose_link_cmd=echo
  8534. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8535. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8536. 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}"
  8537. 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}"
  8538. else
  8539. ld_shlibs=no
  8540. fi
  8541. ;;
  8542. dgux*)
  8543. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8544. hardcode_libdir_flag_spec='-L$libdir'
  8545. hardcode_shlibpath_var=no
  8546. ;;
  8547. freebsd1*)
  8548. ld_shlibs=no
  8549. ;;
  8550. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8551. # support. Future versions do this automatically, but an explicit c++rt0.o
  8552. # does not break anything, and helps significantly (at the cost of a little
  8553. # extra space).
  8554. freebsd2.2*)
  8555. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8556. hardcode_libdir_flag_spec='-R$libdir'
  8557. hardcode_direct=yes
  8558. hardcode_shlibpath_var=no
  8559. ;;
  8560. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8561. freebsd2*)
  8562. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8563. hardcode_direct=yes
  8564. hardcode_minus_L=yes
  8565. hardcode_shlibpath_var=no
  8566. ;;
  8567. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8568. freebsd* | dragonfly*)
  8569. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8570. hardcode_libdir_flag_spec='-R$libdir'
  8571. hardcode_direct=yes
  8572. hardcode_shlibpath_var=no
  8573. ;;
  8574. hpux9*)
  8575. if test "$GCC" = yes; then
  8576. 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'
  8577. else
  8578. 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'
  8579. fi
  8580. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8581. hardcode_libdir_separator=:
  8582. hardcode_direct=yes
  8583. # hardcode_minus_L: Not really in the search PATH,
  8584. # but as the default location of the library.
  8585. hardcode_minus_L=yes
  8586. export_dynamic_flag_spec='${wl}-E'
  8587. ;;
  8588. hpux10*)
  8589. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8590. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8591. else
  8592. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8593. fi
  8594. if test "$with_gnu_ld" = no; then
  8595. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8596. hardcode_libdir_flag_spec_ld='+b $libdir'
  8597. hardcode_libdir_separator=:
  8598. hardcode_direct=yes
  8599. hardcode_direct_absolute=yes
  8600. export_dynamic_flag_spec='${wl}-E'
  8601. # hardcode_minus_L: Not really in the search PATH,
  8602. # but as the default location of the library.
  8603. hardcode_minus_L=yes
  8604. fi
  8605. ;;
  8606. hpux11*)
  8607. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8608. case $host_cpu in
  8609. hppa*64*)
  8610. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8611. ;;
  8612. ia64*)
  8613. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8614. ;;
  8615. *)
  8616. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8617. ;;
  8618. esac
  8619. else
  8620. case $host_cpu in
  8621. hppa*64*)
  8622. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8623. ;;
  8624. ia64*)
  8625. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8626. ;;
  8627. *)
  8628. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8629. ;;
  8630. esac
  8631. fi
  8632. if test "$with_gnu_ld" = no; then
  8633. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8634. hardcode_libdir_separator=:
  8635. case $host_cpu in
  8636. hppa*64*|ia64*)
  8637. hardcode_direct=no
  8638. hardcode_shlibpath_var=no
  8639. ;;
  8640. *)
  8641. hardcode_direct=yes
  8642. hardcode_direct_absolute=yes
  8643. export_dynamic_flag_spec='${wl}-E'
  8644. # hardcode_minus_L: Not really in the search PATH,
  8645. # but as the default location of the library.
  8646. hardcode_minus_L=yes
  8647. ;;
  8648. esac
  8649. fi
  8650. ;;
  8651. irix5* | irix6* | nonstopux*)
  8652. if test "$GCC" = yes; then
  8653. 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'
  8654. # Try to use the -exported_symbol ld option, if it does not
  8655. # work, assume that -exports_file does not work either and
  8656. # implicitly export all symbols.
  8657. save_LDFLAGS="$LDFLAGS"
  8658. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8659. cat >conftest.$ac_ext <<_ACEOF
  8660. int foo(void) {}
  8661. _ACEOF
  8662. rm -f conftest.$ac_objext conftest$ac_exeext
  8663. if { (ac_try="$ac_link"
  8664. case "(($ac_try" in
  8665. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8666. *) ac_try_echo=$ac_try;;
  8667. esac
  8668. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8669. $as_echo "$ac_try_echo") >&5
  8670. (eval "$ac_link") 2>conftest.er1
  8671. ac_status=$?
  8672. grep -v '^ *+' conftest.er1 >conftest.err
  8673. rm -f conftest.er1
  8674. cat conftest.err >&5
  8675. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8676. (exit $ac_status); } && {
  8677. test -z "$ac_c_werror_flag" ||
  8678. test ! -s conftest.err
  8679. } && test -s conftest$ac_exeext && {
  8680. test "$cross_compiling" = yes ||
  8681. $as_test_x conftest$ac_exeext
  8682. }; then
  8683. 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'
  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. else
  8693. 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'
  8694. 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'
  8695. fi
  8696. archive_cmds_need_lc='no'
  8697. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8698. hardcode_libdir_separator=:
  8699. inherit_rpath=yes
  8700. link_all_deplibs=yes
  8701. ;;
  8702. netbsd*)
  8703. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8704. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8705. else
  8706. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8707. fi
  8708. hardcode_libdir_flag_spec='-R$libdir'
  8709. hardcode_direct=yes
  8710. hardcode_shlibpath_var=no
  8711. ;;
  8712. newsos6)
  8713. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8714. hardcode_direct=yes
  8715. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8716. hardcode_libdir_separator=:
  8717. hardcode_shlibpath_var=no
  8718. ;;
  8719. *nto* | *qnx*)
  8720. ;;
  8721. openbsd*)
  8722. if test -f /usr/libexec/ld.so; then
  8723. hardcode_direct=yes
  8724. hardcode_shlibpath_var=no
  8725. hardcode_direct_absolute=yes
  8726. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8727. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8728. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8729. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8730. export_dynamic_flag_spec='${wl}-E'
  8731. else
  8732. case $host_os in
  8733. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8734. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8735. hardcode_libdir_flag_spec='-R$libdir'
  8736. ;;
  8737. *)
  8738. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8739. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8740. ;;
  8741. esac
  8742. fi
  8743. else
  8744. ld_shlibs=no
  8745. fi
  8746. ;;
  8747. os2*)
  8748. hardcode_libdir_flag_spec='-L$libdir'
  8749. hardcode_minus_L=yes
  8750. allow_undefined_flag=unsupported
  8751. 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'
  8752. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8753. ;;
  8754. osf3*)
  8755. if test "$GCC" = yes; then
  8756. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8757. 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'
  8758. else
  8759. allow_undefined_flag=' -expect_unresolved \*'
  8760. 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'
  8761. fi
  8762. archive_cmds_need_lc='no'
  8763. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8764. hardcode_libdir_separator=:
  8765. ;;
  8766. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8767. if test "$GCC" = yes; then
  8768. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8769. 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'
  8770. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8771. else
  8772. allow_undefined_flag=' -expect_unresolved \*'
  8773. 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'
  8774. 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~
  8775. $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'
  8776. # Both c and cxx compiler support -rpath directly
  8777. hardcode_libdir_flag_spec='-rpath $libdir'
  8778. fi
  8779. archive_cmds_need_lc='no'
  8780. hardcode_libdir_separator=:
  8781. ;;
  8782. solaris*)
  8783. no_undefined_flag=' -z defs'
  8784. if test "$GCC" = yes; then
  8785. wlarc='${wl}'
  8786. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8787. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8788. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8789. else
  8790. case `$CC -V 2>&1` in
  8791. *"Compilers 5.0"*)
  8792. wlarc=''
  8793. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8794. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8795. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8796. ;;
  8797. *)
  8798. wlarc='${wl}'
  8799. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8800. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8801. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8802. ;;
  8803. esac
  8804. fi
  8805. hardcode_libdir_flag_spec='-R$libdir'
  8806. hardcode_shlibpath_var=no
  8807. case $host_os in
  8808. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8809. *)
  8810. # The compiler driver will combine and reorder linker options,
  8811. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8812. # but is careful enough not to reorder.
  8813. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8814. if test "$GCC" = yes; then
  8815. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8816. else
  8817. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8818. fi
  8819. ;;
  8820. esac
  8821. link_all_deplibs=yes
  8822. ;;
  8823. sunos4*)
  8824. if test "x$host_vendor" = xsequent; then
  8825. # Use $CC to link under sequent, because it throws in some extra .o
  8826. # files that make .init and .fini sections work.
  8827. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8828. else
  8829. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8830. fi
  8831. hardcode_libdir_flag_spec='-L$libdir'
  8832. hardcode_direct=yes
  8833. hardcode_minus_L=yes
  8834. hardcode_shlibpath_var=no
  8835. ;;
  8836. sysv4)
  8837. case $host_vendor in
  8838. sni)
  8839. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8840. hardcode_direct=yes # is this really true???
  8841. ;;
  8842. siemens)
  8843. ## LD is ld it makes a PLAMLIB
  8844. ## CC just makes a GrossModule.
  8845. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8846. reload_cmds='$CC -r -o $output$reload_objs'
  8847. hardcode_direct=no
  8848. ;;
  8849. motorola)
  8850. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8851. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8852. ;;
  8853. esac
  8854. runpath_var='LD_RUN_PATH'
  8855. hardcode_shlibpath_var=no
  8856. ;;
  8857. sysv4.3*)
  8858. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8859. hardcode_shlibpath_var=no
  8860. export_dynamic_flag_spec='-Bexport'
  8861. ;;
  8862. sysv4*MP*)
  8863. if test -d /usr/nec; then
  8864. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8865. hardcode_shlibpath_var=no
  8866. runpath_var=LD_RUN_PATH
  8867. hardcode_runpath_var=yes
  8868. ld_shlibs=yes
  8869. fi
  8870. ;;
  8871. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8872. no_undefined_flag='${wl}-z,text'
  8873. archive_cmds_need_lc=no
  8874. hardcode_shlibpath_var=no
  8875. runpath_var='LD_RUN_PATH'
  8876. if test "$GCC" = yes; then
  8877. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8878. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8879. else
  8880. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8881. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8882. fi
  8883. ;;
  8884. sysv5* | sco3.2v5* | sco5v6*)
  8885. # Note: We can NOT use -z defs as we might desire, because we do not
  8886. # link with -lc, and that would cause any symbols used from libc to
  8887. # always be unresolved, which means just about no library would
  8888. # ever link correctly. If we're not using GNU ld we use -z text
  8889. # though, which does catch some bad symbols but isn't as heavy-handed
  8890. # as -z defs.
  8891. no_undefined_flag='${wl}-z,text'
  8892. allow_undefined_flag='${wl}-z,nodefs'
  8893. archive_cmds_need_lc=no
  8894. hardcode_shlibpath_var=no
  8895. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8896. hardcode_libdir_separator=':'
  8897. link_all_deplibs=yes
  8898. export_dynamic_flag_spec='${wl}-Bexport'
  8899. runpath_var='LD_RUN_PATH'
  8900. if test "$GCC" = yes; then
  8901. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8902. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8903. else
  8904. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8905. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8906. fi
  8907. ;;
  8908. uts4*)
  8909. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8910. hardcode_libdir_flag_spec='-L$libdir'
  8911. hardcode_shlibpath_var=no
  8912. ;;
  8913. *)
  8914. ld_shlibs=no
  8915. ;;
  8916. esac
  8917. if test x$host_vendor = xsni; then
  8918. case $host in
  8919. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8920. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8921. ;;
  8922. esac
  8923. fi
  8924. fi
  8925. { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  8926. $as_echo "$ld_shlibs" >&6; }
  8927. test "$ld_shlibs" = no && can_build_shared=no
  8928. with_gnu_ld=$with_gnu_ld
  8929. #
  8930. # Do we need to explicitly link libc?
  8931. #
  8932. case "x$archive_cmds_need_lc" in
  8933. x|xyes)
  8934. # Assume -lc should be added
  8935. archive_cmds_need_lc=yes
  8936. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8937. case $archive_cmds in
  8938. *'~'*)
  8939. # FIXME: we may have to deal with multi-command sequences.
  8940. ;;
  8941. '$CC '*)
  8942. # Test whether the compiler implicitly links with -lc since on some
  8943. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8944. # to ld, don't add -lc before -lgcc.
  8945. { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  8946. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8947. $RM conftest*
  8948. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8949. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8950. (eval $ac_compile) 2>&5
  8951. ac_status=$?
  8952. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8953. (exit $ac_status); } 2>conftest.err; then
  8954. soname=conftest
  8955. lib=conftest
  8956. libobjs=conftest.$ac_objext
  8957. deplibs=
  8958. wl=$lt_prog_compiler_wl
  8959. pic_flag=$lt_prog_compiler_pic
  8960. compiler_flags=-v
  8961. linker_flags=-v
  8962. verstring=
  8963. output_objdir=.
  8964. libname=conftest
  8965. lt_save_allow_undefined_flag=$allow_undefined_flag
  8966. allow_undefined_flag=
  8967. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
  8968. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8969. ac_status=$?
  8970. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8971. (exit $ac_status); }
  8972. then
  8973. archive_cmds_need_lc=no
  8974. else
  8975. archive_cmds_need_lc=yes
  8976. fi
  8977. allow_undefined_flag=$lt_save_allow_undefined_flag
  8978. else
  8979. cat conftest.err 1>&5
  8980. fi
  8981. $RM conftest*
  8982. { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  8983. $as_echo "$archive_cmds_need_lc" >&6; }
  8984. ;;
  8985. esac
  8986. fi
  8987. ;;
  8988. esac
  8989. { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  8990. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8991. if test "$GCC" = yes; then
  8992. case $host_os in
  8993. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8994. *) lt_awk_arg="/^libraries:/" ;;
  8995. esac
  8996. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8997. if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  8998. # if the path contains ";" then we assume it to be the separator
  8999. # otherwise default to the standard path separator (i.e. ":") - it is
  9000. # assumed that no part of a normal pathname contains ";" but that should
  9001. # okay in the real world where ";" in dirpaths is itself problematic.
  9002. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  9003. else
  9004. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9005. fi
  9006. # Ok, now we have the path, separated by spaces, we can step through it
  9007. # and add multilib dir if necessary.
  9008. lt_tmp_lt_search_path_spec=
  9009. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9010. for lt_sys_path in $lt_search_path_spec; do
  9011. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9012. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9013. else
  9014. test -d "$lt_sys_path" && \
  9015. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9016. fi
  9017. done
  9018. lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  9019. BEGIN {RS=" "; FS="/|\n";} {
  9020. lt_foo="";
  9021. lt_count=0;
  9022. for (lt_i = NF; lt_i > 0; lt_i--) {
  9023. if ($lt_i != "" && $lt_i != ".") {
  9024. if ($lt_i == "..") {
  9025. lt_count++;
  9026. } else {
  9027. if (lt_count == 0) {
  9028. lt_foo="/" $lt_i lt_foo;
  9029. } else {
  9030. lt_count--;
  9031. }
  9032. }
  9033. }
  9034. }
  9035. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9036. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9037. }'`
  9038. sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  9039. else
  9040. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9041. fi
  9042. library_names_spec=
  9043. libname_spec='lib$name'
  9044. soname_spec=
  9045. shrext_cmds=".so"
  9046. postinstall_cmds=
  9047. postuninstall_cmds=
  9048. finish_cmds=
  9049. finish_eval=
  9050. shlibpath_var=
  9051. shlibpath_overrides_runpath=unknown
  9052. version_type=none
  9053. dynamic_linker="$host_os ld.so"
  9054. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9055. need_lib_prefix=unknown
  9056. hardcode_into_libs=no
  9057. # when you set need_version to no, make sure it does not cause -set_version
  9058. # flags to be left without arguments
  9059. need_version=unknown
  9060. case $host_os in
  9061. aix3*)
  9062. version_type=linux
  9063. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9064. shlibpath_var=LIBPATH
  9065. # AIX 3 has no versioning support, so we append a major version to the name.
  9066. soname_spec='${libname}${release}${shared_ext}$major'
  9067. ;;
  9068. aix[4-9]*)
  9069. version_type=linux
  9070. need_lib_prefix=no
  9071. need_version=no
  9072. hardcode_into_libs=yes
  9073. if test "$host_cpu" = ia64; then
  9074. # AIX 5 supports IA64
  9075. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9076. shlibpath_var=LD_LIBRARY_PATH
  9077. else
  9078. # With GCC up to 2.95.x, collect2 would create an import file
  9079. # for dependence libraries. The import file would start with
  9080. # the line `#! .'. This would cause the generated library to
  9081. # depend on `.', always an invalid library. This was fixed in
  9082. # development snapshots of GCC prior to 3.0.
  9083. case $host_os in
  9084. aix4 | aix4.[01] | aix4.[01].*)
  9085. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9086. echo ' yes '
  9087. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9088. :
  9089. else
  9090. can_build_shared=no
  9091. fi
  9092. ;;
  9093. esac
  9094. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9095. # soname into executable. Probably we can add versioning support to
  9096. # collect2, so additional links can be useful in future.
  9097. if test "$aix_use_runtimelinking" = yes; then
  9098. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9099. # instead of lib<name>.a to let people know that these are not
  9100. # typical AIX shared libraries.
  9101. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9102. else
  9103. # We preserve .a as extension for shared libraries through AIX4.2
  9104. # and later when we are not doing run time linking.
  9105. library_names_spec='${libname}${release}.a $libname.a'
  9106. soname_spec='${libname}${release}${shared_ext}$major'
  9107. fi
  9108. shlibpath_var=LIBPATH
  9109. fi
  9110. ;;
  9111. amigaos*)
  9112. case $host_cpu in
  9113. powerpc)
  9114. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9115. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9116. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9117. ;;
  9118. m68k)
  9119. library_names_spec='$libname.ixlibrary $libname.a'
  9120. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9121. 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'
  9122. ;;
  9123. esac
  9124. ;;
  9125. beos*)
  9126. library_names_spec='${libname}${shared_ext}'
  9127. dynamic_linker="$host_os ld.so"
  9128. shlibpath_var=LIBRARY_PATH
  9129. ;;
  9130. bsdi[45]*)
  9131. version_type=linux
  9132. need_version=no
  9133. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9134. soname_spec='${libname}${release}${shared_ext}$major'
  9135. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9136. shlibpath_var=LD_LIBRARY_PATH
  9137. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9138. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9139. # the default ld.so.conf also contains /usr/contrib/lib and
  9140. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9141. # libtool to hard-code these into programs
  9142. ;;
  9143. cygwin* | mingw* | pw32* | cegcc*)
  9144. version_type=windows
  9145. shrext_cmds=".dll"
  9146. need_version=no
  9147. need_lib_prefix=no
  9148. case $GCC,$host_os in
  9149. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  9150. library_names_spec='$libname.dll.a'
  9151. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9152. postinstall_cmds='base_file=`basename \${file}`~
  9153. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9154. dldir=$destdir/`dirname \$dlpath`~
  9155. test -d \$dldir || mkdir -p \$dldir~
  9156. $install_prog $dir/$dlname \$dldir/$dlname~
  9157. chmod a+x \$dldir/$dlname~
  9158. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9159. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9160. fi'
  9161. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9162. dlpath=$dir/\$dldll~
  9163. $RM \$dlpath'
  9164. shlibpath_overrides_runpath=yes
  9165. case $host_os in
  9166. cygwin*)
  9167. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9168. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9169. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  9170. ;;
  9171. mingw* | cegcc*)
  9172. # MinGW DLLs use traditional 'lib' prefix
  9173. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9174. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  9175. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9176. # It is most probably a Windows format PATH printed by
  9177. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  9178. # path with ; separators, and with drive letters. We can handle the
  9179. # drive letters (cygwin fileutils understands them), so leave them,
  9180. # especially as we might pass files found there to a mingw objdump,
  9181. # which wouldn't understand a cygwinified path. Ahh.
  9182. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9183. else
  9184. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9185. fi
  9186. ;;
  9187. pw32*)
  9188. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9189. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9190. ;;
  9191. esac
  9192. ;;
  9193. *)
  9194. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9195. ;;
  9196. esac
  9197. dynamic_linker='Win32 ld.exe'
  9198. # FIXME: first we should search . and the directory the executable is in
  9199. shlibpath_var=PATH
  9200. ;;
  9201. darwin* | rhapsody*)
  9202. dynamic_linker="$host_os dyld"
  9203. version_type=darwin
  9204. need_lib_prefix=no
  9205. need_version=no
  9206. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9207. soname_spec='${libname}${release}${major}$shared_ext'
  9208. shlibpath_overrides_runpath=yes
  9209. shlibpath_var=DYLD_LIBRARY_PATH
  9210. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9211. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9212. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9213. ;;
  9214. dgux*)
  9215. version_type=linux
  9216. need_lib_prefix=no
  9217. need_version=no
  9218. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9219. soname_spec='${libname}${release}${shared_ext}$major'
  9220. shlibpath_var=LD_LIBRARY_PATH
  9221. ;;
  9222. freebsd1*)
  9223. dynamic_linker=no
  9224. ;;
  9225. freebsd* | dragonfly*)
  9226. # DragonFly does not have aout. When/if they implement a new
  9227. # versioning mechanism, adjust this.
  9228. if test -x /usr/bin/objformat; then
  9229. objformat=`/usr/bin/objformat`
  9230. else
  9231. case $host_os in
  9232. freebsd[123]*) objformat=aout ;;
  9233. *) objformat=elf ;;
  9234. esac
  9235. fi
  9236. version_type=freebsd-$objformat
  9237. case $version_type in
  9238. freebsd-elf*)
  9239. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9240. need_version=no
  9241. need_lib_prefix=no
  9242. ;;
  9243. freebsd-*)
  9244. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9245. need_version=yes
  9246. ;;
  9247. esac
  9248. shlibpath_var=LD_LIBRARY_PATH
  9249. case $host_os in
  9250. freebsd2*)
  9251. shlibpath_overrides_runpath=yes
  9252. ;;
  9253. freebsd3.[01]* | freebsdelf3.[01]*)
  9254. shlibpath_overrides_runpath=yes
  9255. hardcode_into_libs=yes
  9256. ;;
  9257. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9258. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9259. shlibpath_overrides_runpath=no
  9260. hardcode_into_libs=yes
  9261. ;;
  9262. *) # from 4.6 on, and DragonFly
  9263. shlibpath_overrides_runpath=yes
  9264. hardcode_into_libs=yes
  9265. ;;
  9266. esac
  9267. ;;
  9268. gnu*)
  9269. version_type=linux
  9270. need_lib_prefix=no
  9271. need_version=no
  9272. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9273. soname_spec='${libname}${release}${shared_ext}$major'
  9274. shlibpath_var=LD_LIBRARY_PATH
  9275. hardcode_into_libs=yes
  9276. ;;
  9277. hpux9* | hpux10* | hpux11*)
  9278. # Give a soname corresponding to the major version so that dld.sl refuses to
  9279. # link against other versions.
  9280. version_type=sunos
  9281. need_lib_prefix=no
  9282. need_version=no
  9283. case $host_cpu in
  9284. ia64*)
  9285. shrext_cmds='.so'
  9286. hardcode_into_libs=yes
  9287. dynamic_linker="$host_os dld.so"
  9288. shlibpath_var=LD_LIBRARY_PATH
  9289. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9290. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9291. soname_spec='${libname}${release}${shared_ext}$major'
  9292. if test "X$HPUX_IA64_MODE" = X32; then
  9293. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9294. else
  9295. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9296. fi
  9297. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9298. ;;
  9299. hppa*64*)
  9300. shrext_cmds='.sl'
  9301. hardcode_into_libs=yes
  9302. dynamic_linker="$host_os dld.sl"
  9303. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9304. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9305. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9306. soname_spec='${libname}${release}${shared_ext}$major'
  9307. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9308. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9309. ;;
  9310. *)
  9311. shrext_cmds='.sl'
  9312. dynamic_linker="$host_os dld.sl"
  9313. shlibpath_var=SHLIB_PATH
  9314. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9315. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9316. soname_spec='${libname}${release}${shared_ext}$major'
  9317. ;;
  9318. esac
  9319. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  9320. postinstall_cmds='chmod 555 $lib'
  9321. ;;
  9322. interix[3-9]*)
  9323. version_type=linux
  9324. need_lib_prefix=no
  9325. need_version=no
  9326. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9327. soname_spec='${libname}${release}${shared_ext}$major'
  9328. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9329. shlibpath_var=LD_LIBRARY_PATH
  9330. shlibpath_overrides_runpath=no
  9331. hardcode_into_libs=yes
  9332. ;;
  9333. irix5* | irix6* | nonstopux*)
  9334. case $host_os in
  9335. nonstopux*) version_type=nonstopux ;;
  9336. *)
  9337. if test "$lt_cv_prog_gnu_ld" = yes; then
  9338. version_type=linux
  9339. else
  9340. version_type=irix
  9341. fi ;;
  9342. esac
  9343. need_lib_prefix=no
  9344. need_version=no
  9345. soname_spec='${libname}${release}${shared_ext}$major'
  9346. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9347. case $host_os in
  9348. irix5* | nonstopux*)
  9349. libsuff= shlibsuff=
  9350. ;;
  9351. *)
  9352. case $LD in # libtool.m4 will add one of these switches to LD
  9353. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9354. libsuff= shlibsuff= libmagic=32-bit;;
  9355. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9356. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9357. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9358. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9359. *) libsuff= shlibsuff= libmagic=never-match;;
  9360. esac
  9361. ;;
  9362. esac
  9363. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9364. shlibpath_overrides_runpath=no
  9365. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9366. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9367. hardcode_into_libs=yes
  9368. ;;
  9369. # No shared lib support for Linux oldld, aout, or coff.
  9370. linux*oldld* | linux*aout* | linux*coff*)
  9371. dynamic_linker=no
  9372. ;;
  9373. # This must be Linux ELF.
  9374. linux* | k*bsd*-gnu)
  9375. version_type=linux
  9376. need_lib_prefix=no
  9377. need_version=no
  9378. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9379. soname_spec='${libname}${release}${shared_ext}$major'
  9380. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9381. shlibpath_var=LD_LIBRARY_PATH
  9382. shlibpath_overrides_runpath=no
  9383. # Some binutils ld are patched to set DT_RUNPATH
  9384. save_LDFLAGS=$LDFLAGS
  9385. save_libdir=$libdir
  9386. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9387. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9388. cat >conftest.$ac_ext <<_ACEOF
  9389. /* confdefs.h. */
  9390. _ACEOF
  9391. cat confdefs.h >>conftest.$ac_ext
  9392. cat >>conftest.$ac_ext <<_ACEOF
  9393. /* end confdefs.h. */
  9394. int
  9395. main ()
  9396. {
  9397. ;
  9398. return 0;
  9399. }
  9400. _ACEOF
  9401. rm -f conftest.$ac_objext conftest$ac_exeext
  9402. if { (ac_try="$ac_link"
  9403. case "(($ac_try" in
  9404. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9405. *) ac_try_echo=$ac_try;;
  9406. esac
  9407. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9408. $as_echo "$ac_try_echo") >&5
  9409. (eval "$ac_link") 2>conftest.er1
  9410. ac_status=$?
  9411. grep -v '^ *+' conftest.er1 >conftest.err
  9412. rm -f conftest.er1
  9413. cat conftest.err >&5
  9414. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9415. (exit $ac_status); } && {
  9416. test -z "$ac_c_werror_flag" ||
  9417. test ! -s conftest.err
  9418. } && test -s conftest$ac_exeext && {
  9419. test "$cross_compiling" = yes ||
  9420. $as_test_x conftest$ac_exeext
  9421. }; then
  9422. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
  9423. shlibpath_overrides_runpath=yes
  9424. fi
  9425. else
  9426. $as_echo "$as_me: failed program was:" >&5
  9427. sed 's/^/| /' conftest.$ac_ext >&5
  9428. fi
  9429. rm -rf conftest.dSYM
  9430. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9431. conftest$ac_exeext conftest.$ac_ext
  9432. LDFLAGS=$save_LDFLAGS
  9433. libdir=$save_libdir
  9434. # This implies no fast_install, which is unacceptable.
  9435. # Some rework will be needed to allow for fast_install
  9436. # before this can be enabled.
  9437. hardcode_into_libs=yes
  9438. # Append ld.so.conf contents to the search path
  9439. if test -f /etc/ld.so.conf; then
  9440. 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' ' '`
  9441. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9442. fi
  9443. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9444. # powerpc, because MkLinux only supported shared libraries with the
  9445. # GNU dynamic linker. Since this was broken with cross compilers,
  9446. # most powerpc-linux boxes support dynamic linking these days and
  9447. # people can always --disable-shared, the test was removed, and we
  9448. # assume the GNU/Linux dynamic linker is in use.
  9449. dynamic_linker='GNU/Linux ld.so'
  9450. ;;
  9451. netbsd*)
  9452. version_type=sunos
  9453. need_lib_prefix=no
  9454. need_version=no
  9455. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9456. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9457. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9458. dynamic_linker='NetBSD (a.out) ld.so'
  9459. else
  9460. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9461. soname_spec='${libname}${release}${shared_ext}$major'
  9462. dynamic_linker='NetBSD ld.elf_so'
  9463. fi
  9464. shlibpath_var=LD_LIBRARY_PATH
  9465. shlibpath_overrides_runpath=yes
  9466. hardcode_into_libs=yes
  9467. ;;
  9468. newsos6)
  9469. version_type=linux
  9470. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9471. shlibpath_var=LD_LIBRARY_PATH
  9472. shlibpath_overrides_runpath=yes
  9473. ;;
  9474. *nto* | *qnx*)
  9475. version_type=qnx
  9476. need_lib_prefix=no
  9477. need_version=no
  9478. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9479. soname_spec='${libname}${release}${shared_ext}$major'
  9480. shlibpath_var=LD_LIBRARY_PATH
  9481. shlibpath_overrides_runpath=no
  9482. hardcode_into_libs=yes
  9483. dynamic_linker='ldqnx.so'
  9484. ;;
  9485. openbsd*)
  9486. version_type=sunos
  9487. sys_lib_dlsearch_path_spec="/usr/lib"
  9488. need_lib_prefix=no
  9489. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9490. case $host_os in
  9491. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9492. *) need_version=no ;;
  9493. esac
  9494. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9495. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9496. shlibpath_var=LD_LIBRARY_PATH
  9497. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9498. case $host_os in
  9499. openbsd2.[89] | openbsd2.[89].*)
  9500. shlibpath_overrides_runpath=no
  9501. ;;
  9502. *)
  9503. shlibpath_overrides_runpath=yes
  9504. ;;
  9505. esac
  9506. else
  9507. shlibpath_overrides_runpath=yes
  9508. fi
  9509. ;;
  9510. os2*)
  9511. libname_spec='$name'
  9512. shrext_cmds=".dll"
  9513. need_lib_prefix=no
  9514. library_names_spec='$libname${shared_ext} $libname.a'
  9515. dynamic_linker='OS/2 ld.exe'
  9516. shlibpath_var=LIBPATH
  9517. ;;
  9518. osf3* | osf4* | osf5*)
  9519. version_type=osf
  9520. need_lib_prefix=no
  9521. need_version=no
  9522. soname_spec='${libname}${release}${shared_ext}$major'
  9523. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9524. shlibpath_var=LD_LIBRARY_PATH
  9525. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9526. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9527. ;;
  9528. rdos*)
  9529. dynamic_linker=no
  9530. ;;
  9531. solaris*)
  9532. version_type=linux
  9533. need_lib_prefix=no
  9534. need_version=no
  9535. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9536. soname_spec='${libname}${release}${shared_ext}$major'
  9537. shlibpath_var=LD_LIBRARY_PATH
  9538. shlibpath_overrides_runpath=yes
  9539. hardcode_into_libs=yes
  9540. # ldd complains unless libraries are executable
  9541. postinstall_cmds='chmod +x $lib'
  9542. ;;
  9543. sunos4*)
  9544. version_type=sunos
  9545. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9546. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9547. shlibpath_var=LD_LIBRARY_PATH
  9548. shlibpath_overrides_runpath=yes
  9549. if test "$with_gnu_ld" = yes; then
  9550. need_lib_prefix=no
  9551. fi
  9552. need_version=yes
  9553. ;;
  9554. sysv4 | sysv4.3*)
  9555. version_type=linux
  9556. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9557. soname_spec='${libname}${release}${shared_ext}$major'
  9558. shlibpath_var=LD_LIBRARY_PATH
  9559. case $host_vendor in
  9560. sni)
  9561. shlibpath_overrides_runpath=no
  9562. need_lib_prefix=no
  9563. runpath_var=LD_RUN_PATH
  9564. ;;
  9565. siemens)
  9566. need_lib_prefix=no
  9567. ;;
  9568. motorola)
  9569. need_lib_prefix=no
  9570. need_version=no
  9571. shlibpath_overrides_runpath=no
  9572. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9573. ;;
  9574. esac
  9575. ;;
  9576. sysv4*MP*)
  9577. if test -d /usr/nec ;then
  9578. version_type=linux
  9579. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9580. soname_spec='$libname${shared_ext}.$major'
  9581. shlibpath_var=LD_LIBRARY_PATH
  9582. fi
  9583. ;;
  9584. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9585. version_type=freebsd-elf
  9586. need_lib_prefix=no
  9587. need_version=no
  9588. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9589. soname_spec='${libname}${release}${shared_ext}$major'
  9590. shlibpath_var=LD_LIBRARY_PATH
  9591. shlibpath_overrides_runpath=yes
  9592. hardcode_into_libs=yes
  9593. if test "$with_gnu_ld" = yes; then
  9594. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9595. else
  9596. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9597. case $host_os in
  9598. sco3.2v5*)
  9599. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9600. ;;
  9601. esac
  9602. fi
  9603. sys_lib_dlsearch_path_spec='/usr/lib'
  9604. ;;
  9605. tpf*)
  9606. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9607. version_type=linux
  9608. need_lib_prefix=no
  9609. need_version=no
  9610. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9611. shlibpath_var=LD_LIBRARY_PATH
  9612. shlibpath_overrides_runpath=no
  9613. hardcode_into_libs=yes
  9614. ;;
  9615. uts4*)
  9616. version_type=linux
  9617. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9618. soname_spec='${libname}${release}${shared_ext}$major'
  9619. shlibpath_var=LD_LIBRARY_PATH
  9620. ;;
  9621. *)
  9622. dynamic_linker=no
  9623. ;;
  9624. esac
  9625. { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  9626. $as_echo "$dynamic_linker" >&6; }
  9627. test "$dynamic_linker" = no && can_build_shared=no
  9628. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9629. if test "$GCC" = yes; then
  9630. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9631. fi
  9632. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9633. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9634. fi
  9635. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9636. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9637. fi
  9638. { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  9639. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9640. hardcode_action=
  9641. if test -n "$hardcode_libdir_flag_spec" ||
  9642. test -n "$runpath_var" ||
  9643. test "X$hardcode_automatic" = "Xyes" ; then
  9644. # We can hardcode non-existent directories.
  9645. if test "$hardcode_direct" != no &&
  9646. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9647. # have to relink, otherwise we might link with an installed library
  9648. # when we should be linking with a yet-to-be-installed one
  9649. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9650. test "$hardcode_minus_L" != no; then
  9651. # Linking always hardcodes the temporary library directory.
  9652. hardcode_action=relink
  9653. else
  9654. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9655. hardcode_action=immediate
  9656. fi
  9657. else
  9658. # We cannot hardcode anything, or else we can only hardcode existing
  9659. # directories.
  9660. hardcode_action=unsupported
  9661. fi
  9662. { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
  9663. $as_echo "$hardcode_action" >&6; }
  9664. if test "$hardcode_action" = relink ||
  9665. test "$inherit_rpath" = yes; then
  9666. # Fast installation is not supported
  9667. enable_fast_install=no
  9668. elif test "$shlibpath_overrides_runpath" = yes ||
  9669. test "$enable_shared" = no; then
  9670. # Fast installation is not necessary
  9671. enable_fast_install=needless
  9672. fi
  9673. if test "x$enable_dlopen" != xyes; then
  9674. enable_dlopen=unknown
  9675. enable_dlopen_self=unknown
  9676. enable_dlopen_self_static=unknown
  9677. else
  9678. lt_cv_dlopen=no
  9679. lt_cv_dlopen_libs=
  9680. case $host_os in
  9681. beos*)
  9682. lt_cv_dlopen="load_add_on"
  9683. lt_cv_dlopen_libs=
  9684. lt_cv_dlopen_self=yes
  9685. ;;
  9686. mingw* | pw32* | cegcc*)
  9687. lt_cv_dlopen="LoadLibrary"
  9688. lt_cv_dlopen_libs=
  9689. ;;
  9690. cygwin*)
  9691. lt_cv_dlopen="dlopen"
  9692. lt_cv_dlopen_libs=
  9693. ;;
  9694. darwin*)
  9695. # if libdl is installed we need to link against it
  9696. { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  9697. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9698. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  9699. $as_echo_n "(cached) " >&6
  9700. else
  9701. ac_check_lib_save_LIBS=$LIBS
  9702. LIBS="-ldl $LIBS"
  9703. cat >conftest.$ac_ext <<_ACEOF
  9704. /* confdefs.h. */
  9705. _ACEOF
  9706. cat confdefs.h >>conftest.$ac_ext
  9707. cat >>conftest.$ac_ext <<_ACEOF
  9708. /* end confdefs.h. */
  9709. /* Override any GCC internal prototype to avoid an error.
  9710. Use char because int might match the return type of a GCC
  9711. builtin and then its argument prototype would still apply. */
  9712. #ifdef __cplusplus
  9713. extern "C"
  9714. #endif
  9715. char dlopen ();
  9716. int
  9717. main ()
  9718. {
  9719. return dlopen ();
  9720. ;
  9721. return 0;
  9722. }
  9723. _ACEOF
  9724. rm -f conftest.$ac_objext conftest$ac_exeext
  9725. if { (ac_try="$ac_link"
  9726. case "(($ac_try" in
  9727. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9728. *) ac_try_echo=$ac_try;;
  9729. esac
  9730. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9731. $as_echo "$ac_try_echo") >&5
  9732. (eval "$ac_link") 2>conftest.er1
  9733. ac_status=$?
  9734. grep -v '^ *+' conftest.er1 >conftest.err
  9735. rm -f conftest.er1
  9736. cat conftest.err >&5
  9737. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9738. (exit $ac_status); } && {
  9739. test -z "$ac_c_werror_flag" ||
  9740. test ! -s conftest.err
  9741. } && test -s conftest$ac_exeext && {
  9742. test "$cross_compiling" = yes ||
  9743. $as_test_x conftest$ac_exeext
  9744. }; then
  9745. ac_cv_lib_dl_dlopen=yes
  9746. else
  9747. $as_echo "$as_me: failed program was:" >&5
  9748. sed 's/^/| /' conftest.$ac_ext >&5
  9749. ac_cv_lib_dl_dlopen=no
  9750. fi
  9751. rm -rf conftest.dSYM
  9752. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9753. conftest$ac_exeext conftest.$ac_ext
  9754. LIBS=$ac_check_lib_save_LIBS
  9755. fi
  9756. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  9757. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9758. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
  9759. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9760. else
  9761. lt_cv_dlopen="dyld"
  9762. lt_cv_dlopen_libs=
  9763. lt_cv_dlopen_self=yes
  9764. fi
  9765. ;;
  9766. *)
  9767. { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
  9768. $as_echo_n "checking for shl_load... " >&6; }
  9769. if test "${ac_cv_func_shl_load+set}" = set; then
  9770. $as_echo_n "(cached) " >&6
  9771. else
  9772. cat >conftest.$ac_ext <<_ACEOF
  9773. /* confdefs.h. */
  9774. _ACEOF
  9775. cat confdefs.h >>conftest.$ac_ext
  9776. cat >>conftest.$ac_ext <<_ACEOF
  9777. /* end confdefs.h. */
  9778. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  9779. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9780. #define shl_load innocuous_shl_load
  9781. /* System header to define __stub macros and hopefully few prototypes,
  9782. which can conflict with char shl_load (); below.
  9783. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9784. <limits.h> exists even on freestanding compilers. */
  9785. #ifdef __STDC__
  9786. # include <limits.h>
  9787. #else
  9788. # include <assert.h>
  9789. #endif
  9790. #undef shl_load
  9791. /* Override any GCC internal prototype to avoid an error.
  9792. Use char because int might match the return type of a GCC
  9793. builtin and then its argument prototype would still apply. */
  9794. #ifdef __cplusplus
  9795. extern "C"
  9796. #endif
  9797. char shl_load ();
  9798. /* The GNU C library defines this for functions which it implements
  9799. to always fail with ENOSYS. Some functions are actually named
  9800. something starting with __ and the normal name is an alias. */
  9801. #if defined __stub_shl_load || defined __stub___shl_load
  9802. choke me
  9803. #endif
  9804. int
  9805. main ()
  9806. {
  9807. return shl_load ();
  9808. ;
  9809. return 0;
  9810. }
  9811. _ACEOF
  9812. rm -f conftest.$ac_objext conftest$ac_exeext
  9813. if { (ac_try="$ac_link"
  9814. case "(($ac_try" in
  9815. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9816. *) ac_try_echo=$ac_try;;
  9817. esac
  9818. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9819. $as_echo "$ac_try_echo") >&5
  9820. (eval "$ac_link") 2>conftest.er1
  9821. ac_status=$?
  9822. grep -v '^ *+' conftest.er1 >conftest.err
  9823. rm -f conftest.er1
  9824. cat conftest.err >&5
  9825. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9826. (exit $ac_status); } && {
  9827. test -z "$ac_c_werror_flag" ||
  9828. test ! -s conftest.err
  9829. } && test -s conftest$ac_exeext && {
  9830. test "$cross_compiling" = yes ||
  9831. $as_test_x conftest$ac_exeext
  9832. }; then
  9833. ac_cv_func_shl_load=yes
  9834. else
  9835. $as_echo "$as_me: failed program was:" >&5
  9836. sed 's/^/| /' conftest.$ac_ext >&5
  9837. ac_cv_func_shl_load=no
  9838. fi
  9839. rm -rf conftest.dSYM
  9840. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9841. conftest$ac_exeext conftest.$ac_ext
  9842. fi
  9843. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  9844. $as_echo "$ac_cv_func_shl_load" >&6; }
  9845. if test "x$ac_cv_func_shl_load" = x""yes; then
  9846. lt_cv_dlopen="shl_load"
  9847. else
  9848. { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  9849. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9850. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  9851. $as_echo_n "(cached) " >&6
  9852. else
  9853. ac_check_lib_save_LIBS=$LIBS
  9854. LIBS="-ldld $LIBS"
  9855. cat >conftest.$ac_ext <<_ACEOF
  9856. /* confdefs.h. */
  9857. _ACEOF
  9858. cat confdefs.h >>conftest.$ac_ext
  9859. cat >>conftest.$ac_ext <<_ACEOF
  9860. /* end confdefs.h. */
  9861. /* Override any GCC internal prototype to avoid an error.
  9862. Use char because int might match the return type of a GCC
  9863. builtin and then its argument prototype would still apply. */
  9864. #ifdef __cplusplus
  9865. extern "C"
  9866. #endif
  9867. char shl_load ();
  9868. int
  9869. main ()
  9870. {
  9871. return shl_load ();
  9872. ;
  9873. return 0;
  9874. }
  9875. _ACEOF
  9876. rm -f conftest.$ac_objext conftest$ac_exeext
  9877. if { (ac_try="$ac_link"
  9878. case "(($ac_try" in
  9879. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9880. *) ac_try_echo=$ac_try;;
  9881. esac
  9882. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9883. $as_echo "$ac_try_echo") >&5
  9884. (eval "$ac_link") 2>conftest.er1
  9885. ac_status=$?
  9886. grep -v '^ *+' conftest.er1 >conftest.err
  9887. rm -f conftest.er1
  9888. cat conftest.err >&5
  9889. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9890. (exit $ac_status); } && {
  9891. test -z "$ac_c_werror_flag" ||
  9892. test ! -s conftest.err
  9893. } && test -s conftest$ac_exeext && {
  9894. test "$cross_compiling" = yes ||
  9895. $as_test_x conftest$ac_exeext
  9896. }; then
  9897. ac_cv_lib_dld_shl_load=yes
  9898. else
  9899. $as_echo "$as_me: failed program was:" >&5
  9900. sed 's/^/| /' conftest.$ac_ext >&5
  9901. ac_cv_lib_dld_shl_load=no
  9902. fi
  9903. rm -rf conftest.dSYM
  9904. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9905. conftest$ac_exeext conftest.$ac_ext
  9906. LIBS=$ac_check_lib_save_LIBS
  9907. fi
  9908. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  9909. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9910. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
  9911. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9912. else
  9913. { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
  9914. $as_echo_n "checking for dlopen... " >&6; }
  9915. if test "${ac_cv_func_dlopen+set}" = set; then
  9916. $as_echo_n "(cached) " >&6
  9917. else
  9918. cat >conftest.$ac_ext <<_ACEOF
  9919. /* confdefs.h. */
  9920. _ACEOF
  9921. cat confdefs.h >>conftest.$ac_ext
  9922. cat >>conftest.$ac_ext <<_ACEOF
  9923. /* end confdefs.h. */
  9924. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  9925. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9926. #define dlopen innocuous_dlopen
  9927. /* System header to define __stub macros and hopefully few prototypes,
  9928. which can conflict with char dlopen (); below.
  9929. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9930. <limits.h> exists even on freestanding compilers. */
  9931. #ifdef __STDC__
  9932. # include <limits.h>
  9933. #else
  9934. # include <assert.h>
  9935. #endif
  9936. #undef dlopen
  9937. /* Override any GCC internal prototype to avoid an error.
  9938. Use char because int might match the return type of a GCC
  9939. builtin and then its argument prototype would still apply. */
  9940. #ifdef __cplusplus
  9941. extern "C"
  9942. #endif
  9943. char dlopen ();
  9944. /* The GNU C library defines this for functions which it implements
  9945. to always fail with ENOSYS. Some functions are actually named
  9946. something starting with __ and the normal name is an alias. */
  9947. #if defined __stub_dlopen || defined __stub___dlopen
  9948. choke me
  9949. #endif
  9950. int
  9951. main ()
  9952. {
  9953. return dlopen ();
  9954. ;
  9955. return 0;
  9956. }
  9957. _ACEOF
  9958. rm -f conftest.$ac_objext conftest$ac_exeext
  9959. if { (ac_try="$ac_link"
  9960. case "(($ac_try" in
  9961. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9962. *) ac_try_echo=$ac_try;;
  9963. esac
  9964. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9965. $as_echo "$ac_try_echo") >&5
  9966. (eval "$ac_link") 2>conftest.er1
  9967. ac_status=$?
  9968. grep -v '^ *+' conftest.er1 >conftest.err
  9969. rm -f conftest.er1
  9970. cat conftest.err >&5
  9971. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9972. (exit $ac_status); } && {
  9973. test -z "$ac_c_werror_flag" ||
  9974. test ! -s conftest.err
  9975. } && test -s conftest$ac_exeext && {
  9976. test "$cross_compiling" = yes ||
  9977. $as_test_x conftest$ac_exeext
  9978. }; then
  9979. ac_cv_func_dlopen=yes
  9980. else
  9981. $as_echo "$as_me: failed program was:" >&5
  9982. sed 's/^/| /' conftest.$ac_ext >&5
  9983. ac_cv_func_dlopen=no
  9984. fi
  9985. rm -rf conftest.dSYM
  9986. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9987. conftest$ac_exeext conftest.$ac_ext
  9988. fi
  9989. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  9990. $as_echo "$ac_cv_func_dlopen" >&6; }
  9991. if test "x$ac_cv_func_dlopen" = x""yes; then
  9992. lt_cv_dlopen="dlopen"
  9993. else
  9994. { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  9995. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9996. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  9997. $as_echo_n "(cached) " >&6
  9998. else
  9999. ac_check_lib_save_LIBS=$LIBS
  10000. LIBS="-ldl $LIBS"
  10001. cat >conftest.$ac_ext <<_ACEOF
  10002. /* confdefs.h. */
  10003. _ACEOF
  10004. cat confdefs.h >>conftest.$ac_ext
  10005. cat >>conftest.$ac_ext <<_ACEOF
  10006. /* end confdefs.h. */
  10007. /* Override any GCC internal prototype to avoid an error.
  10008. Use char because int might match the return type of a GCC
  10009. builtin and then its argument prototype would still apply. */
  10010. #ifdef __cplusplus
  10011. extern "C"
  10012. #endif
  10013. char dlopen ();
  10014. int
  10015. main ()
  10016. {
  10017. return dlopen ();
  10018. ;
  10019. return 0;
  10020. }
  10021. _ACEOF
  10022. rm -f conftest.$ac_objext conftest$ac_exeext
  10023. if { (ac_try="$ac_link"
  10024. case "(($ac_try" in
  10025. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10026. *) ac_try_echo=$ac_try;;
  10027. esac
  10028. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10029. $as_echo "$ac_try_echo") >&5
  10030. (eval "$ac_link") 2>conftest.er1
  10031. ac_status=$?
  10032. grep -v '^ *+' conftest.er1 >conftest.err
  10033. rm -f conftest.er1
  10034. cat conftest.err >&5
  10035. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10036. (exit $ac_status); } && {
  10037. test -z "$ac_c_werror_flag" ||
  10038. test ! -s conftest.err
  10039. } && test -s conftest$ac_exeext && {
  10040. test "$cross_compiling" = yes ||
  10041. $as_test_x conftest$ac_exeext
  10042. }; then
  10043. ac_cv_lib_dl_dlopen=yes
  10044. else
  10045. $as_echo "$as_me: failed program was:" >&5
  10046. sed 's/^/| /' conftest.$ac_ext >&5
  10047. ac_cv_lib_dl_dlopen=no
  10048. fi
  10049. rm -rf conftest.dSYM
  10050. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10051. conftest$ac_exeext conftest.$ac_ext
  10052. LIBS=$ac_check_lib_save_LIBS
  10053. fi
  10054. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  10055. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10056. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
  10057. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10058. else
  10059. { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  10060. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10061. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  10062. $as_echo_n "(cached) " >&6
  10063. else
  10064. ac_check_lib_save_LIBS=$LIBS
  10065. LIBS="-lsvld $LIBS"
  10066. cat >conftest.$ac_ext <<_ACEOF
  10067. /* confdefs.h. */
  10068. _ACEOF
  10069. cat confdefs.h >>conftest.$ac_ext
  10070. cat >>conftest.$ac_ext <<_ACEOF
  10071. /* end confdefs.h. */
  10072. /* Override any GCC internal prototype to avoid an error.
  10073. Use char because int might match the return type of a GCC
  10074. builtin and then its argument prototype would still apply. */
  10075. #ifdef __cplusplus
  10076. extern "C"
  10077. #endif
  10078. char dlopen ();
  10079. int
  10080. main ()
  10081. {
  10082. return dlopen ();
  10083. ;
  10084. return 0;
  10085. }
  10086. _ACEOF
  10087. rm -f conftest.$ac_objext conftest$ac_exeext
  10088. if { (ac_try="$ac_link"
  10089. case "(($ac_try" in
  10090. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10091. *) ac_try_echo=$ac_try;;
  10092. esac
  10093. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10094. $as_echo "$ac_try_echo") >&5
  10095. (eval "$ac_link") 2>conftest.er1
  10096. ac_status=$?
  10097. grep -v '^ *+' conftest.er1 >conftest.err
  10098. rm -f conftest.er1
  10099. cat conftest.err >&5
  10100. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10101. (exit $ac_status); } && {
  10102. test -z "$ac_c_werror_flag" ||
  10103. test ! -s conftest.err
  10104. } && test -s conftest$ac_exeext && {
  10105. test "$cross_compiling" = yes ||
  10106. $as_test_x conftest$ac_exeext
  10107. }; then
  10108. ac_cv_lib_svld_dlopen=yes
  10109. else
  10110. $as_echo "$as_me: failed program was:" >&5
  10111. sed 's/^/| /' conftest.$ac_ext >&5
  10112. ac_cv_lib_svld_dlopen=no
  10113. fi
  10114. rm -rf conftest.dSYM
  10115. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10116. conftest$ac_exeext conftest.$ac_ext
  10117. LIBS=$ac_check_lib_save_LIBS
  10118. fi
  10119. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  10120. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10121. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
  10122. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10123. else
  10124. { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  10125. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10126. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  10127. $as_echo_n "(cached) " >&6
  10128. else
  10129. ac_check_lib_save_LIBS=$LIBS
  10130. LIBS="-ldld $LIBS"
  10131. cat >conftest.$ac_ext <<_ACEOF
  10132. /* confdefs.h. */
  10133. _ACEOF
  10134. cat confdefs.h >>conftest.$ac_ext
  10135. cat >>conftest.$ac_ext <<_ACEOF
  10136. /* end confdefs.h. */
  10137. /* Override any GCC internal prototype to avoid an error.
  10138. Use char because int might match the return type of a GCC
  10139. builtin and then its argument prototype would still apply. */
  10140. #ifdef __cplusplus
  10141. extern "C"
  10142. #endif
  10143. char dld_link ();
  10144. int
  10145. main ()
  10146. {
  10147. return dld_link ();
  10148. ;
  10149. return 0;
  10150. }
  10151. _ACEOF
  10152. rm -f conftest.$ac_objext conftest$ac_exeext
  10153. if { (ac_try="$ac_link"
  10154. case "(($ac_try" in
  10155. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10156. *) ac_try_echo=$ac_try;;
  10157. esac
  10158. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10159. $as_echo "$ac_try_echo") >&5
  10160. (eval "$ac_link") 2>conftest.er1
  10161. ac_status=$?
  10162. grep -v '^ *+' conftest.er1 >conftest.err
  10163. rm -f conftest.er1
  10164. cat conftest.err >&5
  10165. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10166. (exit $ac_status); } && {
  10167. test -z "$ac_c_werror_flag" ||
  10168. test ! -s conftest.err
  10169. } && test -s conftest$ac_exeext && {
  10170. test "$cross_compiling" = yes ||
  10171. $as_test_x conftest$ac_exeext
  10172. }; then
  10173. ac_cv_lib_dld_dld_link=yes
  10174. else
  10175. $as_echo "$as_me: failed program was:" >&5
  10176. sed 's/^/| /' conftest.$ac_ext >&5
  10177. ac_cv_lib_dld_dld_link=no
  10178. fi
  10179. rm -rf conftest.dSYM
  10180. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10181. conftest$ac_exeext conftest.$ac_ext
  10182. LIBS=$ac_check_lib_save_LIBS
  10183. fi
  10184. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  10185. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10186. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
  10187. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10188. fi
  10189. fi
  10190. fi
  10191. fi
  10192. fi
  10193. fi
  10194. ;;
  10195. esac
  10196. if test "x$lt_cv_dlopen" != xno; then
  10197. enable_dlopen=yes
  10198. else
  10199. enable_dlopen=no
  10200. fi
  10201. case $lt_cv_dlopen in
  10202. dlopen)
  10203. save_CPPFLAGS="$CPPFLAGS"
  10204. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10205. save_LDFLAGS="$LDFLAGS"
  10206. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10207. save_LIBS="$LIBS"
  10208. LIBS="$lt_cv_dlopen_libs $LIBS"
  10209. { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  10210. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10211. if test "${lt_cv_dlopen_self+set}" = set; then
  10212. $as_echo_n "(cached) " >&6
  10213. else
  10214. if test "$cross_compiling" = yes; then :
  10215. lt_cv_dlopen_self=cross
  10216. else
  10217. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10218. lt_status=$lt_dlunknown
  10219. cat > conftest.$ac_ext <<_LT_EOF
  10220. #line 11915 "configure"
  10221. #include "confdefs.h"
  10222. #if HAVE_DLFCN_H
  10223. #include <dlfcn.h>
  10224. #endif
  10225. #include <stdio.h>
  10226. #ifdef RTLD_GLOBAL
  10227. # define LT_DLGLOBAL RTLD_GLOBAL
  10228. #else
  10229. # ifdef DL_GLOBAL
  10230. # define LT_DLGLOBAL DL_GLOBAL
  10231. # else
  10232. # define LT_DLGLOBAL 0
  10233. # endif
  10234. #endif
  10235. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10236. find out it does not work in some platform. */
  10237. #ifndef LT_DLLAZY_OR_NOW
  10238. # ifdef RTLD_LAZY
  10239. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10240. # else
  10241. # ifdef DL_LAZY
  10242. # define LT_DLLAZY_OR_NOW DL_LAZY
  10243. # else
  10244. # ifdef RTLD_NOW
  10245. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10246. # else
  10247. # ifdef DL_NOW
  10248. # define LT_DLLAZY_OR_NOW DL_NOW
  10249. # else
  10250. # define LT_DLLAZY_OR_NOW 0
  10251. # endif
  10252. # endif
  10253. # endif
  10254. # endif
  10255. #endif
  10256. void fnord() { int i=42;}
  10257. int main ()
  10258. {
  10259. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10260. int status = $lt_dlunknown;
  10261. if (self)
  10262. {
  10263. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10264. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10265. /* dlclose (self); */
  10266. }
  10267. else
  10268. puts (dlerror ());
  10269. return status;
  10270. }
  10271. _LT_EOF
  10272. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10273. (eval $ac_link) 2>&5
  10274. ac_status=$?
  10275. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10276. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  10277. (./conftest; exit; ) >&5 2>/dev/null
  10278. lt_status=$?
  10279. case x$lt_status in
  10280. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10281. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10282. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10283. esac
  10284. else :
  10285. # compilation failed
  10286. lt_cv_dlopen_self=no
  10287. fi
  10288. fi
  10289. rm -fr conftest*
  10290. fi
  10291. { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  10292. $as_echo "$lt_cv_dlopen_self" >&6; }
  10293. if test "x$lt_cv_dlopen_self" = xyes; then
  10294. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10295. { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  10296. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10297. if test "${lt_cv_dlopen_self_static+set}" = set; then
  10298. $as_echo_n "(cached) " >&6
  10299. else
  10300. if test "$cross_compiling" = yes; then :
  10301. lt_cv_dlopen_self_static=cross
  10302. else
  10303. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10304. lt_status=$lt_dlunknown
  10305. cat > conftest.$ac_ext <<_LT_EOF
  10306. #line 12011 "configure"
  10307. #include "confdefs.h"
  10308. #if HAVE_DLFCN_H
  10309. #include <dlfcn.h>
  10310. #endif
  10311. #include <stdio.h>
  10312. #ifdef RTLD_GLOBAL
  10313. # define LT_DLGLOBAL RTLD_GLOBAL
  10314. #else
  10315. # ifdef DL_GLOBAL
  10316. # define LT_DLGLOBAL DL_GLOBAL
  10317. # else
  10318. # define LT_DLGLOBAL 0
  10319. # endif
  10320. #endif
  10321. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10322. find out it does not work in some platform. */
  10323. #ifndef LT_DLLAZY_OR_NOW
  10324. # ifdef RTLD_LAZY
  10325. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10326. # else
  10327. # ifdef DL_LAZY
  10328. # define LT_DLLAZY_OR_NOW DL_LAZY
  10329. # else
  10330. # ifdef RTLD_NOW
  10331. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10332. # else
  10333. # ifdef DL_NOW
  10334. # define LT_DLLAZY_OR_NOW DL_NOW
  10335. # else
  10336. # define LT_DLLAZY_OR_NOW 0
  10337. # endif
  10338. # endif
  10339. # endif
  10340. # endif
  10341. #endif
  10342. void fnord() { int i=42;}
  10343. int main ()
  10344. {
  10345. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10346. int status = $lt_dlunknown;
  10347. if (self)
  10348. {
  10349. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10350. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10351. /* dlclose (self); */
  10352. }
  10353. else
  10354. puts (dlerror ());
  10355. return status;
  10356. }
  10357. _LT_EOF
  10358. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10359. (eval $ac_link) 2>&5
  10360. ac_status=$?
  10361. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10362. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  10363. (./conftest; exit; ) >&5 2>/dev/null
  10364. lt_status=$?
  10365. case x$lt_status in
  10366. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10367. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10368. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10369. esac
  10370. else :
  10371. # compilation failed
  10372. lt_cv_dlopen_self_static=no
  10373. fi
  10374. fi
  10375. rm -fr conftest*
  10376. fi
  10377. { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  10378. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10379. fi
  10380. CPPFLAGS="$save_CPPFLAGS"
  10381. LDFLAGS="$save_LDFLAGS"
  10382. LIBS="$save_LIBS"
  10383. ;;
  10384. esac
  10385. case $lt_cv_dlopen_self in
  10386. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10387. *) enable_dlopen_self=unknown ;;
  10388. esac
  10389. case $lt_cv_dlopen_self_static in
  10390. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10391. *) enable_dlopen_self_static=unknown ;;
  10392. esac
  10393. fi
  10394. striplib=
  10395. old_striplib=
  10396. { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  10397. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10398. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10399. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10400. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10401. { $as_echo "$as_me:$LINENO: result: yes" >&5
  10402. $as_echo "yes" >&6; }
  10403. else
  10404. # FIXME - insert some real tests, host_os isn't really good enough
  10405. case $host_os in
  10406. darwin*)
  10407. if test -n "$STRIP" ; then
  10408. striplib="$STRIP -x"
  10409. old_striplib="$STRIP -S"
  10410. { $as_echo "$as_me:$LINENO: result: yes" >&5
  10411. $as_echo "yes" >&6; }
  10412. else
  10413. { $as_echo "$as_me:$LINENO: result: no" >&5
  10414. $as_echo "no" >&6; }
  10415. fi
  10416. ;;
  10417. *)
  10418. { $as_echo "$as_me:$LINENO: result: no" >&5
  10419. $as_echo "no" >&6; }
  10420. ;;
  10421. esac
  10422. fi
  10423. # Report which library types will actually be built
  10424. { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  10425. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10426. { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
  10427. $as_echo "$can_build_shared" >&6; }
  10428. { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  10429. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10430. test "$can_build_shared" = "no" && enable_shared=no
  10431. # On AIX, shared libraries and static libraries use the same namespace, and
  10432. # are all built from PIC.
  10433. case $host_os in
  10434. aix3*)
  10435. test "$enable_shared" = yes && enable_static=no
  10436. if test -n "$RANLIB"; then
  10437. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10438. postinstall_cmds='$RANLIB $lib'
  10439. fi
  10440. ;;
  10441. aix[4-9]*)
  10442. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10443. test "$enable_shared" = yes && enable_static=no
  10444. fi
  10445. ;;
  10446. esac
  10447. { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
  10448. $as_echo "$enable_shared" >&6; }
  10449. { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  10450. $as_echo_n "checking whether to build static libraries... " >&6; }
  10451. # Make sure either enable_shared or enable_static is yes.
  10452. test "$enable_shared" = yes || enable_static=yes
  10453. { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
  10454. $as_echo "$enable_static" >&6; }
  10455. fi
  10456. ac_ext=c
  10457. ac_cpp='$CPP $CPPFLAGS'
  10458. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10459. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10460. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10461. CC="$lt_save_CC"
  10462. ac_config_commands="$ac_config_commands libtool"
  10463. # Only expand once:
  10464. { $as_echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
  10465. $as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
  10466. if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
  10467. $as_echo_n "(cached) " >&6
  10468. else
  10469. ac_check_lib_save_LIBS=$LIBS
  10470. LIBS="-lltdl $LIBS"
  10471. cat >conftest.$ac_ext <<_ACEOF
  10472. /* confdefs.h. */
  10473. _ACEOF
  10474. cat confdefs.h >>conftest.$ac_ext
  10475. cat >>conftest.$ac_ext <<_ACEOF
  10476. /* end confdefs.h. */
  10477. /* Override any GCC internal prototype to avoid an error.
  10478. Use char because int might match the return type of a GCC
  10479. builtin and then its argument prototype would still apply. */
  10480. #ifdef __cplusplus
  10481. extern "C"
  10482. #endif
  10483. char lt_dlinit ();
  10484. int
  10485. main ()
  10486. {
  10487. return lt_dlinit ();
  10488. ;
  10489. return 0;
  10490. }
  10491. _ACEOF
  10492. rm -f conftest.$ac_objext conftest$ac_exeext
  10493. if { (ac_try="$ac_link"
  10494. case "(($ac_try" in
  10495. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10496. *) ac_try_echo=$ac_try;;
  10497. esac
  10498. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10499. $as_echo "$ac_try_echo") >&5
  10500. (eval "$ac_link") 2>conftest.er1
  10501. ac_status=$?
  10502. grep -v '^ *+' conftest.er1 >conftest.err
  10503. rm -f conftest.er1
  10504. cat conftest.err >&5
  10505. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10506. (exit $ac_status); } && {
  10507. test -z "$ac_c_werror_flag" ||
  10508. test ! -s conftest.err
  10509. } && test -s conftest$ac_exeext && {
  10510. test "$cross_compiling" = yes ||
  10511. $as_test_x conftest$ac_exeext
  10512. }; then
  10513. ac_cv_lib_ltdl_lt_dlinit=yes
  10514. else
  10515. $as_echo "$as_me: failed program was:" >&5
  10516. sed 's/^/| /' conftest.$ac_ext >&5
  10517. ac_cv_lib_ltdl_lt_dlinit=no
  10518. fi
  10519. rm -rf conftest.dSYM
  10520. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10521. conftest$ac_exeext conftest.$ac_ext
  10522. LIBS=$ac_check_lib_save_LIBS
  10523. fi
  10524. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
  10525. $as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
  10526. if test "x$ac_cv_lib_ltdl_lt_dlinit" = x""yes; then
  10527. cat >>confdefs.h <<_ACEOF
  10528. #define HAVE_LIBLTDL 1
  10529. _ACEOF
  10530. LIBS="-lltdl $LIBS"
  10531. else
  10532. { { $as_echo "$as_me:$LINENO: error: libltdl not found. See README." >&5
  10533. $as_echo "$as_me: error: libltdl not found. See README." >&2;}
  10534. { (exit 1); exit 1; }; }
  10535. fi
  10536. if test "${ac_cv_header_ltdl_h+set}" = set; then
  10537. { $as_echo "$as_me:$LINENO: checking for ltdl.h" >&5
  10538. $as_echo_n "checking for ltdl.h... " >&6; }
  10539. if test "${ac_cv_header_ltdl_h+set}" = set; then
  10540. $as_echo_n "(cached) " >&6
  10541. fi
  10542. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
  10543. $as_echo "$ac_cv_header_ltdl_h" >&6; }
  10544. else
  10545. # Is the header compilable?
  10546. { $as_echo "$as_me:$LINENO: checking ltdl.h usability" >&5
  10547. $as_echo_n "checking ltdl.h usability... " >&6; }
  10548. cat >conftest.$ac_ext <<_ACEOF
  10549. /* confdefs.h. */
  10550. _ACEOF
  10551. cat confdefs.h >>conftest.$ac_ext
  10552. cat >>conftest.$ac_ext <<_ACEOF
  10553. /* end confdefs.h. */
  10554. $ac_includes_default
  10555. #include <ltdl.h>
  10556. _ACEOF
  10557. rm -f conftest.$ac_objext
  10558. if { (ac_try="$ac_compile"
  10559. case "(($ac_try" in
  10560. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10561. *) ac_try_echo=$ac_try;;
  10562. esac
  10563. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10564. $as_echo "$ac_try_echo") >&5
  10565. (eval "$ac_compile") 2>conftest.er1
  10566. ac_status=$?
  10567. grep -v '^ *+' conftest.er1 >conftest.err
  10568. rm -f conftest.er1
  10569. cat conftest.err >&5
  10570. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10571. (exit $ac_status); } && {
  10572. test -z "$ac_c_werror_flag" ||
  10573. test ! -s conftest.err
  10574. } && test -s conftest.$ac_objext; then
  10575. ac_header_compiler=yes
  10576. else
  10577. $as_echo "$as_me: failed program was:" >&5
  10578. sed 's/^/| /' conftest.$ac_ext >&5
  10579. ac_header_compiler=no
  10580. fi
  10581. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10582. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10583. $as_echo "$ac_header_compiler" >&6; }
  10584. # Is the header present?
  10585. { $as_echo "$as_me:$LINENO: checking ltdl.h presence" >&5
  10586. $as_echo_n "checking ltdl.h presence... " >&6; }
  10587. cat >conftest.$ac_ext <<_ACEOF
  10588. /* confdefs.h. */
  10589. _ACEOF
  10590. cat confdefs.h >>conftest.$ac_ext
  10591. cat >>conftest.$ac_ext <<_ACEOF
  10592. /* end confdefs.h. */
  10593. #include <ltdl.h>
  10594. _ACEOF
  10595. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10596. case "(($ac_try" in
  10597. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10598. *) ac_try_echo=$ac_try;;
  10599. esac
  10600. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10601. $as_echo "$ac_try_echo") >&5
  10602. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10603. ac_status=$?
  10604. grep -v '^ *+' conftest.er1 >conftest.err
  10605. rm -f conftest.er1
  10606. cat conftest.err >&5
  10607. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10608. (exit $ac_status); } >/dev/null && {
  10609. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  10610. test ! -s conftest.err
  10611. }; then
  10612. ac_header_preproc=yes
  10613. else
  10614. $as_echo "$as_me: failed program was:" >&5
  10615. sed 's/^/| /' conftest.$ac_ext >&5
  10616. ac_header_preproc=no
  10617. fi
  10618. rm -f conftest.err conftest.$ac_ext
  10619. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10620. $as_echo "$ac_header_preproc" >&6; }
  10621. # So? What about this header?
  10622. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  10623. yes:no: )
  10624. { $as_echo "$as_me:$LINENO: WARNING: ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&5
  10625. $as_echo "$as_me: WARNING: ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10626. { $as_echo "$as_me:$LINENO: WARNING: ltdl.h: proceeding with the compiler's result" >&5
  10627. $as_echo "$as_me: WARNING: ltdl.h: proceeding with the compiler's result" >&2;}
  10628. ac_header_preproc=yes
  10629. ;;
  10630. no:yes:* )
  10631. { $as_echo "$as_me:$LINENO: WARNING: ltdl.h: present but cannot be compiled" >&5
  10632. $as_echo "$as_me: WARNING: ltdl.h: present but cannot be compiled" >&2;}
  10633. { $as_echo "$as_me:$LINENO: WARNING: ltdl.h: check for missing prerequisite headers?" >&5
  10634. $as_echo "$as_me: WARNING: ltdl.h: check for missing prerequisite headers?" >&2;}
  10635. { $as_echo "$as_me:$LINENO: WARNING: ltdl.h: see the Autoconf documentation" >&5
  10636. $as_echo "$as_me: WARNING: ltdl.h: see the Autoconf documentation" >&2;}
  10637. { $as_echo "$as_me:$LINENO: WARNING: ltdl.h: section \"Present But Cannot Be Compiled\"" >&5
  10638. $as_echo "$as_me: WARNING: ltdl.h: section \"Present But Cannot Be Compiled\"" >&2;}
  10639. { $as_echo "$as_me:$LINENO: WARNING: ltdl.h: proceeding with the preprocessor's result" >&5
  10640. $as_echo "$as_me: WARNING: ltdl.h: proceeding with the preprocessor's result" >&2;}
  10641. { $as_echo "$as_me:$LINENO: WARNING: ltdl.h: in the future, the compiler will take precedence" >&5
  10642. $as_echo "$as_me: WARNING: ltdl.h: in the future, the compiler will take precedence" >&2;}
  10643. ( cat <<\_ASBOX
  10644. ## -------------------------------- ##
  10645. ## Report this to bug-guile@gnu.org ##
  10646. ## -------------------------------- ##
  10647. _ASBOX
  10648. ) | sed "s/^/$as_me: WARNING: /" >&2
  10649. ;;
  10650. esac
  10651. { $as_echo "$as_me:$LINENO: checking for ltdl.h" >&5
  10652. $as_echo_n "checking for ltdl.h... " >&6; }
  10653. if test "${ac_cv_header_ltdl_h+set}" = set; then
  10654. $as_echo_n "(cached) " >&6
  10655. else
  10656. ac_cv_header_ltdl_h=$ac_header_preproc
  10657. fi
  10658. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
  10659. $as_echo "$ac_cv_header_ltdl_h" >&6; }
  10660. fi
  10661. if test "x$ac_cv_header_ltdl_h" = x""yes; then
  10662. :
  10663. else
  10664. { { $as_echo "$as_me:$LINENO: error: <ltdl.h> not found. See README." >&5
  10665. $as_echo "$as_me: error: <ltdl.h> not found. See README." >&2;}
  10666. { (exit 1); exit 1; }; }
  10667. fi
  10668. # Extract the first word of "makeinfo", so it can be a program name with args.
  10669. set dummy makeinfo; ac_word=$2
  10670. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  10671. $as_echo_n "checking for $ac_word... " >&6; }
  10672. if test "${ac_cv_prog_have_makeinfo+set}" = set; then
  10673. $as_echo_n "(cached) " >&6
  10674. else
  10675. if test -n "$have_makeinfo"; then
  10676. ac_cv_prog_have_makeinfo="$have_makeinfo" # Let the user override the test.
  10677. else
  10678. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10679. for as_dir in $PATH
  10680. do
  10681. IFS=$as_save_IFS
  10682. test -z "$as_dir" && as_dir=.
  10683. for ac_exec_ext in '' $ac_executable_extensions; do
  10684. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10685. ac_cv_prog_have_makeinfo="yes"
  10686. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  10687. break 2
  10688. fi
  10689. done
  10690. done
  10691. IFS=$as_save_IFS
  10692. test -z "$ac_cv_prog_have_makeinfo" && ac_cv_prog_have_makeinfo="no"
  10693. fi
  10694. fi
  10695. have_makeinfo=$ac_cv_prog_have_makeinfo
  10696. if test -n "$have_makeinfo"; then
  10697. { $as_echo "$as_me:$LINENO: result: $have_makeinfo" >&5
  10698. $as_echo "$have_makeinfo" >&6; }
  10699. else
  10700. { $as_echo "$as_me:$LINENO: result: no" >&5
  10701. $as_echo "no" >&6; }
  10702. fi
  10703. if test "$have_makeinfo" = yes; then
  10704. HAVE_MAKEINFO_TRUE=
  10705. HAVE_MAKEINFO_FALSE='#'
  10706. else
  10707. HAVE_MAKEINFO_TRUE='#'
  10708. HAVE_MAKEINFO_FALSE=
  10709. fi
  10710. # If set to t, that means we are running in a shell under Emacs.
  10711. # If you have an Emacs named "t", then use the full path.
  10712. test x"$EMACS" = xt && EMACS=
  10713. for ac_prog in emacs xemacs
  10714. do
  10715. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10716. set dummy $ac_prog; ac_word=$2
  10717. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  10718. $as_echo_n "checking for $ac_word... " >&6; }
  10719. if test "${ac_cv_prog_EMACS+set}" = set; then
  10720. $as_echo_n "(cached) " >&6
  10721. else
  10722. if test -n "$EMACS"; then
  10723. ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
  10724. else
  10725. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10726. for as_dir in $PATH
  10727. do
  10728. IFS=$as_save_IFS
  10729. test -z "$as_dir" && as_dir=.
  10730. for ac_exec_ext in '' $ac_executable_extensions; do
  10731. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10732. ac_cv_prog_EMACS="$ac_prog"
  10733. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  10734. break 2
  10735. fi
  10736. done
  10737. done
  10738. IFS=$as_save_IFS
  10739. fi
  10740. fi
  10741. EMACS=$ac_cv_prog_EMACS
  10742. if test -n "$EMACS"; then
  10743. { $as_echo "$as_me:$LINENO: result: $EMACS" >&5
  10744. $as_echo "$EMACS" >&6; }
  10745. else
  10746. { $as_echo "$as_me:$LINENO: result: no" >&5
  10747. $as_echo "no" >&6; }
  10748. fi
  10749. test -n "$EMACS" && break
  10750. done
  10751. test -n "$EMACS" || EMACS="no"
  10752. # Check whether --with-lispdir was given.
  10753. if test "${with_lispdir+set}" = set; then
  10754. withval=$with_lispdir; lispdir="$withval"
  10755. { $as_echo "$as_me:$LINENO: checking where .elc files should go" >&5
  10756. $as_echo_n "checking where .elc files should go... " >&6; }
  10757. { $as_echo "$as_me:$LINENO: result: $lispdir" >&5
  10758. $as_echo "$lispdir" >&6; }
  10759. else
  10760. { $as_echo "$as_me:$LINENO: checking where .elc files should go" >&5
  10761. $as_echo_n "checking where .elc files should go... " >&6; }
  10762. if test "${am_cv_lispdir+set}" = set; then
  10763. $as_echo_n "(cached) " >&6
  10764. else
  10765. if test $EMACS != "no"; then
  10766. if test x${lispdir+set} != xset; then
  10767. # If $EMACS isn't GNU Emacs or XEmacs, this can blow up pretty badly
  10768. # Some emacsen will start up in interactive mode, requiring C-x C-c to exit,
  10769. # which is non-obvious for non-emacs users.
  10770. # Redirecting /dev/null should help a bit; pity we can't detect "broken"
  10771. # emacsen earlier and avoid running this altogether.
  10772. { ($as_echo "$as_me:$LINENO: \$EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) \"\\n\")) (setq load-path (cdr load-path)))' </dev/null >conftest.out") >&5
  10773. ($EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) "\n")) (setq load-path (cdr load-path)))' </dev/null >conftest.out) 2>&5
  10774. ac_status=$?
  10775. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10776. (exit $ac_status); }
  10777. am_cv_lispdir=`sed -n \
  10778. -e 's,/$,,' \
  10779. -e '/.*\/lib\/x*emacs\/site-lisp$/{s,.*/lib/\(x*emacs/site-lisp\)$,${libdir}/\1,;p;q;}' \
  10780. -e '/.*\/share\/x*emacs\/site-lisp$/{s,.*/share/\(x*emacs/site-lisp\),${datarootdir}/\1,;p;q;}' \
  10781. conftest.out`
  10782. rm conftest.out
  10783. fi
  10784. fi
  10785. test -z "$am_cv_lispdir" && am_cv_lispdir='${datadir}/emacs/site-lisp'
  10786. fi
  10787. { $as_echo "$as_me:$LINENO: result: $am_cv_lispdir" >&5
  10788. $as_echo "$am_cv_lispdir" >&6; }
  10789. lispdir="$am_cv_lispdir"
  10790. fi
  10791. #--------------------------------------------------------------------
  10792. #
  10793. # User options (after above tests that may set default CFLAGS etc.)
  10794. #
  10795. #--------------------------------------------------------------------
  10796. GUILE_ERROR_ON_WARNING="yes"
  10797. # Check whether --enable-error-on-warning was given.
  10798. if test "${enable_error_on_warning+set}" = set; then
  10799. enableval=$enable_error_on_warning; case "${enableval}" in
  10800. yes | y) GUILE_ERROR_ON_WARNING="yes" ;;
  10801. no | n) GUILE_ERROR_ON_WARNING="no" ;;
  10802. *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-error-on-warning" >&5
  10803. $as_echo "$as_me: error: bad value ${enableval} for --enable-error-on-warning" >&2;}
  10804. { (exit 1); exit 1; }; } ;;
  10805. esac
  10806. fi
  10807. SCM_I_GSC_GUILE_DEBUG_FREELIST=0
  10808. # Check whether --enable-debug-freelist was given.
  10809. if test "${enable_debug_freelist+set}" = set; then
  10810. enableval=$enable_debug_freelist; if test "$enable_debug_freelist" = y \
  10811. || test "$enable_debug_freelist" = yes; then
  10812. SCM_I_GSC_GUILE_DEBUG_FREELIST=1
  10813. fi
  10814. fi
  10815. # Check whether --enable-debug-malloc was given.
  10816. if test "${enable_debug_malloc+set}" = set; then
  10817. enableval=$enable_debug_malloc; if test "$enable_debug_malloc" = y || test "$enable_debug_malloc" = yes; then
  10818. cat >>confdefs.h <<\_ACEOF
  10819. #define GUILE_DEBUG_MALLOC 1
  10820. _ACEOF
  10821. fi
  10822. fi
  10823. SCM_I_GSC_GUILE_DEBUG=0
  10824. # Check whether --enable-guile-debug was given.
  10825. if test "${enable_guile_debug+set}" = set; then
  10826. enableval=$enable_guile_debug; if test "$enable_guile_debug" = y || test "$enable_guile_debug" = yes; then
  10827. SCM_I_GSC_GUILE_DEBUG=1
  10828. fi
  10829. fi
  10830. # Check whether --enable-posix was given.
  10831. if test "${enable_posix+set}" = set; then
  10832. enableval=$enable_posix;
  10833. else
  10834. enable_posix=yes
  10835. fi
  10836. # Check whether --enable-networking was given.
  10837. if test "${enable_networking+set}" = set; then
  10838. enableval=$enable_networking;
  10839. else
  10840. enable_networking=yes
  10841. fi
  10842. # Check whether --enable-regex was given.
  10843. if test "${enable_regex+set}" = set; then
  10844. enableval=$enable_regex;
  10845. else
  10846. enable_regex=yes
  10847. fi
  10848. # Check whether --enable-discouraged was given.
  10849. if test "${enable_discouraged+set}" = set; then
  10850. enableval=$enable_discouraged;
  10851. fi
  10852. if test "$enable_discouraged" = no; then
  10853. SCM_I_GSC_ENABLE_DISCOURAGED=0
  10854. else
  10855. SCM_I_GSC_ENABLE_DISCOURAGED=1
  10856. fi
  10857. # Check whether --enable-deprecated was given.
  10858. if test "${enable_deprecated+set}" = set; then
  10859. enableval=$enable_deprecated;
  10860. fi
  10861. if test "$enable_deprecated" = no; then
  10862. SCM_I_GSC_ENABLE_DEPRECATED=0
  10863. warn_default=no
  10864. else
  10865. if test "$enable_deprecated" = yes || test "$enable_deprecated" = ""; then
  10866. warn_default=summary
  10867. elif test "$enable_deprecated" = shutup; then
  10868. warn_default=no
  10869. else
  10870. warn_default=$enable_deprecated
  10871. fi
  10872. SCM_I_GSC_ENABLE_DEPRECATED=1
  10873. fi
  10874. cat >>confdefs.h <<_ACEOF
  10875. #define SCM_WARN_DEPRECATED_DEFAULT "$warn_default"
  10876. _ACEOF
  10877. # Check whether --enable-elisp was given.
  10878. if test "${enable_elisp+set}" = set; then
  10879. enableval=$enable_elisp;
  10880. else
  10881. enable_elisp=yes
  10882. fi
  10883. { $as_echo "$as_me:$LINENO: checking whether to use system and library \"64\" calls" >&5
  10884. $as_echo_n "checking whether to use system and library \"64\" calls... " >&6; }
  10885. # Check whether --with-64-calls was given.
  10886. if test "${with_64_calls+set}" = set; then
  10887. withval=$with_64_calls; use_64_calls=$withval
  10888. else
  10889. use_64_calls=yes
  10890. case $host in
  10891. *-apple-darwin* )
  10892. use_64_calls=no
  10893. ;;
  10894. powerpc-ibm-aix* )
  10895. use_64_calls=no
  10896. ;;
  10897. esac
  10898. fi
  10899. { $as_echo "$as_me:$LINENO: result: $use_64_calls" >&5
  10900. $as_echo "$use_64_calls" >&6; }
  10901. case "$use_64_calls" in
  10902. y* )
  10903. cat >>confdefs.h <<\_ACEOF
  10904. #define GUILE_USE_64_CALLS 1
  10905. _ACEOF
  10906. ;;
  10907. esac
  10908. { $as_echo "$as_me:$LINENO: checking whether the compiler defaults to IEEE floating point behavior" >&5
  10909. $as_echo_n "checking whether the compiler defaults to IEEE floating point behavior... " >&6; }
  10910. # The following snippet was taken from Gnulib's `fpieee'. See also the definition
  10911. # of `guile_NaN' in `numbers.c'.
  10912. # IEEE behaviour is the default on all CPUs except Alpha and SH
  10913. # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
  10914. # and the GCC 4.1.2 manual).
  10915. case "$host_cpu" in
  10916. alpha*)
  10917. # On Alpha systems, a compiler option provides the behaviour.
  10918. # See the ieee(3) manual page, also available at
  10919. # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
  10920. { $as_echo "$as_me:$LINENO: result: no" >&5
  10921. $as_echo "no" >&6; }
  10922. if test -n "$GCC"; then
  10923. # GCC has the option -mieee.
  10924. CPPFLAGS="$CPPFLAGS -mieee"
  10925. else
  10926. # Compaq (ex-DEC) C has the option -ieee.
  10927. CPPFLAGS="$CPPFLAGS -ieee"
  10928. fi
  10929. ;;
  10930. sh*)
  10931. { $as_echo "$as_me:$LINENO: result: no" >&5
  10932. $as_echo "no" >&6; }
  10933. if test -n "$GCC"; then
  10934. # GCC has the option -mieee.
  10935. CPPFLAGS="$CPPFLAGS -mieee"
  10936. fi
  10937. ;;
  10938. *)
  10939. { $as_echo "$as_me:$LINENO: result: yes" >&5
  10940. $as_echo "yes" >&6; }
  10941. ;;
  10942. esac
  10943. #--------------------------------------------------------------------
  10944. use_modules=yes
  10945. # Check whether --with-modules was given.
  10946. if test "${with_modules+set}" = set; then
  10947. withval=$with_modules; use_modules="$withval"
  10948. fi
  10949. test -z "$use_modules" && use_modules=yes
  10950. DLPREOPEN=
  10951. if test "$use_modules" != no; then
  10952. if test "$use_modules" = yes; then
  10953. DLPREOPEN="-dlpreopen force"
  10954. else
  10955. DLPREOPEN="-export-dynamic"
  10956. for module in $use_modules; do
  10957. DLPREOPEN="$DLPREOPEN -dlopen $module"
  10958. done
  10959. fi
  10960. fi
  10961. if test "$use_modules" != no; then
  10962. case " $LIBOBJS " in
  10963. *" dynl.$ac_objext "* ) ;;
  10964. *) LIBOBJS="$LIBOBJS dynl.$ac_objext"
  10965. ;;
  10966. esac
  10967. fi
  10968. if test "$enable_posix" = yes; then
  10969. case " $LIBOBJS " in
  10970. *" filesys.$ac_objext "* ) ;;
  10971. *) LIBOBJS="$LIBOBJS filesys.$ac_objext"
  10972. ;;
  10973. esac
  10974. case " $LIBOBJS " in
  10975. *" posix.$ac_objext "* ) ;;
  10976. *) LIBOBJS="$LIBOBJS posix.$ac_objext"
  10977. ;;
  10978. esac
  10979. cat >>confdefs.h <<\_ACEOF
  10980. #define HAVE_POSIX 1
  10981. _ACEOF
  10982. fi
  10983. if test "$enable_networking" = yes; then
  10984. case " $LIBOBJS " in
  10985. *" net_db.$ac_objext "* ) ;;
  10986. *) LIBOBJS="$LIBOBJS net_db.$ac_objext"
  10987. ;;
  10988. esac
  10989. case " $LIBOBJS " in
  10990. *" socket.$ac_objext "* ) ;;
  10991. *) LIBOBJS="$LIBOBJS socket.$ac_objext"
  10992. ;;
  10993. esac
  10994. cat >>confdefs.h <<\_ACEOF
  10995. #define HAVE_NETWORKING 1
  10996. _ACEOF
  10997. fi
  10998. if test "$enable_debug_malloc" = yes; then
  10999. case " $LIBOBJS " in
  11000. *" debug-malloc.$ac_objext "* ) ;;
  11001. *) LIBOBJS="$LIBOBJS debug-malloc.$ac_objext"
  11002. ;;
  11003. esac
  11004. fi
  11005. if test "$enable_elisp" = yes; then
  11006. SCM_I_GSC_ENABLE_ELISP=1
  11007. else
  11008. SCM_I_GSC_ENABLE_ELISP=0
  11009. fi
  11010. { $as_echo "$as_me:$LINENO: checking for __uc_get_ar_bsp in -luca" >&5
  11011. $as_echo_n "checking for __uc_get_ar_bsp in -luca... " >&6; }
  11012. if test "${ac_cv_lib_uca___uc_get_ar_bsp+set}" = set; then
  11013. $as_echo_n "(cached) " >&6
  11014. else
  11015. ac_check_lib_save_LIBS=$LIBS
  11016. LIBS="-luca $LIBS"
  11017. cat >conftest.$ac_ext <<_ACEOF
  11018. /* confdefs.h. */
  11019. _ACEOF
  11020. cat confdefs.h >>conftest.$ac_ext
  11021. cat >>conftest.$ac_ext <<_ACEOF
  11022. /* end confdefs.h. */
  11023. /* Override any GCC internal prototype to avoid an error.
  11024. Use char because int might match the return type of a GCC
  11025. builtin and then its argument prototype would still apply. */
  11026. #ifdef __cplusplus
  11027. extern "C"
  11028. #endif
  11029. char __uc_get_ar_bsp ();
  11030. int
  11031. main ()
  11032. {
  11033. return __uc_get_ar_bsp ();
  11034. ;
  11035. return 0;
  11036. }
  11037. _ACEOF
  11038. rm -f conftest.$ac_objext conftest$ac_exeext
  11039. if { (ac_try="$ac_link"
  11040. case "(($ac_try" in
  11041. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11042. *) ac_try_echo=$ac_try;;
  11043. esac
  11044. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11045. $as_echo "$ac_try_echo") >&5
  11046. (eval "$ac_link") 2>conftest.er1
  11047. ac_status=$?
  11048. grep -v '^ *+' conftest.er1 >conftest.err
  11049. rm -f conftest.er1
  11050. cat conftest.err >&5
  11051. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11052. (exit $ac_status); } && {
  11053. test -z "$ac_c_werror_flag" ||
  11054. test ! -s conftest.err
  11055. } && test -s conftest$ac_exeext && {
  11056. test "$cross_compiling" = yes ||
  11057. $as_test_x conftest$ac_exeext
  11058. }; then
  11059. ac_cv_lib_uca___uc_get_ar_bsp=yes
  11060. else
  11061. $as_echo "$as_me: failed program was:" >&5
  11062. sed 's/^/| /' conftest.$ac_ext >&5
  11063. ac_cv_lib_uca___uc_get_ar_bsp=no
  11064. fi
  11065. rm -rf conftest.dSYM
  11066. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11067. conftest$ac_exeext conftest.$ac_ext
  11068. LIBS=$ac_check_lib_save_LIBS
  11069. fi
  11070. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uca___uc_get_ar_bsp" >&5
  11071. $as_echo "$ac_cv_lib_uca___uc_get_ar_bsp" >&6; }
  11072. if test "x$ac_cv_lib_uca___uc_get_ar_bsp" = x""yes; then
  11073. cat >>confdefs.h <<_ACEOF
  11074. #define HAVE_LIBUCA 1
  11075. _ACEOF
  11076. LIBS="-luca $LIBS"
  11077. fi
  11078. { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  11079. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  11080. if test "${ac_cv_c_const+set}" = set; then
  11081. $as_echo_n "(cached) " >&6
  11082. else
  11083. cat >conftest.$ac_ext <<_ACEOF
  11084. /* confdefs.h. */
  11085. _ACEOF
  11086. cat confdefs.h >>conftest.$ac_ext
  11087. cat >>conftest.$ac_ext <<_ACEOF
  11088. /* end confdefs.h. */
  11089. int
  11090. main ()
  11091. {
  11092. /* FIXME: Include the comments suggested by Paul. */
  11093. #ifndef __cplusplus
  11094. /* Ultrix mips cc rejects this. */
  11095. typedef int charset[2];
  11096. const charset cs;
  11097. /* SunOS 4.1.1 cc rejects this. */
  11098. char const *const *pcpcc;
  11099. char **ppc;
  11100. /* NEC SVR4.0.2 mips cc rejects this. */
  11101. struct point {int x, y;};
  11102. static struct point const zero = {0,0};
  11103. /* AIX XL C 1.02.0.0 rejects this.
  11104. It does not let you subtract one const X* pointer from another in
  11105. an arm of an if-expression whose if-part is not a constant
  11106. expression */
  11107. const char *g = "string";
  11108. pcpcc = &g + (g ? g-g : 0);
  11109. /* HPUX 7.0 cc rejects these. */
  11110. ++pcpcc;
  11111. ppc = (char**) pcpcc;
  11112. pcpcc = (char const *const *) ppc;
  11113. { /* SCO 3.2v4 cc rejects this. */
  11114. char *t;
  11115. char const *s = 0 ? (char *) 0 : (char const *) 0;
  11116. *t++ = 0;
  11117. if (s) return 0;
  11118. }
  11119. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  11120. int x[] = {25, 17};
  11121. const int *foo = &x[0];
  11122. ++foo;
  11123. }
  11124. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  11125. typedef const int *iptr;
  11126. iptr p = 0;
  11127. ++p;
  11128. }
  11129. { /* AIX XL C 1.02.0.0 rejects this saying
  11130. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  11131. struct s { int j; const int *ap[3]; };
  11132. struct s *b; b->j = 5;
  11133. }
  11134. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  11135. const int foo = 10;
  11136. if (!foo) return 0;
  11137. }
  11138. return !cs[0] && !zero.x;
  11139. #endif
  11140. ;
  11141. return 0;
  11142. }
  11143. _ACEOF
  11144. rm -f conftest.$ac_objext
  11145. if { (ac_try="$ac_compile"
  11146. case "(($ac_try" in
  11147. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11148. *) ac_try_echo=$ac_try;;
  11149. esac
  11150. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11151. $as_echo "$ac_try_echo") >&5
  11152. (eval "$ac_compile") 2>conftest.er1
  11153. ac_status=$?
  11154. grep -v '^ *+' conftest.er1 >conftest.err
  11155. rm -f conftest.er1
  11156. cat conftest.err >&5
  11157. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11158. (exit $ac_status); } && {
  11159. test -z "$ac_c_werror_flag" ||
  11160. test ! -s conftest.err
  11161. } && test -s conftest.$ac_objext; then
  11162. ac_cv_c_const=yes
  11163. else
  11164. $as_echo "$as_me: failed program was:" >&5
  11165. sed 's/^/| /' conftest.$ac_ext >&5
  11166. ac_cv_c_const=no
  11167. fi
  11168. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11169. fi
  11170. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  11171. $as_echo "$ac_cv_c_const" >&6; }
  11172. if test $ac_cv_c_const = no; then
  11173. cat >>confdefs.h <<\_ACEOF
  11174. #define const /**/
  11175. _ACEOF
  11176. fi
  11177. # "volatile" is used in a couple of tests below.
  11178. { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
  11179. $as_echo_n "checking for working volatile... " >&6; }
  11180. if test "${ac_cv_c_volatile+set}" = set; then
  11181. $as_echo_n "(cached) " >&6
  11182. else
  11183. cat >conftest.$ac_ext <<_ACEOF
  11184. /* confdefs.h. */
  11185. _ACEOF
  11186. cat confdefs.h >>conftest.$ac_ext
  11187. cat >>conftest.$ac_ext <<_ACEOF
  11188. /* end confdefs.h. */
  11189. int
  11190. main ()
  11191. {
  11192. volatile int x;
  11193. int * volatile y = (int *) 0;
  11194. return !x && !y;
  11195. ;
  11196. return 0;
  11197. }
  11198. _ACEOF
  11199. rm -f conftest.$ac_objext
  11200. if { (ac_try="$ac_compile"
  11201. case "(($ac_try" in
  11202. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11203. *) ac_try_echo=$ac_try;;
  11204. esac
  11205. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11206. $as_echo "$ac_try_echo") >&5
  11207. (eval "$ac_compile") 2>conftest.er1
  11208. ac_status=$?
  11209. grep -v '^ *+' conftest.er1 >conftest.err
  11210. rm -f conftest.er1
  11211. cat conftest.err >&5
  11212. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11213. (exit $ac_status); } && {
  11214. test -z "$ac_c_werror_flag" ||
  11215. test ! -s conftest.err
  11216. } && test -s conftest.$ac_objext; then
  11217. ac_cv_c_volatile=yes
  11218. else
  11219. $as_echo "$as_me: failed program was:" >&5
  11220. sed 's/^/| /' conftest.$ac_ext >&5
  11221. ac_cv_c_volatile=no
  11222. fi
  11223. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11224. fi
  11225. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  11226. $as_echo "$ac_cv_c_volatile" >&6; }
  11227. if test $ac_cv_c_volatile = no; then
  11228. cat >>confdefs.h <<\_ACEOF
  11229. #define volatile /**/
  11230. _ACEOF
  11231. fi
  11232. { $as_echo "$as_me:$LINENO: checking for inline" >&5
  11233. $as_echo_n "checking for inline... " >&6; }
  11234. if test "${ac_cv_c_inline+set}" = set; then
  11235. $as_echo_n "(cached) " >&6
  11236. else
  11237. ac_cv_c_inline=no
  11238. for ac_kw in inline __inline__ __inline; do
  11239. cat >conftest.$ac_ext <<_ACEOF
  11240. /* confdefs.h. */
  11241. _ACEOF
  11242. cat confdefs.h >>conftest.$ac_ext
  11243. cat >>conftest.$ac_ext <<_ACEOF
  11244. /* end confdefs.h. */
  11245. #ifndef __cplusplus
  11246. typedef int foo_t;
  11247. static $ac_kw foo_t static_foo () {return 0; }
  11248. $ac_kw foo_t foo () {return 0; }
  11249. #endif
  11250. _ACEOF
  11251. rm -f conftest.$ac_objext
  11252. if { (ac_try="$ac_compile"
  11253. case "(($ac_try" in
  11254. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11255. *) ac_try_echo=$ac_try;;
  11256. esac
  11257. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11258. $as_echo "$ac_try_echo") >&5
  11259. (eval "$ac_compile") 2>conftest.er1
  11260. ac_status=$?
  11261. grep -v '^ *+' conftest.er1 >conftest.err
  11262. rm -f conftest.er1
  11263. cat conftest.err >&5
  11264. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11265. (exit $ac_status); } && {
  11266. test -z "$ac_c_werror_flag" ||
  11267. test ! -s conftest.err
  11268. } && test -s conftest.$ac_objext; then
  11269. ac_cv_c_inline=$ac_kw
  11270. else
  11271. $as_echo "$as_me: failed program was:" >&5
  11272. sed 's/^/| /' conftest.$ac_ext >&5
  11273. fi
  11274. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11275. test "$ac_cv_c_inline" != no && break
  11276. done
  11277. fi
  11278. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  11279. $as_echo "$ac_cv_c_inline" >&6; }
  11280. case $ac_cv_c_inline in
  11281. inline | yes) ;;
  11282. *)
  11283. case $ac_cv_c_inline in
  11284. no) ac_val=;;
  11285. *) ac_val=$ac_cv_c_inline;;
  11286. esac
  11287. cat >>confdefs.h <<_ACEOF
  11288. #ifndef __cplusplus
  11289. #define inline $ac_val
  11290. #endif
  11291. _ACEOF
  11292. ;;
  11293. esac
  11294. if test "$ac_cv_c_inline" != no; then
  11295. SCM_I_GSC_C_INLINE="\"${ac_cv_c_inline}\""
  11296. else
  11297. SCM_I_GSC_C_INLINE=NULL
  11298. fi
  11299. { $as_echo "$as_me:$LINENO: checking for __uc_get_ar_bsp in -luca" >&5
  11300. $as_echo_n "checking for __uc_get_ar_bsp in -luca... " >&6; }
  11301. if test "${ac_cv_lib_uca___uc_get_ar_bsp+set}" = set; then
  11302. $as_echo_n "(cached) " >&6
  11303. else
  11304. ac_check_lib_save_LIBS=$LIBS
  11305. LIBS="-luca $LIBS"
  11306. cat >conftest.$ac_ext <<_ACEOF
  11307. /* confdefs.h. */
  11308. _ACEOF
  11309. cat confdefs.h >>conftest.$ac_ext
  11310. cat >>conftest.$ac_ext <<_ACEOF
  11311. /* end confdefs.h. */
  11312. /* Override any GCC internal prototype to avoid an error.
  11313. Use char because int might match the return type of a GCC
  11314. builtin and then its argument prototype would still apply. */
  11315. #ifdef __cplusplus
  11316. extern "C"
  11317. #endif
  11318. char __uc_get_ar_bsp ();
  11319. int
  11320. main ()
  11321. {
  11322. return __uc_get_ar_bsp ();
  11323. ;
  11324. return 0;
  11325. }
  11326. _ACEOF
  11327. rm -f conftest.$ac_objext conftest$ac_exeext
  11328. if { (ac_try="$ac_link"
  11329. case "(($ac_try" in
  11330. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11331. *) ac_try_echo=$ac_try;;
  11332. esac
  11333. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11334. $as_echo "$ac_try_echo") >&5
  11335. (eval "$ac_link") 2>conftest.er1
  11336. ac_status=$?
  11337. grep -v '^ *+' conftest.er1 >conftest.err
  11338. rm -f conftest.er1
  11339. cat conftest.err >&5
  11340. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11341. (exit $ac_status); } && {
  11342. test -z "$ac_c_werror_flag" ||
  11343. test ! -s conftest.err
  11344. } && test -s conftest$ac_exeext && {
  11345. test "$cross_compiling" = yes ||
  11346. $as_test_x conftest$ac_exeext
  11347. }; then
  11348. ac_cv_lib_uca___uc_get_ar_bsp=yes
  11349. else
  11350. $as_echo "$as_me: failed program was:" >&5
  11351. sed 's/^/| /' conftest.$ac_ext >&5
  11352. ac_cv_lib_uca___uc_get_ar_bsp=no
  11353. fi
  11354. rm -rf conftest.dSYM
  11355. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11356. conftest$ac_exeext conftest.$ac_ext
  11357. LIBS=$ac_check_lib_save_LIBS
  11358. fi
  11359. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uca___uc_get_ar_bsp" >&5
  11360. $as_echo "$ac_cv_lib_uca___uc_get_ar_bsp" >&6; }
  11361. if test "x$ac_cv_lib_uca___uc_get_ar_bsp" = x""yes; then
  11362. cat >>confdefs.h <<_ACEOF
  11363. #define HAVE_LIBUCA 1
  11364. _ACEOF
  11365. LIBS="-luca $LIBS"
  11366. fi
  11367. { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  11368. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  11369. if test "${ac_cv_c_bigendian+set}" = set; then
  11370. $as_echo_n "(cached) " >&6
  11371. else
  11372. ac_cv_c_bigendian=unknown
  11373. # See if we're dealing with a universal compiler.
  11374. cat >conftest.$ac_ext <<_ACEOF
  11375. /* confdefs.h. */
  11376. _ACEOF
  11377. cat confdefs.h >>conftest.$ac_ext
  11378. cat >>conftest.$ac_ext <<_ACEOF
  11379. /* end confdefs.h. */
  11380. #ifndef __APPLE_CC__
  11381. not a universal capable compiler
  11382. #endif
  11383. typedef int dummy;
  11384. _ACEOF
  11385. rm -f conftest.$ac_objext
  11386. if { (ac_try="$ac_compile"
  11387. case "(($ac_try" in
  11388. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11389. *) ac_try_echo=$ac_try;;
  11390. esac
  11391. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11392. $as_echo "$ac_try_echo") >&5
  11393. (eval "$ac_compile") 2>conftest.er1
  11394. ac_status=$?
  11395. grep -v '^ *+' conftest.er1 >conftest.err
  11396. rm -f conftest.er1
  11397. cat conftest.err >&5
  11398. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11399. (exit $ac_status); } && {
  11400. test -z "$ac_c_werror_flag" ||
  11401. test ! -s conftest.err
  11402. } && test -s conftest.$ac_objext; then
  11403. # Check for potential -arch flags. It is not universal unless
  11404. # there are some -arch flags. Note that *ppc* also matches
  11405. # ppc64. This check is also rather less than ideal.
  11406. case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
  11407. *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
  11408. esac
  11409. else
  11410. $as_echo "$as_me: failed program was:" >&5
  11411. sed 's/^/| /' conftest.$ac_ext >&5
  11412. fi
  11413. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11414. if test $ac_cv_c_bigendian = unknown; then
  11415. # See if sys/param.h defines the BYTE_ORDER macro.
  11416. cat >conftest.$ac_ext <<_ACEOF
  11417. /* confdefs.h. */
  11418. _ACEOF
  11419. cat confdefs.h >>conftest.$ac_ext
  11420. cat >>conftest.$ac_ext <<_ACEOF
  11421. /* end confdefs.h. */
  11422. #include <sys/types.h>
  11423. #include <sys/param.h>
  11424. int
  11425. main ()
  11426. {
  11427. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  11428. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  11429. && LITTLE_ENDIAN)
  11430. bogus endian macros
  11431. #endif
  11432. ;
  11433. return 0;
  11434. }
  11435. _ACEOF
  11436. rm -f conftest.$ac_objext
  11437. if { (ac_try="$ac_compile"
  11438. case "(($ac_try" in
  11439. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11440. *) ac_try_echo=$ac_try;;
  11441. esac
  11442. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11443. $as_echo "$ac_try_echo") >&5
  11444. (eval "$ac_compile") 2>conftest.er1
  11445. ac_status=$?
  11446. grep -v '^ *+' conftest.er1 >conftest.err
  11447. rm -f conftest.er1
  11448. cat conftest.err >&5
  11449. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11450. (exit $ac_status); } && {
  11451. test -z "$ac_c_werror_flag" ||
  11452. test ! -s conftest.err
  11453. } && test -s conftest.$ac_objext; then
  11454. # It does; now see whether it defined to BIG_ENDIAN or not.
  11455. cat >conftest.$ac_ext <<_ACEOF
  11456. /* confdefs.h. */
  11457. _ACEOF
  11458. cat confdefs.h >>conftest.$ac_ext
  11459. cat >>conftest.$ac_ext <<_ACEOF
  11460. /* end confdefs.h. */
  11461. #include <sys/types.h>
  11462. #include <sys/param.h>
  11463. int
  11464. main ()
  11465. {
  11466. #if BYTE_ORDER != BIG_ENDIAN
  11467. not big endian
  11468. #endif
  11469. ;
  11470. return 0;
  11471. }
  11472. _ACEOF
  11473. rm -f conftest.$ac_objext
  11474. if { (ac_try="$ac_compile"
  11475. case "(($ac_try" in
  11476. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11477. *) ac_try_echo=$ac_try;;
  11478. esac
  11479. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11480. $as_echo "$ac_try_echo") >&5
  11481. (eval "$ac_compile") 2>conftest.er1
  11482. ac_status=$?
  11483. grep -v '^ *+' conftest.er1 >conftest.err
  11484. rm -f conftest.er1
  11485. cat conftest.err >&5
  11486. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11487. (exit $ac_status); } && {
  11488. test -z "$ac_c_werror_flag" ||
  11489. test ! -s conftest.err
  11490. } && test -s conftest.$ac_objext; then
  11491. ac_cv_c_bigendian=yes
  11492. else
  11493. $as_echo "$as_me: failed program was:" >&5
  11494. sed 's/^/| /' conftest.$ac_ext >&5
  11495. ac_cv_c_bigendian=no
  11496. fi
  11497. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11498. else
  11499. $as_echo "$as_me: failed program was:" >&5
  11500. sed 's/^/| /' conftest.$ac_ext >&5
  11501. fi
  11502. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11503. fi
  11504. if test $ac_cv_c_bigendian = unknown; then
  11505. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  11506. cat >conftest.$ac_ext <<_ACEOF
  11507. /* confdefs.h. */
  11508. _ACEOF
  11509. cat confdefs.h >>conftest.$ac_ext
  11510. cat >>conftest.$ac_ext <<_ACEOF
  11511. /* end confdefs.h. */
  11512. #include <limits.h>
  11513. int
  11514. main ()
  11515. {
  11516. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  11517. bogus endian macros
  11518. #endif
  11519. ;
  11520. return 0;
  11521. }
  11522. _ACEOF
  11523. rm -f conftest.$ac_objext
  11524. if { (ac_try="$ac_compile"
  11525. case "(($ac_try" in
  11526. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11527. *) ac_try_echo=$ac_try;;
  11528. esac
  11529. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11530. $as_echo "$ac_try_echo") >&5
  11531. (eval "$ac_compile") 2>conftest.er1
  11532. ac_status=$?
  11533. grep -v '^ *+' conftest.er1 >conftest.err
  11534. rm -f conftest.er1
  11535. cat conftest.err >&5
  11536. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11537. (exit $ac_status); } && {
  11538. test -z "$ac_c_werror_flag" ||
  11539. test ! -s conftest.err
  11540. } && test -s conftest.$ac_objext; then
  11541. # It does; now see whether it defined to _BIG_ENDIAN or not.
  11542. cat >conftest.$ac_ext <<_ACEOF
  11543. /* confdefs.h. */
  11544. _ACEOF
  11545. cat confdefs.h >>conftest.$ac_ext
  11546. cat >>conftest.$ac_ext <<_ACEOF
  11547. /* end confdefs.h. */
  11548. #include <limits.h>
  11549. int
  11550. main ()
  11551. {
  11552. #ifndef _BIG_ENDIAN
  11553. not big endian
  11554. #endif
  11555. ;
  11556. return 0;
  11557. }
  11558. _ACEOF
  11559. rm -f conftest.$ac_objext
  11560. if { (ac_try="$ac_compile"
  11561. case "(($ac_try" in
  11562. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11563. *) ac_try_echo=$ac_try;;
  11564. esac
  11565. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11566. $as_echo "$ac_try_echo") >&5
  11567. (eval "$ac_compile") 2>conftest.er1
  11568. ac_status=$?
  11569. grep -v '^ *+' conftest.er1 >conftest.err
  11570. rm -f conftest.er1
  11571. cat conftest.err >&5
  11572. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11573. (exit $ac_status); } && {
  11574. test -z "$ac_c_werror_flag" ||
  11575. test ! -s conftest.err
  11576. } && test -s conftest.$ac_objext; then
  11577. ac_cv_c_bigendian=yes
  11578. else
  11579. $as_echo "$as_me: failed program was:" >&5
  11580. sed 's/^/| /' conftest.$ac_ext >&5
  11581. ac_cv_c_bigendian=no
  11582. fi
  11583. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11584. else
  11585. $as_echo "$as_me: failed program was:" >&5
  11586. sed 's/^/| /' conftest.$ac_ext >&5
  11587. fi
  11588. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11589. fi
  11590. if test $ac_cv_c_bigendian = unknown; then
  11591. # Compile a test program.
  11592. if test "$cross_compiling" = yes; then
  11593. # Try to guess by grepping values from an object file.
  11594. cat >conftest.$ac_ext <<_ACEOF
  11595. /* confdefs.h. */
  11596. _ACEOF
  11597. cat confdefs.h >>conftest.$ac_ext
  11598. cat >>conftest.$ac_ext <<_ACEOF
  11599. /* end confdefs.h. */
  11600. short int ascii_mm[] =
  11601. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  11602. short int ascii_ii[] =
  11603. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  11604. int use_ascii (int i) {
  11605. return ascii_mm[i] + ascii_ii[i];
  11606. }
  11607. short int ebcdic_ii[] =
  11608. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  11609. short int ebcdic_mm[] =
  11610. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  11611. int use_ebcdic (int i) {
  11612. return ebcdic_mm[i] + ebcdic_ii[i];
  11613. }
  11614. extern int foo;
  11615. int
  11616. main ()
  11617. {
  11618. return use_ascii (foo) == use_ebcdic (foo);
  11619. ;
  11620. return 0;
  11621. }
  11622. _ACEOF
  11623. rm -f conftest.$ac_objext
  11624. if { (ac_try="$ac_compile"
  11625. case "(($ac_try" in
  11626. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11627. *) ac_try_echo=$ac_try;;
  11628. esac
  11629. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11630. $as_echo "$ac_try_echo") >&5
  11631. (eval "$ac_compile") 2>conftest.er1
  11632. ac_status=$?
  11633. grep -v '^ *+' conftest.er1 >conftest.err
  11634. rm -f conftest.er1
  11635. cat conftest.err >&5
  11636. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11637. (exit $ac_status); } && {
  11638. test -z "$ac_c_werror_flag" ||
  11639. test ! -s conftest.err
  11640. } && test -s conftest.$ac_objext; then
  11641. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  11642. ac_cv_c_bigendian=yes
  11643. fi
  11644. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  11645. if test "$ac_cv_c_bigendian" = unknown; then
  11646. ac_cv_c_bigendian=no
  11647. else
  11648. # finding both strings is unlikely to happen, but who knows?
  11649. ac_cv_c_bigendian=unknown
  11650. fi
  11651. fi
  11652. else
  11653. $as_echo "$as_me: failed program was:" >&5
  11654. sed 's/^/| /' conftest.$ac_ext >&5
  11655. fi
  11656. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11657. else
  11658. cat >conftest.$ac_ext <<_ACEOF
  11659. /* confdefs.h. */
  11660. _ACEOF
  11661. cat confdefs.h >>conftest.$ac_ext
  11662. cat >>conftest.$ac_ext <<_ACEOF
  11663. /* end confdefs.h. */
  11664. $ac_includes_default
  11665. int
  11666. main ()
  11667. {
  11668. /* Are we little or big endian? From Harbison&Steele. */
  11669. union
  11670. {
  11671. long int l;
  11672. char c[sizeof (long int)];
  11673. } u;
  11674. u.l = 1;
  11675. return u.c[sizeof (long int) - 1] == 1;
  11676. ;
  11677. return 0;
  11678. }
  11679. _ACEOF
  11680. rm -f conftest$ac_exeext
  11681. if { (ac_try="$ac_link"
  11682. case "(($ac_try" in
  11683. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11684. *) ac_try_echo=$ac_try;;
  11685. esac
  11686. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11687. $as_echo "$ac_try_echo") >&5
  11688. (eval "$ac_link") 2>&5
  11689. ac_status=$?
  11690. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11691. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  11692. { (case "(($ac_try" in
  11693. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11694. *) ac_try_echo=$ac_try;;
  11695. esac
  11696. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11697. $as_echo "$ac_try_echo") >&5
  11698. (eval "$ac_try") 2>&5
  11699. ac_status=$?
  11700. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11701. (exit $ac_status); }; }; then
  11702. ac_cv_c_bigendian=no
  11703. else
  11704. $as_echo "$as_me: program exited with status $ac_status" >&5
  11705. $as_echo "$as_me: failed program was:" >&5
  11706. sed 's/^/| /' conftest.$ac_ext >&5
  11707. ( exit $ac_status )
  11708. ac_cv_c_bigendian=yes
  11709. fi
  11710. rm -rf conftest.dSYM
  11711. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  11712. fi
  11713. fi
  11714. fi
  11715. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  11716. $as_echo "$ac_cv_c_bigendian" >&6; }
  11717. case $ac_cv_c_bigendian in #(
  11718. yes)
  11719. cat >>confdefs.h <<\_ACEOF
  11720. #define WORDS_BIGENDIAN 1
  11721. _ACEOF
  11722. ;; #(
  11723. no)
  11724. ;; #(
  11725. universal)
  11726. cat >>confdefs.h <<\_ACEOF
  11727. #define AC_APPLE_UNIVERSAL_BUILD 1
  11728. _ACEOF
  11729. ;; #(
  11730. *)
  11731. { { $as_echo "$as_me:$LINENO: error: unknown endianness
  11732. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  11733. $as_echo "$as_me: error: unknown endianness
  11734. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  11735. { (exit 1); exit 1; }; } ;;
  11736. esac
  11737. # The cast to long int works around a bug in the HP C Compiler
  11738. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  11739. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  11740. # This bug is HP SR number 8606223364.
  11741. { $as_echo "$as_me:$LINENO: checking size of char" >&5
  11742. $as_echo_n "checking size of char... " >&6; }
  11743. if test "${ac_cv_sizeof_char+set}" = set; then
  11744. $as_echo_n "(cached) " >&6
  11745. else
  11746. if test "$cross_compiling" = yes; then
  11747. # Depending upon the size, compute the lo and hi bounds.
  11748. cat >conftest.$ac_ext <<_ACEOF
  11749. /* confdefs.h. */
  11750. _ACEOF
  11751. cat confdefs.h >>conftest.$ac_ext
  11752. cat >>conftest.$ac_ext <<_ACEOF
  11753. /* end confdefs.h. */
  11754. $ac_includes_default
  11755. int
  11756. main ()
  11757. {
  11758. static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= 0)];
  11759. test_array [0] = 0
  11760. ;
  11761. return 0;
  11762. }
  11763. _ACEOF
  11764. rm -f conftest.$ac_objext
  11765. if { (ac_try="$ac_compile"
  11766. case "(($ac_try" in
  11767. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11768. *) ac_try_echo=$ac_try;;
  11769. esac
  11770. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11771. $as_echo "$ac_try_echo") >&5
  11772. (eval "$ac_compile") 2>conftest.er1
  11773. ac_status=$?
  11774. grep -v '^ *+' conftest.er1 >conftest.err
  11775. rm -f conftest.er1
  11776. cat conftest.err >&5
  11777. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11778. (exit $ac_status); } && {
  11779. test -z "$ac_c_werror_flag" ||
  11780. test ! -s conftest.err
  11781. } && test -s conftest.$ac_objext; then
  11782. ac_lo=0 ac_mid=0
  11783. while :; do
  11784. cat >conftest.$ac_ext <<_ACEOF
  11785. /* confdefs.h. */
  11786. _ACEOF
  11787. cat confdefs.h >>conftest.$ac_ext
  11788. cat >>conftest.$ac_ext <<_ACEOF
  11789. /* end confdefs.h. */
  11790. $ac_includes_default
  11791. int
  11792. main ()
  11793. {
  11794. static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
  11795. test_array [0] = 0
  11796. ;
  11797. return 0;
  11798. }
  11799. _ACEOF
  11800. rm -f conftest.$ac_objext
  11801. if { (ac_try="$ac_compile"
  11802. case "(($ac_try" in
  11803. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11804. *) ac_try_echo=$ac_try;;
  11805. esac
  11806. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11807. $as_echo "$ac_try_echo") >&5
  11808. (eval "$ac_compile") 2>conftest.er1
  11809. ac_status=$?
  11810. grep -v '^ *+' conftest.er1 >conftest.err
  11811. rm -f conftest.er1
  11812. cat conftest.err >&5
  11813. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11814. (exit $ac_status); } && {
  11815. test -z "$ac_c_werror_flag" ||
  11816. test ! -s conftest.err
  11817. } && test -s conftest.$ac_objext; then
  11818. ac_hi=$ac_mid; break
  11819. else
  11820. $as_echo "$as_me: failed program was:" >&5
  11821. sed 's/^/| /' conftest.$ac_ext >&5
  11822. ac_lo=`expr $ac_mid + 1`
  11823. if test $ac_lo -le $ac_mid; then
  11824. ac_lo= ac_hi=
  11825. break
  11826. fi
  11827. ac_mid=`expr 2 '*' $ac_mid + 1`
  11828. fi
  11829. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11830. done
  11831. else
  11832. $as_echo "$as_me: failed program was:" >&5
  11833. sed 's/^/| /' conftest.$ac_ext >&5
  11834. cat >conftest.$ac_ext <<_ACEOF
  11835. /* confdefs.h. */
  11836. _ACEOF
  11837. cat confdefs.h >>conftest.$ac_ext
  11838. cat >>conftest.$ac_ext <<_ACEOF
  11839. /* end confdefs.h. */
  11840. $ac_includes_default
  11841. int
  11842. main ()
  11843. {
  11844. static int test_array [1 - 2 * !(((long int) (sizeof (char))) < 0)];
  11845. test_array [0] = 0
  11846. ;
  11847. return 0;
  11848. }
  11849. _ACEOF
  11850. rm -f conftest.$ac_objext
  11851. if { (ac_try="$ac_compile"
  11852. case "(($ac_try" in
  11853. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11854. *) ac_try_echo=$ac_try;;
  11855. esac
  11856. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11857. $as_echo "$ac_try_echo") >&5
  11858. (eval "$ac_compile") 2>conftest.er1
  11859. ac_status=$?
  11860. grep -v '^ *+' conftest.er1 >conftest.err
  11861. rm -f conftest.er1
  11862. cat conftest.err >&5
  11863. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11864. (exit $ac_status); } && {
  11865. test -z "$ac_c_werror_flag" ||
  11866. test ! -s conftest.err
  11867. } && test -s conftest.$ac_objext; then
  11868. ac_hi=-1 ac_mid=-1
  11869. while :; do
  11870. cat >conftest.$ac_ext <<_ACEOF
  11871. /* confdefs.h. */
  11872. _ACEOF
  11873. cat confdefs.h >>conftest.$ac_ext
  11874. cat >>conftest.$ac_ext <<_ACEOF
  11875. /* end confdefs.h. */
  11876. $ac_includes_default
  11877. int
  11878. main ()
  11879. {
  11880. static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= $ac_mid)];
  11881. test_array [0] = 0
  11882. ;
  11883. return 0;
  11884. }
  11885. _ACEOF
  11886. rm -f conftest.$ac_objext
  11887. if { (ac_try="$ac_compile"
  11888. case "(($ac_try" in
  11889. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11890. *) ac_try_echo=$ac_try;;
  11891. esac
  11892. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11893. $as_echo "$ac_try_echo") >&5
  11894. (eval "$ac_compile") 2>conftest.er1
  11895. ac_status=$?
  11896. grep -v '^ *+' conftest.er1 >conftest.err
  11897. rm -f conftest.er1
  11898. cat conftest.err >&5
  11899. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11900. (exit $ac_status); } && {
  11901. test -z "$ac_c_werror_flag" ||
  11902. test ! -s conftest.err
  11903. } && test -s conftest.$ac_objext; then
  11904. ac_lo=$ac_mid; break
  11905. else
  11906. $as_echo "$as_me: failed program was:" >&5
  11907. sed 's/^/| /' conftest.$ac_ext >&5
  11908. ac_hi=`expr '(' $ac_mid ')' - 1`
  11909. if test $ac_mid -le $ac_hi; then
  11910. ac_lo= ac_hi=
  11911. break
  11912. fi
  11913. ac_mid=`expr 2 '*' $ac_mid`
  11914. fi
  11915. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11916. done
  11917. else
  11918. $as_echo "$as_me: failed program was:" >&5
  11919. sed 's/^/| /' conftest.$ac_ext >&5
  11920. ac_lo= ac_hi=
  11921. fi
  11922. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11923. fi
  11924. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11925. # Binary search between lo and hi bounds.
  11926. while test "x$ac_lo" != "x$ac_hi"; do
  11927. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  11928. cat >conftest.$ac_ext <<_ACEOF
  11929. /* confdefs.h. */
  11930. _ACEOF
  11931. cat confdefs.h >>conftest.$ac_ext
  11932. cat >>conftest.$ac_ext <<_ACEOF
  11933. /* end confdefs.h. */
  11934. $ac_includes_default
  11935. int
  11936. main ()
  11937. {
  11938. static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
  11939. test_array [0] = 0
  11940. ;
  11941. return 0;
  11942. }
  11943. _ACEOF
  11944. rm -f conftest.$ac_objext
  11945. if { (ac_try="$ac_compile"
  11946. case "(($ac_try" in
  11947. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11948. *) ac_try_echo=$ac_try;;
  11949. esac
  11950. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11951. $as_echo "$ac_try_echo") >&5
  11952. (eval "$ac_compile") 2>conftest.er1
  11953. ac_status=$?
  11954. grep -v '^ *+' conftest.er1 >conftest.err
  11955. rm -f conftest.er1
  11956. cat conftest.err >&5
  11957. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11958. (exit $ac_status); } && {
  11959. test -z "$ac_c_werror_flag" ||
  11960. test ! -s conftest.err
  11961. } && test -s conftest.$ac_objext; then
  11962. ac_hi=$ac_mid
  11963. else
  11964. $as_echo "$as_me: failed program was:" >&5
  11965. sed 's/^/| /' conftest.$ac_ext >&5
  11966. ac_lo=`expr '(' $ac_mid ')' + 1`
  11967. fi
  11968. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11969. done
  11970. case $ac_lo in
  11971. ?*) ac_cv_sizeof_char=$ac_lo;;
  11972. '') if test "$ac_cv_type_char" = yes; then
  11973. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  11974. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11975. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
  11976. See \`config.log' for more details." >&5
  11977. $as_echo "$as_me: error: cannot compute sizeof (char)
  11978. See \`config.log' for more details." >&2;}
  11979. { (exit 77); exit 77; }; }; }
  11980. else
  11981. ac_cv_sizeof_char=0
  11982. fi ;;
  11983. esac
  11984. else
  11985. cat >conftest.$ac_ext <<_ACEOF
  11986. /* confdefs.h. */
  11987. _ACEOF
  11988. cat confdefs.h >>conftest.$ac_ext
  11989. cat >>conftest.$ac_ext <<_ACEOF
  11990. /* end confdefs.h. */
  11991. $ac_includes_default
  11992. static long int longval () { return (long int) (sizeof (char)); }
  11993. static unsigned long int ulongval () { return (long int) (sizeof (char)); }
  11994. #include <stdio.h>
  11995. #include <stdlib.h>
  11996. int
  11997. main ()
  11998. {
  11999. FILE *f = fopen ("conftest.val", "w");
  12000. if (! f)
  12001. return 1;
  12002. if (((long int) (sizeof (char))) < 0)
  12003. {
  12004. long int i = longval ();
  12005. if (i != ((long int) (sizeof (char))))
  12006. return 1;
  12007. fprintf (f, "%ld", i);
  12008. }
  12009. else
  12010. {
  12011. unsigned long int i = ulongval ();
  12012. if (i != ((long int) (sizeof (char))))
  12013. return 1;
  12014. fprintf (f, "%lu", i);
  12015. }
  12016. /* Do not output a trailing newline, as this causes \r\n confusion
  12017. on some platforms. */
  12018. return ferror (f) || fclose (f) != 0;
  12019. ;
  12020. return 0;
  12021. }
  12022. _ACEOF
  12023. rm -f conftest$ac_exeext
  12024. if { (ac_try="$ac_link"
  12025. case "(($ac_try" in
  12026. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12027. *) ac_try_echo=$ac_try;;
  12028. esac
  12029. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12030. $as_echo "$ac_try_echo") >&5
  12031. (eval "$ac_link") 2>&5
  12032. ac_status=$?
  12033. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12034. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  12035. { (case "(($ac_try" in
  12036. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12037. *) ac_try_echo=$ac_try;;
  12038. esac
  12039. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12040. $as_echo "$ac_try_echo") >&5
  12041. (eval "$ac_try") 2>&5
  12042. ac_status=$?
  12043. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12044. (exit $ac_status); }; }; then
  12045. ac_cv_sizeof_char=`cat conftest.val`
  12046. else
  12047. $as_echo "$as_me: program exited with status $ac_status" >&5
  12048. $as_echo "$as_me: failed program was:" >&5
  12049. sed 's/^/| /' conftest.$ac_ext >&5
  12050. ( exit $ac_status )
  12051. if test "$ac_cv_type_char" = yes; then
  12052. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  12053. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12054. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
  12055. See \`config.log' for more details." >&5
  12056. $as_echo "$as_me: error: cannot compute sizeof (char)
  12057. See \`config.log' for more details." >&2;}
  12058. { (exit 77); exit 77; }; }; }
  12059. else
  12060. ac_cv_sizeof_char=0
  12061. fi
  12062. fi
  12063. rm -rf conftest.dSYM
  12064. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  12065. fi
  12066. rm -f conftest.val
  12067. fi
  12068. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
  12069. $as_echo "$ac_cv_sizeof_char" >&6; }
  12070. cat >>confdefs.h <<_ACEOF
  12071. #define SIZEOF_CHAR $ac_cv_sizeof_char
  12072. _ACEOF
  12073. # The cast to long int works around a bug in the HP C Compiler
  12074. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  12075. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  12076. # This bug is HP SR number 8606223364.
  12077. { $as_echo "$as_me:$LINENO: checking size of unsigned char" >&5
  12078. $as_echo_n "checking size of unsigned char... " >&6; }
  12079. if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
  12080. $as_echo_n "(cached) " >&6
  12081. else
  12082. if test "$cross_compiling" = yes; then
  12083. # Depending upon the size, compute the lo and hi bounds.
  12084. cat >conftest.$ac_ext <<_ACEOF
  12085. /* confdefs.h. */
  12086. _ACEOF
  12087. cat confdefs.h >>conftest.$ac_ext
  12088. cat >>conftest.$ac_ext <<_ACEOF
  12089. /* end confdefs.h. */
  12090. $ac_includes_default
  12091. int
  12092. main ()
  12093. {
  12094. static int test_array [1 - 2 * !(((long int) (sizeof (unsigned char))) >= 0)];
  12095. test_array [0] = 0
  12096. ;
  12097. return 0;
  12098. }
  12099. _ACEOF
  12100. rm -f conftest.$ac_objext
  12101. if { (ac_try="$ac_compile"
  12102. case "(($ac_try" in
  12103. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12104. *) ac_try_echo=$ac_try;;
  12105. esac
  12106. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12107. $as_echo "$ac_try_echo") >&5
  12108. (eval "$ac_compile") 2>conftest.er1
  12109. ac_status=$?
  12110. grep -v '^ *+' conftest.er1 >conftest.err
  12111. rm -f conftest.er1
  12112. cat conftest.err >&5
  12113. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12114. (exit $ac_status); } && {
  12115. test -z "$ac_c_werror_flag" ||
  12116. test ! -s conftest.err
  12117. } && test -s conftest.$ac_objext; then
  12118. ac_lo=0 ac_mid=0
  12119. while :; do
  12120. cat >conftest.$ac_ext <<_ACEOF
  12121. /* confdefs.h. */
  12122. _ACEOF
  12123. cat confdefs.h >>conftest.$ac_ext
  12124. cat >>conftest.$ac_ext <<_ACEOF
  12125. /* end confdefs.h. */
  12126. $ac_includes_default
  12127. int
  12128. main ()
  12129. {
  12130. static int test_array [1 - 2 * !(((long int) (sizeof (unsigned char))) <= $ac_mid)];
  12131. test_array [0] = 0
  12132. ;
  12133. return 0;
  12134. }
  12135. _ACEOF
  12136. rm -f conftest.$ac_objext
  12137. if { (ac_try="$ac_compile"
  12138. case "(($ac_try" in
  12139. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12140. *) ac_try_echo=$ac_try;;
  12141. esac
  12142. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12143. $as_echo "$ac_try_echo") >&5
  12144. (eval "$ac_compile") 2>conftest.er1
  12145. ac_status=$?
  12146. grep -v '^ *+' conftest.er1 >conftest.err
  12147. rm -f conftest.er1
  12148. cat conftest.err >&5
  12149. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12150. (exit $ac_status); } && {
  12151. test -z "$ac_c_werror_flag" ||
  12152. test ! -s conftest.err
  12153. } && test -s conftest.$ac_objext; then
  12154. ac_hi=$ac_mid; break
  12155. else
  12156. $as_echo "$as_me: failed program was:" >&5
  12157. sed 's/^/| /' conftest.$ac_ext >&5
  12158. ac_lo=`expr $ac_mid + 1`
  12159. if test $ac_lo -le $ac_mid; then
  12160. ac_lo= ac_hi=
  12161. break
  12162. fi
  12163. ac_mid=`expr 2 '*' $ac_mid + 1`
  12164. fi
  12165. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12166. done
  12167. else
  12168. $as_echo "$as_me: failed program was:" >&5
  12169. sed 's/^/| /' conftest.$ac_ext >&5
  12170. cat >conftest.$ac_ext <<_ACEOF
  12171. /* confdefs.h. */
  12172. _ACEOF
  12173. cat confdefs.h >>conftest.$ac_ext
  12174. cat >>conftest.$ac_ext <<_ACEOF
  12175. /* end confdefs.h. */
  12176. $ac_includes_default
  12177. int
  12178. main ()
  12179. {
  12180. static int test_array [1 - 2 * !(((long int) (sizeof (unsigned char))) < 0)];
  12181. test_array [0] = 0
  12182. ;
  12183. return 0;
  12184. }
  12185. _ACEOF
  12186. rm -f conftest.$ac_objext
  12187. if { (ac_try="$ac_compile"
  12188. case "(($ac_try" in
  12189. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12190. *) ac_try_echo=$ac_try;;
  12191. esac
  12192. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12193. $as_echo "$ac_try_echo") >&5
  12194. (eval "$ac_compile") 2>conftest.er1
  12195. ac_status=$?
  12196. grep -v '^ *+' conftest.er1 >conftest.err
  12197. rm -f conftest.er1
  12198. cat conftest.err >&5
  12199. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12200. (exit $ac_status); } && {
  12201. test -z "$ac_c_werror_flag" ||
  12202. test ! -s conftest.err
  12203. } && test -s conftest.$ac_objext; then
  12204. ac_hi=-1 ac_mid=-1
  12205. while :; do
  12206. cat >conftest.$ac_ext <<_ACEOF
  12207. /* confdefs.h. */
  12208. _ACEOF
  12209. cat confdefs.h >>conftest.$ac_ext
  12210. cat >>conftest.$ac_ext <<_ACEOF
  12211. /* end confdefs.h. */
  12212. $ac_includes_default
  12213. int
  12214. main ()
  12215. {
  12216. static int test_array [1 - 2 * !(((long int) (sizeof (unsigned char))) >= $ac_mid)];
  12217. test_array [0] = 0
  12218. ;
  12219. return 0;
  12220. }
  12221. _ACEOF
  12222. rm -f conftest.$ac_objext
  12223. if { (ac_try="$ac_compile"
  12224. case "(($ac_try" in
  12225. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12226. *) ac_try_echo=$ac_try;;
  12227. esac
  12228. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12229. $as_echo "$ac_try_echo") >&5
  12230. (eval "$ac_compile") 2>conftest.er1
  12231. ac_status=$?
  12232. grep -v '^ *+' conftest.er1 >conftest.err
  12233. rm -f conftest.er1
  12234. cat conftest.err >&5
  12235. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12236. (exit $ac_status); } && {
  12237. test -z "$ac_c_werror_flag" ||
  12238. test ! -s conftest.err
  12239. } && test -s conftest.$ac_objext; then
  12240. ac_lo=$ac_mid; break
  12241. else
  12242. $as_echo "$as_me: failed program was:" >&5
  12243. sed 's/^/| /' conftest.$ac_ext >&5
  12244. ac_hi=`expr '(' $ac_mid ')' - 1`
  12245. if test $ac_mid -le $ac_hi; then
  12246. ac_lo= ac_hi=
  12247. break
  12248. fi
  12249. ac_mid=`expr 2 '*' $ac_mid`
  12250. fi
  12251. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12252. done
  12253. else
  12254. $as_echo "$as_me: failed program was:" >&5
  12255. sed 's/^/| /' conftest.$ac_ext >&5
  12256. ac_lo= ac_hi=
  12257. fi
  12258. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12259. fi
  12260. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12261. # Binary search between lo and hi bounds.
  12262. while test "x$ac_lo" != "x$ac_hi"; do
  12263. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  12264. cat >conftest.$ac_ext <<_ACEOF
  12265. /* confdefs.h. */
  12266. _ACEOF
  12267. cat confdefs.h >>conftest.$ac_ext
  12268. cat >>conftest.$ac_ext <<_ACEOF
  12269. /* end confdefs.h. */
  12270. $ac_includes_default
  12271. int
  12272. main ()
  12273. {
  12274. static int test_array [1 - 2 * !(((long int) (sizeof (unsigned char))) <= $ac_mid)];
  12275. test_array [0] = 0
  12276. ;
  12277. return 0;
  12278. }
  12279. _ACEOF
  12280. rm -f conftest.$ac_objext
  12281. if { (ac_try="$ac_compile"
  12282. case "(($ac_try" in
  12283. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12284. *) ac_try_echo=$ac_try;;
  12285. esac
  12286. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12287. $as_echo "$ac_try_echo") >&5
  12288. (eval "$ac_compile") 2>conftest.er1
  12289. ac_status=$?
  12290. grep -v '^ *+' conftest.er1 >conftest.err
  12291. rm -f conftest.er1
  12292. cat conftest.err >&5
  12293. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12294. (exit $ac_status); } && {
  12295. test -z "$ac_c_werror_flag" ||
  12296. test ! -s conftest.err
  12297. } && test -s conftest.$ac_objext; then
  12298. ac_hi=$ac_mid
  12299. else
  12300. $as_echo "$as_me: failed program was:" >&5
  12301. sed 's/^/| /' conftest.$ac_ext >&5
  12302. ac_lo=`expr '(' $ac_mid ')' + 1`
  12303. fi
  12304. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12305. done
  12306. case $ac_lo in
  12307. ?*) ac_cv_sizeof_unsigned_char=$ac_lo;;
  12308. '') if test "$ac_cv_type_unsigned_char" = yes; then
  12309. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  12310. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12311. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char)
  12312. See \`config.log' for more details." >&5
  12313. $as_echo "$as_me: error: cannot compute sizeof (unsigned char)
  12314. See \`config.log' for more details." >&2;}
  12315. { (exit 77); exit 77; }; }; }
  12316. else
  12317. ac_cv_sizeof_unsigned_char=0
  12318. fi ;;
  12319. esac
  12320. else
  12321. cat >conftest.$ac_ext <<_ACEOF
  12322. /* confdefs.h. */
  12323. _ACEOF
  12324. cat confdefs.h >>conftest.$ac_ext
  12325. cat >>conftest.$ac_ext <<_ACEOF
  12326. /* end confdefs.h. */
  12327. $ac_includes_default
  12328. static long int longval () { return (long int) (sizeof (unsigned char)); }
  12329. static unsigned long int ulongval () { return (long int) (sizeof (unsigned char)); }
  12330. #include <stdio.h>
  12331. #include <stdlib.h>
  12332. int
  12333. main ()
  12334. {
  12335. FILE *f = fopen ("conftest.val", "w");
  12336. if (! f)
  12337. return 1;
  12338. if (((long int) (sizeof (unsigned char))) < 0)
  12339. {
  12340. long int i = longval ();
  12341. if (i != ((long int) (sizeof (unsigned char))))
  12342. return 1;
  12343. fprintf (f, "%ld", i);
  12344. }
  12345. else
  12346. {
  12347. unsigned long int i = ulongval ();
  12348. if (i != ((long int) (sizeof (unsigned char))))
  12349. return 1;
  12350. fprintf (f, "%lu", i);
  12351. }
  12352. /* Do not output a trailing newline, as this causes \r\n confusion
  12353. on some platforms. */
  12354. return ferror (f) || fclose (f) != 0;
  12355. ;
  12356. return 0;
  12357. }
  12358. _ACEOF
  12359. rm -f conftest$ac_exeext
  12360. if { (ac_try="$ac_link"
  12361. case "(($ac_try" in
  12362. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12363. *) ac_try_echo=$ac_try;;
  12364. esac
  12365. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12366. $as_echo "$ac_try_echo") >&5
  12367. (eval "$ac_link") 2>&5
  12368. ac_status=$?
  12369. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12370. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  12371. { (case "(($ac_try" in
  12372. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12373. *) ac_try_echo=$ac_try;;
  12374. esac
  12375. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12376. $as_echo "$ac_try_echo") >&5
  12377. (eval "$ac_try") 2>&5
  12378. ac_status=$?
  12379. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12380. (exit $ac_status); }; }; then
  12381. ac_cv_sizeof_unsigned_char=`cat conftest.val`
  12382. else
  12383. $as_echo "$as_me: program exited with status $ac_status" >&5
  12384. $as_echo "$as_me: failed program was:" >&5
  12385. sed 's/^/| /' conftest.$ac_ext >&5
  12386. ( exit $ac_status )
  12387. if test "$ac_cv_type_unsigned_char" = yes; then
  12388. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  12389. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12390. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char)
  12391. See \`config.log' for more details." >&5
  12392. $as_echo "$as_me: error: cannot compute sizeof (unsigned char)
  12393. See \`config.log' for more details." >&2;}
  12394. { (exit 77); exit 77; }; }; }
  12395. else
  12396. ac_cv_sizeof_unsigned_char=0
  12397. fi
  12398. fi
  12399. rm -rf conftest.dSYM
  12400. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  12401. fi
  12402. rm -f conftest.val
  12403. fi
  12404. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
  12405. $as_echo "$ac_cv_sizeof_unsigned_char" >&6; }
  12406. cat >>confdefs.h <<_ACEOF
  12407. #define SIZEOF_UNSIGNED_CHAR $ac_cv_sizeof_unsigned_char
  12408. _ACEOF
  12409. # The cast to long int works around a bug in the HP C Compiler
  12410. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  12411. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  12412. # This bug is HP SR number 8606223364.
  12413. { $as_echo "$as_me:$LINENO: checking size of short" >&5
  12414. $as_echo_n "checking size of short... " >&6; }
  12415. if test "${ac_cv_sizeof_short+set}" = set; then
  12416. $as_echo_n "(cached) " >&6
  12417. else
  12418. if test "$cross_compiling" = yes; then
  12419. # Depending upon the size, compute the lo and hi bounds.
  12420. cat >conftest.$ac_ext <<_ACEOF
  12421. /* confdefs.h. */
  12422. _ACEOF
  12423. cat confdefs.h >>conftest.$ac_ext
  12424. cat >>conftest.$ac_ext <<_ACEOF
  12425. /* end confdefs.h. */
  12426. $ac_includes_default
  12427. int
  12428. main ()
  12429. {
  12430. static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
  12431. test_array [0] = 0
  12432. ;
  12433. return 0;
  12434. }
  12435. _ACEOF
  12436. rm -f conftest.$ac_objext
  12437. if { (ac_try="$ac_compile"
  12438. case "(($ac_try" in
  12439. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12440. *) ac_try_echo=$ac_try;;
  12441. esac
  12442. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12443. $as_echo "$ac_try_echo") >&5
  12444. (eval "$ac_compile") 2>conftest.er1
  12445. ac_status=$?
  12446. grep -v '^ *+' conftest.er1 >conftest.err
  12447. rm -f conftest.er1
  12448. cat conftest.err >&5
  12449. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12450. (exit $ac_status); } && {
  12451. test -z "$ac_c_werror_flag" ||
  12452. test ! -s conftest.err
  12453. } && test -s conftest.$ac_objext; then
  12454. ac_lo=0 ac_mid=0
  12455. while :; do
  12456. cat >conftest.$ac_ext <<_ACEOF
  12457. /* confdefs.h. */
  12458. _ACEOF
  12459. cat confdefs.h >>conftest.$ac_ext
  12460. cat >>conftest.$ac_ext <<_ACEOF
  12461. /* end confdefs.h. */
  12462. $ac_includes_default
  12463. int
  12464. main ()
  12465. {
  12466. static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
  12467. test_array [0] = 0
  12468. ;
  12469. return 0;
  12470. }
  12471. _ACEOF
  12472. rm -f conftest.$ac_objext
  12473. if { (ac_try="$ac_compile"
  12474. case "(($ac_try" in
  12475. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12476. *) ac_try_echo=$ac_try;;
  12477. esac
  12478. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12479. $as_echo "$ac_try_echo") >&5
  12480. (eval "$ac_compile") 2>conftest.er1
  12481. ac_status=$?
  12482. grep -v '^ *+' conftest.er1 >conftest.err
  12483. rm -f conftest.er1
  12484. cat conftest.err >&5
  12485. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12486. (exit $ac_status); } && {
  12487. test -z "$ac_c_werror_flag" ||
  12488. test ! -s conftest.err
  12489. } && test -s conftest.$ac_objext; then
  12490. ac_hi=$ac_mid; break
  12491. else
  12492. $as_echo "$as_me: failed program was:" >&5
  12493. sed 's/^/| /' conftest.$ac_ext >&5
  12494. ac_lo=`expr $ac_mid + 1`
  12495. if test $ac_lo -le $ac_mid; then
  12496. ac_lo= ac_hi=
  12497. break
  12498. fi
  12499. ac_mid=`expr 2 '*' $ac_mid + 1`
  12500. fi
  12501. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12502. done
  12503. else
  12504. $as_echo "$as_me: failed program was:" >&5
  12505. sed 's/^/| /' conftest.$ac_ext >&5
  12506. cat >conftest.$ac_ext <<_ACEOF
  12507. /* confdefs.h. */
  12508. _ACEOF
  12509. cat confdefs.h >>conftest.$ac_ext
  12510. cat >>conftest.$ac_ext <<_ACEOF
  12511. /* end confdefs.h. */
  12512. $ac_includes_default
  12513. int
  12514. main ()
  12515. {
  12516. static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
  12517. test_array [0] = 0
  12518. ;
  12519. return 0;
  12520. }
  12521. _ACEOF
  12522. rm -f conftest.$ac_objext
  12523. if { (ac_try="$ac_compile"
  12524. case "(($ac_try" in
  12525. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12526. *) ac_try_echo=$ac_try;;
  12527. esac
  12528. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12529. $as_echo "$ac_try_echo") >&5
  12530. (eval "$ac_compile") 2>conftest.er1
  12531. ac_status=$?
  12532. grep -v '^ *+' conftest.er1 >conftest.err
  12533. rm -f conftest.er1
  12534. cat conftest.err >&5
  12535. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12536. (exit $ac_status); } && {
  12537. test -z "$ac_c_werror_flag" ||
  12538. test ! -s conftest.err
  12539. } && test -s conftest.$ac_objext; then
  12540. ac_hi=-1 ac_mid=-1
  12541. while :; do
  12542. cat >conftest.$ac_ext <<_ACEOF
  12543. /* confdefs.h. */
  12544. _ACEOF
  12545. cat confdefs.h >>conftest.$ac_ext
  12546. cat >>conftest.$ac_ext <<_ACEOF
  12547. /* end confdefs.h. */
  12548. $ac_includes_default
  12549. int
  12550. main ()
  12551. {
  12552. static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
  12553. test_array [0] = 0
  12554. ;
  12555. return 0;
  12556. }
  12557. _ACEOF
  12558. rm -f conftest.$ac_objext
  12559. if { (ac_try="$ac_compile"
  12560. case "(($ac_try" in
  12561. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12562. *) ac_try_echo=$ac_try;;
  12563. esac
  12564. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12565. $as_echo "$ac_try_echo") >&5
  12566. (eval "$ac_compile") 2>conftest.er1
  12567. ac_status=$?
  12568. grep -v '^ *+' conftest.er1 >conftest.err
  12569. rm -f conftest.er1
  12570. cat conftest.err >&5
  12571. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12572. (exit $ac_status); } && {
  12573. test -z "$ac_c_werror_flag" ||
  12574. test ! -s conftest.err
  12575. } && test -s conftest.$ac_objext; then
  12576. ac_lo=$ac_mid; break
  12577. else
  12578. $as_echo "$as_me: failed program was:" >&5
  12579. sed 's/^/| /' conftest.$ac_ext >&5
  12580. ac_hi=`expr '(' $ac_mid ')' - 1`
  12581. if test $ac_mid -le $ac_hi; then
  12582. ac_lo= ac_hi=
  12583. break
  12584. fi
  12585. ac_mid=`expr 2 '*' $ac_mid`
  12586. fi
  12587. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12588. done
  12589. else
  12590. $as_echo "$as_me: failed program was:" >&5
  12591. sed 's/^/| /' conftest.$ac_ext >&5
  12592. ac_lo= ac_hi=
  12593. fi
  12594. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12595. fi
  12596. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12597. # Binary search between lo and hi bounds.
  12598. while test "x$ac_lo" != "x$ac_hi"; do
  12599. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  12600. cat >conftest.$ac_ext <<_ACEOF
  12601. /* confdefs.h. */
  12602. _ACEOF
  12603. cat confdefs.h >>conftest.$ac_ext
  12604. cat >>conftest.$ac_ext <<_ACEOF
  12605. /* end confdefs.h. */
  12606. $ac_includes_default
  12607. int
  12608. main ()
  12609. {
  12610. static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
  12611. test_array [0] = 0
  12612. ;
  12613. return 0;
  12614. }
  12615. _ACEOF
  12616. rm -f conftest.$ac_objext
  12617. if { (ac_try="$ac_compile"
  12618. case "(($ac_try" in
  12619. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12620. *) ac_try_echo=$ac_try;;
  12621. esac
  12622. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12623. $as_echo "$ac_try_echo") >&5
  12624. (eval "$ac_compile") 2>conftest.er1
  12625. ac_status=$?
  12626. grep -v '^ *+' conftest.er1 >conftest.err
  12627. rm -f conftest.er1
  12628. cat conftest.err >&5
  12629. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12630. (exit $ac_status); } && {
  12631. test -z "$ac_c_werror_flag" ||
  12632. test ! -s conftest.err
  12633. } && test -s conftest.$ac_objext; then
  12634. ac_hi=$ac_mid
  12635. else
  12636. $as_echo "$as_me: failed program was:" >&5
  12637. sed 's/^/| /' conftest.$ac_ext >&5
  12638. ac_lo=`expr '(' $ac_mid ')' + 1`
  12639. fi
  12640. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12641. done
  12642. case $ac_lo in
  12643. ?*) ac_cv_sizeof_short=$ac_lo;;
  12644. '') if test "$ac_cv_type_short" = yes; then
  12645. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  12646. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12647. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
  12648. See \`config.log' for more details." >&5
  12649. $as_echo "$as_me: error: cannot compute sizeof (short)
  12650. See \`config.log' for more details." >&2;}
  12651. { (exit 77); exit 77; }; }; }
  12652. else
  12653. ac_cv_sizeof_short=0
  12654. fi ;;
  12655. esac
  12656. else
  12657. cat >conftest.$ac_ext <<_ACEOF
  12658. /* confdefs.h. */
  12659. _ACEOF
  12660. cat confdefs.h >>conftest.$ac_ext
  12661. cat >>conftest.$ac_ext <<_ACEOF
  12662. /* end confdefs.h. */
  12663. $ac_includes_default
  12664. static long int longval () { return (long int) (sizeof (short)); }
  12665. static unsigned long int ulongval () { return (long int) (sizeof (short)); }
  12666. #include <stdio.h>
  12667. #include <stdlib.h>
  12668. int
  12669. main ()
  12670. {
  12671. FILE *f = fopen ("conftest.val", "w");
  12672. if (! f)
  12673. return 1;
  12674. if (((long int) (sizeof (short))) < 0)
  12675. {
  12676. long int i = longval ();
  12677. if (i != ((long int) (sizeof (short))))
  12678. return 1;
  12679. fprintf (f, "%ld", i);
  12680. }
  12681. else
  12682. {
  12683. unsigned long int i = ulongval ();
  12684. if (i != ((long int) (sizeof (short))))
  12685. return 1;
  12686. fprintf (f, "%lu", i);
  12687. }
  12688. /* Do not output a trailing newline, as this causes \r\n confusion
  12689. on some platforms. */
  12690. return ferror (f) || fclose (f) != 0;
  12691. ;
  12692. return 0;
  12693. }
  12694. _ACEOF
  12695. rm -f conftest$ac_exeext
  12696. if { (ac_try="$ac_link"
  12697. case "(($ac_try" in
  12698. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12699. *) ac_try_echo=$ac_try;;
  12700. esac
  12701. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12702. $as_echo "$ac_try_echo") >&5
  12703. (eval "$ac_link") 2>&5
  12704. ac_status=$?
  12705. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12706. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  12707. { (case "(($ac_try" in
  12708. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12709. *) ac_try_echo=$ac_try;;
  12710. esac
  12711. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12712. $as_echo "$ac_try_echo") >&5
  12713. (eval "$ac_try") 2>&5
  12714. ac_status=$?
  12715. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12716. (exit $ac_status); }; }; then
  12717. ac_cv_sizeof_short=`cat conftest.val`
  12718. else
  12719. $as_echo "$as_me: program exited with status $ac_status" >&5
  12720. $as_echo "$as_me: failed program was:" >&5
  12721. sed 's/^/| /' conftest.$ac_ext >&5
  12722. ( exit $ac_status )
  12723. if test "$ac_cv_type_short" = yes; then
  12724. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  12725. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12726. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
  12727. See \`config.log' for more details." >&5
  12728. $as_echo "$as_me: error: cannot compute sizeof (short)
  12729. See \`config.log' for more details." >&2;}
  12730. { (exit 77); exit 77; }; }; }
  12731. else
  12732. ac_cv_sizeof_short=0
  12733. fi
  12734. fi
  12735. rm -rf conftest.dSYM
  12736. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  12737. fi
  12738. rm -f conftest.val
  12739. fi
  12740. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
  12741. $as_echo "$ac_cv_sizeof_short" >&6; }
  12742. cat >>confdefs.h <<_ACEOF
  12743. #define SIZEOF_SHORT $ac_cv_sizeof_short
  12744. _ACEOF
  12745. # The cast to long int works around a bug in the HP C Compiler
  12746. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  12747. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  12748. # This bug is HP SR number 8606223364.
  12749. { $as_echo "$as_me:$LINENO: checking size of unsigned short" >&5
  12750. $as_echo_n "checking size of unsigned short... " >&6; }
  12751. if test "${ac_cv_sizeof_unsigned_short+set}" = set; then
  12752. $as_echo_n "(cached) " >&6
  12753. else
  12754. if test "$cross_compiling" = yes; then
  12755. # Depending upon the size, compute the lo and hi bounds.
  12756. cat >conftest.$ac_ext <<_ACEOF
  12757. /* confdefs.h. */
  12758. _ACEOF
  12759. cat confdefs.h >>conftest.$ac_ext
  12760. cat >>conftest.$ac_ext <<_ACEOF
  12761. /* end confdefs.h. */
  12762. $ac_includes_default
  12763. int
  12764. main ()
  12765. {
  12766. static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) >= 0)];
  12767. test_array [0] = 0
  12768. ;
  12769. return 0;
  12770. }
  12771. _ACEOF
  12772. rm -f conftest.$ac_objext
  12773. if { (ac_try="$ac_compile"
  12774. case "(($ac_try" in
  12775. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12776. *) ac_try_echo=$ac_try;;
  12777. esac
  12778. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12779. $as_echo "$ac_try_echo") >&5
  12780. (eval "$ac_compile") 2>conftest.er1
  12781. ac_status=$?
  12782. grep -v '^ *+' conftest.er1 >conftest.err
  12783. rm -f conftest.er1
  12784. cat conftest.err >&5
  12785. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12786. (exit $ac_status); } && {
  12787. test -z "$ac_c_werror_flag" ||
  12788. test ! -s conftest.err
  12789. } && test -s conftest.$ac_objext; then
  12790. ac_lo=0 ac_mid=0
  12791. while :; do
  12792. cat >conftest.$ac_ext <<_ACEOF
  12793. /* confdefs.h. */
  12794. _ACEOF
  12795. cat confdefs.h >>conftest.$ac_ext
  12796. cat >>conftest.$ac_ext <<_ACEOF
  12797. /* end confdefs.h. */
  12798. $ac_includes_default
  12799. int
  12800. main ()
  12801. {
  12802. static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) <= $ac_mid)];
  12803. test_array [0] = 0
  12804. ;
  12805. return 0;
  12806. }
  12807. _ACEOF
  12808. rm -f conftest.$ac_objext
  12809. if { (ac_try="$ac_compile"
  12810. case "(($ac_try" in
  12811. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12812. *) ac_try_echo=$ac_try;;
  12813. esac
  12814. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12815. $as_echo "$ac_try_echo") >&5
  12816. (eval "$ac_compile") 2>conftest.er1
  12817. ac_status=$?
  12818. grep -v '^ *+' conftest.er1 >conftest.err
  12819. rm -f conftest.er1
  12820. cat conftest.err >&5
  12821. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12822. (exit $ac_status); } && {
  12823. test -z "$ac_c_werror_flag" ||
  12824. test ! -s conftest.err
  12825. } && test -s conftest.$ac_objext; then
  12826. ac_hi=$ac_mid; break
  12827. else
  12828. $as_echo "$as_me: failed program was:" >&5
  12829. sed 's/^/| /' conftest.$ac_ext >&5
  12830. ac_lo=`expr $ac_mid + 1`
  12831. if test $ac_lo -le $ac_mid; then
  12832. ac_lo= ac_hi=
  12833. break
  12834. fi
  12835. ac_mid=`expr 2 '*' $ac_mid + 1`
  12836. fi
  12837. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12838. done
  12839. else
  12840. $as_echo "$as_me: failed program was:" >&5
  12841. sed 's/^/| /' conftest.$ac_ext >&5
  12842. cat >conftest.$ac_ext <<_ACEOF
  12843. /* confdefs.h. */
  12844. _ACEOF
  12845. cat confdefs.h >>conftest.$ac_ext
  12846. cat >>conftest.$ac_ext <<_ACEOF
  12847. /* end confdefs.h. */
  12848. $ac_includes_default
  12849. int
  12850. main ()
  12851. {
  12852. static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) < 0)];
  12853. test_array [0] = 0
  12854. ;
  12855. return 0;
  12856. }
  12857. _ACEOF
  12858. rm -f conftest.$ac_objext
  12859. if { (ac_try="$ac_compile"
  12860. case "(($ac_try" in
  12861. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12862. *) ac_try_echo=$ac_try;;
  12863. esac
  12864. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12865. $as_echo "$ac_try_echo") >&5
  12866. (eval "$ac_compile") 2>conftest.er1
  12867. ac_status=$?
  12868. grep -v '^ *+' conftest.er1 >conftest.err
  12869. rm -f conftest.er1
  12870. cat conftest.err >&5
  12871. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12872. (exit $ac_status); } && {
  12873. test -z "$ac_c_werror_flag" ||
  12874. test ! -s conftest.err
  12875. } && test -s conftest.$ac_objext; then
  12876. ac_hi=-1 ac_mid=-1
  12877. while :; do
  12878. cat >conftest.$ac_ext <<_ACEOF
  12879. /* confdefs.h. */
  12880. _ACEOF
  12881. cat confdefs.h >>conftest.$ac_ext
  12882. cat >>conftest.$ac_ext <<_ACEOF
  12883. /* end confdefs.h. */
  12884. $ac_includes_default
  12885. int
  12886. main ()
  12887. {
  12888. static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) >= $ac_mid)];
  12889. test_array [0] = 0
  12890. ;
  12891. return 0;
  12892. }
  12893. _ACEOF
  12894. rm -f conftest.$ac_objext
  12895. if { (ac_try="$ac_compile"
  12896. case "(($ac_try" in
  12897. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12898. *) ac_try_echo=$ac_try;;
  12899. esac
  12900. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12901. $as_echo "$ac_try_echo") >&5
  12902. (eval "$ac_compile") 2>conftest.er1
  12903. ac_status=$?
  12904. grep -v '^ *+' conftest.er1 >conftest.err
  12905. rm -f conftest.er1
  12906. cat conftest.err >&5
  12907. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12908. (exit $ac_status); } && {
  12909. test -z "$ac_c_werror_flag" ||
  12910. test ! -s conftest.err
  12911. } && test -s conftest.$ac_objext; then
  12912. ac_lo=$ac_mid; break
  12913. else
  12914. $as_echo "$as_me: failed program was:" >&5
  12915. sed 's/^/| /' conftest.$ac_ext >&5
  12916. ac_hi=`expr '(' $ac_mid ')' - 1`
  12917. if test $ac_mid -le $ac_hi; then
  12918. ac_lo= ac_hi=
  12919. break
  12920. fi
  12921. ac_mid=`expr 2 '*' $ac_mid`
  12922. fi
  12923. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12924. done
  12925. else
  12926. $as_echo "$as_me: failed program was:" >&5
  12927. sed 's/^/| /' conftest.$ac_ext >&5
  12928. ac_lo= ac_hi=
  12929. fi
  12930. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12931. fi
  12932. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12933. # Binary search between lo and hi bounds.
  12934. while test "x$ac_lo" != "x$ac_hi"; do
  12935. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  12936. cat >conftest.$ac_ext <<_ACEOF
  12937. /* confdefs.h. */
  12938. _ACEOF
  12939. cat confdefs.h >>conftest.$ac_ext
  12940. cat >>conftest.$ac_ext <<_ACEOF
  12941. /* end confdefs.h. */
  12942. $ac_includes_default
  12943. int
  12944. main ()
  12945. {
  12946. static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) <= $ac_mid)];
  12947. test_array [0] = 0
  12948. ;
  12949. return 0;
  12950. }
  12951. _ACEOF
  12952. rm -f conftest.$ac_objext
  12953. if { (ac_try="$ac_compile"
  12954. case "(($ac_try" in
  12955. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12956. *) ac_try_echo=$ac_try;;
  12957. esac
  12958. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12959. $as_echo "$ac_try_echo") >&5
  12960. (eval "$ac_compile") 2>conftest.er1
  12961. ac_status=$?
  12962. grep -v '^ *+' conftest.er1 >conftest.err
  12963. rm -f conftest.er1
  12964. cat conftest.err >&5
  12965. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12966. (exit $ac_status); } && {
  12967. test -z "$ac_c_werror_flag" ||
  12968. test ! -s conftest.err
  12969. } && test -s conftest.$ac_objext; then
  12970. ac_hi=$ac_mid
  12971. else
  12972. $as_echo "$as_me: failed program was:" >&5
  12973. sed 's/^/| /' conftest.$ac_ext >&5
  12974. ac_lo=`expr '(' $ac_mid ')' + 1`
  12975. fi
  12976. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12977. done
  12978. case $ac_lo in
  12979. ?*) ac_cv_sizeof_unsigned_short=$ac_lo;;
  12980. '') if test "$ac_cv_type_unsigned_short" = yes; then
  12981. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  12982. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12983. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short)
  12984. See \`config.log' for more details." >&5
  12985. $as_echo "$as_me: error: cannot compute sizeof (unsigned short)
  12986. See \`config.log' for more details." >&2;}
  12987. { (exit 77); exit 77; }; }; }
  12988. else
  12989. ac_cv_sizeof_unsigned_short=0
  12990. fi ;;
  12991. esac
  12992. else
  12993. cat >conftest.$ac_ext <<_ACEOF
  12994. /* confdefs.h. */
  12995. _ACEOF
  12996. cat confdefs.h >>conftest.$ac_ext
  12997. cat >>conftest.$ac_ext <<_ACEOF
  12998. /* end confdefs.h. */
  12999. $ac_includes_default
  13000. static long int longval () { return (long int) (sizeof (unsigned short)); }
  13001. static unsigned long int ulongval () { return (long int) (sizeof (unsigned short)); }
  13002. #include <stdio.h>
  13003. #include <stdlib.h>
  13004. int
  13005. main ()
  13006. {
  13007. FILE *f = fopen ("conftest.val", "w");
  13008. if (! f)
  13009. return 1;
  13010. if (((long int) (sizeof (unsigned short))) < 0)
  13011. {
  13012. long int i = longval ();
  13013. if (i != ((long int) (sizeof (unsigned short))))
  13014. return 1;
  13015. fprintf (f, "%ld", i);
  13016. }
  13017. else
  13018. {
  13019. unsigned long int i = ulongval ();
  13020. if (i != ((long int) (sizeof (unsigned short))))
  13021. return 1;
  13022. fprintf (f, "%lu", i);
  13023. }
  13024. /* Do not output a trailing newline, as this causes \r\n confusion
  13025. on some platforms. */
  13026. return ferror (f) || fclose (f) != 0;
  13027. ;
  13028. return 0;
  13029. }
  13030. _ACEOF
  13031. rm -f conftest$ac_exeext
  13032. if { (ac_try="$ac_link"
  13033. case "(($ac_try" in
  13034. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13035. *) ac_try_echo=$ac_try;;
  13036. esac
  13037. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13038. $as_echo "$ac_try_echo") >&5
  13039. (eval "$ac_link") 2>&5
  13040. ac_status=$?
  13041. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13042. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  13043. { (case "(($ac_try" in
  13044. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13045. *) ac_try_echo=$ac_try;;
  13046. esac
  13047. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13048. $as_echo "$ac_try_echo") >&5
  13049. (eval "$ac_try") 2>&5
  13050. ac_status=$?
  13051. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13052. (exit $ac_status); }; }; then
  13053. ac_cv_sizeof_unsigned_short=`cat conftest.val`
  13054. else
  13055. $as_echo "$as_me: program exited with status $ac_status" >&5
  13056. $as_echo "$as_me: failed program was:" >&5
  13057. sed 's/^/| /' conftest.$ac_ext >&5
  13058. ( exit $ac_status )
  13059. if test "$ac_cv_type_unsigned_short" = yes; then
  13060. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  13061. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13062. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short)
  13063. See \`config.log' for more details." >&5
  13064. $as_echo "$as_me: error: cannot compute sizeof (unsigned short)
  13065. See \`config.log' for more details." >&2;}
  13066. { (exit 77); exit 77; }; }; }
  13067. else
  13068. ac_cv_sizeof_unsigned_short=0
  13069. fi
  13070. fi
  13071. rm -rf conftest.dSYM
  13072. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  13073. fi
  13074. rm -f conftest.val
  13075. fi
  13076. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short" >&5
  13077. $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
  13078. cat >>confdefs.h <<_ACEOF
  13079. #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
  13080. _ACEOF
  13081. # The cast to long int works around a bug in the HP C Compiler
  13082. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13083. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13084. # This bug is HP SR number 8606223364.
  13085. { $as_echo "$as_me:$LINENO: checking size of int" >&5
  13086. $as_echo_n "checking size of int... " >&6; }
  13087. if test "${ac_cv_sizeof_int+set}" = set; then
  13088. $as_echo_n "(cached) " >&6
  13089. else
  13090. if test "$cross_compiling" = yes; then
  13091. # Depending upon the size, compute the lo and hi bounds.
  13092. cat >conftest.$ac_ext <<_ACEOF
  13093. /* confdefs.h. */
  13094. _ACEOF
  13095. cat confdefs.h >>conftest.$ac_ext
  13096. cat >>conftest.$ac_ext <<_ACEOF
  13097. /* end confdefs.h. */
  13098. $ac_includes_default
  13099. int
  13100. main ()
  13101. {
  13102. static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
  13103. test_array [0] = 0
  13104. ;
  13105. return 0;
  13106. }
  13107. _ACEOF
  13108. rm -f conftest.$ac_objext
  13109. if { (ac_try="$ac_compile"
  13110. case "(($ac_try" in
  13111. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13112. *) ac_try_echo=$ac_try;;
  13113. esac
  13114. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13115. $as_echo "$ac_try_echo") >&5
  13116. (eval "$ac_compile") 2>conftest.er1
  13117. ac_status=$?
  13118. grep -v '^ *+' conftest.er1 >conftest.err
  13119. rm -f conftest.er1
  13120. cat conftest.err >&5
  13121. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13122. (exit $ac_status); } && {
  13123. test -z "$ac_c_werror_flag" ||
  13124. test ! -s conftest.err
  13125. } && test -s conftest.$ac_objext; then
  13126. ac_lo=0 ac_mid=0
  13127. while :; do
  13128. cat >conftest.$ac_ext <<_ACEOF
  13129. /* confdefs.h. */
  13130. _ACEOF
  13131. cat confdefs.h >>conftest.$ac_ext
  13132. cat >>conftest.$ac_ext <<_ACEOF
  13133. /* end confdefs.h. */
  13134. $ac_includes_default
  13135. int
  13136. main ()
  13137. {
  13138. static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
  13139. test_array [0] = 0
  13140. ;
  13141. return 0;
  13142. }
  13143. _ACEOF
  13144. rm -f conftest.$ac_objext
  13145. if { (ac_try="$ac_compile"
  13146. case "(($ac_try" in
  13147. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13148. *) ac_try_echo=$ac_try;;
  13149. esac
  13150. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13151. $as_echo "$ac_try_echo") >&5
  13152. (eval "$ac_compile") 2>conftest.er1
  13153. ac_status=$?
  13154. grep -v '^ *+' conftest.er1 >conftest.err
  13155. rm -f conftest.er1
  13156. cat conftest.err >&5
  13157. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13158. (exit $ac_status); } && {
  13159. test -z "$ac_c_werror_flag" ||
  13160. test ! -s conftest.err
  13161. } && test -s conftest.$ac_objext; then
  13162. ac_hi=$ac_mid; break
  13163. else
  13164. $as_echo "$as_me: failed program was:" >&5
  13165. sed 's/^/| /' conftest.$ac_ext >&5
  13166. ac_lo=`expr $ac_mid + 1`
  13167. if test $ac_lo -le $ac_mid; then
  13168. ac_lo= ac_hi=
  13169. break
  13170. fi
  13171. ac_mid=`expr 2 '*' $ac_mid + 1`
  13172. fi
  13173. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13174. done
  13175. else
  13176. $as_echo "$as_me: failed program was:" >&5
  13177. sed 's/^/| /' conftest.$ac_ext >&5
  13178. cat >conftest.$ac_ext <<_ACEOF
  13179. /* confdefs.h. */
  13180. _ACEOF
  13181. cat confdefs.h >>conftest.$ac_ext
  13182. cat >>conftest.$ac_ext <<_ACEOF
  13183. /* end confdefs.h. */
  13184. $ac_includes_default
  13185. int
  13186. main ()
  13187. {
  13188. static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
  13189. test_array [0] = 0
  13190. ;
  13191. return 0;
  13192. }
  13193. _ACEOF
  13194. rm -f conftest.$ac_objext
  13195. if { (ac_try="$ac_compile"
  13196. case "(($ac_try" in
  13197. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13198. *) ac_try_echo=$ac_try;;
  13199. esac
  13200. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13201. $as_echo "$ac_try_echo") >&5
  13202. (eval "$ac_compile") 2>conftest.er1
  13203. ac_status=$?
  13204. grep -v '^ *+' conftest.er1 >conftest.err
  13205. rm -f conftest.er1
  13206. cat conftest.err >&5
  13207. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13208. (exit $ac_status); } && {
  13209. test -z "$ac_c_werror_flag" ||
  13210. test ! -s conftest.err
  13211. } && test -s conftest.$ac_objext; then
  13212. ac_hi=-1 ac_mid=-1
  13213. while :; do
  13214. cat >conftest.$ac_ext <<_ACEOF
  13215. /* confdefs.h. */
  13216. _ACEOF
  13217. cat confdefs.h >>conftest.$ac_ext
  13218. cat >>conftest.$ac_ext <<_ACEOF
  13219. /* end confdefs.h. */
  13220. $ac_includes_default
  13221. int
  13222. main ()
  13223. {
  13224. static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
  13225. test_array [0] = 0
  13226. ;
  13227. return 0;
  13228. }
  13229. _ACEOF
  13230. rm -f conftest.$ac_objext
  13231. if { (ac_try="$ac_compile"
  13232. case "(($ac_try" in
  13233. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13234. *) ac_try_echo=$ac_try;;
  13235. esac
  13236. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13237. $as_echo "$ac_try_echo") >&5
  13238. (eval "$ac_compile") 2>conftest.er1
  13239. ac_status=$?
  13240. grep -v '^ *+' conftest.er1 >conftest.err
  13241. rm -f conftest.er1
  13242. cat conftest.err >&5
  13243. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13244. (exit $ac_status); } && {
  13245. test -z "$ac_c_werror_flag" ||
  13246. test ! -s conftest.err
  13247. } && test -s conftest.$ac_objext; then
  13248. ac_lo=$ac_mid; break
  13249. else
  13250. $as_echo "$as_me: failed program was:" >&5
  13251. sed 's/^/| /' conftest.$ac_ext >&5
  13252. ac_hi=`expr '(' $ac_mid ')' - 1`
  13253. if test $ac_mid -le $ac_hi; then
  13254. ac_lo= ac_hi=
  13255. break
  13256. fi
  13257. ac_mid=`expr 2 '*' $ac_mid`
  13258. fi
  13259. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13260. done
  13261. else
  13262. $as_echo "$as_me: failed program was:" >&5
  13263. sed 's/^/| /' conftest.$ac_ext >&5
  13264. ac_lo= ac_hi=
  13265. fi
  13266. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13267. fi
  13268. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13269. # Binary search between lo and hi bounds.
  13270. while test "x$ac_lo" != "x$ac_hi"; do
  13271. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  13272. cat >conftest.$ac_ext <<_ACEOF
  13273. /* confdefs.h. */
  13274. _ACEOF
  13275. cat confdefs.h >>conftest.$ac_ext
  13276. cat >>conftest.$ac_ext <<_ACEOF
  13277. /* end confdefs.h. */
  13278. $ac_includes_default
  13279. int
  13280. main ()
  13281. {
  13282. static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
  13283. test_array [0] = 0
  13284. ;
  13285. return 0;
  13286. }
  13287. _ACEOF
  13288. rm -f conftest.$ac_objext
  13289. if { (ac_try="$ac_compile"
  13290. case "(($ac_try" in
  13291. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13292. *) ac_try_echo=$ac_try;;
  13293. esac
  13294. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13295. $as_echo "$ac_try_echo") >&5
  13296. (eval "$ac_compile") 2>conftest.er1
  13297. ac_status=$?
  13298. grep -v '^ *+' conftest.er1 >conftest.err
  13299. rm -f conftest.er1
  13300. cat conftest.err >&5
  13301. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13302. (exit $ac_status); } && {
  13303. test -z "$ac_c_werror_flag" ||
  13304. test ! -s conftest.err
  13305. } && test -s conftest.$ac_objext; then
  13306. ac_hi=$ac_mid
  13307. else
  13308. $as_echo "$as_me: failed program was:" >&5
  13309. sed 's/^/| /' conftest.$ac_ext >&5
  13310. ac_lo=`expr '(' $ac_mid ')' + 1`
  13311. fi
  13312. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13313. done
  13314. case $ac_lo in
  13315. ?*) ac_cv_sizeof_int=$ac_lo;;
  13316. '') if test "$ac_cv_type_int" = yes; then
  13317. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  13318. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13319. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  13320. See \`config.log' for more details." >&5
  13321. $as_echo "$as_me: error: cannot compute sizeof (int)
  13322. See \`config.log' for more details." >&2;}
  13323. { (exit 77); exit 77; }; }; }
  13324. else
  13325. ac_cv_sizeof_int=0
  13326. fi ;;
  13327. esac
  13328. else
  13329. cat >conftest.$ac_ext <<_ACEOF
  13330. /* confdefs.h. */
  13331. _ACEOF
  13332. cat confdefs.h >>conftest.$ac_ext
  13333. cat >>conftest.$ac_ext <<_ACEOF
  13334. /* end confdefs.h. */
  13335. $ac_includes_default
  13336. static long int longval () { return (long int) (sizeof (int)); }
  13337. static unsigned long int ulongval () { return (long int) (sizeof (int)); }
  13338. #include <stdio.h>
  13339. #include <stdlib.h>
  13340. int
  13341. main ()
  13342. {
  13343. FILE *f = fopen ("conftest.val", "w");
  13344. if (! f)
  13345. return 1;
  13346. if (((long int) (sizeof (int))) < 0)
  13347. {
  13348. long int i = longval ();
  13349. if (i != ((long int) (sizeof (int))))
  13350. return 1;
  13351. fprintf (f, "%ld", i);
  13352. }
  13353. else
  13354. {
  13355. unsigned long int i = ulongval ();
  13356. if (i != ((long int) (sizeof (int))))
  13357. return 1;
  13358. fprintf (f, "%lu", i);
  13359. }
  13360. /* Do not output a trailing newline, as this causes \r\n confusion
  13361. on some platforms. */
  13362. return ferror (f) || fclose (f) != 0;
  13363. ;
  13364. return 0;
  13365. }
  13366. _ACEOF
  13367. rm -f conftest$ac_exeext
  13368. if { (ac_try="$ac_link"
  13369. case "(($ac_try" in
  13370. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13371. *) ac_try_echo=$ac_try;;
  13372. esac
  13373. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13374. $as_echo "$ac_try_echo") >&5
  13375. (eval "$ac_link") 2>&5
  13376. ac_status=$?
  13377. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13378. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  13379. { (case "(($ac_try" in
  13380. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13381. *) ac_try_echo=$ac_try;;
  13382. esac
  13383. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13384. $as_echo "$ac_try_echo") >&5
  13385. (eval "$ac_try") 2>&5
  13386. ac_status=$?
  13387. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13388. (exit $ac_status); }; }; then
  13389. ac_cv_sizeof_int=`cat conftest.val`
  13390. else
  13391. $as_echo "$as_me: program exited with status $ac_status" >&5
  13392. $as_echo "$as_me: failed program was:" >&5
  13393. sed 's/^/| /' conftest.$ac_ext >&5
  13394. ( exit $ac_status )
  13395. if test "$ac_cv_type_int" = yes; then
  13396. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  13397. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13398. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  13399. See \`config.log' for more details." >&5
  13400. $as_echo "$as_me: error: cannot compute sizeof (int)
  13401. See \`config.log' for more details." >&2;}
  13402. { (exit 77); exit 77; }; }; }
  13403. else
  13404. ac_cv_sizeof_int=0
  13405. fi
  13406. fi
  13407. rm -rf conftest.dSYM
  13408. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  13409. fi
  13410. rm -f conftest.val
  13411. fi
  13412. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  13413. $as_echo "$ac_cv_sizeof_int" >&6; }
  13414. cat >>confdefs.h <<_ACEOF
  13415. #define SIZEOF_INT $ac_cv_sizeof_int
  13416. _ACEOF
  13417. # The cast to long int works around a bug in the HP C Compiler
  13418. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13419. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13420. # This bug is HP SR number 8606223364.
  13421. { $as_echo "$as_me:$LINENO: checking size of unsigned int" >&5
  13422. $as_echo_n "checking size of unsigned int... " >&6; }
  13423. if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
  13424. $as_echo_n "(cached) " >&6
  13425. else
  13426. if test "$cross_compiling" = yes; then
  13427. # Depending upon the size, compute the lo and hi bounds.
  13428. cat >conftest.$ac_ext <<_ACEOF
  13429. /* confdefs.h. */
  13430. _ACEOF
  13431. cat confdefs.h >>conftest.$ac_ext
  13432. cat >>conftest.$ac_ext <<_ACEOF
  13433. /* end confdefs.h. */
  13434. $ac_includes_default
  13435. int
  13436. main ()
  13437. {
  13438. static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) >= 0)];
  13439. test_array [0] = 0
  13440. ;
  13441. return 0;
  13442. }
  13443. _ACEOF
  13444. rm -f conftest.$ac_objext
  13445. if { (ac_try="$ac_compile"
  13446. case "(($ac_try" in
  13447. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13448. *) ac_try_echo=$ac_try;;
  13449. esac
  13450. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13451. $as_echo "$ac_try_echo") >&5
  13452. (eval "$ac_compile") 2>conftest.er1
  13453. ac_status=$?
  13454. grep -v '^ *+' conftest.er1 >conftest.err
  13455. rm -f conftest.er1
  13456. cat conftest.err >&5
  13457. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13458. (exit $ac_status); } && {
  13459. test -z "$ac_c_werror_flag" ||
  13460. test ! -s conftest.err
  13461. } && test -s conftest.$ac_objext; then
  13462. ac_lo=0 ac_mid=0
  13463. while :; do
  13464. cat >conftest.$ac_ext <<_ACEOF
  13465. /* confdefs.h. */
  13466. _ACEOF
  13467. cat confdefs.h >>conftest.$ac_ext
  13468. cat >>conftest.$ac_ext <<_ACEOF
  13469. /* end confdefs.h. */
  13470. $ac_includes_default
  13471. int
  13472. main ()
  13473. {
  13474. static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) <= $ac_mid)];
  13475. test_array [0] = 0
  13476. ;
  13477. return 0;
  13478. }
  13479. _ACEOF
  13480. rm -f conftest.$ac_objext
  13481. if { (ac_try="$ac_compile"
  13482. case "(($ac_try" in
  13483. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13484. *) ac_try_echo=$ac_try;;
  13485. esac
  13486. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13487. $as_echo "$ac_try_echo") >&5
  13488. (eval "$ac_compile") 2>conftest.er1
  13489. ac_status=$?
  13490. grep -v '^ *+' conftest.er1 >conftest.err
  13491. rm -f conftest.er1
  13492. cat conftest.err >&5
  13493. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13494. (exit $ac_status); } && {
  13495. test -z "$ac_c_werror_flag" ||
  13496. test ! -s conftest.err
  13497. } && test -s conftest.$ac_objext; then
  13498. ac_hi=$ac_mid; break
  13499. else
  13500. $as_echo "$as_me: failed program was:" >&5
  13501. sed 's/^/| /' conftest.$ac_ext >&5
  13502. ac_lo=`expr $ac_mid + 1`
  13503. if test $ac_lo -le $ac_mid; then
  13504. ac_lo= ac_hi=
  13505. break
  13506. fi
  13507. ac_mid=`expr 2 '*' $ac_mid + 1`
  13508. fi
  13509. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13510. done
  13511. else
  13512. $as_echo "$as_me: failed program was:" >&5
  13513. sed 's/^/| /' conftest.$ac_ext >&5
  13514. cat >conftest.$ac_ext <<_ACEOF
  13515. /* confdefs.h. */
  13516. _ACEOF
  13517. cat confdefs.h >>conftest.$ac_ext
  13518. cat >>conftest.$ac_ext <<_ACEOF
  13519. /* end confdefs.h. */
  13520. $ac_includes_default
  13521. int
  13522. main ()
  13523. {
  13524. static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) < 0)];
  13525. test_array [0] = 0
  13526. ;
  13527. return 0;
  13528. }
  13529. _ACEOF
  13530. rm -f conftest.$ac_objext
  13531. if { (ac_try="$ac_compile"
  13532. case "(($ac_try" in
  13533. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13534. *) ac_try_echo=$ac_try;;
  13535. esac
  13536. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13537. $as_echo "$ac_try_echo") >&5
  13538. (eval "$ac_compile") 2>conftest.er1
  13539. ac_status=$?
  13540. grep -v '^ *+' conftest.er1 >conftest.err
  13541. rm -f conftest.er1
  13542. cat conftest.err >&5
  13543. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13544. (exit $ac_status); } && {
  13545. test -z "$ac_c_werror_flag" ||
  13546. test ! -s conftest.err
  13547. } && test -s conftest.$ac_objext; then
  13548. ac_hi=-1 ac_mid=-1
  13549. while :; do
  13550. cat >conftest.$ac_ext <<_ACEOF
  13551. /* confdefs.h. */
  13552. _ACEOF
  13553. cat confdefs.h >>conftest.$ac_ext
  13554. cat >>conftest.$ac_ext <<_ACEOF
  13555. /* end confdefs.h. */
  13556. $ac_includes_default
  13557. int
  13558. main ()
  13559. {
  13560. static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) >= $ac_mid)];
  13561. test_array [0] = 0
  13562. ;
  13563. return 0;
  13564. }
  13565. _ACEOF
  13566. rm -f conftest.$ac_objext
  13567. if { (ac_try="$ac_compile"
  13568. case "(($ac_try" in
  13569. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13570. *) ac_try_echo=$ac_try;;
  13571. esac
  13572. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13573. $as_echo "$ac_try_echo") >&5
  13574. (eval "$ac_compile") 2>conftest.er1
  13575. ac_status=$?
  13576. grep -v '^ *+' conftest.er1 >conftest.err
  13577. rm -f conftest.er1
  13578. cat conftest.err >&5
  13579. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13580. (exit $ac_status); } && {
  13581. test -z "$ac_c_werror_flag" ||
  13582. test ! -s conftest.err
  13583. } && test -s conftest.$ac_objext; then
  13584. ac_lo=$ac_mid; break
  13585. else
  13586. $as_echo "$as_me: failed program was:" >&5
  13587. sed 's/^/| /' conftest.$ac_ext >&5
  13588. ac_hi=`expr '(' $ac_mid ')' - 1`
  13589. if test $ac_mid -le $ac_hi; then
  13590. ac_lo= ac_hi=
  13591. break
  13592. fi
  13593. ac_mid=`expr 2 '*' $ac_mid`
  13594. fi
  13595. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13596. done
  13597. else
  13598. $as_echo "$as_me: failed program was:" >&5
  13599. sed 's/^/| /' conftest.$ac_ext >&5
  13600. ac_lo= ac_hi=
  13601. fi
  13602. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13603. fi
  13604. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13605. # Binary search between lo and hi bounds.
  13606. while test "x$ac_lo" != "x$ac_hi"; do
  13607. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  13608. cat >conftest.$ac_ext <<_ACEOF
  13609. /* confdefs.h. */
  13610. _ACEOF
  13611. cat confdefs.h >>conftest.$ac_ext
  13612. cat >>conftest.$ac_ext <<_ACEOF
  13613. /* end confdefs.h. */
  13614. $ac_includes_default
  13615. int
  13616. main ()
  13617. {
  13618. static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) <= $ac_mid)];
  13619. test_array [0] = 0
  13620. ;
  13621. return 0;
  13622. }
  13623. _ACEOF
  13624. rm -f conftest.$ac_objext
  13625. if { (ac_try="$ac_compile"
  13626. case "(($ac_try" in
  13627. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13628. *) ac_try_echo=$ac_try;;
  13629. esac
  13630. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13631. $as_echo "$ac_try_echo") >&5
  13632. (eval "$ac_compile") 2>conftest.er1
  13633. ac_status=$?
  13634. grep -v '^ *+' conftest.er1 >conftest.err
  13635. rm -f conftest.er1
  13636. cat conftest.err >&5
  13637. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13638. (exit $ac_status); } && {
  13639. test -z "$ac_c_werror_flag" ||
  13640. test ! -s conftest.err
  13641. } && test -s conftest.$ac_objext; then
  13642. ac_hi=$ac_mid
  13643. else
  13644. $as_echo "$as_me: failed program was:" >&5
  13645. sed 's/^/| /' conftest.$ac_ext >&5
  13646. ac_lo=`expr '(' $ac_mid ')' + 1`
  13647. fi
  13648. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13649. done
  13650. case $ac_lo in
  13651. ?*) ac_cv_sizeof_unsigned_int=$ac_lo;;
  13652. '') if test "$ac_cv_type_unsigned_int" = yes; then
  13653. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  13654. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13655. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
  13656. See \`config.log' for more details." >&5
  13657. $as_echo "$as_me: error: cannot compute sizeof (unsigned int)
  13658. See \`config.log' for more details." >&2;}
  13659. { (exit 77); exit 77; }; }; }
  13660. else
  13661. ac_cv_sizeof_unsigned_int=0
  13662. fi ;;
  13663. esac
  13664. else
  13665. cat >conftest.$ac_ext <<_ACEOF
  13666. /* confdefs.h. */
  13667. _ACEOF
  13668. cat confdefs.h >>conftest.$ac_ext
  13669. cat >>conftest.$ac_ext <<_ACEOF
  13670. /* end confdefs.h. */
  13671. $ac_includes_default
  13672. static long int longval () { return (long int) (sizeof (unsigned int)); }
  13673. static unsigned long int ulongval () { return (long int) (sizeof (unsigned int)); }
  13674. #include <stdio.h>
  13675. #include <stdlib.h>
  13676. int
  13677. main ()
  13678. {
  13679. FILE *f = fopen ("conftest.val", "w");
  13680. if (! f)
  13681. return 1;
  13682. if (((long int) (sizeof (unsigned int))) < 0)
  13683. {
  13684. long int i = longval ();
  13685. if (i != ((long int) (sizeof (unsigned int))))
  13686. return 1;
  13687. fprintf (f, "%ld", i);
  13688. }
  13689. else
  13690. {
  13691. unsigned long int i = ulongval ();
  13692. if (i != ((long int) (sizeof (unsigned int))))
  13693. return 1;
  13694. fprintf (f, "%lu", i);
  13695. }
  13696. /* Do not output a trailing newline, as this causes \r\n confusion
  13697. on some platforms. */
  13698. return ferror (f) || fclose (f) != 0;
  13699. ;
  13700. return 0;
  13701. }
  13702. _ACEOF
  13703. rm -f conftest$ac_exeext
  13704. if { (ac_try="$ac_link"
  13705. case "(($ac_try" in
  13706. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13707. *) ac_try_echo=$ac_try;;
  13708. esac
  13709. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13710. $as_echo "$ac_try_echo") >&5
  13711. (eval "$ac_link") 2>&5
  13712. ac_status=$?
  13713. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13714. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  13715. { (case "(($ac_try" in
  13716. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13717. *) ac_try_echo=$ac_try;;
  13718. esac
  13719. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13720. $as_echo "$ac_try_echo") >&5
  13721. (eval "$ac_try") 2>&5
  13722. ac_status=$?
  13723. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13724. (exit $ac_status); }; }; then
  13725. ac_cv_sizeof_unsigned_int=`cat conftest.val`
  13726. else
  13727. $as_echo "$as_me: program exited with status $ac_status" >&5
  13728. $as_echo "$as_me: failed program was:" >&5
  13729. sed 's/^/| /' conftest.$ac_ext >&5
  13730. ( exit $ac_status )
  13731. if test "$ac_cv_type_unsigned_int" = yes; then
  13732. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  13733. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13734. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
  13735. See \`config.log' for more details." >&5
  13736. $as_echo "$as_me: error: cannot compute sizeof (unsigned int)
  13737. See \`config.log' for more details." >&2;}
  13738. { (exit 77); exit 77; }; }; }
  13739. else
  13740. ac_cv_sizeof_unsigned_int=0
  13741. fi
  13742. fi
  13743. rm -rf conftest.dSYM
  13744. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  13745. fi
  13746. rm -f conftest.val
  13747. fi
  13748. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
  13749. $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
  13750. cat >>confdefs.h <<_ACEOF
  13751. #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
  13752. _ACEOF
  13753. # The cast to long int works around a bug in the HP C Compiler
  13754. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13755. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13756. # This bug is HP SR number 8606223364.
  13757. { $as_echo "$as_me:$LINENO: checking size of long" >&5
  13758. $as_echo_n "checking size of long... " >&6; }
  13759. if test "${ac_cv_sizeof_long+set}" = set; then
  13760. $as_echo_n "(cached) " >&6
  13761. else
  13762. if test "$cross_compiling" = yes; then
  13763. # Depending upon the size, compute the lo and hi bounds.
  13764. cat >conftest.$ac_ext <<_ACEOF
  13765. /* confdefs.h. */
  13766. _ACEOF
  13767. cat confdefs.h >>conftest.$ac_ext
  13768. cat >>conftest.$ac_ext <<_ACEOF
  13769. /* end confdefs.h. */
  13770. $ac_includes_default
  13771. int
  13772. main ()
  13773. {
  13774. static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
  13775. test_array [0] = 0
  13776. ;
  13777. return 0;
  13778. }
  13779. _ACEOF
  13780. rm -f conftest.$ac_objext
  13781. if { (ac_try="$ac_compile"
  13782. case "(($ac_try" in
  13783. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13784. *) ac_try_echo=$ac_try;;
  13785. esac
  13786. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13787. $as_echo "$ac_try_echo") >&5
  13788. (eval "$ac_compile") 2>conftest.er1
  13789. ac_status=$?
  13790. grep -v '^ *+' conftest.er1 >conftest.err
  13791. rm -f conftest.er1
  13792. cat conftest.err >&5
  13793. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13794. (exit $ac_status); } && {
  13795. test -z "$ac_c_werror_flag" ||
  13796. test ! -s conftest.err
  13797. } && test -s conftest.$ac_objext; then
  13798. ac_lo=0 ac_mid=0
  13799. while :; do
  13800. cat >conftest.$ac_ext <<_ACEOF
  13801. /* confdefs.h. */
  13802. _ACEOF
  13803. cat confdefs.h >>conftest.$ac_ext
  13804. cat >>conftest.$ac_ext <<_ACEOF
  13805. /* end confdefs.h. */
  13806. $ac_includes_default
  13807. int
  13808. main ()
  13809. {
  13810. static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
  13811. test_array [0] = 0
  13812. ;
  13813. return 0;
  13814. }
  13815. _ACEOF
  13816. rm -f conftest.$ac_objext
  13817. if { (ac_try="$ac_compile"
  13818. case "(($ac_try" in
  13819. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13820. *) ac_try_echo=$ac_try;;
  13821. esac
  13822. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13823. $as_echo "$ac_try_echo") >&5
  13824. (eval "$ac_compile") 2>conftest.er1
  13825. ac_status=$?
  13826. grep -v '^ *+' conftest.er1 >conftest.err
  13827. rm -f conftest.er1
  13828. cat conftest.err >&5
  13829. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13830. (exit $ac_status); } && {
  13831. test -z "$ac_c_werror_flag" ||
  13832. test ! -s conftest.err
  13833. } && test -s conftest.$ac_objext; then
  13834. ac_hi=$ac_mid; break
  13835. else
  13836. $as_echo "$as_me: failed program was:" >&5
  13837. sed 's/^/| /' conftest.$ac_ext >&5
  13838. ac_lo=`expr $ac_mid + 1`
  13839. if test $ac_lo -le $ac_mid; then
  13840. ac_lo= ac_hi=
  13841. break
  13842. fi
  13843. ac_mid=`expr 2 '*' $ac_mid + 1`
  13844. fi
  13845. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13846. done
  13847. else
  13848. $as_echo "$as_me: failed program was:" >&5
  13849. sed 's/^/| /' conftest.$ac_ext >&5
  13850. cat >conftest.$ac_ext <<_ACEOF
  13851. /* confdefs.h. */
  13852. _ACEOF
  13853. cat confdefs.h >>conftest.$ac_ext
  13854. cat >>conftest.$ac_ext <<_ACEOF
  13855. /* end confdefs.h. */
  13856. $ac_includes_default
  13857. int
  13858. main ()
  13859. {
  13860. static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
  13861. test_array [0] = 0
  13862. ;
  13863. return 0;
  13864. }
  13865. _ACEOF
  13866. rm -f conftest.$ac_objext
  13867. if { (ac_try="$ac_compile"
  13868. case "(($ac_try" in
  13869. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13870. *) ac_try_echo=$ac_try;;
  13871. esac
  13872. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13873. $as_echo "$ac_try_echo") >&5
  13874. (eval "$ac_compile") 2>conftest.er1
  13875. ac_status=$?
  13876. grep -v '^ *+' conftest.er1 >conftest.err
  13877. rm -f conftest.er1
  13878. cat conftest.err >&5
  13879. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13880. (exit $ac_status); } && {
  13881. test -z "$ac_c_werror_flag" ||
  13882. test ! -s conftest.err
  13883. } && test -s conftest.$ac_objext; then
  13884. ac_hi=-1 ac_mid=-1
  13885. while :; do
  13886. cat >conftest.$ac_ext <<_ACEOF
  13887. /* confdefs.h. */
  13888. _ACEOF
  13889. cat confdefs.h >>conftest.$ac_ext
  13890. cat >>conftest.$ac_ext <<_ACEOF
  13891. /* end confdefs.h. */
  13892. $ac_includes_default
  13893. int
  13894. main ()
  13895. {
  13896. static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
  13897. test_array [0] = 0
  13898. ;
  13899. return 0;
  13900. }
  13901. _ACEOF
  13902. rm -f conftest.$ac_objext
  13903. if { (ac_try="$ac_compile"
  13904. case "(($ac_try" in
  13905. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13906. *) ac_try_echo=$ac_try;;
  13907. esac
  13908. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13909. $as_echo "$ac_try_echo") >&5
  13910. (eval "$ac_compile") 2>conftest.er1
  13911. ac_status=$?
  13912. grep -v '^ *+' conftest.er1 >conftest.err
  13913. rm -f conftest.er1
  13914. cat conftest.err >&5
  13915. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13916. (exit $ac_status); } && {
  13917. test -z "$ac_c_werror_flag" ||
  13918. test ! -s conftest.err
  13919. } && test -s conftest.$ac_objext; then
  13920. ac_lo=$ac_mid; break
  13921. else
  13922. $as_echo "$as_me: failed program was:" >&5
  13923. sed 's/^/| /' conftest.$ac_ext >&5
  13924. ac_hi=`expr '(' $ac_mid ')' - 1`
  13925. if test $ac_mid -le $ac_hi; then
  13926. ac_lo= ac_hi=
  13927. break
  13928. fi
  13929. ac_mid=`expr 2 '*' $ac_mid`
  13930. fi
  13931. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13932. done
  13933. else
  13934. $as_echo "$as_me: failed program was:" >&5
  13935. sed 's/^/| /' conftest.$ac_ext >&5
  13936. ac_lo= ac_hi=
  13937. fi
  13938. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13939. fi
  13940. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13941. # Binary search between lo and hi bounds.
  13942. while test "x$ac_lo" != "x$ac_hi"; do
  13943. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  13944. cat >conftest.$ac_ext <<_ACEOF
  13945. /* confdefs.h. */
  13946. _ACEOF
  13947. cat confdefs.h >>conftest.$ac_ext
  13948. cat >>conftest.$ac_ext <<_ACEOF
  13949. /* end confdefs.h. */
  13950. $ac_includes_default
  13951. int
  13952. main ()
  13953. {
  13954. static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
  13955. test_array [0] = 0
  13956. ;
  13957. return 0;
  13958. }
  13959. _ACEOF
  13960. rm -f conftest.$ac_objext
  13961. if { (ac_try="$ac_compile"
  13962. case "(($ac_try" in
  13963. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13964. *) ac_try_echo=$ac_try;;
  13965. esac
  13966. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13967. $as_echo "$ac_try_echo") >&5
  13968. (eval "$ac_compile") 2>conftest.er1
  13969. ac_status=$?
  13970. grep -v '^ *+' conftest.er1 >conftest.err
  13971. rm -f conftest.er1
  13972. cat conftest.err >&5
  13973. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13974. (exit $ac_status); } && {
  13975. test -z "$ac_c_werror_flag" ||
  13976. test ! -s conftest.err
  13977. } && test -s conftest.$ac_objext; then
  13978. ac_hi=$ac_mid
  13979. else
  13980. $as_echo "$as_me: failed program was:" >&5
  13981. sed 's/^/| /' conftest.$ac_ext >&5
  13982. ac_lo=`expr '(' $ac_mid ')' + 1`
  13983. fi
  13984. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13985. done
  13986. case $ac_lo in
  13987. ?*) ac_cv_sizeof_long=$ac_lo;;
  13988. '') if test "$ac_cv_type_long" = yes; then
  13989. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  13990. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13991. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  13992. See \`config.log' for more details." >&5
  13993. $as_echo "$as_me: error: cannot compute sizeof (long)
  13994. See \`config.log' for more details." >&2;}
  13995. { (exit 77); exit 77; }; }; }
  13996. else
  13997. ac_cv_sizeof_long=0
  13998. fi ;;
  13999. esac
  14000. else
  14001. cat >conftest.$ac_ext <<_ACEOF
  14002. /* confdefs.h. */
  14003. _ACEOF
  14004. cat confdefs.h >>conftest.$ac_ext
  14005. cat >>conftest.$ac_ext <<_ACEOF
  14006. /* end confdefs.h. */
  14007. $ac_includes_default
  14008. static long int longval () { return (long int) (sizeof (long)); }
  14009. static unsigned long int ulongval () { return (long int) (sizeof (long)); }
  14010. #include <stdio.h>
  14011. #include <stdlib.h>
  14012. int
  14013. main ()
  14014. {
  14015. FILE *f = fopen ("conftest.val", "w");
  14016. if (! f)
  14017. return 1;
  14018. if (((long int) (sizeof (long))) < 0)
  14019. {
  14020. long int i = longval ();
  14021. if (i != ((long int) (sizeof (long))))
  14022. return 1;
  14023. fprintf (f, "%ld", i);
  14024. }
  14025. else
  14026. {
  14027. unsigned long int i = ulongval ();
  14028. if (i != ((long int) (sizeof (long))))
  14029. return 1;
  14030. fprintf (f, "%lu", i);
  14031. }
  14032. /* Do not output a trailing newline, as this causes \r\n confusion
  14033. on some platforms. */
  14034. return ferror (f) || fclose (f) != 0;
  14035. ;
  14036. return 0;
  14037. }
  14038. _ACEOF
  14039. rm -f conftest$ac_exeext
  14040. if { (ac_try="$ac_link"
  14041. case "(($ac_try" in
  14042. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14043. *) ac_try_echo=$ac_try;;
  14044. esac
  14045. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14046. $as_echo "$ac_try_echo") >&5
  14047. (eval "$ac_link") 2>&5
  14048. ac_status=$?
  14049. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14050. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  14051. { (case "(($ac_try" in
  14052. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14053. *) ac_try_echo=$ac_try;;
  14054. esac
  14055. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14056. $as_echo "$ac_try_echo") >&5
  14057. (eval "$ac_try") 2>&5
  14058. ac_status=$?
  14059. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14060. (exit $ac_status); }; }; then
  14061. ac_cv_sizeof_long=`cat conftest.val`
  14062. else
  14063. $as_echo "$as_me: program exited with status $ac_status" >&5
  14064. $as_echo "$as_me: failed program was:" >&5
  14065. sed 's/^/| /' conftest.$ac_ext >&5
  14066. ( exit $ac_status )
  14067. if test "$ac_cv_type_long" = yes; then
  14068. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  14069. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14070. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  14071. See \`config.log' for more details." >&5
  14072. $as_echo "$as_me: error: cannot compute sizeof (long)
  14073. See \`config.log' for more details." >&2;}
  14074. { (exit 77); exit 77; }; }; }
  14075. else
  14076. ac_cv_sizeof_long=0
  14077. fi
  14078. fi
  14079. rm -rf conftest.dSYM
  14080. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14081. fi
  14082. rm -f conftest.val
  14083. fi
  14084. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  14085. $as_echo "$ac_cv_sizeof_long" >&6; }
  14086. cat >>confdefs.h <<_ACEOF
  14087. #define SIZEOF_LONG $ac_cv_sizeof_long
  14088. _ACEOF
  14089. # The cast to long int works around a bug in the HP C Compiler
  14090. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  14091. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  14092. # This bug is HP SR number 8606223364.
  14093. { $as_echo "$as_me:$LINENO: checking size of unsigned long" >&5
  14094. $as_echo_n "checking size of unsigned long... " >&6; }
  14095. if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
  14096. $as_echo_n "(cached) " >&6
  14097. else
  14098. if test "$cross_compiling" = yes; then
  14099. # Depending upon the size, compute the lo and hi bounds.
  14100. cat >conftest.$ac_ext <<_ACEOF
  14101. /* confdefs.h. */
  14102. _ACEOF
  14103. cat confdefs.h >>conftest.$ac_ext
  14104. cat >>conftest.$ac_ext <<_ACEOF
  14105. /* end confdefs.h. */
  14106. $ac_includes_default
  14107. int
  14108. main ()
  14109. {
  14110. static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) >= 0)];
  14111. test_array [0] = 0
  14112. ;
  14113. return 0;
  14114. }
  14115. _ACEOF
  14116. rm -f conftest.$ac_objext
  14117. if { (ac_try="$ac_compile"
  14118. case "(($ac_try" in
  14119. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14120. *) ac_try_echo=$ac_try;;
  14121. esac
  14122. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14123. $as_echo "$ac_try_echo") >&5
  14124. (eval "$ac_compile") 2>conftest.er1
  14125. ac_status=$?
  14126. grep -v '^ *+' conftest.er1 >conftest.err
  14127. rm -f conftest.er1
  14128. cat conftest.err >&5
  14129. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14130. (exit $ac_status); } && {
  14131. test -z "$ac_c_werror_flag" ||
  14132. test ! -s conftest.err
  14133. } && test -s conftest.$ac_objext; then
  14134. ac_lo=0 ac_mid=0
  14135. while :; do
  14136. cat >conftest.$ac_ext <<_ACEOF
  14137. /* confdefs.h. */
  14138. _ACEOF
  14139. cat confdefs.h >>conftest.$ac_ext
  14140. cat >>conftest.$ac_ext <<_ACEOF
  14141. /* end confdefs.h. */
  14142. $ac_includes_default
  14143. int
  14144. main ()
  14145. {
  14146. static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) <= $ac_mid)];
  14147. test_array [0] = 0
  14148. ;
  14149. return 0;
  14150. }
  14151. _ACEOF
  14152. rm -f conftest.$ac_objext
  14153. if { (ac_try="$ac_compile"
  14154. case "(($ac_try" in
  14155. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14156. *) ac_try_echo=$ac_try;;
  14157. esac
  14158. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14159. $as_echo "$ac_try_echo") >&5
  14160. (eval "$ac_compile") 2>conftest.er1
  14161. ac_status=$?
  14162. grep -v '^ *+' conftest.er1 >conftest.err
  14163. rm -f conftest.er1
  14164. cat conftest.err >&5
  14165. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14166. (exit $ac_status); } && {
  14167. test -z "$ac_c_werror_flag" ||
  14168. test ! -s conftest.err
  14169. } && test -s conftest.$ac_objext; then
  14170. ac_hi=$ac_mid; break
  14171. else
  14172. $as_echo "$as_me: failed program was:" >&5
  14173. sed 's/^/| /' conftest.$ac_ext >&5
  14174. ac_lo=`expr $ac_mid + 1`
  14175. if test $ac_lo -le $ac_mid; then
  14176. ac_lo= ac_hi=
  14177. break
  14178. fi
  14179. ac_mid=`expr 2 '*' $ac_mid + 1`
  14180. fi
  14181. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14182. done
  14183. else
  14184. $as_echo "$as_me: failed program was:" >&5
  14185. sed 's/^/| /' conftest.$ac_ext >&5
  14186. cat >conftest.$ac_ext <<_ACEOF
  14187. /* confdefs.h. */
  14188. _ACEOF
  14189. cat confdefs.h >>conftest.$ac_ext
  14190. cat >>conftest.$ac_ext <<_ACEOF
  14191. /* end confdefs.h. */
  14192. $ac_includes_default
  14193. int
  14194. main ()
  14195. {
  14196. static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) < 0)];
  14197. test_array [0] = 0
  14198. ;
  14199. return 0;
  14200. }
  14201. _ACEOF
  14202. rm -f conftest.$ac_objext
  14203. if { (ac_try="$ac_compile"
  14204. case "(($ac_try" in
  14205. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14206. *) ac_try_echo=$ac_try;;
  14207. esac
  14208. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14209. $as_echo "$ac_try_echo") >&5
  14210. (eval "$ac_compile") 2>conftest.er1
  14211. ac_status=$?
  14212. grep -v '^ *+' conftest.er1 >conftest.err
  14213. rm -f conftest.er1
  14214. cat conftest.err >&5
  14215. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14216. (exit $ac_status); } && {
  14217. test -z "$ac_c_werror_flag" ||
  14218. test ! -s conftest.err
  14219. } && test -s conftest.$ac_objext; then
  14220. ac_hi=-1 ac_mid=-1
  14221. while :; do
  14222. cat >conftest.$ac_ext <<_ACEOF
  14223. /* confdefs.h. */
  14224. _ACEOF
  14225. cat confdefs.h >>conftest.$ac_ext
  14226. cat >>conftest.$ac_ext <<_ACEOF
  14227. /* end confdefs.h. */
  14228. $ac_includes_default
  14229. int
  14230. main ()
  14231. {
  14232. static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) >= $ac_mid)];
  14233. test_array [0] = 0
  14234. ;
  14235. return 0;
  14236. }
  14237. _ACEOF
  14238. rm -f conftest.$ac_objext
  14239. if { (ac_try="$ac_compile"
  14240. case "(($ac_try" in
  14241. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14242. *) ac_try_echo=$ac_try;;
  14243. esac
  14244. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14245. $as_echo "$ac_try_echo") >&5
  14246. (eval "$ac_compile") 2>conftest.er1
  14247. ac_status=$?
  14248. grep -v '^ *+' conftest.er1 >conftest.err
  14249. rm -f conftest.er1
  14250. cat conftest.err >&5
  14251. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14252. (exit $ac_status); } && {
  14253. test -z "$ac_c_werror_flag" ||
  14254. test ! -s conftest.err
  14255. } && test -s conftest.$ac_objext; then
  14256. ac_lo=$ac_mid; break
  14257. else
  14258. $as_echo "$as_me: failed program was:" >&5
  14259. sed 's/^/| /' conftest.$ac_ext >&5
  14260. ac_hi=`expr '(' $ac_mid ')' - 1`
  14261. if test $ac_mid -le $ac_hi; then
  14262. ac_lo= ac_hi=
  14263. break
  14264. fi
  14265. ac_mid=`expr 2 '*' $ac_mid`
  14266. fi
  14267. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14268. done
  14269. else
  14270. $as_echo "$as_me: failed program was:" >&5
  14271. sed 's/^/| /' conftest.$ac_ext >&5
  14272. ac_lo= ac_hi=
  14273. fi
  14274. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14275. fi
  14276. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14277. # Binary search between lo and hi bounds.
  14278. while test "x$ac_lo" != "x$ac_hi"; do
  14279. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  14280. cat >conftest.$ac_ext <<_ACEOF
  14281. /* confdefs.h. */
  14282. _ACEOF
  14283. cat confdefs.h >>conftest.$ac_ext
  14284. cat >>conftest.$ac_ext <<_ACEOF
  14285. /* end confdefs.h. */
  14286. $ac_includes_default
  14287. int
  14288. main ()
  14289. {
  14290. static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) <= $ac_mid)];
  14291. test_array [0] = 0
  14292. ;
  14293. return 0;
  14294. }
  14295. _ACEOF
  14296. rm -f conftest.$ac_objext
  14297. if { (ac_try="$ac_compile"
  14298. case "(($ac_try" in
  14299. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14300. *) ac_try_echo=$ac_try;;
  14301. esac
  14302. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14303. $as_echo "$ac_try_echo") >&5
  14304. (eval "$ac_compile") 2>conftest.er1
  14305. ac_status=$?
  14306. grep -v '^ *+' conftest.er1 >conftest.err
  14307. rm -f conftest.er1
  14308. cat conftest.err >&5
  14309. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14310. (exit $ac_status); } && {
  14311. test -z "$ac_c_werror_flag" ||
  14312. test ! -s conftest.err
  14313. } && test -s conftest.$ac_objext; then
  14314. ac_hi=$ac_mid
  14315. else
  14316. $as_echo "$as_me: failed program was:" >&5
  14317. sed 's/^/| /' conftest.$ac_ext >&5
  14318. ac_lo=`expr '(' $ac_mid ')' + 1`
  14319. fi
  14320. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14321. done
  14322. case $ac_lo in
  14323. ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
  14324. '') if test "$ac_cv_type_unsigned_long" = yes; then
  14325. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  14326. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14327. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
  14328. See \`config.log' for more details." >&5
  14329. $as_echo "$as_me: error: cannot compute sizeof (unsigned long)
  14330. See \`config.log' for more details." >&2;}
  14331. { (exit 77); exit 77; }; }; }
  14332. else
  14333. ac_cv_sizeof_unsigned_long=0
  14334. fi ;;
  14335. esac
  14336. else
  14337. cat >conftest.$ac_ext <<_ACEOF
  14338. /* confdefs.h. */
  14339. _ACEOF
  14340. cat confdefs.h >>conftest.$ac_ext
  14341. cat >>conftest.$ac_ext <<_ACEOF
  14342. /* end confdefs.h. */
  14343. $ac_includes_default
  14344. static long int longval () { return (long int) (sizeof (unsigned long)); }
  14345. static unsigned long int ulongval () { return (long int) (sizeof (unsigned long)); }
  14346. #include <stdio.h>
  14347. #include <stdlib.h>
  14348. int
  14349. main ()
  14350. {
  14351. FILE *f = fopen ("conftest.val", "w");
  14352. if (! f)
  14353. return 1;
  14354. if (((long int) (sizeof (unsigned long))) < 0)
  14355. {
  14356. long int i = longval ();
  14357. if (i != ((long int) (sizeof (unsigned long))))
  14358. return 1;
  14359. fprintf (f, "%ld", i);
  14360. }
  14361. else
  14362. {
  14363. unsigned long int i = ulongval ();
  14364. if (i != ((long int) (sizeof (unsigned long))))
  14365. return 1;
  14366. fprintf (f, "%lu", i);
  14367. }
  14368. /* Do not output a trailing newline, as this causes \r\n confusion
  14369. on some platforms. */
  14370. return ferror (f) || fclose (f) != 0;
  14371. ;
  14372. return 0;
  14373. }
  14374. _ACEOF
  14375. rm -f conftest$ac_exeext
  14376. if { (ac_try="$ac_link"
  14377. case "(($ac_try" in
  14378. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14379. *) ac_try_echo=$ac_try;;
  14380. esac
  14381. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14382. $as_echo "$ac_try_echo") >&5
  14383. (eval "$ac_link") 2>&5
  14384. ac_status=$?
  14385. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14386. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  14387. { (case "(($ac_try" in
  14388. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14389. *) ac_try_echo=$ac_try;;
  14390. esac
  14391. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14392. $as_echo "$ac_try_echo") >&5
  14393. (eval "$ac_try") 2>&5
  14394. ac_status=$?
  14395. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14396. (exit $ac_status); }; }; then
  14397. ac_cv_sizeof_unsigned_long=`cat conftest.val`
  14398. else
  14399. $as_echo "$as_me: program exited with status $ac_status" >&5
  14400. $as_echo "$as_me: failed program was:" >&5
  14401. sed 's/^/| /' conftest.$ac_ext >&5
  14402. ( exit $ac_status )
  14403. if test "$ac_cv_type_unsigned_long" = yes; then
  14404. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  14405. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14406. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
  14407. See \`config.log' for more details." >&5
  14408. $as_echo "$as_me: error: cannot compute sizeof (unsigned long)
  14409. See \`config.log' for more details." >&2;}
  14410. { (exit 77); exit 77; }; }; }
  14411. else
  14412. ac_cv_sizeof_unsigned_long=0
  14413. fi
  14414. fi
  14415. rm -rf conftest.dSYM
  14416. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14417. fi
  14418. rm -f conftest.val
  14419. fi
  14420. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
  14421. $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
  14422. cat >>confdefs.h <<_ACEOF
  14423. #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
  14424. _ACEOF
  14425. # The cast to long int works around a bug in the HP C Compiler
  14426. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  14427. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  14428. # This bug is HP SR number 8606223364.
  14429. { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
  14430. $as_echo_n "checking size of size_t... " >&6; }
  14431. if test "${ac_cv_sizeof_size_t+set}" = set; then
  14432. $as_echo_n "(cached) " >&6
  14433. else
  14434. if test "$cross_compiling" = yes; then
  14435. # Depending upon the size, compute the lo and hi bounds.
  14436. cat >conftest.$ac_ext <<_ACEOF
  14437. /* confdefs.h. */
  14438. _ACEOF
  14439. cat confdefs.h >>conftest.$ac_ext
  14440. cat >>conftest.$ac_ext <<_ACEOF
  14441. /* end confdefs.h. */
  14442. $ac_includes_default
  14443. int
  14444. main ()
  14445. {
  14446. static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
  14447. test_array [0] = 0
  14448. ;
  14449. return 0;
  14450. }
  14451. _ACEOF
  14452. rm -f conftest.$ac_objext
  14453. if { (ac_try="$ac_compile"
  14454. case "(($ac_try" in
  14455. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14456. *) ac_try_echo=$ac_try;;
  14457. esac
  14458. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14459. $as_echo "$ac_try_echo") >&5
  14460. (eval "$ac_compile") 2>conftest.er1
  14461. ac_status=$?
  14462. grep -v '^ *+' conftest.er1 >conftest.err
  14463. rm -f conftest.er1
  14464. cat conftest.err >&5
  14465. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14466. (exit $ac_status); } && {
  14467. test -z "$ac_c_werror_flag" ||
  14468. test ! -s conftest.err
  14469. } && test -s conftest.$ac_objext; then
  14470. ac_lo=0 ac_mid=0
  14471. while :; do
  14472. cat >conftest.$ac_ext <<_ACEOF
  14473. /* confdefs.h. */
  14474. _ACEOF
  14475. cat confdefs.h >>conftest.$ac_ext
  14476. cat >>conftest.$ac_ext <<_ACEOF
  14477. /* end confdefs.h. */
  14478. $ac_includes_default
  14479. int
  14480. main ()
  14481. {
  14482. static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
  14483. test_array [0] = 0
  14484. ;
  14485. return 0;
  14486. }
  14487. _ACEOF
  14488. rm -f conftest.$ac_objext
  14489. if { (ac_try="$ac_compile"
  14490. case "(($ac_try" in
  14491. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14492. *) ac_try_echo=$ac_try;;
  14493. esac
  14494. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14495. $as_echo "$ac_try_echo") >&5
  14496. (eval "$ac_compile") 2>conftest.er1
  14497. ac_status=$?
  14498. grep -v '^ *+' conftest.er1 >conftest.err
  14499. rm -f conftest.er1
  14500. cat conftest.err >&5
  14501. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14502. (exit $ac_status); } && {
  14503. test -z "$ac_c_werror_flag" ||
  14504. test ! -s conftest.err
  14505. } && test -s conftest.$ac_objext; then
  14506. ac_hi=$ac_mid; break
  14507. else
  14508. $as_echo "$as_me: failed program was:" >&5
  14509. sed 's/^/| /' conftest.$ac_ext >&5
  14510. ac_lo=`expr $ac_mid + 1`
  14511. if test $ac_lo -le $ac_mid; then
  14512. ac_lo= ac_hi=
  14513. break
  14514. fi
  14515. ac_mid=`expr 2 '*' $ac_mid + 1`
  14516. fi
  14517. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14518. done
  14519. else
  14520. $as_echo "$as_me: failed program was:" >&5
  14521. sed 's/^/| /' conftest.$ac_ext >&5
  14522. cat >conftest.$ac_ext <<_ACEOF
  14523. /* confdefs.h. */
  14524. _ACEOF
  14525. cat confdefs.h >>conftest.$ac_ext
  14526. cat >>conftest.$ac_ext <<_ACEOF
  14527. /* end confdefs.h. */
  14528. $ac_includes_default
  14529. int
  14530. main ()
  14531. {
  14532. static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
  14533. test_array [0] = 0
  14534. ;
  14535. return 0;
  14536. }
  14537. _ACEOF
  14538. rm -f conftest.$ac_objext
  14539. if { (ac_try="$ac_compile"
  14540. case "(($ac_try" in
  14541. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14542. *) ac_try_echo=$ac_try;;
  14543. esac
  14544. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14545. $as_echo "$ac_try_echo") >&5
  14546. (eval "$ac_compile") 2>conftest.er1
  14547. ac_status=$?
  14548. grep -v '^ *+' conftest.er1 >conftest.err
  14549. rm -f conftest.er1
  14550. cat conftest.err >&5
  14551. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14552. (exit $ac_status); } && {
  14553. test -z "$ac_c_werror_flag" ||
  14554. test ! -s conftest.err
  14555. } && test -s conftest.$ac_objext; then
  14556. ac_hi=-1 ac_mid=-1
  14557. while :; do
  14558. cat >conftest.$ac_ext <<_ACEOF
  14559. /* confdefs.h. */
  14560. _ACEOF
  14561. cat confdefs.h >>conftest.$ac_ext
  14562. cat >>conftest.$ac_ext <<_ACEOF
  14563. /* end confdefs.h. */
  14564. $ac_includes_default
  14565. int
  14566. main ()
  14567. {
  14568. static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
  14569. test_array [0] = 0
  14570. ;
  14571. return 0;
  14572. }
  14573. _ACEOF
  14574. rm -f conftest.$ac_objext
  14575. if { (ac_try="$ac_compile"
  14576. case "(($ac_try" in
  14577. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14578. *) ac_try_echo=$ac_try;;
  14579. esac
  14580. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14581. $as_echo "$ac_try_echo") >&5
  14582. (eval "$ac_compile") 2>conftest.er1
  14583. ac_status=$?
  14584. grep -v '^ *+' conftest.er1 >conftest.err
  14585. rm -f conftest.er1
  14586. cat conftest.err >&5
  14587. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14588. (exit $ac_status); } && {
  14589. test -z "$ac_c_werror_flag" ||
  14590. test ! -s conftest.err
  14591. } && test -s conftest.$ac_objext; then
  14592. ac_lo=$ac_mid; break
  14593. else
  14594. $as_echo "$as_me: failed program was:" >&5
  14595. sed 's/^/| /' conftest.$ac_ext >&5
  14596. ac_hi=`expr '(' $ac_mid ')' - 1`
  14597. if test $ac_mid -le $ac_hi; then
  14598. ac_lo= ac_hi=
  14599. break
  14600. fi
  14601. ac_mid=`expr 2 '*' $ac_mid`
  14602. fi
  14603. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14604. done
  14605. else
  14606. $as_echo "$as_me: failed program was:" >&5
  14607. sed 's/^/| /' conftest.$ac_ext >&5
  14608. ac_lo= ac_hi=
  14609. fi
  14610. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14611. fi
  14612. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14613. # Binary search between lo and hi bounds.
  14614. while test "x$ac_lo" != "x$ac_hi"; do
  14615. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  14616. cat >conftest.$ac_ext <<_ACEOF
  14617. /* confdefs.h. */
  14618. _ACEOF
  14619. cat confdefs.h >>conftest.$ac_ext
  14620. cat >>conftest.$ac_ext <<_ACEOF
  14621. /* end confdefs.h. */
  14622. $ac_includes_default
  14623. int
  14624. main ()
  14625. {
  14626. static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
  14627. test_array [0] = 0
  14628. ;
  14629. return 0;
  14630. }
  14631. _ACEOF
  14632. rm -f conftest.$ac_objext
  14633. if { (ac_try="$ac_compile"
  14634. case "(($ac_try" in
  14635. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14636. *) ac_try_echo=$ac_try;;
  14637. esac
  14638. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14639. $as_echo "$ac_try_echo") >&5
  14640. (eval "$ac_compile") 2>conftest.er1
  14641. ac_status=$?
  14642. grep -v '^ *+' conftest.er1 >conftest.err
  14643. rm -f conftest.er1
  14644. cat conftest.err >&5
  14645. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14646. (exit $ac_status); } && {
  14647. test -z "$ac_c_werror_flag" ||
  14648. test ! -s conftest.err
  14649. } && test -s conftest.$ac_objext; then
  14650. ac_hi=$ac_mid
  14651. else
  14652. $as_echo "$as_me: failed program was:" >&5
  14653. sed 's/^/| /' conftest.$ac_ext >&5
  14654. ac_lo=`expr '(' $ac_mid ')' + 1`
  14655. fi
  14656. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14657. done
  14658. case $ac_lo in
  14659. ?*) ac_cv_sizeof_size_t=$ac_lo;;
  14660. '') if test "$ac_cv_type_size_t" = yes; then
  14661. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  14662. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14663. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
  14664. See \`config.log' for more details." >&5
  14665. $as_echo "$as_me: error: cannot compute sizeof (size_t)
  14666. See \`config.log' for more details." >&2;}
  14667. { (exit 77); exit 77; }; }; }
  14668. else
  14669. ac_cv_sizeof_size_t=0
  14670. fi ;;
  14671. esac
  14672. else
  14673. cat >conftest.$ac_ext <<_ACEOF
  14674. /* confdefs.h. */
  14675. _ACEOF
  14676. cat confdefs.h >>conftest.$ac_ext
  14677. cat >>conftest.$ac_ext <<_ACEOF
  14678. /* end confdefs.h. */
  14679. $ac_includes_default
  14680. static long int longval () { return (long int) (sizeof (size_t)); }
  14681. static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
  14682. #include <stdio.h>
  14683. #include <stdlib.h>
  14684. int
  14685. main ()
  14686. {
  14687. FILE *f = fopen ("conftest.val", "w");
  14688. if (! f)
  14689. return 1;
  14690. if (((long int) (sizeof (size_t))) < 0)
  14691. {
  14692. long int i = longval ();
  14693. if (i != ((long int) (sizeof (size_t))))
  14694. return 1;
  14695. fprintf (f, "%ld", i);
  14696. }
  14697. else
  14698. {
  14699. unsigned long int i = ulongval ();
  14700. if (i != ((long int) (sizeof (size_t))))
  14701. return 1;
  14702. fprintf (f, "%lu", i);
  14703. }
  14704. /* Do not output a trailing newline, as this causes \r\n confusion
  14705. on some platforms. */
  14706. return ferror (f) || fclose (f) != 0;
  14707. ;
  14708. return 0;
  14709. }
  14710. _ACEOF
  14711. rm -f conftest$ac_exeext
  14712. if { (ac_try="$ac_link"
  14713. case "(($ac_try" in
  14714. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14715. *) ac_try_echo=$ac_try;;
  14716. esac
  14717. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14718. $as_echo "$ac_try_echo") >&5
  14719. (eval "$ac_link") 2>&5
  14720. ac_status=$?
  14721. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14722. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  14723. { (case "(($ac_try" in
  14724. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14725. *) ac_try_echo=$ac_try;;
  14726. esac
  14727. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14728. $as_echo "$ac_try_echo") >&5
  14729. (eval "$ac_try") 2>&5
  14730. ac_status=$?
  14731. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14732. (exit $ac_status); }; }; then
  14733. ac_cv_sizeof_size_t=`cat conftest.val`
  14734. else
  14735. $as_echo "$as_me: program exited with status $ac_status" >&5
  14736. $as_echo "$as_me: failed program was:" >&5
  14737. sed 's/^/| /' conftest.$ac_ext >&5
  14738. ( exit $ac_status )
  14739. if test "$ac_cv_type_size_t" = yes; then
  14740. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  14741. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14742. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
  14743. See \`config.log' for more details." >&5
  14744. $as_echo "$as_me: error: cannot compute sizeof (size_t)
  14745. See \`config.log' for more details." >&2;}
  14746. { (exit 77); exit 77; }; }; }
  14747. else
  14748. ac_cv_sizeof_size_t=0
  14749. fi
  14750. fi
  14751. rm -rf conftest.dSYM
  14752. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14753. fi
  14754. rm -f conftest.val
  14755. fi
  14756. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
  14757. $as_echo "$ac_cv_sizeof_size_t" >&6; }
  14758. cat >>confdefs.h <<_ACEOF
  14759. #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
  14760. _ACEOF
  14761. # The cast to long int works around a bug in the HP C Compiler
  14762. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  14763. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  14764. # This bug is HP SR number 8606223364.
  14765. { $as_echo "$as_me:$LINENO: checking size of long long" >&5
  14766. $as_echo_n "checking size of long long... " >&6; }
  14767. if test "${ac_cv_sizeof_long_long+set}" = set; then
  14768. $as_echo_n "(cached) " >&6
  14769. else
  14770. if test "$cross_compiling" = yes; then
  14771. # Depending upon the size, compute the lo and hi bounds.
  14772. cat >conftest.$ac_ext <<_ACEOF
  14773. /* confdefs.h. */
  14774. _ACEOF
  14775. cat confdefs.h >>conftest.$ac_ext
  14776. cat >>conftest.$ac_ext <<_ACEOF
  14777. /* end confdefs.h. */
  14778. $ac_includes_default
  14779. int
  14780. main ()
  14781. {
  14782. static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
  14783. test_array [0] = 0
  14784. ;
  14785. return 0;
  14786. }
  14787. _ACEOF
  14788. rm -f conftest.$ac_objext
  14789. if { (ac_try="$ac_compile"
  14790. case "(($ac_try" in
  14791. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14792. *) ac_try_echo=$ac_try;;
  14793. esac
  14794. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14795. $as_echo "$ac_try_echo") >&5
  14796. (eval "$ac_compile") 2>conftest.er1
  14797. ac_status=$?
  14798. grep -v '^ *+' conftest.er1 >conftest.err
  14799. rm -f conftest.er1
  14800. cat conftest.err >&5
  14801. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14802. (exit $ac_status); } && {
  14803. test -z "$ac_c_werror_flag" ||
  14804. test ! -s conftest.err
  14805. } && test -s conftest.$ac_objext; then
  14806. ac_lo=0 ac_mid=0
  14807. while :; do
  14808. cat >conftest.$ac_ext <<_ACEOF
  14809. /* confdefs.h. */
  14810. _ACEOF
  14811. cat confdefs.h >>conftest.$ac_ext
  14812. cat >>conftest.$ac_ext <<_ACEOF
  14813. /* end confdefs.h. */
  14814. $ac_includes_default
  14815. int
  14816. main ()
  14817. {
  14818. static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
  14819. test_array [0] = 0
  14820. ;
  14821. return 0;
  14822. }
  14823. _ACEOF
  14824. rm -f conftest.$ac_objext
  14825. if { (ac_try="$ac_compile"
  14826. case "(($ac_try" in
  14827. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14828. *) ac_try_echo=$ac_try;;
  14829. esac
  14830. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14831. $as_echo "$ac_try_echo") >&5
  14832. (eval "$ac_compile") 2>conftest.er1
  14833. ac_status=$?
  14834. grep -v '^ *+' conftest.er1 >conftest.err
  14835. rm -f conftest.er1
  14836. cat conftest.err >&5
  14837. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14838. (exit $ac_status); } && {
  14839. test -z "$ac_c_werror_flag" ||
  14840. test ! -s conftest.err
  14841. } && test -s conftest.$ac_objext; then
  14842. ac_hi=$ac_mid; break
  14843. else
  14844. $as_echo "$as_me: failed program was:" >&5
  14845. sed 's/^/| /' conftest.$ac_ext >&5
  14846. ac_lo=`expr $ac_mid + 1`
  14847. if test $ac_lo -le $ac_mid; then
  14848. ac_lo= ac_hi=
  14849. break
  14850. fi
  14851. ac_mid=`expr 2 '*' $ac_mid + 1`
  14852. fi
  14853. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14854. done
  14855. else
  14856. $as_echo "$as_me: failed program was:" >&5
  14857. sed 's/^/| /' conftest.$ac_ext >&5
  14858. cat >conftest.$ac_ext <<_ACEOF
  14859. /* confdefs.h. */
  14860. _ACEOF
  14861. cat confdefs.h >>conftest.$ac_ext
  14862. cat >>conftest.$ac_ext <<_ACEOF
  14863. /* end confdefs.h. */
  14864. $ac_includes_default
  14865. int
  14866. main ()
  14867. {
  14868. static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
  14869. test_array [0] = 0
  14870. ;
  14871. return 0;
  14872. }
  14873. _ACEOF
  14874. rm -f conftest.$ac_objext
  14875. if { (ac_try="$ac_compile"
  14876. case "(($ac_try" in
  14877. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14878. *) ac_try_echo=$ac_try;;
  14879. esac
  14880. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14881. $as_echo "$ac_try_echo") >&5
  14882. (eval "$ac_compile") 2>conftest.er1
  14883. ac_status=$?
  14884. grep -v '^ *+' conftest.er1 >conftest.err
  14885. rm -f conftest.er1
  14886. cat conftest.err >&5
  14887. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14888. (exit $ac_status); } && {
  14889. test -z "$ac_c_werror_flag" ||
  14890. test ! -s conftest.err
  14891. } && test -s conftest.$ac_objext; then
  14892. ac_hi=-1 ac_mid=-1
  14893. while :; do
  14894. cat >conftest.$ac_ext <<_ACEOF
  14895. /* confdefs.h. */
  14896. _ACEOF
  14897. cat confdefs.h >>conftest.$ac_ext
  14898. cat >>conftest.$ac_ext <<_ACEOF
  14899. /* end confdefs.h. */
  14900. $ac_includes_default
  14901. int
  14902. main ()
  14903. {
  14904. static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
  14905. test_array [0] = 0
  14906. ;
  14907. return 0;
  14908. }
  14909. _ACEOF
  14910. rm -f conftest.$ac_objext
  14911. if { (ac_try="$ac_compile"
  14912. case "(($ac_try" in
  14913. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14914. *) ac_try_echo=$ac_try;;
  14915. esac
  14916. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14917. $as_echo "$ac_try_echo") >&5
  14918. (eval "$ac_compile") 2>conftest.er1
  14919. ac_status=$?
  14920. grep -v '^ *+' conftest.er1 >conftest.err
  14921. rm -f conftest.er1
  14922. cat conftest.err >&5
  14923. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14924. (exit $ac_status); } && {
  14925. test -z "$ac_c_werror_flag" ||
  14926. test ! -s conftest.err
  14927. } && test -s conftest.$ac_objext; then
  14928. ac_lo=$ac_mid; break
  14929. else
  14930. $as_echo "$as_me: failed program was:" >&5
  14931. sed 's/^/| /' conftest.$ac_ext >&5
  14932. ac_hi=`expr '(' $ac_mid ')' - 1`
  14933. if test $ac_mid -le $ac_hi; then
  14934. ac_lo= ac_hi=
  14935. break
  14936. fi
  14937. ac_mid=`expr 2 '*' $ac_mid`
  14938. fi
  14939. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14940. done
  14941. else
  14942. $as_echo "$as_me: failed program was:" >&5
  14943. sed 's/^/| /' conftest.$ac_ext >&5
  14944. ac_lo= ac_hi=
  14945. fi
  14946. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14947. fi
  14948. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14949. # Binary search between lo and hi bounds.
  14950. while test "x$ac_lo" != "x$ac_hi"; do
  14951. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  14952. cat >conftest.$ac_ext <<_ACEOF
  14953. /* confdefs.h. */
  14954. _ACEOF
  14955. cat confdefs.h >>conftest.$ac_ext
  14956. cat >>conftest.$ac_ext <<_ACEOF
  14957. /* end confdefs.h. */
  14958. $ac_includes_default
  14959. int
  14960. main ()
  14961. {
  14962. static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
  14963. test_array [0] = 0
  14964. ;
  14965. return 0;
  14966. }
  14967. _ACEOF
  14968. rm -f conftest.$ac_objext
  14969. if { (ac_try="$ac_compile"
  14970. case "(($ac_try" in
  14971. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14972. *) ac_try_echo=$ac_try;;
  14973. esac
  14974. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14975. $as_echo "$ac_try_echo") >&5
  14976. (eval "$ac_compile") 2>conftest.er1
  14977. ac_status=$?
  14978. grep -v '^ *+' conftest.er1 >conftest.err
  14979. rm -f conftest.er1
  14980. cat conftest.err >&5
  14981. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14982. (exit $ac_status); } && {
  14983. test -z "$ac_c_werror_flag" ||
  14984. test ! -s conftest.err
  14985. } && test -s conftest.$ac_objext; then
  14986. ac_hi=$ac_mid
  14987. else
  14988. $as_echo "$as_me: failed program was:" >&5
  14989. sed 's/^/| /' conftest.$ac_ext >&5
  14990. ac_lo=`expr '(' $ac_mid ')' + 1`
  14991. fi
  14992. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14993. done
  14994. case $ac_lo in
  14995. ?*) ac_cv_sizeof_long_long=$ac_lo;;
  14996. '') if test "$ac_cv_type_long_long" = yes; then
  14997. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  14998. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14999. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
  15000. See \`config.log' for more details." >&5
  15001. $as_echo "$as_me: error: cannot compute sizeof (long long)
  15002. See \`config.log' for more details." >&2;}
  15003. { (exit 77); exit 77; }; }; }
  15004. else
  15005. ac_cv_sizeof_long_long=0
  15006. fi ;;
  15007. esac
  15008. else
  15009. cat >conftest.$ac_ext <<_ACEOF
  15010. /* confdefs.h. */
  15011. _ACEOF
  15012. cat confdefs.h >>conftest.$ac_ext
  15013. cat >>conftest.$ac_ext <<_ACEOF
  15014. /* end confdefs.h. */
  15015. $ac_includes_default
  15016. static long int longval () { return (long int) (sizeof (long long)); }
  15017. static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
  15018. #include <stdio.h>
  15019. #include <stdlib.h>
  15020. int
  15021. main ()
  15022. {
  15023. FILE *f = fopen ("conftest.val", "w");
  15024. if (! f)
  15025. return 1;
  15026. if (((long int) (sizeof (long long))) < 0)
  15027. {
  15028. long int i = longval ();
  15029. if (i != ((long int) (sizeof (long long))))
  15030. return 1;
  15031. fprintf (f, "%ld", i);
  15032. }
  15033. else
  15034. {
  15035. unsigned long int i = ulongval ();
  15036. if (i != ((long int) (sizeof (long long))))
  15037. return 1;
  15038. fprintf (f, "%lu", i);
  15039. }
  15040. /* Do not output a trailing newline, as this causes \r\n confusion
  15041. on some platforms. */
  15042. return ferror (f) || fclose (f) != 0;
  15043. ;
  15044. return 0;
  15045. }
  15046. _ACEOF
  15047. rm -f conftest$ac_exeext
  15048. if { (ac_try="$ac_link"
  15049. case "(($ac_try" in
  15050. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15051. *) ac_try_echo=$ac_try;;
  15052. esac
  15053. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15054. $as_echo "$ac_try_echo") >&5
  15055. (eval "$ac_link") 2>&5
  15056. ac_status=$?
  15057. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15058. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  15059. { (case "(($ac_try" in
  15060. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15061. *) ac_try_echo=$ac_try;;
  15062. esac
  15063. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15064. $as_echo "$ac_try_echo") >&5
  15065. (eval "$ac_try") 2>&5
  15066. ac_status=$?
  15067. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15068. (exit $ac_status); }; }; then
  15069. ac_cv_sizeof_long_long=`cat conftest.val`
  15070. else
  15071. $as_echo "$as_me: program exited with status $ac_status" >&5
  15072. $as_echo "$as_me: failed program was:" >&5
  15073. sed 's/^/| /' conftest.$ac_ext >&5
  15074. ( exit $ac_status )
  15075. if test "$ac_cv_type_long_long" = yes; then
  15076. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  15077. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15078. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
  15079. See \`config.log' for more details." >&5
  15080. $as_echo "$as_me: error: cannot compute sizeof (long long)
  15081. See \`config.log' for more details." >&2;}
  15082. { (exit 77); exit 77; }; }; }
  15083. else
  15084. ac_cv_sizeof_long_long=0
  15085. fi
  15086. fi
  15087. rm -rf conftest.dSYM
  15088. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  15089. fi
  15090. rm -f conftest.val
  15091. fi
  15092. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
  15093. $as_echo "$ac_cv_sizeof_long_long" >&6; }
  15094. cat >>confdefs.h <<_ACEOF
  15095. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  15096. _ACEOF
  15097. # The cast to long int works around a bug in the HP C Compiler
  15098. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  15099. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  15100. # This bug is HP SR number 8606223364.
  15101. { $as_echo "$as_me:$LINENO: checking size of unsigned long long" >&5
  15102. $as_echo_n "checking size of unsigned long long... " >&6; }
  15103. if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then
  15104. $as_echo_n "(cached) " >&6
  15105. else
  15106. if test "$cross_compiling" = yes; then
  15107. # Depending upon the size, compute the lo and hi bounds.
  15108. cat >conftest.$ac_ext <<_ACEOF
  15109. /* confdefs.h. */
  15110. _ACEOF
  15111. cat confdefs.h >>conftest.$ac_ext
  15112. cat >>conftest.$ac_ext <<_ACEOF
  15113. /* end confdefs.h. */
  15114. $ac_includes_default
  15115. int
  15116. main ()
  15117. {
  15118. static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long))) >= 0)];
  15119. test_array [0] = 0
  15120. ;
  15121. return 0;
  15122. }
  15123. _ACEOF
  15124. rm -f conftest.$ac_objext
  15125. if { (ac_try="$ac_compile"
  15126. case "(($ac_try" in
  15127. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15128. *) ac_try_echo=$ac_try;;
  15129. esac
  15130. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15131. $as_echo "$ac_try_echo") >&5
  15132. (eval "$ac_compile") 2>conftest.er1
  15133. ac_status=$?
  15134. grep -v '^ *+' conftest.er1 >conftest.err
  15135. rm -f conftest.er1
  15136. cat conftest.err >&5
  15137. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15138. (exit $ac_status); } && {
  15139. test -z "$ac_c_werror_flag" ||
  15140. test ! -s conftest.err
  15141. } && test -s conftest.$ac_objext; then
  15142. ac_lo=0 ac_mid=0
  15143. while :; do
  15144. cat >conftest.$ac_ext <<_ACEOF
  15145. /* confdefs.h. */
  15146. _ACEOF
  15147. cat confdefs.h >>conftest.$ac_ext
  15148. cat >>conftest.$ac_ext <<_ACEOF
  15149. /* end confdefs.h. */
  15150. $ac_includes_default
  15151. int
  15152. main ()
  15153. {
  15154. static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long))) <= $ac_mid)];
  15155. test_array [0] = 0
  15156. ;
  15157. return 0;
  15158. }
  15159. _ACEOF
  15160. rm -f conftest.$ac_objext
  15161. if { (ac_try="$ac_compile"
  15162. case "(($ac_try" in
  15163. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15164. *) ac_try_echo=$ac_try;;
  15165. esac
  15166. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15167. $as_echo "$ac_try_echo") >&5
  15168. (eval "$ac_compile") 2>conftest.er1
  15169. ac_status=$?
  15170. grep -v '^ *+' conftest.er1 >conftest.err
  15171. rm -f conftest.er1
  15172. cat conftest.err >&5
  15173. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15174. (exit $ac_status); } && {
  15175. test -z "$ac_c_werror_flag" ||
  15176. test ! -s conftest.err
  15177. } && test -s conftest.$ac_objext; then
  15178. ac_hi=$ac_mid; break
  15179. else
  15180. $as_echo "$as_me: failed program was:" >&5
  15181. sed 's/^/| /' conftest.$ac_ext >&5
  15182. ac_lo=`expr $ac_mid + 1`
  15183. if test $ac_lo -le $ac_mid; then
  15184. ac_lo= ac_hi=
  15185. break
  15186. fi
  15187. ac_mid=`expr 2 '*' $ac_mid + 1`
  15188. fi
  15189. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15190. done
  15191. else
  15192. $as_echo "$as_me: failed program was:" >&5
  15193. sed 's/^/| /' conftest.$ac_ext >&5
  15194. cat >conftest.$ac_ext <<_ACEOF
  15195. /* confdefs.h. */
  15196. _ACEOF
  15197. cat confdefs.h >>conftest.$ac_ext
  15198. cat >>conftest.$ac_ext <<_ACEOF
  15199. /* end confdefs.h. */
  15200. $ac_includes_default
  15201. int
  15202. main ()
  15203. {
  15204. static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long))) < 0)];
  15205. test_array [0] = 0
  15206. ;
  15207. return 0;
  15208. }
  15209. _ACEOF
  15210. rm -f conftest.$ac_objext
  15211. if { (ac_try="$ac_compile"
  15212. case "(($ac_try" in
  15213. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15214. *) ac_try_echo=$ac_try;;
  15215. esac
  15216. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15217. $as_echo "$ac_try_echo") >&5
  15218. (eval "$ac_compile") 2>conftest.er1
  15219. ac_status=$?
  15220. grep -v '^ *+' conftest.er1 >conftest.err
  15221. rm -f conftest.er1
  15222. cat conftest.err >&5
  15223. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15224. (exit $ac_status); } && {
  15225. test -z "$ac_c_werror_flag" ||
  15226. test ! -s conftest.err
  15227. } && test -s conftest.$ac_objext; then
  15228. ac_hi=-1 ac_mid=-1
  15229. while :; do
  15230. cat >conftest.$ac_ext <<_ACEOF
  15231. /* confdefs.h. */
  15232. _ACEOF
  15233. cat confdefs.h >>conftest.$ac_ext
  15234. cat >>conftest.$ac_ext <<_ACEOF
  15235. /* end confdefs.h. */
  15236. $ac_includes_default
  15237. int
  15238. main ()
  15239. {
  15240. static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long))) >= $ac_mid)];
  15241. test_array [0] = 0
  15242. ;
  15243. return 0;
  15244. }
  15245. _ACEOF
  15246. rm -f conftest.$ac_objext
  15247. if { (ac_try="$ac_compile"
  15248. case "(($ac_try" in
  15249. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15250. *) ac_try_echo=$ac_try;;
  15251. esac
  15252. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15253. $as_echo "$ac_try_echo") >&5
  15254. (eval "$ac_compile") 2>conftest.er1
  15255. ac_status=$?
  15256. grep -v '^ *+' conftest.er1 >conftest.err
  15257. rm -f conftest.er1
  15258. cat conftest.err >&5
  15259. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15260. (exit $ac_status); } && {
  15261. test -z "$ac_c_werror_flag" ||
  15262. test ! -s conftest.err
  15263. } && test -s conftest.$ac_objext; then
  15264. ac_lo=$ac_mid; break
  15265. else
  15266. $as_echo "$as_me: failed program was:" >&5
  15267. sed 's/^/| /' conftest.$ac_ext >&5
  15268. ac_hi=`expr '(' $ac_mid ')' - 1`
  15269. if test $ac_mid -le $ac_hi; then
  15270. ac_lo= ac_hi=
  15271. break
  15272. fi
  15273. ac_mid=`expr 2 '*' $ac_mid`
  15274. fi
  15275. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15276. done
  15277. else
  15278. $as_echo "$as_me: failed program was:" >&5
  15279. sed 's/^/| /' conftest.$ac_ext >&5
  15280. ac_lo= ac_hi=
  15281. fi
  15282. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15283. fi
  15284. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15285. # Binary search between lo and hi bounds.
  15286. while test "x$ac_lo" != "x$ac_hi"; do
  15287. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  15288. cat >conftest.$ac_ext <<_ACEOF
  15289. /* confdefs.h. */
  15290. _ACEOF
  15291. cat confdefs.h >>conftest.$ac_ext
  15292. cat >>conftest.$ac_ext <<_ACEOF
  15293. /* end confdefs.h. */
  15294. $ac_includes_default
  15295. int
  15296. main ()
  15297. {
  15298. static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long))) <= $ac_mid)];
  15299. test_array [0] = 0
  15300. ;
  15301. return 0;
  15302. }
  15303. _ACEOF
  15304. rm -f conftest.$ac_objext
  15305. if { (ac_try="$ac_compile"
  15306. case "(($ac_try" in
  15307. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15308. *) ac_try_echo=$ac_try;;
  15309. esac
  15310. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15311. $as_echo "$ac_try_echo") >&5
  15312. (eval "$ac_compile") 2>conftest.er1
  15313. ac_status=$?
  15314. grep -v '^ *+' conftest.er1 >conftest.err
  15315. rm -f conftest.er1
  15316. cat conftest.err >&5
  15317. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15318. (exit $ac_status); } && {
  15319. test -z "$ac_c_werror_flag" ||
  15320. test ! -s conftest.err
  15321. } && test -s conftest.$ac_objext; then
  15322. ac_hi=$ac_mid
  15323. else
  15324. $as_echo "$as_me: failed program was:" >&5
  15325. sed 's/^/| /' conftest.$ac_ext >&5
  15326. ac_lo=`expr '(' $ac_mid ')' + 1`
  15327. fi
  15328. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15329. done
  15330. case $ac_lo in
  15331. ?*) ac_cv_sizeof_unsigned_long_long=$ac_lo;;
  15332. '') if test "$ac_cv_type_unsigned_long_long" = yes; then
  15333. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  15334. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15335. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
  15336. See \`config.log' for more details." >&5
  15337. $as_echo "$as_me: error: cannot compute sizeof (unsigned long long)
  15338. See \`config.log' for more details." >&2;}
  15339. { (exit 77); exit 77; }; }; }
  15340. else
  15341. ac_cv_sizeof_unsigned_long_long=0
  15342. fi ;;
  15343. esac
  15344. else
  15345. cat >conftest.$ac_ext <<_ACEOF
  15346. /* confdefs.h. */
  15347. _ACEOF
  15348. cat confdefs.h >>conftest.$ac_ext
  15349. cat >>conftest.$ac_ext <<_ACEOF
  15350. /* end confdefs.h. */
  15351. $ac_includes_default
  15352. static long int longval () { return (long int) (sizeof (unsigned long long)); }
  15353. static unsigned long int ulongval () { return (long int) (sizeof (unsigned long long)); }
  15354. #include <stdio.h>
  15355. #include <stdlib.h>
  15356. int
  15357. main ()
  15358. {
  15359. FILE *f = fopen ("conftest.val", "w");
  15360. if (! f)
  15361. return 1;
  15362. if (((long int) (sizeof (unsigned long long))) < 0)
  15363. {
  15364. long int i = longval ();
  15365. if (i != ((long int) (sizeof (unsigned long long))))
  15366. return 1;
  15367. fprintf (f, "%ld", i);
  15368. }
  15369. else
  15370. {
  15371. unsigned long int i = ulongval ();
  15372. if (i != ((long int) (sizeof (unsigned long long))))
  15373. return 1;
  15374. fprintf (f, "%lu", i);
  15375. }
  15376. /* Do not output a trailing newline, as this causes \r\n confusion
  15377. on some platforms. */
  15378. return ferror (f) || fclose (f) != 0;
  15379. ;
  15380. return 0;
  15381. }
  15382. _ACEOF
  15383. rm -f conftest$ac_exeext
  15384. if { (ac_try="$ac_link"
  15385. case "(($ac_try" in
  15386. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15387. *) ac_try_echo=$ac_try;;
  15388. esac
  15389. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15390. $as_echo "$ac_try_echo") >&5
  15391. (eval "$ac_link") 2>&5
  15392. ac_status=$?
  15393. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15394. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  15395. { (case "(($ac_try" in
  15396. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15397. *) ac_try_echo=$ac_try;;
  15398. esac
  15399. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15400. $as_echo "$ac_try_echo") >&5
  15401. (eval "$ac_try") 2>&5
  15402. ac_status=$?
  15403. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15404. (exit $ac_status); }; }; then
  15405. ac_cv_sizeof_unsigned_long_long=`cat conftest.val`
  15406. else
  15407. $as_echo "$as_me: program exited with status $ac_status" >&5
  15408. $as_echo "$as_me: failed program was:" >&5
  15409. sed 's/^/| /' conftest.$ac_ext >&5
  15410. ( exit $ac_status )
  15411. if test "$ac_cv_type_unsigned_long_long" = yes; then
  15412. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  15413. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15414. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
  15415. See \`config.log' for more details." >&5
  15416. $as_echo "$as_me: error: cannot compute sizeof (unsigned long long)
  15417. See \`config.log' for more details." >&2;}
  15418. { (exit 77); exit 77; }; }; }
  15419. else
  15420. ac_cv_sizeof_unsigned_long_long=0
  15421. fi
  15422. fi
  15423. rm -rf conftest.dSYM
  15424. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  15425. fi
  15426. rm -f conftest.val
  15427. fi
  15428. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long" >&5
  15429. $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
  15430. cat >>confdefs.h <<_ACEOF
  15431. #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
  15432. _ACEOF
  15433. # The cast to long int works around a bug in the HP C Compiler
  15434. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  15435. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  15436. # This bug is HP SR number 8606223364.
  15437. { $as_echo "$as_me:$LINENO: checking size of __int64" >&5
  15438. $as_echo_n "checking size of __int64... " >&6; }
  15439. if test "${ac_cv_sizeof___int64+set}" = set; then
  15440. $as_echo_n "(cached) " >&6
  15441. else
  15442. if test "$cross_compiling" = yes; then
  15443. # Depending upon the size, compute the lo and hi bounds.
  15444. cat >conftest.$ac_ext <<_ACEOF
  15445. /* confdefs.h. */
  15446. _ACEOF
  15447. cat confdefs.h >>conftest.$ac_ext
  15448. cat >>conftest.$ac_ext <<_ACEOF
  15449. /* end confdefs.h. */
  15450. $ac_includes_default
  15451. int
  15452. main ()
  15453. {
  15454. static int test_array [1 - 2 * !(((long int) (sizeof (__int64))) >= 0)];
  15455. test_array [0] = 0
  15456. ;
  15457. return 0;
  15458. }
  15459. _ACEOF
  15460. rm -f conftest.$ac_objext
  15461. if { (ac_try="$ac_compile"
  15462. case "(($ac_try" in
  15463. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15464. *) ac_try_echo=$ac_try;;
  15465. esac
  15466. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15467. $as_echo "$ac_try_echo") >&5
  15468. (eval "$ac_compile") 2>conftest.er1
  15469. ac_status=$?
  15470. grep -v '^ *+' conftest.er1 >conftest.err
  15471. rm -f conftest.er1
  15472. cat conftest.err >&5
  15473. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15474. (exit $ac_status); } && {
  15475. test -z "$ac_c_werror_flag" ||
  15476. test ! -s conftest.err
  15477. } && test -s conftest.$ac_objext; then
  15478. ac_lo=0 ac_mid=0
  15479. while :; do
  15480. cat >conftest.$ac_ext <<_ACEOF
  15481. /* confdefs.h. */
  15482. _ACEOF
  15483. cat confdefs.h >>conftest.$ac_ext
  15484. cat >>conftest.$ac_ext <<_ACEOF
  15485. /* end confdefs.h. */
  15486. $ac_includes_default
  15487. int
  15488. main ()
  15489. {
  15490. static int test_array [1 - 2 * !(((long int) (sizeof (__int64))) <= $ac_mid)];
  15491. test_array [0] = 0
  15492. ;
  15493. return 0;
  15494. }
  15495. _ACEOF
  15496. rm -f conftest.$ac_objext
  15497. if { (ac_try="$ac_compile"
  15498. case "(($ac_try" in
  15499. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15500. *) ac_try_echo=$ac_try;;
  15501. esac
  15502. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15503. $as_echo "$ac_try_echo") >&5
  15504. (eval "$ac_compile") 2>conftest.er1
  15505. ac_status=$?
  15506. grep -v '^ *+' conftest.er1 >conftest.err
  15507. rm -f conftest.er1
  15508. cat conftest.err >&5
  15509. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15510. (exit $ac_status); } && {
  15511. test -z "$ac_c_werror_flag" ||
  15512. test ! -s conftest.err
  15513. } && test -s conftest.$ac_objext; then
  15514. ac_hi=$ac_mid; break
  15515. else
  15516. $as_echo "$as_me: failed program was:" >&5
  15517. sed 's/^/| /' conftest.$ac_ext >&5
  15518. ac_lo=`expr $ac_mid + 1`
  15519. if test $ac_lo -le $ac_mid; then
  15520. ac_lo= ac_hi=
  15521. break
  15522. fi
  15523. ac_mid=`expr 2 '*' $ac_mid + 1`
  15524. fi
  15525. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15526. done
  15527. else
  15528. $as_echo "$as_me: failed program was:" >&5
  15529. sed 's/^/| /' conftest.$ac_ext >&5
  15530. cat >conftest.$ac_ext <<_ACEOF
  15531. /* confdefs.h. */
  15532. _ACEOF
  15533. cat confdefs.h >>conftest.$ac_ext
  15534. cat >>conftest.$ac_ext <<_ACEOF
  15535. /* end confdefs.h. */
  15536. $ac_includes_default
  15537. int
  15538. main ()
  15539. {
  15540. static int test_array [1 - 2 * !(((long int) (sizeof (__int64))) < 0)];
  15541. test_array [0] = 0
  15542. ;
  15543. return 0;
  15544. }
  15545. _ACEOF
  15546. rm -f conftest.$ac_objext
  15547. if { (ac_try="$ac_compile"
  15548. case "(($ac_try" in
  15549. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15550. *) ac_try_echo=$ac_try;;
  15551. esac
  15552. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15553. $as_echo "$ac_try_echo") >&5
  15554. (eval "$ac_compile") 2>conftest.er1
  15555. ac_status=$?
  15556. grep -v '^ *+' conftest.er1 >conftest.err
  15557. rm -f conftest.er1
  15558. cat conftest.err >&5
  15559. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15560. (exit $ac_status); } && {
  15561. test -z "$ac_c_werror_flag" ||
  15562. test ! -s conftest.err
  15563. } && test -s conftest.$ac_objext; then
  15564. ac_hi=-1 ac_mid=-1
  15565. while :; do
  15566. cat >conftest.$ac_ext <<_ACEOF
  15567. /* confdefs.h. */
  15568. _ACEOF
  15569. cat confdefs.h >>conftest.$ac_ext
  15570. cat >>conftest.$ac_ext <<_ACEOF
  15571. /* end confdefs.h. */
  15572. $ac_includes_default
  15573. int
  15574. main ()
  15575. {
  15576. static int test_array [1 - 2 * !(((long int) (sizeof (__int64))) >= $ac_mid)];
  15577. test_array [0] = 0
  15578. ;
  15579. return 0;
  15580. }
  15581. _ACEOF
  15582. rm -f conftest.$ac_objext
  15583. if { (ac_try="$ac_compile"
  15584. case "(($ac_try" in
  15585. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15586. *) ac_try_echo=$ac_try;;
  15587. esac
  15588. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15589. $as_echo "$ac_try_echo") >&5
  15590. (eval "$ac_compile") 2>conftest.er1
  15591. ac_status=$?
  15592. grep -v '^ *+' conftest.er1 >conftest.err
  15593. rm -f conftest.er1
  15594. cat conftest.err >&5
  15595. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15596. (exit $ac_status); } && {
  15597. test -z "$ac_c_werror_flag" ||
  15598. test ! -s conftest.err
  15599. } && test -s conftest.$ac_objext; then
  15600. ac_lo=$ac_mid; break
  15601. else
  15602. $as_echo "$as_me: failed program was:" >&5
  15603. sed 's/^/| /' conftest.$ac_ext >&5
  15604. ac_hi=`expr '(' $ac_mid ')' - 1`
  15605. if test $ac_mid -le $ac_hi; then
  15606. ac_lo= ac_hi=
  15607. break
  15608. fi
  15609. ac_mid=`expr 2 '*' $ac_mid`
  15610. fi
  15611. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15612. done
  15613. else
  15614. $as_echo "$as_me: failed program was:" >&5
  15615. sed 's/^/| /' conftest.$ac_ext >&5
  15616. ac_lo= ac_hi=
  15617. fi
  15618. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15619. fi
  15620. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15621. # Binary search between lo and hi bounds.
  15622. while test "x$ac_lo" != "x$ac_hi"; do
  15623. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  15624. cat >conftest.$ac_ext <<_ACEOF
  15625. /* confdefs.h. */
  15626. _ACEOF
  15627. cat confdefs.h >>conftest.$ac_ext
  15628. cat >>conftest.$ac_ext <<_ACEOF
  15629. /* end confdefs.h. */
  15630. $ac_includes_default
  15631. int
  15632. main ()
  15633. {
  15634. static int test_array [1 - 2 * !(((long int) (sizeof (__int64))) <= $ac_mid)];
  15635. test_array [0] = 0
  15636. ;
  15637. return 0;
  15638. }
  15639. _ACEOF
  15640. rm -f conftest.$ac_objext
  15641. if { (ac_try="$ac_compile"
  15642. case "(($ac_try" in
  15643. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15644. *) ac_try_echo=$ac_try;;
  15645. esac
  15646. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15647. $as_echo "$ac_try_echo") >&5
  15648. (eval "$ac_compile") 2>conftest.er1
  15649. ac_status=$?
  15650. grep -v '^ *+' conftest.er1 >conftest.err
  15651. rm -f conftest.er1
  15652. cat conftest.err >&5
  15653. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15654. (exit $ac_status); } && {
  15655. test -z "$ac_c_werror_flag" ||
  15656. test ! -s conftest.err
  15657. } && test -s conftest.$ac_objext; then
  15658. ac_hi=$ac_mid
  15659. else
  15660. $as_echo "$as_me: failed program was:" >&5
  15661. sed 's/^/| /' conftest.$ac_ext >&5
  15662. ac_lo=`expr '(' $ac_mid ')' + 1`
  15663. fi
  15664. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15665. done
  15666. case $ac_lo in
  15667. ?*) ac_cv_sizeof___int64=$ac_lo;;
  15668. '') if test "$ac_cv_type___int64" = yes; then
  15669. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  15670. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15671. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (__int64)
  15672. See \`config.log' for more details." >&5
  15673. $as_echo "$as_me: error: cannot compute sizeof (__int64)
  15674. See \`config.log' for more details." >&2;}
  15675. { (exit 77); exit 77; }; }; }
  15676. else
  15677. ac_cv_sizeof___int64=0
  15678. fi ;;
  15679. esac
  15680. else
  15681. cat >conftest.$ac_ext <<_ACEOF
  15682. /* confdefs.h. */
  15683. _ACEOF
  15684. cat confdefs.h >>conftest.$ac_ext
  15685. cat >>conftest.$ac_ext <<_ACEOF
  15686. /* end confdefs.h. */
  15687. $ac_includes_default
  15688. static long int longval () { return (long int) (sizeof (__int64)); }
  15689. static unsigned long int ulongval () { return (long int) (sizeof (__int64)); }
  15690. #include <stdio.h>
  15691. #include <stdlib.h>
  15692. int
  15693. main ()
  15694. {
  15695. FILE *f = fopen ("conftest.val", "w");
  15696. if (! f)
  15697. return 1;
  15698. if (((long int) (sizeof (__int64))) < 0)
  15699. {
  15700. long int i = longval ();
  15701. if (i != ((long int) (sizeof (__int64))))
  15702. return 1;
  15703. fprintf (f, "%ld", i);
  15704. }
  15705. else
  15706. {
  15707. unsigned long int i = ulongval ();
  15708. if (i != ((long int) (sizeof (__int64))))
  15709. return 1;
  15710. fprintf (f, "%lu", i);
  15711. }
  15712. /* Do not output a trailing newline, as this causes \r\n confusion
  15713. on some platforms. */
  15714. return ferror (f) || fclose (f) != 0;
  15715. ;
  15716. return 0;
  15717. }
  15718. _ACEOF
  15719. rm -f conftest$ac_exeext
  15720. if { (ac_try="$ac_link"
  15721. case "(($ac_try" in
  15722. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15723. *) ac_try_echo=$ac_try;;
  15724. esac
  15725. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15726. $as_echo "$ac_try_echo") >&5
  15727. (eval "$ac_link") 2>&5
  15728. ac_status=$?
  15729. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15730. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  15731. { (case "(($ac_try" in
  15732. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15733. *) ac_try_echo=$ac_try;;
  15734. esac
  15735. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15736. $as_echo "$ac_try_echo") >&5
  15737. (eval "$ac_try") 2>&5
  15738. ac_status=$?
  15739. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15740. (exit $ac_status); }; }; then
  15741. ac_cv_sizeof___int64=`cat conftest.val`
  15742. else
  15743. $as_echo "$as_me: program exited with status $ac_status" >&5
  15744. $as_echo "$as_me: failed program was:" >&5
  15745. sed 's/^/| /' conftest.$ac_ext >&5
  15746. ( exit $ac_status )
  15747. if test "$ac_cv_type___int64" = yes; then
  15748. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  15749. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15750. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (__int64)
  15751. See \`config.log' for more details." >&5
  15752. $as_echo "$as_me: error: cannot compute sizeof (__int64)
  15753. See \`config.log' for more details." >&2;}
  15754. { (exit 77); exit 77; }; }; }
  15755. else
  15756. ac_cv_sizeof___int64=0
  15757. fi
  15758. fi
  15759. rm -rf conftest.dSYM
  15760. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  15761. fi
  15762. rm -f conftest.val
  15763. fi
  15764. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
  15765. $as_echo "$ac_cv_sizeof___int64" >&6; }
  15766. cat >>confdefs.h <<_ACEOF
  15767. #define SIZEOF___INT64 $ac_cv_sizeof___int64
  15768. _ACEOF
  15769. # The cast to long int works around a bug in the HP C Compiler
  15770. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  15771. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  15772. # This bug is HP SR number 8606223364.
  15773. { $as_echo "$as_me:$LINENO: checking size of unsigned __int64" >&5
  15774. $as_echo_n "checking size of unsigned __int64... " >&6; }
  15775. if test "${ac_cv_sizeof_unsigned___int64+set}" = set; then
  15776. $as_echo_n "(cached) " >&6
  15777. else
  15778. if test "$cross_compiling" = yes; then
  15779. # Depending upon the size, compute the lo and hi bounds.
  15780. cat >conftest.$ac_ext <<_ACEOF
  15781. /* confdefs.h. */
  15782. _ACEOF
  15783. cat confdefs.h >>conftest.$ac_ext
  15784. cat >>conftest.$ac_ext <<_ACEOF
  15785. /* end confdefs.h. */
  15786. $ac_includes_default
  15787. int
  15788. main ()
  15789. {
  15790. static int test_array [1 - 2 * !(((long int) (sizeof (unsigned __int64))) >= 0)];
  15791. test_array [0] = 0
  15792. ;
  15793. return 0;
  15794. }
  15795. _ACEOF
  15796. rm -f conftest.$ac_objext
  15797. if { (ac_try="$ac_compile"
  15798. case "(($ac_try" in
  15799. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15800. *) ac_try_echo=$ac_try;;
  15801. esac
  15802. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15803. $as_echo "$ac_try_echo") >&5
  15804. (eval "$ac_compile") 2>conftest.er1
  15805. ac_status=$?
  15806. grep -v '^ *+' conftest.er1 >conftest.err
  15807. rm -f conftest.er1
  15808. cat conftest.err >&5
  15809. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15810. (exit $ac_status); } && {
  15811. test -z "$ac_c_werror_flag" ||
  15812. test ! -s conftest.err
  15813. } && test -s conftest.$ac_objext; then
  15814. ac_lo=0 ac_mid=0
  15815. while :; do
  15816. cat >conftest.$ac_ext <<_ACEOF
  15817. /* confdefs.h. */
  15818. _ACEOF
  15819. cat confdefs.h >>conftest.$ac_ext
  15820. cat >>conftest.$ac_ext <<_ACEOF
  15821. /* end confdefs.h. */
  15822. $ac_includes_default
  15823. int
  15824. main ()
  15825. {
  15826. static int test_array [1 - 2 * !(((long int) (sizeof (unsigned __int64))) <= $ac_mid)];
  15827. test_array [0] = 0
  15828. ;
  15829. return 0;
  15830. }
  15831. _ACEOF
  15832. rm -f conftest.$ac_objext
  15833. if { (ac_try="$ac_compile"
  15834. case "(($ac_try" in
  15835. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15836. *) ac_try_echo=$ac_try;;
  15837. esac
  15838. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15839. $as_echo "$ac_try_echo") >&5
  15840. (eval "$ac_compile") 2>conftest.er1
  15841. ac_status=$?
  15842. grep -v '^ *+' conftest.er1 >conftest.err
  15843. rm -f conftest.er1
  15844. cat conftest.err >&5
  15845. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15846. (exit $ac_status); } && {
  15847. test -z "$ac_c_werror_flag" ||
  15848. test ! -s conftest.err
  15849. } && test -s conftest.$ac_objext; then
  15850. ac_hi=$ac_mid; break
  15851. else
  15852. $as_echo "$as_me: failed program was:" >&5
  15853. sed 's/^/| /' conftest.$ac_ext >&5
  15854. ac_lo=`expr $ac_mid + 1`
  15855. if test $ac_lo -le $ac_mid; then
  15856. ac_lo= ac_hi=
  15857. break
  15858. fi
  15859. ac_mid=`expr 2 '*' $ac_mid + 1`
  15860. fi
  15861. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15862. done
  15863. else
  15864. $as_echo "$as_me: failed program was:" >&5
  15865. sed 's/^/| /' conftest.$ac_ext >&5
  15866. cat >conftest.$ac_ext <<_ACEOF
  15867. /* confdefs.h. */
  15868. _ACEOF
  15869. cat confdefs.h >>conftest.$ac_ext
  15870. cat >>conftest.$ac_ext <<_ACEOF
  15871. /* end confdefs.h. */
  15872. $ac_includes_default
  15873. int
  15874. main ()
  15875. {
  15876. static int test_array [1 - 2 * !(((long int) (sizeof (unsigned __int64))) < 0)];
  15877. test_array [0] = 0
  15878. ;
  15879. return 0;
  15880. }
  15881. _ACEOF
  15882. rm -f conftest.$ac_objext
  15883. if { (ac_try="$ac_compile"
  15884. case "(($ac_try" in
  15885. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15886. *) ac_try_echo=$ac_try;;
  15887. esac
  15888. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15889. $as_echo "$ac_try_echo") >&5
  15890. (eval "$ac_compile") 2>conftest.er1
  15891. ac_status=$?
  15892. grep -v '^ *+' conftest.er1 >conftest.err
  15893. rm -f conftest.er1
  15894. cat conftest.err >&5
  15895. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15896. (exit $ac_status); } && {
  15897. test -z "$ac_c_werror_flag" ||
  15898. test ! -s conftest.err
  15899. } && test -s conftest.$ac_objext; then
  15900. ac_hi=-1 ac_mid=-1
  15901. while :; do
  15902. cat >conftest.$ac_ext <<_ACEOF
  15903. /* confdefs.h. */
  15904. _ACEOF
  15905. cat confdefs.h >>conftest.$ac_ext
  15906. cat >>conftest.$ac_ext <<_ACEOF
  15907. /* end confdefs.h. */
  15908. $ac_includes_default
  15909. int
  15910. main ()
  15911. {
  15912. static int test_array [1 - 2 * !(((long int) (sizeof (unsigned __int64))) >= $ac_mid)];
  15913. test_array [0] = 0
  15914. ;
  15915. return 0;
  15916. }
  15917. _ACEOF
  15918. rm -f conftest.$ac_objext
  15919. if { (ac_try="$ac_compile"
  15920. case "(($ac_try" in
  15921. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15922. *) ac_try_echo=$ac_try;;
  15923. esac
  15924. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15925. $as_echo "$ac_try_echo") >&5
  15926. (eval "$ac_compile") 2>conftest.er1
  15927. ac_status=$?
  15928. grep -v '^ *+' conftest.er1 >conftest.err
  15929. rm -f conftest.er1
  15930. cat conftest.err >&5
  15931. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15932. (exit $ac_status); } && {
  15933. test -z "$ac_c_werror_flag" ||
  15934. test ! -s conftest.err
  15935. } && test -s conftest.$ac_objext; then
  15936. ac_lo=$ac_mid; break
  15937. else
  15938. $as_echo "$as_me: failed program was:" >&5
  15939. sed 's/^/| /' conftest.$ac_ext >&5
  15940. ac_hi=`expr '(' $ac_mid ')' - 1`
  15941. if test $ac_mid -le $ac_hi; then
  15942. ac_lo= ac_hi=
  15943. break
  15944. fi
  15945. ac_mid=`expr 2 '*' $ac_mid`
  15946. fi
  15947. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15948. done
  15949. else
  15950. $as_echo "$as_me: failed program was:" >&5
  15951. sed 's/^/| /' conftest.$ac_ext >&5
  15952. ac_lo= ac_hi=
  15953. fi
  15954. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15955. fi
  15956. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15957. # Binary search between lo and hi bounds.
  15958. while test "x$ac_lo" != "x$ac_hi"; do
  15959. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  15960. cat >conftest.$ac_ext <<_ACEOF
  15961. /* confdefs.h. */
  15962. _ACEOF
  15963. cat confdefs.h >>conftest.$ac_ext
  15964. cat >>conftest.$ac_ext <<_ACEOF
  15965. /* end confdefs.h. */
  15966. $ac_includes_default
  15967. int
  15968. main ()
  15969. {
  15970. static int test_array [1 - 2 * !(((long int) (sizeof (unsigned __int64))) <= $ac_mid)];
  15971. test_array [0] = 0
  15972. ;
  15973. return 0;
  15974. }
  15975. _ACEOF
  15976. rm -f conftest.$ac_objext
  15977. if { (ac_try="$ac_compile"
  15978. case "(($ac_try" in
  15979. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15980. *) ac_try_echo=$ac_try;;
  15981. esac
  15982. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15983. $as_echo "$ac_try_echo") >&5
  15984. (eval "$ac_compile") 2>conftest.er1
  15985. ac_status=$?
  15986. grep -v '^ *+' conftest.er1 >conftest.err
  15987. rm -f conftest.er1
  15988. cat conftest.err >&5
  15989. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15990. (exit $ac_status); } && {
  15991. test -z "$ac_c_werror_flag" ||
  15992. test ! -s conftest.err
  15993. } && test -s conftest.$ac_objext; then
  15994. ac_hi=$ac_mid
  15995. else
  15996. $as_echo "$as_me: failed program was:" >&5
  15997. sed 's/^/| /' conftest.$ac_ext >&5
  15998. ac_lo=`expr '(' $ac_mid ')' + 1`
  15999. fi
  16000. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16001. done
  16002. case $ac_lo in
  16003. ?*) ac_cv_sizeof_unsigned___int64=$ac_lo;;
  16004. '') if test "$ac_cv_type_unsigned___int64" = yes; then
  16005. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  16006. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  16007. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned __int64)
  16008. See \`config.log' for more details." >&5
  16009. $as_echo "$as_me: error: cannot compute sizeof (unsigned __int64)
  16010. See \`config.log' for more details." >&2;}
  16011. { (exit 77); exit 77; }; }; }
  16012. else
  16013. ac_cv_sizeof_unsigned___int64=0
  16014. fi ;;
  16015. esac
  16016. else
  16017. cat >conftest.$ac_ext <<_ACEOF
  16018. /* confdefs.h. */
  16019. _ACEOF
  16020. cat confdefs.h >>conftest.$ac_ext
  16021. cat >>conftest.$ac_ext <<_ACEOF
  16022. /* end confdefs.h. */
  16023. $ac_includes_default
  16024. static long int longval () { return (long int) (sizeof (unsigned __int64)); }
  16025. static unsigned long int ulongval () { return (long int) (sizeof (unsigned __int64)); }
  16026. #include <stdio.h>
  16027. #include <stdlib.h>
  16028. int
  16029. main ()
  16030. {
  16031. FILE *f = fopen ("conftest.val", "w");
  16032. if (! f)
  16033. return 1;
  16034. if (((long int) (sizeof (unsigned __int64))) < 0)
  16035. {
  16036. long int i = longval ();
  16037. if (i != ((long int) (sizeof (unsigned __int64))))
  16038. return 1;
  16039. fprintf (f, "%ld", i);
  16040. }
  16041. else
  16042. {
  16043. unsigned long int i = ulongval ();
  16044. if (i != ((long int) (sizeof (unsigned __int64))))
  16045. return 1;
  16046. fprintf (f, "%lu", i);
  16047. }
  16048. /* Do not output a trailing newline, as this causes \r\n confusion
  16049. on some platforms. */
  16050. return ferror (f) || fclose (f) != 0;
  16051. ;
  16052. return 0;
  16053. }
  16054. _ACEOF
  16055. rm -f conftest$ac_exeext
  16056. if { (ac_try="$ac_link"
  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_link") 2>&5
  16064. ac_status=$?
  16065. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16066. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16067. { (case "(($ac_try" in
  16068. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16069. *) ac_try_echo=$ac_try;;
  16070. esac
  16071. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16072. $as_echo "$ac_try_echo") >&5
  16073. (eval "$ac_try") 2>&5
  16074. ac_status=$?
  16075. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16076. (exit $ac_status); }; }; then
  16077. ac_cv_sizeof_unsigned___int64=`cat conftest.val`
  16078. else
  16079. $as_echo "$as_me: program exited with status $ac_status" >&5
  16080. $as_echo "$as_me: failed program was:" >&5
  16081. sed 's/^/| /' conftest.$ac_ext >&5
  16082. ( exit $ac_status )
  16083. if test "$ac_cv_type_unsigned___int64" = yes; then
  16084. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  16085. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  16086. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned __int64)
  16087. See \`config.log' for more details." >&5
  16088. $as_echo "$as_me: error: cannot compute sizeof (unsigned __int64)
  16089. See \`config.log' for more details." >&2;}
  16090. { (exit 77); exit 77; }; }; }
  16091. else
  16092. ac_cv_sizeof_unsigned___int64=0
  16093. fi
  16094. fi
  16095. rm -rf conftest.dSYM
  16096. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16097. fi
  16098. rm -f conftest.val
  16099. fi
  16100. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned___int64" >&5
  16101. $as_echo "$ac_cv_sizeof_unsigned___int64" >&6; }
  16102. cat >>confdefs.h <<_ACEOF
  16103. #define SIZEOF_UNSIGNED___INT64 $ac_cv_sizeof_unsigned___int64
  16104. _ACEOF
  16105. # The cast to long int works around a bug in the HP C Compiler
  16106. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  16107. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  16108. # This bug is HP SR number 8606223364.
  16109. { $as_echo "$as_me:$LINENO: checking size of void *" >&5
  16110. $as_echo_n "checking size of void *... " >&6; }
  16111. if test "${ac_cv_sizeof_void_p+set}" = set; then
  16112. $as_echo_n "(cached) " >&6
  16113. else
  16114. if test "$cross_compiling" = yes; then
  16115. # Depending upon the size, compute the lo and hi bounds.
  16116. cat >conftest.$ac_ext <<_ACEOF
  16117. /* confdefs.h. */
  16118. _ACEOF
  16119. cat confdefs.h >>conftest.$ac_ext
  16120. cat >>conftest.$ac_ext <<_ACEOF
  16121. /* end confdefs.h. */
  16122. $ac_includes_default
  16123. int
  16124. main ()
  16125. {
  16126. static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
  16127. test_array [0] = 0
  16128. ;
  16129. return 0;
  16130. }
  16131. _ACEOF
  16132. rm -f conftest.$ac_objext
  16133. if { (ac_try="$ac_compile"
  16134. case "(($ac_try" in
  16135. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16136. *) ac_try_echo=$ac_try;;
  16137. esac
  16138. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16139. $as_echo "$ac_try_echo") >&5
  16140. (eval "$ac_compile") 2>conftest.er1
  16141. ac_status=$?
  16142. grep -v '^ *+' conftest.er1 >conftest.err
  16143. rm -f conftest.er1
  16144. cat conftest.err >&5
  16145. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16146. (exit $ac_status); } && {
  16147. test -z "$ac_c_werror_flag" ||
  16148. test ! -s conftest.err
  16149. } && test -s conftest.$ac_objext; then
  16150. ac_lo=0 ac_mid=0
  16151. while :; do
  16152. cat >conftest.$ac_ext <<_ACEOF
  16153. /* confdefs.h. */
  16154. _ACEOF
  16155. cat confdefs.h >>conftest.$ac_ext
  16156. cat >>conftest.$ac_ext <<_ACEOF
  16157. /* end confdefs.h. */
  16158. $ac_includes_default
  16159. int
  16160. main ()
  16161. {
  16162. static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
  16163. test_array [0] = 0
  16164. ;
  16165. return 0;
  16166. }
  16167. _ACEOF
  16168. rm -f conftest.$ac_objext
  16169. if { (ac_try="$ac_compile"
  16170. case "(($ac_try" in
  16171. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16172. *) ac_try_echo=$ac_try;;
  16173. esac
  16174. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16175. $as_echo "$ac_try_echo") >&5
  16176. (eval "$ac_compile") 2>conftest.er1
  16177. ac_status=$?
  16178. grep -v '^ *+' conftest.er1 >conftest.err
  16179. rm -f conftest.er1
  16180. cat conftest.err >&5
  16181. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16182. (exit $ac_status); } && {
  16183. test -z "$ac_c_werror_flag" ||
  16184. test ! -s conftest.err
  16185. } && test -s conftest.$ac_objext; then
  16186. ac_hi=$ac_mid; break
  16187. else
  16188. $as_echo "$as_me: failed program was:" >&5
  16189. sed 's/^/| /' conftest.$ac_ext >&5
  16190. ac_lo=`expr $ac_mid + 1`
  16191. if test $ac_lo -le $ac_mid; then
  16192. ac_lo= ac_hi=
  16193. break
  16194. fi
  16195. ac_mid=`expr 2 '*' $ac_mid + 1`
  16196. fi
  16197. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16198. done
  16199. else
  16200. $as_echo "$as_me: failed program was:" >&5
  16201. sed 's/^/| /' conftest.$ac_ext >&5
  16202. cat >conftest.$ac_ext <<_ACEOF
  16203. /* confdefs.h. */
  16204. _ACEOF
  16205. cat confdefs.h >>conftest.$ac_ext
  16206. cat >>conftest.$ac_ext <<_ACEOF
  16207. /* end confdefs.h. */
  16208. $ac_includes_default
  16209. int
  16210. main ()
  16211. {
  16212. static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
  16213. test_array [0] = 0
  16214. ;
  16215. return 0;
  16216. }
  16217. _ACEOF
  16218. rm -f conftest.$ac_objext
  16219. if { (ac_try="$ac_compile"
  16220. case "(($ac_try" in
  16221. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16222. *) ac_try_echo=$ac_try;;
  16223. esac
  16224. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16225. $as_echo "$ac_try_echo") >&5
  16226. (eval "$ac_compile") 2>conftest.er1
  16227. ac_status=$?
  16228. grep -v '^ *+' conftest.er1 >conftest.err
  16229. rm -f conftest.er1
  16230. cat conftest.err >&5
  16231. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16232. (exit $ac_status); } && {
  16233. test -z "$ac_c_werror_flag" ||
  16234. test ! -s conftest.err
  16235. } && test -s conftest.$ac_objext; then
  16236. ac_hi=-1 ac_mid=-1
  16237. while :; do
  16238. cat >conftest.$ac_ext <<_ACEOF
  16239. /* confdefs.h. */
  16240. _ACEOF
  16241. cat confdefs.h >>conftest.$ac_ext
  16242. cat >>conftest.$ac_ext <<_ACEOF
  16243. /* end confdefs.h. */
  16244. $ac_includes_default
  16245. int
  16246. main ()
  16247. {
  16248. static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
  16249. test_array [0] = 0
  16250. ;
  16251. return 0;
  16252. }
  16253. _ACEOF
  16254. rm -f conftest.$ac_objext
  16255. if { (ac_try="$ac_compile"
  16256. case "(($ac_try" in
  16257. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16258. *) ac_try_echo=$ac_try;;
  16259. esac
  16260. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16261. $as_echo "$ac_try_echo") >&5
  16262. (eval "$ac_compile") 2>conftest.er1
  16263. ac_status=$?
  16264. grep -v '^ *+' conftest.er1 >conftest.err
  16265. rm -f conftest.er1
  16266. cat conftest.err >&5
  16267. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16268. (exit $ac_status); } && {
  16269. test -z "$ac_c_werror_flag" ||
  16270. test ! -s conftest.err
  16271. } && test -s conftest.$ac_objext; then
  16272. ac_lo=$ac_mid; break
  16273. else
  16274. $as_echo "$as_me: failed program was:" >&5
  16275. sed 's/^/| /' conftest.$ac_ext >&5
  16276. ac_hi=`expr '(' $ac_mid ')' - 1`
  16277. if test $ac_mid -le $ac_hi; then
  16278. ac_lo= ac_hi=
  16279. break
  16280. fi
  16281. ac_mid=`expr 2 '*' $ac_mid`
  16282. fi
  16283. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16284. done
  16285. else
  16286. $as_echo "$as_me: failed program was:" >&5
  16287. sed 's/^/| /' conftest.$ac_ext >&5
  16288. ac_lo= ac_hi=
  16289. fi
  16290. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16291. fi
  16292. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16293. # Binary search between lo and hi bounds.
  16294. while test "x$ac_lo" != "x$ac_hi"; do
  16295. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  16296. cat >conftest.$ac_ext <<_ACEOF
  16297. /* confdefs.h. */
  16298. _ACEOF
  16299. cat confdefs.h >>conftest.$ac_ext
  16300. cat >>conftest.$ac_ext <<_ACEOF
  16301. /* end confdefs.h. */
  16302. $ac_includes_default
  16303. int
  16304. main ()
  16305. {
  16306. static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
  16307. test_array [0] = 0
  16308. ;
  16309. return 0;
  16310. }
  16311. _ACEOF
  16312. rm -f conftest.$ac_objext
  16313. if { (ac_try="$ac_compile"
  16314. case "(($ac_try" in
  16315. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16316. *) ac_try_echo=$ac_try;;
  16317. esac
  16318. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16319. $as_echo "$ac_try_echo") >&5
  16320. (eval "$ac_compile") 2>conftest.er1
  16321. ac_status=$?
  16322. grep -v '^ *+' conftest.er1 >conftest.err
  16323. rm -f conftest.er1
  16324. cat conftest.err >&5
  16325. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16326. (exit $ac_status); } && {
  16327. test -z "$ac_c_werror_flag" ||
  16328. test ! -s conftest.err
  16329. } && test -s conftest.$ac_objext; then
  16330. ac_hi=$ac_mid
  16331. else
  16332. $as_echo "$as_me: failed program was:" >&5
  16333. sed 's/^/| /' conftest.$ac_ext >&5
  16334. ac_lo=`expr '(' $ac_mid ')' + 1`
  16335. fi
  16336. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16337. done
  16338. case $ac_lo in
  16339. ?*) ac_cv_sizeof_void_p=$ac_lo;;
  16340. '') if test "$ac_cv_type_void_p" = yes; then
  16341. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  16342. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  16343. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
  16344. See \`config.log' for more details." >&5
  16345. $as_echo "$as_me: error: cannot compute sizeof (void *)
  16346. See \`config.log' for more details." >&2;}
  16347. { (exit 77); exit 77; }; }; }
  16348. else
  16349. ac_cv_sizeof_void_p=0
  16350. fi ;;
  16351. esac
  16352. else
  16353. cat >conftest.$ac_ext <<_ACEOF
  16354. /* confdefs.h. */
  16355. _ACEOF
  16356. cat confdefs.h >>conftest.$ac_ext
  16357. cat >>conftest.$ac_ext <<_ACEOF
  16358. /* end confdefs.h. */
  16359. $ac_includes_default
  16360. static long int longval () { return (long int) (sizeof (void *)); }
  16361. static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
  16362. #include <stdio.h>
  16363. #include <stdlib.h>
  16364. int
  16365. main ()
  16366. {
  16367. FILE *f = fopen ("conftest.val", "w");
  16368. if (! f)
  16369. return 1;
  16370. if (((long int) (sizeof (void *))) < 0)
  16371. {
  16372. long int i = longval ();
  16373. if (i != ((long int) (sizeof (void *))))
  16374. return 1;
  16375. fprintf (f, "%ld", i);
  16376. }
  16377. else
  16378. {
  16379. unsigned long int i = ulongval ();
  16380. if (i != ((long int) (sizeof (void *))))
  16381. return 1;
  16382. fprintf (f, "%lu", i);
  16383. }
  16384. /* Do not output a trailing newline, as this causes \r\n confusion
  16385. on some platforms. */
  16386. return ferror (f) || fclose (f) != 0;
  16387. ;
  16388. return 0;
  16389. }
  16390. _ACEOF
  16391. rm -f conftest$ac_exeext
  16392. if { (ac_try="$ac_link"
  16393. case "(($ac_try" in
  16394. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16395. *) ac_try_echo=$ac_try;;
  16396. esac
  16397. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16398. $as_echo "$ac_try_echo") >&5
  16399. (eval "$ac_link") 2>&5
  16400. ac_status=$?
  16401. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16402. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16403. { (case "(($ac_try" in
  16404. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16405. *) ac_try_echo=$ac_try;;
  16406. esac
  16407. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16408. $as_echo "$ac_try_echo") >&5
  16409. (eval "$ac_try") 2>&5
  16410. ac_status=$?
  16411. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16412. (exit $ac_status); }; }; then
  16413. ac_cv_sizeof_void_p=`cat conftest.val`
  16414. else
  16415. $as_echo "$as_me: program exited with status $ac_status" >&5
  16416. $as_echo "$as_me: failed program was:" >&5
  16417. sed 's/^/| /' conftest.$ac_ext >&5
  16418. ( exit $ac_status )
  16419. if test "$ac_cv_type_void_p" = yes; then
  16420. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  16421. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  16422. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
  16423. See \`config.log' for more details." >&5
  16424. $as_echo "$as_me: error: cannot compute sizeof (void *)
  16425. See \`config.log' for more details." >&2;}
  16426. { (exit 77); exit 77; }; }; }
  16427. else
  16428. ac_cv_sizeof_void_p=0
  16429. fi
  16430. fi
  16431. rm -rf conftest.dSYM
  16432. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16433. fi
  16434. rm -f conftest.val
  16435. fi
  16436. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
  16437. $as_echo "$ac_cv_sizeof_void_p" >&6; }
  16438. cat >>confdefs.h <<_ACEOF
  16439. #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
  16440. _ACEOF
  16441. # The cast to long int works around a bug in the HP C Compiler
  16442. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  16443. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  16444. # This bug is HP SR number 8606223364.
  16445. { $as_echo "$as_me:$LINENO: checking size of intptr_t" >&5
  16446. $as_echo_n "checking size of intptr_t... " >&6; }
  16447. if test "${ac_cv_sizeof_intptr_t+set}" = set; then
  16448. $as_echo_n "(cached) " >&6
  16449. else
  16450. if test "$cross_compiling" = yes; then
  16451. # Depending upon the size, compute the lo and hi bounds.
  16452. cat >conftest.$ac_ext <<_ACEOF
  16453. /* confdefs.h. */
  16454. _ACEOF
  16455. cat confdefs.h >>conftest.$ac_ext
  16456. cat >>conftest.$ac_ext <<_ACEOF
  16457. /* end confdefs.h. */
  16458. $ac_includes_default
  16459. int
  16460. main ()
  16461. {
  16462. static int test_array [1 - 2 * !(((long int) (sizeof (intptr_t))) >= 0)];
  16463. test_array [0] = 0
  16464. ;
  16465. return 0;
  16466. }
  16467. _ACEOF
  16468. rm -f conftest.$ac_objext
  16469. if { (ac_try="$ac_compile"
  16470. case "(($ac_try" in
  16471. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16472. *) ac_try_echo=$ac_try;;
  16473. esac
  16474. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16475. $as_echo "$ac_try_echo") >&5
  16476. (eval "$ac_compile") 2>conftest.er1
  16477. ac_status=$?
  16478. grep -v '^ *+' conftest.er1 >conftest.err
  16479. rm -f conftest.er1
  16480. cat conftest.err >&5
  16481. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16482. (exit $ac_status); } && {
  16483. test -z "$ac_c_werror_flag" ||
  16484. test ! -s conftest.err
  16485. } && test -s conftest.$ac_objext; then
  16486. ac_lo=0 ac_mid=0
  16487. while :; do
  16488. cat >conftest.$ac_ext <<_ACEOF
  16489. /* confdefs.h. */
  16490. _ACEOF
  16491. cat confdefs.h >>conftest.$ac_ext
  16492. cat >>conftest.$ac_ext <<_ACEOF
  16493. /* end confdefs.h. */
  16494. $ac_includes_default
  16495. int
  16496. main ()
  16497. {
  16498. static int test_array [1 - 2 * !(((long int) (sizeof (intptr_t))) <= $ac_mid)];
  16499. test_array [0] = 0
  16500. ;
  16501. return 0;
  16502. }
  16503. _ACEOF
  16504. rm -f conftest.$ac_objext
  16505. if { (ac_try="$ac_compile"
  16506. case "(($ac_try" in
  16507. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16508. *) ac_try_echo=$ac_try;;
  16509. esac
  16510. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16511. $as_echo "$ac_try_echo") >&5
  16512. (eval "$ac_compile") 2>conftest.er1
  16513. ac_status=$?
  16514. grep -v '^ *+' conftest.er1 >conftest.err
  16515. rm -f conftest.er1
  16516. cat conftest.err >&5
  16517. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16518. (exit $ac_status); } && {
  16519. test -z "$ac_c_werror_flag" ||
  16520. test ! -s conftest.err
  16521. } && test -s conftest.$ac_objext; then
  16522. ac_hi=$ac_mid; break
  16523. else
  16524. $as_echo "$as_me: failed program was:" >&5
  16525. sed 's/^/| /' conftest.$ac_ext >&5
  16526. ac_lo=`expr $ac_mid + 1`
  16527. if test $ac_lo -le $ac_mid; then
  16528. ac_lo= ac_hi=
  16529. break
  16530. fi
  16531. ac_mid=`expr 2 '*' $ac_mid + 1`
  16532. fi
  16533. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16534. done
  16535. else
  16536. $as_echo "$as_me: failed program was:" >&5
  16537. sed 's/^/| /' conftest.$ac_ext >&5
  16538. cat >conftest.$ac_ext <<_ACEOF
  16539. /* confdefs.h. */
  16540. _ACEOF
  16541. cat confdefs.h >>conftest.$ac_ext
  16542. cat >>conftest.$ac_ext <<_ACEOF
  16543. /* end confdefs.h. */
  16544. $ac_includes_default
  16545. int
  16546. main ()
  16547. {
  16548. static int test_array [1 - 2 * !(((long int) (sizeof (intptr_t))) < 0)];
  16549. test_array [0] = 0
  16550. ;
  16551. return 0;
  16552. }
  16553. _ACEOF
  16554. rm -f conftest.$ac_objext
  16555. if { (ac_try="$ac_compile"
  16556. case "(($ac_try" in
  16557. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16558. *) ac_try_echo=$ac_try;;
  16559. esac
  16560. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16561. $as_echo "$ac_try_echo") >&5
  16562. (eval "$ac_compile") 2>conftest.er1
  16563. ac_status=$?
  16564. grep -v '^ *+' conftest.er1 >conftest.err
  16565. rm -f conftest.er1
  16566. cat conftest.err >&5
  16567. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16568. (exit $ac_status); } && {
  16569. test -z "$ac_c_werror_flag" ||
  16570. test ! -s conftest.err
  16571. } && test -s conftest.$ac_objext; then
  16572. ac_hi=-1 ac_mid=-1
  16573. while :; do
  16574. cat >conftest.$ac_ext <<_ACEOF
  16575. /* confdefs.h. */
  16576. _ACEOF
  16577. cat confdefs.h >>conftest.$ac_ext
  16578. cat >>conftest.$ac_ext <<_ACEOF
  16579. /* end confdefs.h. */
  16580. $ac_includes_default
  16581. int
  16582. main ()
  16583. {
  16584. static int test_array [1 - 2 * !(((long int) (sizeof (intptr_t))) >= $ac_mid)];
  16585. test_array [0] = 0
  16586. ;
  16587. return 0;
  16588. }
  16589. _ACEOF
  16590. rm -f conftest.$ac_objext
  16591. if { (ac_try="$ac_compile"
  16592. case "(($ac_try" in
  16593. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16594. *) ac_try_echo=$ac_try;;
  16595. esac
  16596. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16597. $as_echo "$ac_try_echo") >&5
  16598. (eval "$ac_compile") 2>conftest.er1
  16599. ac_status=$?
  16600. grep -v '^ *+' conftest.er1 >conftest.err
  16601. rm -f conftest.er1
  16602. cat conftest.err >&5
  16603. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16604. (exit $ac_status); } && {
  16605. test -z "$ac_c_werror_flag" ||
  16606. test ! -s conftest.err
  16607. } && test -s conftest.$ac_objext; then
  16608. ac_lo=$ac_mid; break
  16609. else
  16610. $as_echo "$as_me: failed program was:" >&5
  16611. sed 's/^/| /' conftest.$ac_ext >&5
  16612. ac_hi=`expr '(' $ac_mid ')' - 1`
  16613. if test $ac_mid -le $ac_hi; then
  16614. ac_lo= ac_hi=
  16615. break
  16616. fi
  16617. ac_mid=`expr 2 '*' $ac_mid`
  16618. fi
  16619. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16620. done
  16621. else
  16622. $as_echo "$as_me: failed program was:" >&5
  16623. sed 's/^/| /' conftest.$ac_ext >&5
  16624. ac_lo= ac_hi=
  16625. fi
  16626. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16627. fi
  16628. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16629. # Binary search between lo and hi bounds.
  16630. while test "x$ac_lo" != "x$ac_hi"; do
  16631. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  16632. cat >conftest.$ac_ext <<_ACEOF
  16633. /* confdefs.h. */
  16634. _ACEOF
  16635. cat confdefs.h >>conftest.$ac_ext
  16636. cat >>conftest.$ac_ext <<_ACEOF
  16637. /* end confdefs.h. */
  16638. $ac_includes_default
  16639. int
  16640. main ()
  16641. {
  16642. static int test_array [1 - 2 * !(((long int) (sizeof (intptr_t))) <= $ac_mid)];
  16643. test_array [0] = 0
  16644. ;
  16645. return 0;
  16646. }
  16647. _ACEOF
  16648. rm -f conftest.$ac_objext
  16649. if { (ac_try="$ac_compile"
  16650. case "(($ac_try" in
  16651. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16652. *) ac_try_echo=$ac_try;;
  16653. esac
  16654. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16655. $as_echo "$ac_try_echo") >&5
  16656. (eval "$ac_compile") 2>conftest.er1
  16657. ac_status=$?
  16658. grep -v '^ *+' conftest.er1 >conftest.err
  16659. rm -f conftest.er1
  16660. cat conftest.err >&5
  16661. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16662. (exit $ac_status); } && {
  16663. test -z "$ac_c_werror_flag" ||
  16664. test ! -s conftest.err
  16665. } && test -s conftest.$ac_objext; then
  16666. ac_hi=$ac_mid
  16667. else
  16668. $as_echo "$as_me: failed program was:" >&5
  16669. sed 's/^/| /' conftest.$ac_ext >&5
  16670. ac_lo=`expr '(' $ac_mid ')' + 1`
  16671. fi
  16672. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16673. done
  16674. case $ac_lo in
  16675. ?*) ac_cv_sizeof_intptr_t=$ac_lo;;
  16676. '') if test "$ac_cv_type_intptr_t" = yes; then
  16677. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  16678. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  16679. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (intptr_t)
  16680. See \`config.log' for more details." >&5
  16681. $as_echo "$as_me: error: cannot compute sizeof (intptr_t)
  16682. See \`config.log' for more details." >&2;}
  16683. { (exit 77); exit 77; }; }; }
  16684. else
  16685. ac_cv_sizeof_intptr_t=0
  16686. fi ;;
  16687. esac
  16688. else
  16689. cat >conftest.$ac_ext <<_ACEOF
  16690. /* confdefs.h. */
  16691. _ACEOF
  16692. cat confdefs.h >>conftest.$ac_ext
  16693. cat >>conftest.$ac_ext <<_ACEOF
  16694. /* end confdefs.h. */
  16695. $ac_includes_default
  16696. static long int longval () { return (long int) (sizeof (intptr_t)); }
  16697. static unsigned long int ulongval () { return (long int) (sizeof (intptr_t)); }
  16698. #include <stdio.h>
  16699. #include <stdlib.h>
  16700. int
  16701. main ()
  16702. {
  16703. FILE *f = fopen ("conftest.val", "w");
  16704. if (! f)
  16705. return 1;
  16706. if (((long int) (sizeof (intptr_t))) < 0)
  16707. {
  16708. long int i = longval ();
  16709. if (i != ((long int) (sizeof (intptr_t))))
  16710. return 1;
  16711. fprintf (f, "%ld", i);
  16712. }
  16713. else
  16714. {
  16715. unsigned long int i = ulongval ();
  16716. if (i != ((long int) (sizeof (intptr_t))))
  16717. return 1;
  16718. fprintf (f, "%lu", i);
  16719. }
  16720. /* Do not output a trailing newline, as this causes \r\n confusion
  16721. on some platforms. */
  16722. return ferror (f) || fclose (f) != 0;
  16723. ;
  16724. return 0;
  16725. }
  16726. _ACEOF
  16727. rm -f conftest$ac_exeext
  16728. if { (ac_try="$ac_link"
  16729. case "(($ac_try" in
  16730. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16731. *) ac_try_echo=$ac_try;;
  16732. esac
  16733. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16734. $as_echo "$ac_try_echo") >&5
  16735. (eval "$ac_link") 2>&5
  16736. ac_status=$?
  16737. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16738. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16739. { (case "(($ac_try" in
  16740. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16741. *) ac_try_echo=$ac_try;;
  16742. esac
  16743. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16744. $as_echo "$ac_try_echo") >&5
  16745. (eval "$ac_try") 2>&5
  16746. ac_status=$?
  16747. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16748. (exit $ac_status); }; }; then
  16749. ac_cv_sizeof_intptr_t=`cat conftest.val`
  16750. else
  16751. $as_echo "$as_me: program exited with status $ac_status" >&5
  16752. $as_echo "$as_me: failed program was:" >&5
  16753. sed 's/^/| /' conftest.$ac_ext >&5
  16754. ( exit $ac_status )
  16755. if test "$ac_cv_type_intptr_t" = yes; then
  16756. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  16757. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  16758. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (intptr_t)
  16759. See \`config.log' for more details." >&5
  16760. $as_echo "$as_me: error: cannot compute sizeof (intptr_t)
  16761. See \`config.log' for more details." >&2;}
  16762. { (exit 77); exit 77; }; }; }
  16763. else
  16764. ac_cv_sizeof_intptr_t=0
  16765. fi
  16766. fi
  16767. rm -rf conftest.dSYM
  16768. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16769. fi
  16770. rm -f conftest.val
  16771. fi
  16772. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_intptr_t" >&5
  16773. $as_echo "$ac_cv_sizeof_intptr_t" >&6; }
  16774. cat >>confdefs.h <<_ACEOF
  16775. #define SIZEOF_INTPTR_T $ac_cv_sizeof_intptr_t
  16776. _ACEOF
  16777. # The cast to long int works around a bug in the HP C Compiler
  16778. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  16779. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  16780. # This bug is HP SR number 8606223364.
  16781. { $as_echo "$as_me:$LINENO: checking size of uintptr_t" >&5
  16782. $as_echo_n "checking size of uintptr_t... " >&6; }
  16783. if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
  16784. $as_echo_n "(cached) " >&6
  16785. else
  16786. if test "$cross_compiling" = yes; then
  16787. # Depending upon the size, compute the lo and hi bounds.
  16788. cat >conftest.$ac_ext <<_ACEOF
  16789. /* confdefs.h. */
  16790. _ACEOF
  16791. cat confdefs.h >>conftest.$ac_ext
  16792. cat >>conftest.$ac_ext <<_ACEOF
  16793. /* end confdefs.h. */
  16794. $ac_includes_default
  16795. int
  16796. main ()
  16797. {
  16798. static int test_array [1 - 2 * !(((long int) (sizeof (uintptr_t))) >= 0)];
  16799. test_array [0] = 0
  16800. ;
  16801. return 0;
  16802. }
  16803. _ACEOF
  16804. rm -f conftest.$ac_objext
  16805. if { (ac_try="$ac_compile"
  16806. case "(($ac_try" in
  16807. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16808. *) ac_try_echo=$ac_try;;
  16809. esac
  16810. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16811. $as_echo "$ac_try_echo") >&5
  16812. (eval "$ac_compile") 2>conftest.er1
  16813. ac_status=$?
  16814. grep -v '^ *+' conftest.er1 >conftest.err
  16815. rm -f conftest.er1
  16816. cat conftest.err >&5
  16817. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16818. (exit $ac_status); } && {
  16819. test -z "$ac_c_werror_flag" ||
  16820. test ! -s conftest.err
  16821. } && test -s conftest.$ac_objext; then
  16822. ac_lo=0 ac_mid=0
  16823. while :; do
  16824. cat >conftest.$ac_ext <<_ACEOF
  16825. /* confdefs.h. */
  16826. _ACEOF
  16827. cat confdefs.h >>conftest.$ac_ext
  16828. cat >>conftest.$ac_ext <<_ACEOF
  16829. /* end confdefs.h. */
  16830. $ac_includes_default
  16831. int
  16832. main ()
  16833. {
  16834. static int test_array [1 - 2 * !(((long int) (sizeof (uintptr_t))) <= $ac_mid)];
  16835. test_array [0] = 0
  16836. ;
  16837. return 0;
  16838. }
  16839. _ACEOF
  16840. rm -f conftest.$ac_objext
  16841. if { (ac_try="$ac_compile"
  16842. case "(($ac_try" in
  16843. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16844. *) ac_try_echo=$ac_try;;
  16845. esac
  16846. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16847. $as_echo "$ac_try_echo") >&5
  16848. (eval "$ac_compile") 2>conftest.er1
  16849. ac_status=$?
  16850. grep -v '^ *+' conftest.er1 >conftest.err
  16851. rm -f conftest.er1
  16852. cat conftest.err >&5
  16853. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16854. (exit $ac_status); } && {
  16855. test -z "$ac_c_werror_flag" ||
  16856. test ! -s conftest.err
  16857. } && test -s conftest.$ac_objext; then
  16858. ac_hi=$ac_mid; break
  16859. else
  16860. $as_echo "$as_me: failed program was:" >&5
  16861. sed 's/^/| /' conftest.$ac_ext >&5
  16862. ac_lo=`expr $ac_mid + 1`
  16863. if test $ac_lo -le $ac_mid; then
  16864. ac_lo= ac_hi=
  16865. break
  16866. fi
  16867. ac_mid=`expr 2 '*' $ac_mid + 1`
  16868. fi
  16869. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16870. done
  16871. else
  16872. $as_echo "$as_me: failed program was:" >&5
  16873. sed 's/^/| /' conftest.$ac_ext >&5
  16874. cat >conftest.$ac_ext <<_ACEOF
  16875. /* confdefs.h. */
  16876. _ACEOF
  16877. cat confdefs.h >>conftest.$ac_ext
  16878. cat >>conftest.$ac_ext <<_ACEOF
  16879. /* end confdefs.h. */
  16880. $ac_includes_default
  16881. int
  16882. main ()
  16883. {
  16884. static int test_array [1 - 2 * !(((long int) (sizeof (uintptr_t))) < 0)];
  16885. test_array [0] = 0
  16886. ;
  16887. return 0;
  16888. }
  16889. _ACEOF
  16890. rm -f conftest.$ac_objext
  16891. if { (ac_try="$ac_compile"
  16892. case "(($ac_try" in
  16893. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16894. *) ac_try_echo=$ac_try;;
  16895. esac
  16896. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16897. $as_echo "$ac_try_echo") >&5
  16898. (eval "$ac_compile") 2>conftest.er1
  16899. ac_status=$?
  16900. grep -v '^ *+' conftest.er1 >conftest.err
  16901. rm -f conftest.er1
  16902. cat conftest.err >&5
  16903. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16904. (exit $ac_status); } && {
  16905. test -z "$ac_c_werror_flag" ||
  16906. test ! -s conftest.err
  16907. } && test -s conftest.$ac_objext; then
  16908. ac_hi=-1 ac_mid=-1
  16909. while :; do
  16910. cat >conftest.$ac_ext <<_ACEOF
  16911. /* confdefs.h. */
  16912. _ACEOF
  16913. cat confdefs.h >>conftest.$ac_ext
  16914. cat >>conftest.$ac_ext <<_ACEOF
  16915. /* end confdefs.h. */
  16916. $ac_includes_default
  16917. int
  16918. main ()
  16919. {
  16920. static int test_array [1 - 2 * !(((long int) (sizeof (uintptr_t))) >= $ac_mid)];
  16921. test_array [0] = 0
  16922. ;
  16923. return 0;
  16924. }
  16925. _ACEOF
  16926. rm -f conftest.$ac_objext
  16927. if { (ac_try="$ac_compile"
  16928. case "(($ac_try" in
  16929. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16930. *) ac_try_echo=$ac_try;;
  16931. esac
  16932. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16933. $as_echo "$ac_try_echo") >&5
  16934. (eval "$ac_compile") 2>conftest.er1
  16935. ac_status=$?
  16936. grep -v '^ *+' conftest.er1 >conftest.err
  16937. rm -f conftest.er1
  16938. cat conftest.err >&5
  16939. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16940. (exit $ac_status); } && {
  16941. test -z "$ac_c_werror_flag" ||
  16942. test ! -s conftest.err
  16943. } && test -s conftest.$ac_objext; then
  16944. ac_lo=$ac_mid; break
  16945. else
  16946. $as_echo "$as_me: failed program was:" >&5
  16947. sed 's/^/| /' conftest.$ac_ext >&5
  16948. ac_hi=`expr '(' $ac_mid ')' - 1`
  16949. if test $ac_mid -le $ac_hi; then
  16950. ac_lo= ac_hi=
  16951. break
  16952. fi
  16953. ac_mid=`expr 2 '*' $ac_mid`
  16954. fi
  16955. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16956. done
  16957. else
  16958. $as_echo "$as_me: failed program was:" >&5
  16959. sed 's/^/| /' conftest.$ac_ext >&5
  16960. ac_lo= ac_hi=
  16961. fi
  16962. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16963. fi
  16964. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16965. # Binary search between lo and hi bounds.
  16966. while test "x$ac_lo" != "x$ac_hi"; do
  16967. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  16968. cat >conftest.$ac_ext <<_ACEOF
  16969. /* confdefs.h. */
  16970. _ACEOF
  16971. cat confdefs.h >>conftest.$ac_ext
  16972. cat >>conftest.$ac_ext <<_ACEOF
  16973. /* end confdefs.h. */
  16974. $ac_includes_default
  16975. int
  16976. main ()
  16977. {
  16978. static int test_array [1 - 2 * !(((long int) (sizeof (uintptr_t))) <= $ac_mid)];
  16979. test_array [0] = 0
  16980. ;
  16981. return 0;
  16982. }
  16983. _ACEOF
  16984. rm -f conftest.$ac_objext
  16985. if { (ac_try="$ac_compile"
  16986. case "(($ac_try" in
  16987. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16988. *) ac_try_echo=$ac_try;;
  16989. esac
  16990. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16991. $as_echo "$ac_try_echo") >&5
  16992. (eval "$ac_compile") 2>conftest.er1
  16993. ac_status=$?
  16994. grep -v '^ *+' conftest.er1 >conftest.err
  16995. rm -f conftest.er1
  16996. cat conftest.err >&5
  16997. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16998. (exit $ac_status); } && {
  16999. test -z "$ac_c_werror_flag" ||
  17000. test ! -s conftest.err
  17001. } && test -s conftest.$ac_objext; then
  17002. ac_hi=$ac_mid
  17003. else
  17004. $as_echo "$as_me: failed program was:" >&5
  17005. sed 's/^/| /' conftest.$ac_ext >&5
  17006. ac_lo=`expr '(' $ac_mid ')' + 1`
  17007. fi
  17008. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17009. done
  17010. case $ac_lo in
  17011. ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
  17012. '') if test "$ac_cv_type_uintptr_t" = yes; then
  17013. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  17014. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  17015. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
  17016. See \`config.log' for more details." >&5
  17017. $as_echo "$as_me: error: cannot compute sizeof (uintptr_t)
  17018. See \`config.log' for more details." >&2;}
  17019. { (exit 77); exit 77; }; }; }
  17020. else
  17021. ac_cv_sizeof_uintptr_t=0
  17022. fi ;;
  17023. esac
  17024. else
  17025. cat >conftest.$ac_ext <<_ACEOF
  17026. /* confdefs.h. */
  17027. _ACEOF
  17028. cat confdefs.h >>conftest.$ac_ext
  17029. cat >>conftest.$ac_ext <<_ACEOF
  17030. /* end confdefs.h. */
  17031. $ac_includes_default
  17032. static long int longval () { return (long int) (sizeof (uintptr_t)); }
  17033. static unsigned long int ulongval () { return (long int) (sizeof (uintptr_t)); }
  17034. #include <stdio.h>
  17035. #include <stdlib.h>
  17036. int
  17037. main ()
  17038. {
  17039. FILE *f = fopen ("conftest.val", "w");
  17040. if (! f)
  17041. return 1;
  17042. if (((long int) (sizeof (uintptr_t))) < 0)
  17043. {
  17044. long int i = longval ();
  17045. if (i != ((long int) (sizeof (uintptr_t))))
  17046. return 1;
  17047. fprintf (f, "%ld", i);
  17048. }
  17049. else
  17050. {
  17051. unsigned long int i = ulongval ();
  17052. if (i != ((long int) (sizeof (uintptr_t))))
  17053. return 1;
  17054. fprintf (f, "%lu", i);
  17055. }
  17056. /* Do not output a trailing newline, as this causes \r\n confusion
  17057. on some platforms. */
  17058. return ferror (f) || fclose (f) != 0;
  17059. ;
  17060. return 0;
  17061. }
  17062. _ACEOF
  17063. rm -f conftest$ac_exeext
  17064. if { (ac_try="$ac_link"
  17065. case "(($ac_try" in
  17066. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17067. *) ac_try_echo=$ac_try;;
  17068. esac
  17069. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17070. $as_echo "$ac_try_echo") >&5
  17071. (eval "$ac_link") 2>&5
  17072. ac_status=$?
  17073. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17074. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17075. { (case "(($ac_try" in
  17076. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17077. *) ac_try_echo=$ac_try;;
  17078. esac
  17079. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17080. $as_echo "$ac_try_echo") >&5
  17081. (eval "$ac_try") 2>&5
  17082. ac_status=$?
  17083. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17084. (exit $ac_status); }; }; then
  17085. ac_cv_sizeof_uintptr_t=`cat conftest.val`
  17086. else
  17087. $as_echo "$as_me: program exited with status $ac_status" >&5
  17088. $as_echo "$as_me: failed program was:" >&5
  17089. sed 's/^/| /' conftest.$ac_ext >&5
  17090. ( exit $ac_status )
  17091. if test "$ac_cv_type_uintptr_t" = yes; then
  17092. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  17093. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  17094. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
  17095. See \`config.log' for more details." >&5
  17096. $as_echo "$as_me: error: cannot compute sizeof (uintptr_t)
  17097. See \`config.log' for more details." >&2;}
  17098. { (exit 77); exit 77; }; }; }
  17099. else
  17100. ac_cv_sizeof_uintptr_t=0
  17101. fi
  17102. fi
  17103. rm -rf conftest.dSYM
  17104. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17105. fi
  17106. rm -f conftest.val
  17107. fi
  17108. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
  17109. $as_echo "$ac_cv_sizeof_uintptr_t" >&6; }
  17110. cat >>confdefs.h <<_ACEOF
  17111. #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
  17112. _ACEOF
  17113. # The cast to long int works around a bug in the HP C Compiler
  17114. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  17115. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  17116. # This bug is HP SR number 8606223364.
  17117. { $as_echo "$as_me:$LINENO: checking size of ptrdiff_t" >&5
  17118. $as_echo_n "checking size of ptrdiff_t... " >&6; }
  17119. if test "${ac_cv_sizeof_ptrdiff_t+set}" = set; then
  17120. $as_echo_n "(cached) " >&6
  17121. else
  17122. if test "$cross_compiling" = yes; then
  17123. # Depending upon the size, compute the lo and hi bounds.
  17124. cat >conftest.$ac_ext <<_ACEOF
  17125. /* confdefs.h. */
  17126. _ACEOF
  17127. cat confdefs.h >>conftest.$ac_ext
  17128. cat >>conftest.$ac_ext <<_ACEOF
  17129. /* end confdefs.h. */
  17130. $ac_includes_default
  17131. int
  17132. main ()
  17133. {
  17134. static int test_array [1 - 2 * !(((long int) (sizeof (ptrdiff_t))) >= 0)];
  17135. test_array [0] = 0
  17136. ;
  17137. return 0;
  17138. }
  17139. _ACEOF
  17140. rm -f conftest.$ac_objext
  17141. if { (ac_try="$ac_compile"
  17142. case "(($ac_try" in
  17143. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17144. *) ac_try_echo=$ac_try;;
  17145. esac
  17146. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17147. $as_echo "$ac_try_echo") >&5
  17148. (eval "$ac_compile") 2>conftest.er1
  17149. ac_status=$?
  17150. grep -v '^ *+' conftest.er1 >conftest.err
  17151. rm -f conftest.er1
  17152. cat conftest.err >&5
  17153. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17154. (exit $ac_status); } && {
  17155. test -z "$ac_c_werror_flag" ||
  17156. test ! -s conftest.err
  17157. } && test -s conftest.$ac_objext; then
  17158. ac_lo=0 ac_mid=0
  17159. while :; do
  17160. cat >conftest.$ac_ext <<_ACEOF
  17161. /* confdefs.h. */
  17162. _ACEOF
  17163. cat confdefs.h >>conftest.$ac_ext
  17164. cat >>conftest.$ac_ext <<_ACEOF
  17165. /* end confdefs.h. */
  17166. $ac_includes_default
  17167. int
  17168. main ()
  17169. {
  17170. static int test_array [1 - 2 * !(((long int) (sizeof (ptrdiff_t))) <= $ac_mid)];
  17171. test_array [0] = 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_hi=$ac_mid; break
  17195. else
  17196. $as_echo "$as_me: failed program was:" >&5
  17197. sed 's/^/| /' conftest.$ac_ext >&5
  17198. ac_lo=`expr $ac_mid + 1`
  17199. if test $ac_lo -le $ac_mid; then
  17200. ac_lo= ac_hi=
  17201. break
  17202. fi
  17203. ac_mid=`expr 2 '*' $ac_mid + 1`
  17204. fi
  17205. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17206. done
  17207. else
  17208. $as_echo "$as_me: failed program was:" >&5
  17209. sed 's/^/| /' conftest.$ac_ext >&5
  17210. cat >conftest.$ac_ext <<_ACEOF
  17211. /* confdefs.h. */
  17212. _ACEOF
  17213. cat confdefs.h >>conftest.$ac_ext
  17214. cat >>conftest.$ac_ext <<_ACEOF
  17215. /* end confdefs.h. */
  17216. $ac_includes_default
  17217. int
  17218. main ()
  17219. {
  17220. static int test_array [1 - 2 * !(((long int) (sizeof (ptrdiff_t))) < 0)];
  17221. test_array [0] = 0
  17222. ;
  17223. return 0;
  17224. }
  17225. _ACEOF
  17226. rm -f conftest.$ac_objext
  17227. if { (ac_try="$ac_compile"
  17228. case "(($ac_try" in
  17229. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17230. *) ac_try_echo=$ac_try;;
  17231. esac
  17232. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17233. $as_echo "$ac_try_echo") >&5
  17234. (eval "$ac_compile") 2>conftest.er1
  17235. ac_status=$?
  17236. grep -v '^ *+' conftest.er1 >conftest.err
  17237. rm -f conftest.er1
  17238. cat conftest.err >&5
  17239. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17240. (exit $ac_status); } && {
  17241. test -z "$ac_c_werror_flag" ||
  17242. test ! -s conftest.err
  17243. } && test -s conftest.$ac_objext; then
  17244. ac_hi=-1 ac_mid=-1
  17245. while :; do
  17246. cat >conftest.$ac_ext <<_ACEOF
  17247. /* confdefs.h. */
  17248. _ACEOF
  17249. cat confdefs.h >>conftest.$ac_ext
  17250. cat >>conftest.$ac_ext <<_ACEOF
  17251. /* end confdefs.h. */
  17252. $ac_includes_default
  17253. int
  17254. main ()
  17255. {
  17256. static int test_array [1 - 2 * !(((long int) (sizeof (ptrdiff_t))) >= $ac_mid)];
  17257. test_array [0] = 0
  17258. ;
  17259. return 0;
  17260. }
  17261. _ACEOF
  17262. rm -f conftest.$ac_objext
  17263. if { (ac_try="$ac_compile"
  17264. case "(($ac_try" in
  17265. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17266. *) ac_try_echo=$ac_try;;
  17267. esac
  17268. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17269. $as_echo "$ac_try_echo") >&5
  17270. (eval "$ac_compile") 2>conftest.er1
  17271. ac_status=$?
  17272. grep -v '^ *+' conftest.er1 >conftest.err
  17273. rm -f conftest.er1
  17274. cat conftest.err >&5
  17275. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17276. (exit $ac_status); } && {
  17277. test -z "$ac_c_werror_flag" ||
  17278. test ! -s conftest.err
  17279. } && test -s conftest.$ac_objext; then
  17280. ac_lo=$ac_mid; break
  17281. else
  17282. $as_echo "$as_me: failed program was:" >&5
  17283. sed 's/^/| /' conftest.$ac_ext >&5
  17284. ac_hi=`expr '(' $ac_mid ')' - 1`
  17285. if test $ac_mid -le $ac_hi; then
  17286. ac_lo= ac_hi=
  17287. break
  17288. fi
  17289. ac_mid=`expr 2 '*' $ac_mid`
  17290. fi
  17291. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17292. done
  17293. else
  17294. $as_echo "$as_me: failed program was:" >&5
  17295. sed 's/^/| /' conftest.$ac_ext >&5
  17296. ac_lo= ac_hi=
  17297. fi
  17298. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17299. fi
  17300. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17301. # Binary search between lo and hi bounds.
  17302. while test "x$ac_lo" != "x$ac_hi"; do
  17303. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  17304. cat >conftest.$ac_ext <<_ACEOF
  17305. /* confdefs.h. */
  17306. _ACEOF
  17307. cat confdefs.h >>conftest.$ac_ext
  17308. cat >>conftest.$ac_ext <<_ACEOF
  17309. /* end confdefs.h. */
  17310. $ac_includes_default
  17311. int
  17312. main ()
  17313. {
  17314. static int test_array [1 - 2 * !(((long int) (sizeof (ptrdiff_t))) <= $ac_mid)];
  17315. test_array [0] = 0
  17316. ;
  17317. return 0;
  17318. }
  17319. _ACEOF
  17320. rm -f conftest.$ac_objext
  17321. if { (ac_try="$ac_compile"
  17322. case "(($ac_try" in
  17323. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17324. *) ac_try_echo=$ac_try;;
  17325. esac
  17326. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17327. $as_echo "$ac_try_echo") >&5
  17328. (eval "$ac_compile") 2>conftest.er1
  17329. ac_status=$?
  17330. grep -v '^ *+' conftest.er1 >conftest.err
  17331. rm -f conftest.er1
  17332. cat conftest.err >&5
  17333. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17334. (exit $ac_status); } && {
  17335. test -z "$ac_c_werror_flag" ||
  17336. test ! -s conftest.err
  17337. } && test -s conftest.$ac_objext; then
  17338. ac_hi=$ac_mid
  17339. else
  17340. $as_echo "$as_me: failed program was:" >&5
  17341. sed 's/^/| /' conftest.$ac_ext >&5
  17342. ac_lo=`expr '(' $ac_mid ')' + 1`
  17343. fi
  17344. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17345. done
  17346. case $ac_lo in
  17347. ?*) ac_cv_sizeof_ptrdiff_t=$ac_lo;;
  17348. '') if test "$ac_cv_type_ptrdiff_t" = yes; then
  17349. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  17350. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  17351. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (ptrdiff_t)
  17352. See \`config.log' for more details." >&5
  17353. $as_echo "$as_me: error: cannot compute sizeof (ptrdiff_t)
  17354. See \`config.log' for more details." >&2;}
  17355. { (exit 77); exit 77; }; }; }
  17356. else
  17357. ac_cv_sizeof_ptrdiff_t=0
  17358. fi ;;
  17359. esac
  17360. else
  17361. cat >conftest.$ac_ext <<_ACEOF
  17362. /* confdefs.h. */
  17363. _ACEOF
  17364. cat confdefs.h >>conftest.$ac_ext
  17365. cat >>conftest.$ac_ext <<_ACEOF
  17366. /* end confdefs.h. */
  17367. $ac_includes_default
  17368. static long int longval () { return (long int) (sizeof (ptrdiff_t)); }
  17369. static unsigned long int ulongval () { return (long int) (sizeof (ptrdiff_t)); }
  17370. #include <stdio.h>
  17371. #include <stdlib.h>
  17372. int
  17373. main ()
  17374. {
  17375. FILE *f = fopen ("conftest.val", "w");
  17376. if (! f)
  17377. return 1;
  17378. if (((long int) (sizeof (ptrdiff_t))) < 0)
  17379. {
  17380. long int i = longval ();
  17381. if (i != ((long int) (sizeof (ptrdiff_t))))
  17382. return 1;
  17383. fprintf (f, "%ld", i);
  17384. }
  17385. else
  17386. {
  17387. unsigned long int i = ulongval ();
  17388. if (i != ((long int) (sizeof (ptrdiff_t))))
  17389. return 1;
  17390. fprintf (f, "%lu", i);
  17391. }
  17392. /* Do not output a trailing newline, as this causes \r\n confusion
  17393. on some platforms. */
  17394. return ferror (f) || fclose (f) != 0;
  17395. ;
  17396. return 0;
  17397. }
  17398. _ACEOF
  17399. rm -f conftest$ac_exeext
  17400. if { (ac_try="$ac_link"
  17401. case "(($ac_try" in
  17402. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17403. *) ac_try_echo=$ac_try;;
  17404. esac
  17405. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17406. $as_echo "$ac_try_echo") >&5
  17407. (eval "$ac_link") 2>&5
  17408. ac_status=$?
  17409. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17410. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17411. { (case "(($ac_try" in
  17412. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17413. *) ac_try_echo=$ac_try;;
  17414. esac
  17415. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17416. $as_echo "$ac_try_echo") >&5
  17417. (eval "$ac_try") 2>&5
  17418. ac_status=$?
  17419. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17420. (exit $ac_status); }; }; then
  17421. ac_cv_sizeof_ptrdiff_t=`cat conftest.val`
  17422. else
  17423. $as_echo "$as_me: program exited with status $ac_status" >&5
  17424. $as_echo "$as_me: failed program was:" >&5
  17425. sed 's/^/| /' conftest.$ac_ext >&5
  17426. ( exit $ac_status )
  17427. if test "$ac_cv_type_ptrdiff_t" = yes; then
  17428. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  17429. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  17430. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (ptrdiff_t)
  17431. See \`config.log' for more details." >&5
  17432. $as_echo "$as_me: error: cannot compute sizeof (ptrdiff_t)
  17433. See \`config.log' for more details." >&2;}
  17434. { (exit 77); exit 77; }; }; }
  17435. else
  17436. ac_cv_sizeof_ptrdiff_t=0
  17437. fi
  17438. fi
  17439. rm -rf conftest.dSYM
  17440. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17441. fi
  17442. rm -f conftest.val
  17443. fi
  17444. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_ptrdiff_t" >&5
  17445. $as_echo "$ac_cv_sizeof_ptrdiff_t" >&6; }
  17446. cat >>confdefs.h <<_ACEOF
  17447. #define SIZEOF_PTRDIFF_T $ac_cv_sizeof_ptrdiff_t
  17448. _ACEOF
  17449. # The cast to long int works around a bug in the HP C Compiler
  17450. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  17451. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  17452. # This bug is HP SR number 8606223364.
  17453. { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
  17454. $as_echo_n "checking size of size_t... " >&6; }
  17455. if test "${ac_cv_sizeof_size_t+set}" = set; then
  17456. $as_echo_n "(cached) " >&6
  17457. else
  17458. if test "$cross_compiling" = yes; then
  17459. # Depending upon the size, compute the lo and hi bounds.
  17460. cat >conftest.$ac_ext <<_ACEOF
  17461. /* confdefs.h. */
  17462. _ACEOF
  17463. cat confdefs.h >>conftest.$ac_ext
  17464. cat >>conftest.$ac_ext <<_ACEOF
  17465. /* end confdefs.h. */
  17466. $ac_includes_default
  17467. int
  17468. main ()
  17469. {
  17470. static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
  17471. test_array [0] = 0
  17472. ;
  17473. return 0;
  17474. }
  17475. _ACEOF
  17476. rm -f conftest.$ac_objext
  17477. if { (ac_try="$ac_compile"
  17478. case "(($ac_try" in
  17479. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17480. *) ac_try_echo=$ac_try;;
  17481. esac
  17482. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17483. $as_echo "$ac_try_echo") >&5
  17484. (eval "$ac_compile") 2>conftest.er1
  17485. ac_status=$?
  17486. grep -v '^ *+' conftest.er1 >conftest.err
  17487. rm -f conftest.er1
  17488. cat conftest.err >&5
  17489. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17490. (exit $ac_status); } && {
  17491. test -z "$ac_c_werror_flag" ||
  17492. test ! -s conftest.err
  17493. } && test -s conftest.$ac_objext; then
  17494. ac_lo=0 ac_mid=0
  17495. while :; do
  17496. cat >conftest.$ac_ext <<_ACEOF
  17497. /* confdefs.h. */
  17498. _ACEOF
  17499. cat confdefs.h >>conftest.$ac_ext
  17500. cat >>conftest.$ac_ext <<_ACEOF
  17501. /* end confdefs.h. */
  17502. $ac_includes_default
  17503. int
  17504. main ()
  17505. {
  17506. static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
  17507. test_array [0] = 0
  17508. ;
  17509. return 0;
  17510. }
  17511. _ACEOF
  17512. rm -f conftest.$ac_objext
  17513. if { (ac_try="$ac_compile"
  17514. case "(($ac_try" in
  17515. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17516. *) ac_try_echo=$ac_try;;
  17517. esac
  17518. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17519. $as_echo "$ac_try_echo") >&5
  17520. (eval "$ac_compile") 2>conftest.er1
  17521. ac_status=$?
  17522. grep -v '^ *+' conftest.er1 >conftest.err
  17523. rm -f conftest.er1
  17524. cat conftest.err >&5
  17525. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17526. (exit $ac_status); } && {
  17527. test -z "$ac_c_werror_flag" ||
  17528. test ! -s conftest.err
  17529. } && test -s conftest.$ac_objext; then
  17530. ac_hi=$ac_mid; break
  17531. else
  17532. $as_echo "$as_me: failed program was:" >&5
  17533. sed 's/^/| /' conftest.$ac_ext >&5
  17534. ac_lo=`expr $ac_mid + 1`
  17535. if test $ac_lo -le $ac_mid; then
  17536. ac_lo= ac_hi=
  17537. break
  17538. fi
  17539. ac_mid=`expr 2 '*' $ac_mid + 1`
  17540. fi
  17541. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17542. done
  17543. else
  17544. $as_echo "$as_me: failed program was:" >&5
  17545. sed 's/^/| /' conftest.$ac_ext >&5
  17546. cat >conftest.$ac_ext <<_ACEOF
  17547. /* confdefs.h. */
  17548. _ACEOF
  17549. cat confdefs.h >>conftest.$ac_ext
  17550. cat >>conftest.$ac_ext <<_ACEOF
  17551. /* end confdefs.h. */
  17552. $ac_includes_default
  17553. int
  17554. main ()
  17555. {
  17556. static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
  17557. test_array [0] = 0
  17558. ;
  17559. return 0;
  17560. }
  17561. _ACEOF
  17562. rm -f conftest.$ac_objext
  17563. if { (ac_try="$ac_compile"
  17564. case "(($ac_try" in
  17565. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17566. *) ac_try_echo=$ac_try;;
  17567. esac
  17568. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17569. $as_echo "$ac_try_echo") >&5
  17570. (eval "$ac_compile") 2>conftest.er1
  17571. ac_status=$?
  17572. grep -v '^ *+' conftest.er1 >conftest.err
  17573. rm -f conftest.er1
  17574. cat conftest.err >&5
  17575. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17576. (exit $ac_status); } && {
  17577. test -z "$ac_c_werror_flag" ||
  17578. test ! -s conftest.err
  17579. } && test -s conftest.$ac_objext; then
  17580. ac_hi=-1 ac_mid=-1
  17581. while :; do
  17582. cat >conftest.$ac_ext <<_ACEOF
  17583. /* confdefs.h. */
  17584. _ACEOF
  17585. cat confdefs.h >>conftest.$ac_ext
  17586. cat >>conftest.$ac_ext <<_ACEOF
  17587. /* end confdefs.h. */
  17588. $ac_includes_default
  17589. int
  17590. main ()
  17591. {
  17592. static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
  17593. test_array [0] = 0
  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. ac_lo=$ac_mid; break
  17617. else
  17618. $as_echo "$as_me: failed program was:" >&5
  17619. sed 's/^/| /' conftest.$ac_ext >&5
  17620. ac_hi=`expr '(' $ac_mid ')' - 1`
  17621. if test $ac_mid -le $ac_hi; then
  17622. ac_lo= ac_hi=
  17623. break
  17624. fi
  17625. ac_mid=`expr 2 '*' $ac_mid`
  17626. fi
  17627. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17628. done
  17629. else
  17630. $as_echo "$as_me: failed program was:" >&5
  17631. sed 's/^/| /' conftest.$ac_ext >&5
  17632. ac_lo= ac_hi=
  17633. fi
  17634. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17635. fi
  17636. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17637. # Binary search between lo and hi bounds.
  17638. while test "x$ac_lo" != "x$ac_hi"; do
  17639. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  17640. cat >conftest.$ac_ext <<_ACEOF
  17641. /* confdefs.h. */
  17642. _ACEOF
  17643. cat confdefs.h >>conftest.$ac_ext
  17644. cat >>conftest.$ac_ext <<_ACEOF
  17645. /* end confdefs.h. */
  17646. $ac_includes_default
  17647. int
  17648. main ()
  17649. {
  17650. static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
  17651. test_array [0] = 0
  17652. ;
  17653. return 0;
  17654. }
  17655. _ACEOF
  17656. rm -f conftest.$ac_objext
  17657. if { (ac_try="$ac_compile"
  17658. case "(($ac_try" in
  17659. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17660. *) ac_try_echo=$ac_try;;
  17661. esac
  17662. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17663. $as_echo "$ac_try_echo") >&5
  17664. (eval "$ac_compile") 2>conftest.er1
  17665. ac_status=$?
  17666. grep -v '^ *+' conftest.er1 >conftest.err
  17667. rm -f conftest.er1
  17668. cat conftest.err >&5
  17669. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17670. (exit $ac_status); } && {
  17671. test -z "$ac_c_werror_flag" ||
  17672. test ! -s conftest.err
  17673. } && test -s conftest.$ac_objext; then
  17674. ac_hi=$ac_mid
  17675. else
  17676. $as_echo "$as_me: failed program was:" >&5
  17677. sed 's/^/| /' conftest.$ac_ext >&5
  17678. ac_lo=`expr '(' $ac_mid ')' + 1`
  17679. fi
  17680. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17681. done
  17682. case $ac_lo in
  17683. ?*) ac_cv_sizeof_size_t=$ac_lo;;
  17684. '') if test "$ac_cv_type_size_t" = yes; then
  17685. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  17686. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  17687. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
  17688. See \`config.log' for more details." >&5
  17689. $as_echo "$as_me: error: cannot compute sizeof (size_t)
  17690. See \`config.log' for more details." >&2;}
  17691. { (exit 77); exit 77; }; }; }
  17692. else
  17693. ac_cv_sizeof_size_t=0
  17694. fi ;;
  17695. esac
  17696. else
  17697. cat >conftest.$ac_ext <<_ACEOF
  17698. /* confdefs.h. */
  17699. _ACEOF
  17700. cat confdefs.h >>conftest.$ac_ext
  17701. cat >>conftest.$ac_ext <<_ACEOF
  17702. /* end confdefs.h. */
  17703. $ac_includes_default
  17704. static long int longval () { return (long int) (sizeof (size_t)); }
  17705. static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
  17706. #include <stdio.h>
  17707. #include <stdlib.h>
  17708. int
  17709. main ()
  17710. {
  17711. FILE *f = fopen ("conftest.val", "w");
  17712. if (! f)
  17713. return 1;
  17714. if (((long int) (sizeof (size_t))) < 0)
  17715. {
  17716. long int i = longval ();
  17717. if (i != ((long int) (sizeof (size_t))))
  17718. return 1;
  17719. fprintf (f, "%ld", i);
  17720. }
  17721. else
  17722. {
  17723. unsigned long int i = ulongval ();
  17724. if (i != ((long int) (sizeof (size_t))))
  17725. return 1;
  17726. fprintf (f, "%lu", i);
  17727. }
  17728. /* Do not output a trailing newline, as this causes \r\n confusion
  17729. on some platforms. */
  17730. return ferror (f) || fclose (f) != 0;
  17731. ;
  17732. return 0;
  17733. }
  17734. _ACEOF
  17735. rm -f conftest$ac_exeext
  17736. if { (ac_try="$ac_link"
  17737. case "(($ac_try" in
  17738. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17739. *) ac_try_echo=$ac_try;;
  17740. esac
  17741. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17742. $as_echo "$ac_try_echo") >&5
  17743. (eval "$ac_link") 2>&5
  17744. ac_status=$?
  17745. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17746. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17747. { (case "(($ac_try" in
  17748. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17749. *) ac_try_echo=$ac_try;;
  17750. esac
  17751. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17752. $as_echo "$ac_try_echo") >&5
  17753. (eval "$ac_try") 2>&5
  17754. ac_status=$?
  17755. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17756. (exit $ac_status); }; }; then
  17757. ac_cv_sizeof_size_t=`cat conftest.val`
  17758. else
  17759. $as_echo "$as_me: program exited with status $ac_status" >&5
  17760. $as_echo "$as_me: failed program was:" >&5
  17761. sed 's/^/| /' conftest.$ac_ext >&5
  17762. ( exit $ac_status )
  17763. if test "$ac_cv_type_size_t" = yes; then
  17764. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  17765. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  17766. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
  17767. See \`config.log' for more details." >&5
  17768. $as_echo "$as_me: error: cannot compute sizeof (size_t)
  17769. See \`config.log' for more details." >&2;}
  17770. { (exit 77); exit 77; }; }; }
  17771. else
  17772. ac_cv_sizeof_size_t=0
  17773. fi
  17774. fi
  17775. rm -rf conftest.dSYM
  17776. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17777. fi
  17778. rm -f conftest.val
  17779. fi
  17780. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
  17781. $as_echo "$ac_cv_sizeof_size_t" >&6; }
  17782. cat >>confdefs.h <<_ACEOF
  17783. #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
  17784. _ACEOF
  17785. # The cast to long int works around a bug in the HP C Compiler
  17786. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  17787. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  17788. # This bug is HP SR number 8606223364.
  17789. { $as_echo "$as_me:$LINENO: checking size of off_t" >&5
  17790. $as_echo_n "checking size of off_t... " >&6; }
  17791. if test "${ac_cv_sizeof_off_t+set}" = set; then
  17792. $as_echo_n "(cached) " >&6
  17793. else
  17794. if test "$cross_compiling" = yes; then
  17795. # Depending upon the size, compute the lo and hi bounds.
  17796. cat >conftest.$ac_ext <<_ACEOF
  17797. /* confdefs.h. */
  17798. _ACEOF
  17799. cat confdefs.h >>conftest.$ac_ext
  17800. cat >>conftest.$ac_ext <<_ACEOF
  17801. /* end confdefs.h. */
  17802. $ac_includes_default
  17803. int
  17804. main ()
  17805. {
  17806. static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
  17807. test_array [0] = 0
  17808. ;
  17809. return 0;
  17810. }
  17811. _ACEOF
  17812. rm -f conftest.$ac_objext
  17813. if { (ac_try="$ac_compile"
  17814. case "(($ac_try" in
  17815. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17816. *) ac_try_echo=$ac_try;;
  17817. esac
  17818. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17819. $as_echo "$ac_try_echo") >&5
  17820. (eval "$ac_compile") 2>conftest.er1
  17821. ac_status=$?
  17822. grep -v '^ *+' conftest.er1 >conftest.err
  17823. rm -f conftest.er1
  17824. cat conftest.err >&5
  17825. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17826. (exit $ac_status); } && {
  17827. test -z "$ac_c_werror_flag" ||
  17828. test ! -s conftest.err
  17829. } && test -s conftest.$ac_objext; then
  17830. ac_lo=0 ac_mid=0
  17831. while :; do
  17832. cat >conftest.$ac_ext <<_ACEOF
  17833. /* confdefs.h. */
  17834. _ACEOF
  17835. cat confdefs.h >>conftest.$ac_ext
  17836. cat >>conftest.$ac_ext <<_ACEOF
  17837. /* end confdefs.h. */
  17838. $ac_includes_default
  17839. int
  17840. main ()
  17841. {
  17842. static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
  17843. test_array [0] = 0
  17844. ;
  17845. return 0;
  17846. }
  17847. _ACEOF
  17848. rm -f conftest.$ac_objext
  17849. if { (ac_try="$ac_compile"
  17850. case "(($ac_try" in
  17851. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17852. *) ac_try_echo=$ac_try;;
  17853. esac
  17854. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17855. $as_echo "$ac_try_echo") >&5
  17856. (eval "$ac_compile") 2>conftest.er1
  17857. ac_status=$?
  17858. grep -v '^ *+' conftest.er1 >conftest.err
  17859. rm -f conftest.er1
  17860. cat conftest.err >&5
  17861. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17862. (exit $ac_status); } && {
  17863. test -z "$ac_c_werror_flag" ||
  17864. test ! -s conftest.err
  17865. } && test -s conftest.$ac_objext; then
  17866. ac_hi=$ac_mid; break
  17867. else
  17868. $as_echo "$as_me: failed program was:" >&5
  17869. sed 's/^/| /' conftest.$ac_ext >&5
  17870. ac_lo=`expr $ac_mid + 1`
  17871. if test $ac_lo -le $ac_mid; then
  17872. ac_lo= ac_hi=
  17873. break
  17874. fi
  17875. ac_mid=`expr 2 '*' $ac_mid + 1`
  17876. fi
  17877. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17878. done
  17879. else
  17880. $as_echo "$as_me: failed program was:" >&5
  17881. sed 's/^/| /' conftest.$ac_ext >&5
  17882. cat >conftest.$ac_ext <<_ACEOF
  17883. /* confdefs.h. */
  17884. _ACEOF
  17885. cat confdefs.h >>conftest.$ac_ext
  17886. cat >>conftest.$ac_ext <<_ACEOF
  17887. /* end confdefs.h. */
  17888. $ac_includes_default
  17889. int
  17890. main ()
  17891. {
  17892. static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
  17893. test_array [0] = 0
  17894. ;
  17895. return 0;
  17896. }
  17897. _ACEOF
  17898. rm -f conftest.$ac_objext
  17899. if { (ac_try="$ac_compile"
  17900. case "(($ac_try" in
  17901. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17902. *) ac_try_echo=$ac_try;;
  17903. esac
  17904. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17905. $as_echo "$ac_try_echo") >&5
  17906. (eval "$ac_compile") 2>conftest.er1
  17907. ac_status=$?
  17908. grep -v '^ *+' conftest.er1 >conftest.err
  17909. rm -f conftest.er1
  17910. cat conftest.err >&5
  17911. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17912. (exit $ac_status); } && {
  17913. test -z "$ac_c_werror_flag" ||
  17914. test ! -s conftest.err
  17915. } && test -s conftest.$ac_objext; then
  17916. ac_hi=-1 ac_mid=-1
  17917. while :; do
  17918. cat >conftest.$ac_ext <<_ACEOF
  17919. /* confdefs.h. */
  17920. _ACEOF
  17921. cat confdefs.h >>conftest.$ac_ext
  17922. cat >>conftest.$ac_ext <<_ACEOF
  17923. /* end confdefs.h. */
  17924. $ac_includes_default
  17925. int
  17926. main ()
  17927. {
  17928. static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
  17929. test_array [0] = 0
  17930. ;
  17931. return 0;
  17932. }
  17933. _ACEOF
  17934. rm -f conftest.$ac_objext
  17935. if { (ac_try="$ac_compile"
  17936. case "(($ac_try" in
  17937. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17938. *) ac_try_echo=$ac_try;;
  17939. esac
  17940. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17941. $as_echo "$ac_try_echo") >&5
  17942. (eval "$ac_compile") 2>conftest.er1
  17943. ac_status=$?
  17944. grep -v '^ *+' conftest.er1 >conftest.err
  17945. rm -f conftest.er1
  17946. cat conftest.err >&5
  17947. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17948. (exit $ac_status); } && {
  17949. test -z "$ac_c_werror_flag" ||
  17950. test ! -s conftest.err
  17951. } && test -s conftest.$ac_objext; then
  17952. ac_lo=$ac_mid; break
  17953. else
  17954. $as_echo "$as_me: failed program was:" >&5
  17955. sed 's/^/| /' conftest.$ac_ext >&5
  17956. ac_hi=`expr '(' $ac_mid ')' - 1`
  17957. if test $ac_mid -le $ac_hi; then
  17958. ac_lo= ac_hi=
  17959. break
  17960. fi
  17961. ac_mid=`expr 2 '*' $ac_mid`
  17962. fi
  17963. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17964. done
  17965. else
  17966. $as_echo "$as_me: failed program was:" >&5
  17967. sed 's/^/| /' conftest.$ac_ext >&5
  17968. ac_lo= ac_hi=
  17969. fi
  17970. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17971. fi
  17972. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17973. # Binary search between lo and hi bounds.
  17974. while test "x$ac_lo" != "x$ac_hi"; do
  17975. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  17976. cat >conftest.$ac_ext <<_ACEOF
  17977. /* confdefs.h. */
  17978. _ACEOF
  17979. cat confdefs.h >>conftest.$ac_ext
  17980. cat >>conftest.$ac_ext <<_ACEOF
  17981. /* end confdefs.h. */
  17982. $ac_includes_default
  17983. int
  17984. main ()
  17985. {
  17986. static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
  17987. test_array [0] = 0
  17988. ;
  17989. return 0;
  17990. }
  17991. _ACEOF
  17992. rm -f conftest.$ac_objext
  17993. if { (ac_try="$ac_compile"
  17994. case "(($ac_try" in
  17995. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17996. *) ac_try_echo=$ac_try;;
  17997. esac
  17998. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17999. $as_echo "$ac_try_echo") >&5
  18000. (eval "$ac_compile") 2>conftest.er1
  18001. ac_status=$?
  18002. grep -v '^ *+' conftest.er1 >conftest.err
  18003. rm -f conftest.er1
  18004. cat conftest.err >&5
  18005. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18006. (exit $ac_status); } && {
  18007. test -z "$ac_c_werror_flag" ||
  18008. test ! -s conftest.err
  18009. } && test -s conftest.$ac_objext; then
  18010. ac_hi=$ac_mid
  18011. else
  18012. $as_echo "$as_me: failed program was:" >&5
  18013. sed 's/^/| /' conftest.$ac_ext >&5
  18014. ac_lo=`expr '(' $ac_mid ')' + 1`
  18015. fi
  18016. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18017. done
  18018. case $ac_lo in
  18019. ?*) ac_cv_sizeof_off_t=$ac_lo;;
  18020. '') if test "$ac_cv_type_off_t" = yes; then
  18021. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  18022. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  18023. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
  18024. See \`config.log' for more details." >&5
  18025. $as_echo "$as_me: error: cannot compute sizeof (off_t)
  18026. See \`config.log' for more details." >&2;}
  18027. { (exit 77); exit 77; }; }; }
  18028. else
  18029. ac_cv_sizeof_off_t=0
  18030. fi ;;
  18031. esac
  18032. else
  18033. cat >conftest.$ac_ext <<_ACEOF
  18034. /* confdefs.h. */
  18035. _ACEOF
  18036. cat confdefs.h >>conftest.$ac_ext
  18037. cat >>conftest.$ac_ext <<_ACEOF
  18038. /* end confdefs.h. */
  18039. $ac_includes_default
  18040. static long int longval () { return (long int) (sizeof (off_t)); }
  18041. static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
  18042. #include <stdio.h>
  18043. #include <stdlib.h>
  18044. int
  18045. main ()
  18046. {
  18047. FILE *f = fopen ("conftest.val", "w");
  18048. if (! f)
  18049. return 1;
  18050. if (((long int) (sizeof (off_t))) < 0)
  18051. {
  18052. long int i = longval ();
  18053. if (i != ((long int) (sizeof (off_t))))
  18054. return 1;
  18055. fprintf (f, "%ld", i);
  18056. }
  18057. else
  18058. {
  18059. unsigned long int i = ulongval ();
  18060. if (i != ((long int) (sizeof (off_t))))
  18061. return 1;
  18062. fprintf (f, "%lu", i);
  18063. }
  18064. /* Do not output a trailing newline, as this causes \r\n confusion
  18065. on some platforms. */
  18066. return ferror (f) || fclose (f) != 0;
  18067. ;
  18068. return 0;
  18069. }
  18070. _ACEOF
  18071. rm -f conftest$ac_exeext
  18072. if { (ac_try="$ac_link"
  18073. case "(($ac_try" in
  18074. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18075. *) ac_try_echo=$ac_try;;
  18076. esac
  18077. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18078. $as_echo "$ac_try_echo") >&5
  18079. (eval "$ac_link") 2>&5
  18080. ac_status=$?
  18081. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18082. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18083. { (case "(($ac_try" in
  18084. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18085. *) ac_try_echo=$ac_try;;
  18086. esac
  18087. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18088. $as_echo "$ac_try_echo") >&5
  18089. (eval "$ac_try") 2>&5
  18090. ac_status=$?
  18091. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18092. (exit $ac_status); }; }; then
  18093. ac_cv_sizeof_off_t=`cat conftest.val`
  18094. else
  18095. $as_echo "$as_me: program exited with status $ac_status" >&5
  18096. $as_echo "$as_me: failed program was:" >&5
  18097. sed 's/^/| /' conftest.$ac_ext >&5
  18098. ( exit $ac_status )
  18099. if test "$ac_cv_type_off_t" = yes; then
  18100. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  18101. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  18102. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
  18103. See \`config.log' for more details." >&5
  18104. $as_echo "$as_me: error: cannot compute sizeof (off_t)
  18105. See \`config.log' for more details." >&2;}
  18106. { (exit 77); exit 77; }; }; }
  18107. else
  18108. ac_cv_sizeof_off_t=0
  18109. fi
  18110. fi
  18111. rm -rf conftest.dSYM
  18112. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18113. fi
  18114. rm -f conftest.val
  18115. fi
  18116. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
  18117. $as_echo "$ac_cv_sizeof_off_t" >&6; }
  18118. cat >>confdefs.h <<_ACEOF
  18119. #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
  18120. _ACEOF
  18121. if test "$ac_cv_sizeof_long" -ne "$ac_cv_sizeof_void_p"; then
  18122. { { $as_echo "$as_me:$LINENO: error: sizes of long and void* are not identical" >&5
  18123. $as_echo "$as_me: error: sizes of long and void* are not identical" >&2;}
  18124. { (exit 1); exit 1; }; }
  18125. fi
  18126. if test "$ac_cv_sizeof_ptrdiff_t" -ne 0; then
  18127. SCM_I_GSC_T_PTRDIFF='"ptrdiff_t"'
  18128. else
  18129. SCM_I_GSC_T_PTRDIFF='"long"'
  18130. fi
  18131. for ac_header in stdint.h
  18132. do
  18133. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18134. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18135. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  18136. $as_echo_n "checking for $ac_header... " >&6; }
  18137. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18138. $as_echo_n "(cached) " >&6
  18139. fi
  18140. ac_res=`eval 'as_val=${'$as_ac_Header'}
  18141. $as_echo "$as_val"'`
  18142. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  18143. $as_echo "$ac_res" >&6; }
  18144. else
  18145. # Is the header compilable?
  18146. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18147. $as_echo_n "checking $ac_header usability... " >&6; }
  18148. cat >conftest.$ac_ext <<_ACEOF
  18149. /* confdefs.h. */
  18150. _ACEOF
  18151. cat confdefs.h >>conftest.$ac_ext
  18152. cat >>conftest.$ac_ext <<_ACEOF
  18153. /* end confdefs.h. */
  18154. $ac_includes_default
  18155. #include <$ac_header>
  18156. _ACEOF
  18157. rm -f conftest.$ac_objext
  18158. if { (ac_try="$ac_compile"
  18159. case "(($ac_try" in
  18160. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18161. *) ac_try_echo=$ac_try;;
  18162. esac
  18163. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18164. $as_echo "$ac_try_echo") >&5
  18165. (eval "$ac_compile") 2>conftest.er1
  18166. ac_status=$?
  18167. grep -v '^ *+' conftest.er1 >conftest.err
  18168. rm -f conftest.er1
  18169. cat conftest.err >&5
  18170. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18171. (exit $ac_status); } && {
  18172. test -z "$ac_c_werror_flag" ||
  18173. test ! -s conftest.err
  18174. } && test -s conftest.$ac_objext; then
  18175. ac_header_compiler=yes
  18176. else
  18177. $as_echo "$as_me: failed program was:" >&5
  18178. sed 's/^/| /' conftest.$ac_ext >&5
  18179. ac_header_compiler=no
  18180. fi
  18181. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18182. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18183. $as_echo "$ac_header_compiler" >&6; }
  18184. # Is the header present?
  18185. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18186. $as_echo_n "checking $ac_header presence... " >&6; }
  18187. cat >conftest.$ac_ext <<_ACEOF
  18188. /* confdefs.h. */
  18189. _ACEOF
  18190. cat confdefs.h >>conftest.$ac_ext
  18191. cat >>conftest.$ac_ext <<_ACEOF
  18192. /* end confdefs.h. */
  18193. #include <$ac_header>
  18194. _ACEOF
  18195. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18196. case "(($ac_try" in
  18197. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18198. *) ac_try_echo=$ac_try;;
  18199. esac
  18200. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18201. $as_echo "$ac_try_echo") >&5
  18202. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18203. ac_status=$?
  18204. grep -v '^ *+' conftest.er1 >conftest.err
  18205. rm -f conftest.er1
  18206. cat conftest.err >&5
  18207. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18208. (exit $ac_status); } >/dev/null && {
  18209. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18210. test ! -s conftest.err
  18211. }; then
  18212. ac_header_preproc=yes
  18213. else
  18214. $as_echo "$as_me: failed program was:" >&5
  18215. sed 's/^/| /' conftest.$ac_ext >&5
  18216. ac_header_preproc=no
  18217. fi
  18218. rm -f conftest.err conftest.$ac_ext
  18219. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18220. $as_echo "$ac_header_preproc" >&6; }
  18221. # So? What about this header?
  18222. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18223. yes:no: )
  18224. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  18225. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18226. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  18227. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  18228. ac_header_preproc=yes
  18229. ;;
  18230. no:yes:* )
  18231. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  18232. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  18233. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18234. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18235. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18236. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18237. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18238. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18239. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18240. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18241. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18242. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18243. ( cat <<\_ASBOX
  18244. ## -------------------------------- ##
  18245. ## Report this to bug-guile@gnu.org ##
  18246. ## -------------------------------- ##
  18247. _ASBOX
  18248. ) | sed "s/^/$as_me: WARNING: /" >&2
  18249. ;;
  18250. esac
  18251. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  18252. $as_echo_n "checking for $ac_header... " >&6; }
  18253. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18254. $as_echo_n "(cached) " >&6
  18255. else
  18256. eval "$as_ac_Header=\$ac_header_preproc"
  18257. fi
  18258. ac_res=`eval 'as_val=${'$as_ac_Header'}
  18259. $as_echo "$as_val"'`
  18260. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  18261. $as_echo "$ac_res" >&6; }
  18262. fi
  18263. as_val=`eval 'as_val=${'$as_ac_Header'}
  18264. $as_echo "$as_val"'`
  18265. if test "x$as_val" = x""yes; then
  18266. cat >>confdefs.h <<_ACEOF
  18267. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18268. _ACEOF
  18269. fi
  18270. done
  18271. for ac_header in inttypes.h
  18272. do
  18273. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18274. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18275. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  18276. $as_echo_n "checking for $ac_header... " >&6; }
  18277. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18278. $as_echo_n "(cached) " >&6
  18279. fi
  18280. ac_res=`eval 'as_val=${'$as_ac_Header'}
  18281. $as_echo "$as_val"'`
  18282. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  18283. $as_echo "$ac_res" >&6; }
  18284. else
  18285. # Is the header compilable?
  18286. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18287. $as_echo_n "checking $ac_header usability... " >&6; }
  18288. cat >conftest.$ac_ext <<_ACEOF
  18289. /* confdefs.h. */
  18290. _ACEOF
  18291. cat confdefs.h >>conftest.$ac_ext
  18292. cat >>conftest.$ac_ext <<_ACEOF
  18293. /* end confdefs.h. */
  18294. $ac_includes_default
  18295. #include <$ac_header>
  18296. _ACEOF
  18297. rm -f conftest.$ac_objext
  18298. if { (ac_try="$ac_compile"
  18299. case "(($ac_try" in
  18300. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18301. *) ac_try_echo=$ac_try;;
  18302. esac
  18303. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18304. $as_echo "$ac_try_echo") >&5
  18305. (eval "$ac_compile") 2>conftest.er1
  18306. ac_status=$?
  18307. grep -v '^ *+' conftest.er1 >conftest.err
  18308. rm -f conftest.er1
  18309. cat conftest.err >&5
  18310. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18311. (exit $ac_status); } && {
  18312. test -z "$ac_c_werror_flag" ||
  18313. test ! -s conftest.err
  18314. } && test -s conftest.$ac_objext; then
  18315. ac_header_compiler=yes
  18316. else
  18317. $as_echo "$as_me: failed program was:" >&5
  18318. sed 's/^/| /' conftest.$ac_ext >&5
  18319. ac_header_compiler=no
  18320. fi
  18321. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18322. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18323. $as_echo "$ac_header_compiler" >&6; }
  18324. # Is the header present?
  18325. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18326. $as_echo_n "checking $ac_header presence... " >&6; }
  18327. cat >conftest.$ac_ext <<_ACEOF
  18328. /* confdefs.h. */
  18329. _ACEOF
  18330. cat confdefs.h >>conftest.$ac_ext
  18331. cat >>conftest.$ac_ext <<_ACEOF
  18332. /* end confdefs.h. */
  18333. #include <$ac_header>
  18334. _ACEOF
  18335. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18336. case "(($ac_try" in
  18337. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18338. *) ac_try_echo=$ac_try;;
  18339. esac
  18340. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18341. $as_echo "$ac_try_echo") >&5
  18342. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18343. ac_status=$?
  18344. grep -v '^ *+' conftest.er1 >conftest.err
  18345. rm -f conftest.er1
  18346. cat conftest.err >&5
  18347. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18348. (exit $ac_status); } >/dev/null && {
  18349. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18350. test ! -s conftest.err
  18351. }; then
  18352. ac_header_preproc=yes
  18353. else
  18354. $as_echo "$as_me: failed program was:" >&5
  18355. sed 's/^/| /' conftest.$ac_ext >&5
  18356. ac_header_preproc=no
  18357. fi
  18358. rm -f conftest.err conftest.$ac_ext
  18359. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18360. $as_echo "$ac_header_preproc" >&6; }
  18361. # So? What about this header?
  18362. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18363. yes:no: )
  18364. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  18365. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18366. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  18367. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  18368. ac_header_preproc=yes
  18369. ;;
  18370. no:yes:* )
  18371. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  18372. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  18373. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18374. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18375. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18376. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18377. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18378. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18379. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18380. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18381. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18382. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18383. ( cat <<\_ASBOX
  18384. ## -------------------------------- ##
  18385. ## Report this to bug-guile@gnu.org ##
  18386. ## -------------------------------- ##
  18387. _ASBOX
  18388. ) | sed "s/^/$as_me: WARNING: /" >&2
  18389. ;;
  18390. esac
  18391. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  18392. $as_echo_n "checking for $ac_header... " >&6; }
  18393. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18394. $as_echo_n "(cached) " >&6
  18395. else
  18396. eval "$as_ac_Header=\$ac_header_preproc"
  18397. fi
  18398. ac_res=`eval 'as_val=${'$as_ac_Header'}
  18399. $as_echo "$as_val"'`
  18400. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  18401. $as_echo "$ac_res" >&6; }
  18402. fi
  18403. as_val=`eval 'as_val=${'$as_ac_Header'}
  18404. $as_echo "$as_val"'`
  18405. if test "x$as_val" = x""yes; then
  18406. cat >>confdefs.h <<_ACEOF
  18407. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18408. _ACEOF
  18409. fi
  18410. done
  18411. # The cast to long int works around a bug in the HP C Compiler
  18412. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  18413. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  18414. # This bug is HP SR number 8606223364.
  18415. { $as_echo "$as_me:$LINENO: checking size of intmax_t" >&5
  18416. $as_echo_n "checking size of intmax_t... " >&6; }
  18417. if test "${ac_cv_sizeof_intmax_t+set}" = set; then
  18418. $as_echo_n "(cached) " >&6
  18419. else
  18420. if test "$cross_compiling" = yes; then
  18421. # Depending upon the size, compute the lo and hi bounds.
  18422. cat >conftest.$ac_ext <<_ACEOF
  18423. /* confdefs.h. */
  18424. _ACEOF
  18425. cat confdefs.h >>conftest.$ac_ext
  18426. cat >>conftest.$ac_ext <<_ACEOF
  18427. /* end confdefs.h. */
  18428. $ac_includes_default
  18429. int
  18430. main ()
  18431. {
  18432. static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) >= 0)];
  18433. test_array [0] = 0
  18434. ;
  18435. return 0;
  18436. }
  18437. _ACEOF
  18438. rm -f conftest.$ac_objext
  18439. if { (ac_try="$ac_compile"
  18440. case "(($ac_try" in
  18441. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18442. *) ac_try_echo=$ac_try;;
  18443. esac
  18444. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18445. $as_echo "$ac_try_echo") >&5
  18446. (eval "$ac_compile") 2>conftest.er1
  18447. ac_status=$?
  18448. grep -v '^ *+' conftest.er1 >conftest.err
  18449. rm -f conftest.er1
  18450. cat conftest.err >&5
  18451. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18452. (exit $ac_status); } && {
  18453. test -z "$ac_c_werror_flag" ||
  18454. test ! -s conftest.err
  18455. } && test -s conftest.$ac_objext; then
  18456. ac_lo=0 ac_mid=0
  18457. while :; do
  18458. cat >conftest.$ac_ext <<_ACEOF
  18459. /* confdefs.h. */
  18460. _ACEOF
  18461. cat confdefs.h >>conftest.$ac_ext
  18462. cat >>conftest.$ac_ext <<_ACEOF
  18463. /* end confdefs.h. */
  18464. $ac_includes_default
  18465. int
  18466. main ()
  18467. {
  18468. static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) <= $ac_mid)];
  18469. test_array [0] = 0
  18470. ;
  18471. return 0;
  18472. }
  18473. _ACEOF
  18474. rm -f conftest.$ac_objext
  18475. if { (ac_try="$ac_compile"
  18476. case "(($ac_try" in
  18477. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18478. *) ac_try_echo=$ac_try;;
  18479. esac
  18480. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18481. $as_echo "$ac_try_echo") >&5
  18482. (eval "$ac_compile") 2>conftest.er1
  18483. ac_status=$?
  18484. grep -v '^ *+' conftest.er1 >conftest.err
  18485. rm -f conftest.er1
  18486. cat conftest.err >&5
  18487. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18488. (exit $ac_status); } && {
  18489. test -z "$ac_c_werror_flag" ||
  18490. test ! -s conftest.err
  18491. } && test -s conftest.$ac_objext; then
  18492. ac_hi=$ac_mid; break
  18493. else
  18494. $as_echo "$as_me: failed program was:" >&5
  18495. sed 's/^/| /' conftest.$ac_ext >&5
  18496. ac_lo=`expr $ac_mid + 1`
  18497. if test $ac_lo -le $ac_mid; then
  18498. ac_lo= ac_hi=
  18499. break
  18500. fi
  18501. ac_mid=`expr 2 '*' $ac_mid + 1`
  18502. fi
  18503. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18504. done
  18505. else
  18506. $as_echo "$as_me: failed program was:" >&5
  18507. sed 's/^/| /' conftest.$ac_ext >&5
  18508. cat >conftest.$ac_ext <<_ACEOF
  18509. /* confdefs.h. */
  18510. _ACEOF
  18511. cat confdefs.h >>conftest.$ac_ext
  18512. cat >>conftest.$ac_ext <<_ACEOF
  18513. /* end confdefs.h. */
  18514. $ac_includes_default
  18515. int
  18516. main ()
  18517. {
  18518. static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) < 0)];
  18519. test_array [0] = 0
  18520. ;
  18521. return 0;
  18522. }
  18523. _ACEOF
  18524. rm -f conftest.$ac_objext
  18525. if { (ac_try="$ac_compile"
  18526. case "(($ac_try" in
  18527. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18528. *) ac_try_echo=$ac_try;;
  18529. esac
  18530. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18531. $as_echo "$ac_try_echo") >&5
  18532. (eval "$ac_compile") 2>conftest.er1
  18533. ac_status=$?
  18534. grep -v '^ *+' conftest.er1 >conftest.err
  18535. rm -f conftest.er1
  18536. cat conftest.err >&5
  18537. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18538. (exit $ac_status); } && {
  18539. test -z "$ac_c_werror_flag" ||
  18540. test ! -s conftest.err
  18541. } && test -s conftest.$ac_objext; then
  18542. ac_hi=-1 ac_mid=-1
  18543. while :; do
  18544. cat >conftest.$ac_ext <<_ACEOF
  18545. /* confdefs.h. */
  18546. _ACEOF
  18547. cat confdefs.h >>conftest.$ac_ext
  18548. cat >>conftest.$ac_ext <<_ACEOF
  18549. /* end confdefs.h. */
  18550. $ac_includes_default
  18551. int
  18552. main ()
  18553. {
  18554. static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) >= $ac_mid)];
  18555. test_array [0] = 0
  18556. ;
  18557. return 0;
  18558. }
  18559. _ACEOF
  18560. rm -f conftest.$ac_objext
  18561. if { (ac_try="$ac_compile"
  18562. case "(($ac_try" in
  18563. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18564. *) ac_try_echo=$ac_try;;
  18565. esac
  18566. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18567. $as_echo "$ac_try_echo") >&5
  18568. (eval "$ac_compile") 2>conftest.er1
  18569. ac_status=$?
  18570. grep -v '^ *+' conftest.er1 >conftest.err
  18571. rm -f conftest.er1
  18572. cat conftest.err >&5
  18573. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18574. (exit $ac_status); } && {
  18575. test -z "$ac_c_werror_flag" ||
  18576. test ! -s conftest.err
  18577. } && test -s conftest.$ac_objext; then
  18578. ac_lo=$ac_mid; break
  18579. else
  18580. $as_echo "$as_me: failed program was:" >&5
  18581. sed 's/^/| /' conftest.$ac_ext >&5
  18582. ac_hi=`expr '(' $ac_mid ')' - 1`
  18583. if test $ac_mid -le $ac_hi; then
  18584. ac_lo= ac_hi=
  18585. break
  18586. fi
  18587. ac_mid=`expr 2 '*' $ac_mid`
  18588. fi
  18589. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18590. done
  18591. else
  18592. $as_echo "$as_me: failed program was:" >&5
  18593. sed 's/^/| /' conftest.$ac_ext >&5
  18594. ac_lo= ac_hi=
  18595. fi
  18596. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18597. fi
  18598. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18599. # Binary search between lo and hi bounds.
  18600. while test "x$ac_lo" != "x$ac_hi"; do
  18601. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  18602. cat >conftest.$ac_ext <<_ACEOF
  18603. /* confdefs.h. */
  18604. _ACEOF
  18605. cat confdefs.h >>conftest.$ac_ext
  18606. cat >>conftest.$ac_ext <<_ACEOF
  18607. /* end confdefs.h. */
  18608. $ac_includes_default
  18609. int
  18610. main ()
  18611. {
  18612. static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) <= $ac_mid)];
  18613. test_array [0] = 0
  18614. ;
  18615. return 0;
  18616. }
  18617. _ACEOF
  18618. rm -f conftest.$ac_objext
  18619. if { (ac_try="$ac_compile"
  18620. case "(($ac_try" in
  18621. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18622. *) ac_try_echo=$ac_try;;
  18623. esac
  18624. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18625. $as_echo "$ac_try_echo") >&5
  18626. (eval "$ac_compile") 2>conftest.er1
  18627. ac_status=$?
  18628. grep -v '^ *+' conftest.er1 >conftest.err
  18629. rm -f conftest.er1
  18630. cat conftest.err >&5
  18631. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18632. (exit $ac_status); } && {
  18633. test -z "$ac_c_werror_flag" ||
  18634. test ! -s conftest.err
  18635. } && test -s conftest.$ac_objext; then
  18636. ac_hi=$ac_mid
  18637. else
  18638. $as_echo "$as_me: failed program was:" >&5
  18639. sed 's/^/| /' conftest.$ac_ext >&5
  18640. ac_lo=`expr '(' $ac_mid ')' + 1`
  18641. fi
  18642. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18643. done
  18644. case $ac_lo in
  18645. ?*) ac_cv_sizeof_intmax_t=$ac_lo;;
  18646. '') if test "$ac_cv_type_intmax_t" = yes; then
  18647. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  18648. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  18649. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t)
  18650. See \`config.log' for more details." >&5
  18651. $as_echo "$as_me: error: cannot compute sizeof (intmax_t)
  18652. See \`config.log' for more details." >&2;}
  18653. { (exit 77); exit 77; }; }; }
  18654. else
  18655. ac_cv_sizeof_intmax_t=0
  18656. fi ;;
  18657. esac
  18658. else
  18659. cat >conftest.$ac_ext <<_ACEOF
  18660. /* confdefs.h. */
  18661. _ACEOF
  18662. cat confdefs.h >>conftest.$ac_ext
  18663. cat >>conftest.$ac_ext <<_ACEOF
  18664. /* end confdefs.h. */
  18665. $ac_includes_default
  18666. static long int longval () { return (long int) (sizeof (intmax_t)); }
  18667. static unsigned long int ulongval () { return (long int) (sizeof (intmax_t)); }
  18668. #include <stdio.h>
  18669. #include <stdlib.h>
  18670. int
  18671. main ()
  18672. {
  18673. FILE *f = fopen ("conftest.val", "w");
  18674. if (! f)
  18675. return 1;
  18676. if (((long int) (sizeof (intmax_t))) < 0)
  18677. {
  18678. long int i = longval ();
  18679. if (i != ((long int) (sizeof (intmax_t))))
  18680. return 1;
  18681. fprintf (f, "%ld", i);
  18682. }
  18683. else
  18684. {
  18685. unsigned long int i = ulongval ();
  18686. if (i != ((long int) (sizeof (intmax_t))))
  18687. return 1;
  18688. fprintf (f, "%lu", i);
  18689. }
  18690. /* Do not output a trailing newline, as this causes \r\n confusion
  18691. on some platforms. */
  18692. return ferror (f) || fclose (f) != 0;
  18693. ;
  18694. return 0;
  18695. }
  18696. _ACEOF
  18697. rm -f conftest$ac_exeext
  18698. if { (ac_try="$ac_link"
  18699. case "(($ac_try" in
  18700. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18701. *) ac_try_echo=$ac_try;;
  18702. esac
  18703. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18704. $as_echo "$ac_try_echo") >&5
  18705. (eval "$ac_link") 2>&5
  18706. ac_status=$?
  18707. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18708. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18709. { (case "(($ac_try" in
  18710. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18711. *) ac_try_echo=$ac_try;;
  18712. esac
  18713. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18714. $as_echo "$ac_try_echo") >&5
  18715. (eval "$ac_try") 2>&5
  18716. ac_status=$?
  18717. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18718. (exit $ac_status); }; }; then
  18719. ac_cv_sizeof_intmax_t=`cat conftest.val`
  18720. else
  18721. $as_echo "$as_me: program exited with status $ac_status" >&5
  18722. $as_echo "$as_me: failed program was:" >&5
  18723. sed 's/^/| /' conftest.$ac_ext >&5
  18724. ( exit $ac_status )
  18725. if test "$ac_cv_type_intmax_t" = yes; then
  18726. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  18727. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  18728. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t)
  18729. See \`config.log' for more details." >&5
  18730. $as_echo "$as_me: error: cannot compute sizeof (intmax_t)
  18731. See \`config.log' for more details." >&2;}
  18732. { (exit 77); exit 77; }; }; }
  18733. else
  18734. ac_cv_sizeof_intmax_t=0
  18735. fi
  18736. fi
  18737. rm -rf conftest.dSYM
  18738. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18739. fi
  18740. rm -f conftest.val
  18741. fi
  18742. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_intmax_t" >&5
  18743. $as_echo "$ac_cv_sizeof_intmax_t" >&6; }
  18744. cat >>confdefs.h <<_ACEOF
  18745. #define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t
  18746. _ACEOF
  18747. SCM_I_GSC_NEEDS_STDINT_H=0
  18748. SCM_I_GSC_NEEDS_INTTYPES_H=0
  18749. ### intptr and uintptr (try not to use inttypes if we don't have to)
  18750. if test "$ac_cv_header_inttypes_h" = yes; then
  18751. if test "$ac_cv_sizeof_intptr_t" -eq 0; then
  18752. # The cast to long int works around a bug in the HP C Compiler
  18753. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  18754. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  18755. # This bug is HP SR number 8606223364.
  18756. { $as_echo "$as_me:$LINENO: checking size of intptr_t" >&5
  18757. $as_echo_n "checking size of intptr_t... " >&6; }
  18758. if test "${ac_cv_sizeof_intptr_t+set}" = set; then
  18759. $as_echo_n "(cached) " >&6
  18760. else
  18761. if test "$cross_compiling" = yes; then
  18762. # Depending upon the size, compute the lo and hi bounds.
  18763. cat >conftest.$ac_ext <<_ACEOF
  18764. /* confdefs.h. */
  18765. _ACEOF
  18766. cat confdefs.h >>conftest.$ac_ext
  18767. cat >>conftest.$ac_ext <<_ACEOF
  18768. /* end confdefs.h. */
  18769. #include <inttypes.h>
  18770. #include <stdio.h>
  18771. int
  18772. main ()
  18773. {
  18774. static int test_array [1 - 2 * !(((long int) (sizeof (intptr_t))) >= 0)];
  18775. test_array [0] = 0
  18776. ;
  18777. return 0;
  18778. }
  18779. _ACEOF
  18780. rm -f conftest.$ac_objext
  18781. if { (ac_try="$ac_compile"
  18782. case "(($ac_try" in
  18783. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18784. *) ac_try_echo=$ac_try;;
  18785. esac
  18786. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18787. $as_echo "$ac_try_echo") >&5
  18788. (eval "$ac_compile") 2>conftest.er1
  18789. ac_status=$?
  18790. grep -v '^ *+' conftest.er1 >conftest.err
  18791. rm -f conftest.er1
  18792. cat conftest.err >&5
  18793. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18794. (exit $ac_status); } && {
  18795. test -z "$ac_c_werror_flag" ||
  18796. test ! -s conftest.err
  18797. } && test -s conftest.$ac_objext; then
  18798. ac_lo=0 ac_mid=0
  18799. while :; do
  18800. cat >conftest.$ac_ext <<_ACEOF
  18801. /* confdefs.h. */
  18802. _ACEOF
  18803. cat confdefs.h >>conftest.$ac_ext
  18804. cat >>conftest.$ac_ext <<_ACEOF
  18805. /* end confdefs.h. */
  18806. #include <inttypes.h>
  18807. #include <stdio.h>
  18808. int
  18809. main ()
  18810. {
  18811. static int test_array [1 - 2 * !(((long int) (sizeof (intptr_t))) <= $ac_mid)];
  18812. test_array [0] = 0
  18813. ;
  18814. return 0;
  18815. }
  18816. _ACEOF
  18817. rm -f conftest.$ac_objext
  18818. if { (ac_try="$ac_compile"
  18819. case "(($ac_try" in
  18820. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18821. *) ac_try_echo=$ac_try;;
  18822. esac
  18823. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18824. $as_echo "$ac_try_echo") >&5
  18825. (eval "$ac_compile") 2>conftest.er1
  18826. ac_status=$?
  18827. grep -v '^ *+' conftest.er1 >conftest.err
  18828. rm -f conftest.er1
  18829. cat conftest.err >&5
  18830. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18831. (exit $ac_status); } && {
  18832. test -z "$ac_c_werror_flag" ||
  18833. test ! -s conftest.err
  18834. } && test -s conftest.$ac_objext; then
  18835. ac_hi=$ac_mid; break
  18836. else
  18837. $as_echo "$as_me: failed program was:" >&5
  18838. sed 's/^/| /' conftest.$ac_ext >&5
  18839. ac_lo=`expr $ac_mid + 1`
  18840. if test $ac_lo -le $ac_mid; then
  18841. ac_lo= ac_hi=
  18842. break
  18843. fi
  18844. ac_mid=`expr 2 '*' $ac_mid + 1`
  18845. fi
  18846. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18847. done
  18848. else
  18849. $as_echo "$as_me: failed program was:" >&5
  18850. sed 's/^/| /' conftest.$ac_ext >&5
  18851. cat >conftest.$ac_ext <<_ACEOF
  18852. /* confdefs.h. */
  18853. _ACEOF
  18854. cat confdefs.h >>conftest.$ac_ext
  18855. cat >>conftest.$ac_ext <<_ACEOF
  18856. /* end confdefs.h. */
  18857. #include <inttypes.h>
  18858. #include <stdio.h>
  18859. int
  18860. main ()
  18861. {
  18862. static int test_array [1 - 2 * !(((long int) (sizeof (intptr_t))) < 0)];
  18863. test_array [0] = 0
  18864. ;
  18865. return 0;
  18866. }
  18867. _ACEOF
  18868. rm -f conftest.$ac_objext
  18869. if { (ac_try="$ac_compile"
  18870. case "(($ac_try" in
  18871. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18872. *) ac_try_echo=$ac_try;;
  18873. esac
  18874. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18875. $as_echo "$ac_try_echo") >&5
  18876. (eval "$ac_compile") 2>conftest.er1
  18877. ac_status=$?
  18878. grep -v '^ *+' conftest.er1 >conftest.err
  18879. rm -f conftest.er1
  18880. cat conftest.err >&5
  18881. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18882. (exit $ac_status); } && {
  18883. test -z "$ac_c_werror_flag" ||
  18884. test ! -s conftest.err
  18885. } && test -s conftest.$ac_objext; then
  18886. ac_hi=-1 ac_mid=-1
  18887. while :; do
  18888. cat >conftest.$ac_ext <<_ACEOF
  18889. /* confdefs.h. */
  18890. _ACEOF
  18891. cat confdefs.h >>conftest.$ac_ext
  18892. cat >>conftest.$ac_ext <<_ACEOF
  18893. /* end confdefs.h. */
  18894. #include <inttypes.h>
  18895. #include <stdio.h>
  18896. int
  18897. main ()
  18898. {
  18899. static int test_array [1 - 2 * !(((long int) (sizeof (intptr_t))) >= $ac_mid)];
  18900. test_array [0] = 0
  18901. ;
  18902. return 0;
  18903. }
  18904. _ACEOF
  18905. rm -f conftest.$ac_objext
  18906. if { (ac_try="$ac_compile"
  18907. case "(($ac_try" in
  18908. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18909. *) ac_try_echo=$ac_try;;
  18910. esac
  18911. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18912. $as_echo "$ac_try_echo") >&5
  18913. (eval "$ac_compile") 2>conftest.er1
  18914. ac_status=$?
  18915. grep -v '^ *+' conftest.er1 >conftest.err
  18916. rm -f conftest.er1
  18917. cat conftest.err >&5
  18918. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18919. (exit $ac_status); } && {
  18920. test -z "$ac_c_werror_flag" ||
  18921. test ! -s conftest.err
  18922. } && test -s conftest.$ac_objext; then
  18923. ac_lo=$ac_mid; break
  18924. else
  18925. $as_echo "$as_me: failed program was:" >&5
  18926. sed 's/^/| /' conftest.$ac_ext >&5
  18927. ac_hi=`expr '(' $ac_mid ')' - 1`
  18928. if test $ac_mid -le $ac_hi; then
  18929. ac_lo= ac_hi=
  18930. break
  18931. fi
  18932. ac_mid=`expr 2 '*' $ac_mid`
  18933. fi
  18934. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18935. done
  18936. else
  18937. $as_echo "$as_me: failed program was:" >&5
  18938. sed 's/^/| /' conftest.$ac_ext >&5
  18939. ac_lo= ac_hi=
  18940. fi
  18941. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18942. fi
  18943. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18944. # Binary search between lo and hi bounds.
  18945. while test "x$ac_lo" != "x$ac_hi"; do
  18946. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  18947. cat >conftest.$ac_ext <<_ACEOF
  18948. /* confdefs.h. */
  18949. _ACEOF
  18950. cat confdefs.h >>conftest.$ac_ext
  18951. cat >>conftest.$ac_ext <<_ACEOF
  18952. /* end confdefs.h. */
  18953. #include <inttypes.h>
  18954. #include <stdio.h>
  18955. int
  18956. main ()
  18957. {
  18958. static int test_array [1 - 2 * !(((long int) (sizeof (intptr_t))) <= $ac_mid)];
  18959. test_array [0] = 0
  18960. ;
  18961. return 0;
  18962. }
  18963. _ACEOF
  18964. rm -f conftest.$ac_objext
  18965. if { (ac_try="$ac_compile"
  18966. case "(($ac_try" in
  18967. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18968. *) ac_try_echo=$ac_try;;
  18969. esac
  18970. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18971. $as_echo "$ac_try_echo") >&5
  18972. (eval "$ac_compile") 2>conftest.er1
  18973. ac_status=$?
  18974. grep -v '^ *+' conftest.er1 >conftest.err
  18975. rm -f conftest.er1
  18976. cat conftest.err >&5
  18977. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18978. (exit $ac_status); } && {
  18979. test -z "$ac_c_werror_flag" ||
  18980. test ! -s conftest.err
  18981. } && test -s conftest.$ac_objext; then
  18982. ac_hi=$ac_mid
  18983. else
  18984. $as_echo "$as_me: failed program was:" >&5
  18985. sed 's/^/| /' conftest.$ac_ext >&5
  18986. ac_lo=`expr '(' $ac_mid ')' + 1`
  18987. fi
  18988. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18989. done
  18990. case $ac_lo in
  18991. ?*) ac_cv_sizeof_intptr_t=$ac_lo;;
  18992. '') if test "$ac_cv_type_intptr_t" = yes; then
  18993. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  18994. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  18995. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (intptr_t)
  18996. See \`config.log' for more details." >&5
  18997. $as_echo "$as_me: error: cannot compute sizeof (intptr_t)
  18998. See \`config.log' for more details." >&2;}
  18999. { (exit 77); exit 77; }; }; }
  19000. else
  19001. ac_cv_sizeof_intptr_t=0
  19002. fi ;;
  19003. esac
  19004. else
  19005. cat >conftest.$ac_ext <<_ACEOF
  19006. /* confdefs.h. */
  19007. _ACEOF
  19008. cat confdefs.h >>conftest.$ac_ext
  19009. cat >>conftest.$ac_ext <<_ACEOF
  19010. /* end confdefs.h. */
  19011. #include <inttypes.h>
  19012. #include <stdio.h>
  19013. static long int longval () { return (long int) (sizeof (intptr_t)); }
  19014. static unsigned long int ulongval () { return (long int) (sizeof (intptr_t)); }
  19015. #include <stdio.h>
  19016. #include <stdlib.h>
  19017. int
  19018. main ()
  19019. {
  19020. FILE *f = fopen ("conftest.val", "w");
  19021. if (! f)
  19022. return 1;
  19023. if (((long int) (sizeof (intptr_t))) < 0)
  19024. {
  19025. long int i = longval ();
  19026. if (i != ((long int) (sizeof (intptr_t))))
  19027. return 1;
  19028. fprintf (f, "%ld", i);
  19029. }
  19030. else
  19031. {
  19032. unsigned long int i = ulongval ();
  19033. if (i != ((long int) (sizeof (intptr_t))))
  19034. return 1;
  19035. fprintf (f, "%lu", i);
  19036. }
  19037. /* Do not output a trailing newline, as this causes \r\n confusion
  19038. on some platforms. */
  19039. return ferror (f) || fclose (f) != 0;
  19040. ;
  19041. return 0;
  19042. }
  19043. _ACEOF
  19044. rm -f conftest$ac_exeext
  19045. if { (ac_try="$ac_link"
  19046. case "(($ac_try" in
  19047. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19048. *) ac_try_echo=$ac_try;;
  19049. esac
  19050. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19051. $as_echo "$ac_try_echo") >&5
  19052. (eval "$ac_link") 2>&5
  19053. ac_status=$?
  19054. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19055. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19056. { (case "(($ac_try" in
  19057. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19058. *) ac_try_echo=$ac_try;;
  19059. esac
  19060. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19061. $as_echo "$ac_try_echo") >&5
  19062. (eval "$ac_try") 2>&5
  19063. ac_status=$?
  19064. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19065. (exit $ac_status); }; }; then
  19066. ac_cv_sizeof_intptr_t=`cat conftest.val`
  19067. else
  19068. $as_echo "$as_me: program exited with status $ac_status" >&5
  19069. $as_echo "$as_me: failed program was:" >&5
  19070. sed 's/^/| /' conftest.$ac_ext >&5
  19071. ( exit $ac_status )
  19072. if test "$ac_cv_type_intptr_t" = yes; then
  19073. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  19074. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  19075. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (intptr_t)
  19076. See \`config.log' for more details." >&5
  19077. $as_echo "$as_me: error: cannot compute sizeof (intptr_t)
  19078. See \`config.log' for more details." >&2;}
  19079. { (exit 77); exit 77; }; }; }
  19080. else
  19081. ac_cv_sizeof_intptr_t=0
  19082. fi
  19083. fi
  19084. rm -rf conftest.dSYM
  19085. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19086. fi
  19087. rm -f conftest.val
  19088. fi
  19089. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_intptr_t" >&5
  19090. $as_echo "$ac_cv_sizeof_intptr_t" >&6; }
  19091. cat >>confdefs.h <<_ACEOF
  19092. #define SIZEOF_INTPTR_T $ac_cv_sizeof_intptr_t
  19093. _ACEOF
  19094. if test "$ac_cv_sizeof_intptr_t" -ne 0; then
  19095. SCM_I_GSC_NEEDS_INTTYPES_H=1
  19096. fi
  19097. fi
  19098. if test "$ac_cv_sizeof_uintptr_t" -eq 0; then
  19099. # The cast to long int works around a bug in the HP C Compiler
  19100. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  19101. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  19102. # This bug is HP SR number 8606223364.
  19103. { $as_echo "$as_me:$LINENO: checking size of uintptr_t" >&5
  19104. $as_echo_n "checking size of uintptr_t... " >&6; }
  19105. if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
  19106. $as_echo_n "(cached) " >&6
  19107. else
  19108. if test "$cross_compiling" = yes; then
  19109. # Depending upon the size, compute the lo and hi bounds.
  19110. cat >conftest.$ac_ext <<_ACEOF
  19111. /* confdefs.h. */
  19112. _ACEOF
  19113. cat confdefs.h >>conftest.$ac_ext
  19114. cat >>conftest.$ac_ext <<_ACEOF
  19115. /* end confdefs.h. */
  19116. #include <inttypes.h>
  19117. #include <stdio.h>
  19118. int
  19119. main ()
  19120. {
  19121. static int test_array [1 - 2 * !(((long int) (sizeof (uintptr_t))) >= 0)];
  19122. test_array [0] = 0
  19123. ;
  19124. return 0;
  19125. }
  19126. _ACEOF
  19127. rm -f conftest.$ac_objext
  19128. if { (ac_try="$ac_compile"
  19129. case "(($ac_try" in
  19130. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19131. *) ac_try_echo=$ac_try;;
  19132. esac
  19133. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19134. $as_echo "$ac_try_echo") >&5
  19135. (eval "$ac_compile") 2>conftest.er1
  19136. ac_status=$?
  19137. grep -v '^ *+' conftest.er1 >conftest.err
  19138. rm -f conftest.er1
  19139. cat conftest.err >&5
  19140. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19141. (exit $ac_status); } && {
  19142. test -z "$ac_c_werror_flag" ||
  19143. test ! -s conftest.err
  19144. } && test -s conftest.$ac_objext; then
  19145. ac_lo=0 ac_mid=0
  19146. while :; do
  19147. cat >conftest.$ac_ext <<_ACEOF
  19148. /* confdefs.h. */
  19149. _ACEOF
  19150. cat confdefs.h >>conftest.$ac_ext
  19151. cat >>conftest.$ac_ext <<_ACEOF
  19152. /* end confdefs.h. */
  19153. #include <inttypes.h>
  19154. #include <stdio.h>
  19155. int
  19156. main ()
  19157. {
  19158. static int test_array [1 - 2 * !(((long int) (sizeof (uintptr_t))) <= $ac_mid)];
  19159. test_array [0] = 0
  19160. ;
  19161. return 0;
  19162. }
  19163. _ACEOF
  19164. rm -f conftest.$ac_objext
  19165. if { (ac_try="$ac_compile"
  19166. case "(($ac_try" in
  19167. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19168. *) ac_try_echo=$ac_try;;
  19169. esac
  19170. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19171. $as_echo "$ac_try_echo") >&5
  19172. (eval "$ac_compile") 2>conftest.er1
  19173. ac_status=$?
  19174. grep -v '^ *+' conftest.er1 >conftest.err
  19175. rm -f conftest.er1
  19176. cat conftest.err >&5
  19177. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19178. (exit $ac_status); } && {
  19179. test -z "$ac_c_werror_flag" ||
  19180. test ! -s conftest.err
  19181. } && test -s conftest.$ac_objext; then
  19182. ac_hi=$ac_mid; break
  19183. else
  19184. $as_echo "$as_me: failed program was:" >&5
  19185. sed 's/^/| /' conftest.$ac_ext >&5
  19186. ac_lo=`expr $ac_mid + 1`
  19187. if test $ac_lo -le $ac_mid; then
  19188. ac_lo= ac_hi=
  19189. break
  19190. fi
  19191. ac_mid=`expr 2 '*' $ac_mid + 1`
  19192. fi
  19193. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19194. done
  19195. else
  19196. $as_echo "$as_me: failed program was:" >&5
  19197. sed 's/^/| /' conftest.$ac_ext >&5
  19198. cat >conftest.$ac_ext <<_ACEOF
  19199. /* confdefs.h. */
  19200. _ACEOF
  19201. cat confdefs.h >>conftest.$ac_ext
  19202. cat >>conftest.$ac_ext <<_ACEOF
  19203. /* end confdefs.h. */
  19204. #include <inttypes.h>
  19205. #include <stdio.h>
  19206. int
  19207. main ()
  19208. {
  19209. static int test_array [1 - 2 * !(((long int) (sizeof (uintptr_t))) < 0)];
  19210. test_array [0] = 0
  19211. ;
  19212. return 0;
  19213. }
  19214. _ACEOF
  19215. rm -f conftest.$ac_objext
  19216. if { (ac_try="$ac_compile"
  19217. case "(($ac_try" in
  19218. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19219. *) ac_try_echo=$ac_try;;
  19220. esac
  19221. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19222. $as_echo "$ac_try_echo") >&5
  19223. (eval "$ac_compile") 2>conftest.er1
  19224. ac_status=$?
  19225. grep -v '^ *+' conftest.er1 >conftest.err
  19226. rm -f conftest.er1
  19227. cat conftest.err >&5
  19228. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19229. (exit $ac_status); } && {
  19230. test -z "$ac_c_werror_flag" ||
  19231. test ! -s conftest.err
  19232. } && test -s conftest.$ac_objext; then
  19233. ac_hi=-1 ac_mid=-1
  19234. while :; do
  19235. cat >conftest.$ac_ext <<_ACEOF
  19236. /* confdefs.h. */
  19237. _ACEOF
  19238. cat confdefs.h >>conftest.$ac_ext
  19239. cat >>conftest.$ac_ext <<_ACEOF
  19240. /* end confdefs.h. */
  19241. #include <inttypes.h>
  19242. #include <stdio.h>
  19243. int
  19244. main ()
  19245. {
  19246. static int test_array [1 - 2 * !(((long int) (sizeof (uintptr_t))) >= $ac_mid)];
  19247. test_array [0] = 0
  19248. ;
  19249. return 0;
  19250. }
  19251. _ACEOF
  19252. rm -f conftest.$ac_objext
  19253. if { (ac_try="$ac_compile"
  19254. case "(($ac_try" in
  19255. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19256. *) ac_try_echo=$ac_try;;
  19257. esac
  19258. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19259. $as_echo "$ac_try_echo") >&5
  19260. (eval "$ac_compile") 2>conftest.er1
  19261. ac_status=$?
  19262. grep -v '^ *+' conftest.er1 >conftest.err
  19263. rm -f conftest.er1
  19264. cat conftest.err >&5
  19265. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19266. (exit $ac_status); } && {
  19267. test -z "$ac_c_werror_flag" ||
  19268. test ! -s conftest.err
  19269. } && test -s conftest.$ac_objext; then
  19270. ac_lo=$ac_mid; break
  19271. else
  19272. $as_echo "$as_me: failed program was:" >&5
  19273. sed 's/^/| /' conftest.$ac_ext >&5
  19274. ac_hi=`expr '(' $ac_mid ')' - 1`
  19275. if test $ac_mid -le $ac_hi; then
  19276. ac_lo= ac_hi=
  19277. break
  19278. fi
  19279. ac_mid=`expr 2 '*' $ac_mid`
  19280. fi
  19281. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19282. done
  19283. else
  19284. $as_echo "$as_me: failed program was:" >&5
  19285. sed 's/^/| /' conftest.$ac_ext >&5
  19286. ac_lo= ac_hi=
  19287. fi
  19288. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19289. fi
  19290. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19291. # Binary search between lo and hi bounds.
  19292. while test "x$ac_lo" != "x$ac_hi"; do
  19293. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  19294. cat >conftest.$ac_ext <<_ACEOF
  19295. /* confdefs.h. */
  19296. _ACEOF
  19297. cat confdefs.h >>conftest.$ac_ext
  19298. cat >>conftest.$ac_ext <<_ACEOF
  19299. /* end confdefs.h. */
  19300. #include <inttypes.h>
  19301. #include <stdio.h>
  19302. int
  19303. main ()
  19304. {
  19305. static int test_array [1 - 2 * !(((long int) (sizeof (uintptr_t))) <= $ac_mid)];
  19306. test_array [0] = 0
  19307. ;
  19308. return 0;
  19309. }
  19310. _ACEOF
  19311. rm -f conftest.$ac_objext
  19312. if { (ac_try="$ac_compile"
  19313. case "(($ac_try" in
  19314. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19315. *) ac_try_echo=$ac_try;;
  19316. esac
  19317. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19318. $as_echo "$ac_try_echo") >&5
  19319. (eval "$ac_compile") 2>conftest.er1
  19320. ac_status=$?
  19321. grep -v '^ *+' conftest.er1 >conftest.err
  19322. rm -f conftest.er1
  19323. cat conftest.err >&5
  19324. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19325. (exit $ac_status); } && {
  19326. test -z "$ac_c_werror_flag" ||
  19327. test ! -s conftest.err
  19328. } && test -s conftest.$ac_objext; then
  19329. ac_hi=$ac_mid
  19330. else
  19331. $as_echo "$as_me: failed program was:" >&5
  19332. sed 's/^/| /' conftest.$ac_ext >&5
  19333. ac_lo=`expr '(' $ac_mid ')' + 1`
  19334. fi
  19335. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19336. done
  19337. case $ac_lo in
  19338. ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
  19339. '') if test "$ac_cv_type_uintptr_t" = yes; then
  19340. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  19341. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  19342. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
  19343. See \`config.log' for more details." >&5
  19344. $as_echo "$as_me: error: cannot compute sizeof (uintptr_t)
  19345. See \`config.log' for more details." >&2;}
  19346. { (exit 77); exit 77; }; }; }
  19347. else
  19348. ac_cv_sizeof_uintptr_t=0
  19349. fi ;;
  19350. esac
  19351. else
  19352. cat >conftest.$ac_ext <<_ACEOF
  19353. /* confdefs.h. */
  19354. _ACEOF
  19355. cat confdefs.h >>conftest.$ac_ext
  19356. cat >>conftest.$ac_ext <<_ACEOF
  19357. /* end confdefs.h. */
  19358. #include <inttypes.h>
  19359. #include <stdio.h>
  19360. static long int longval () { return (long int) (sizeof (uintptr_t)); }
  19361. static unsigned long int ulongval () { return (long int) (sizeof (uintptr_t)); }
  19362. #include <stdio.h>
  19363. #include <stdlib.h>
  19364. int
  19365. main ()
  19366. {
  19367. FILE *f = fopen ("conftest.val", "w");
  19368. if (! f)
  19369. return 1;
  19370. if (((long int) (sizeof (uintptr_t))) < 0)
  19371. {
  19372. long int i = longval ();
  19373. if (i != ((long int) (sizeof (uintptr_t))))
  19374. return 1;
  19375. fprintf (f, "%ld", i);
  19376. }
  19377. else
  19378. {
  19379. unsigned long int i = ulongval ();
  19380. if (i != ((long int) (sizeof (uintptr_t))))
  19381. return 1;
  19382. fprintf (f, "%lu", i);
  19383. }
  19384. /* Do not output a trailing newline, as this causes \r\n confusion
  19385. on some platforms. */
  19386. return ferror (f) || fclose (f) != 0;
  19387. ;
  19388. return 0;
  19389. }
  19390. _ACEOF
  19391. rm -f conftest$ac_exeext
  19392. if { (ac_try="$ac_link"
  19393. case "(($ac_try" in
  19394. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19395. *) ac_try_echo=$ac_try;;
  19396. esac
  19397. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19398. $as_echo "$ac_try_echo") >&5
  19399. (eval "$ac_link") 2>&5
  19400. ac_status=$?
  19401. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19402. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19403. { (case "(($ac_try" in
  19404. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19405. *) ac_try_echo=$ac_try;;
  19406. esac
  19407. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19408. $as_echo "$ac_try_echo") >&5
  19409. (eval "$ac_try") 2>&5
  19410. ac_status=$?
  19411. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19412. (exit $ac_status); }; }; then
  19413. ac_cv_sizeof_uintptr_t=`cat conftest.val`
  19414. else
  19415. $as_echo "$as_me: program exited with status $ac_status" >&5
  19416. $as_echo "$as_me: failed program was:" >&5
  19417. sed 's/^/| /' conftest.$ac_ext >&5
  19418. ( exit $ac_status )
  19419. if test "$ac_cv_type_uintptr_t" = yes; then
  19420. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  19421. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  19422. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
  19423. See \`config.log' for more details." >&5
  19424. $as_echo "$as_me: error: cannot compute sizeof (uintptr_t)
  19425. See \`config.log' for more details." >&2;}
  19426. { (exit 77); exit 77; }; }; }
  19427. else
  19428. ac_cv_sizeof_uintptr_t=0
  19429. fi
  19430. fi
  19431. rm -rf conftest.dSYM
  19432. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19433. fi
  19434. rm -f conftest.val
  19435. fi
  19436. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
  19437. $as_echo "$ac_cv_sizeof_uintptr_t" >&6; }
  19438. cat >>confdefs.h <<_ACEOF
  19439. #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
  19440. _ACEOF
  19441. if test "$ac_cv_sizeof_uintptr_t" -ne 0; then
  19442. SCM_I_GSC_NEEDS_INTTYPES_H=1
  19443. fi
  19444. fi
  19445. fi
  19446. ### See what's provided by stdint.h
  19447. if test "$ac_cv_header_stdint_h" = yes; then
  19448. { $as_echo "$as_me:$LINENO: checking for int8_t" >&5
  19449. $as_echo_n "checking for int8_t... " >&6; }
  19450. if test "${ac_cv_type_int8_t+set}" = set; then
  19451. $as_echo_n "(cached) " >&6
  19452. else
  19453. ac_cv_type_int8_t=no
  19454. cat >conftest.$ac_ext <<_ACEOF
  19455. /* confdefs.h. */
  19456. _ACEOF
  19457. cat confdefs.h >>conftest.$ac_ext
  19458. cat >>conftest.$ac_ext <<_ACEOF
  19459. /* end confdefs.h. */
  19460. #include <stdint.h>
  19461. int
  19462. main ()
  19463. {
  19464. if (sizeof (int8_t))
  19465. return 0;
  19466. ;
  19467. return 0;
  19468. }
  19469. _ACEOF
  19470. rm -f conftest.$ac_objext
  19471. if { (ac_try="$ac_compile"
  19472. case "(($ac_try" in
  19473. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19474. *) ac_try_echo=$ac_try;;
  19475. esac
  19476. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19477. $as_echo "$ac_try_echo") >&5
  19478. (eval "$ac_compile") 2>conftest.er1
  19479. ac_status=$?
  19480. grep -v '^ *+' conftest.er1 >conftest.err
  19481. rm -f conftest.er1
  19482. cat conftest.err >&5
  19483. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19484. (exit $ac_status); } && {
  19485. test -z "$ac_c_werror_flag" ||
  19486. test ! -s conftest.err
  19487. } && test -s conftest.$ac_objext; then
  19488. cat >conftest.$ac_ext <<_ACEOF
  19489. /* confdefs.h. */
  19490. _ACEOF
  19491. cat confdefs.h >>conftest.$ac_ext
  19492. cat >>conftest.$ac_ext <<_ACEOF
  19493. /* end confdefs.h. */
  19494. #include <stdint.h>
  19495. int
  19496. main ()
  19497. {
  19498. if (sizeof ((int8_t)))
  19499. return 0;
  19500. ;
  19501. return 0;
  19502. }
  19503. _ACEOF
  19504. rm -f conftest.$ac_objext
  19505. if { (ac_try="$ac_compile"
  19506. case "(($ac_try" in
  19507. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19508. *) ac_try_echo=$ac_try;;
  19509. esac
  19510. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19511. $as_echo "$ac_try_echo") >&5
  19512. (eval "$ac_compile") 2>conftest.er1
  19513. ac_status=$?
  19514. grep -v '^ *+' conftest.er1 >conftest.err
  19515. rm -f conftest.er1
  19516. cat conftest.err >&5
  19517. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19518. (exit $ac_status); } && {
  19519. test -z "$ac_c_werror_flag" ||
  19520. test ! -s conftest.err
  19521. } && test -s conftest.$ac_objext; then
  19522. :
  19523. else
  19524. $as_echo "$as_me: failed program was:" >&5
  19525. sed 's/^/| /' conftest.$ac_ext >&5
  19526. ac_cv_type_int8_t=yes
  19527. fi
  19528. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19529. else
  19530. $as_echo "$as_me: failed program was:" >&5
  19531. sed 's/^/| /' conftest.$ac_ext >&5
  19532. fi
  19533. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19534. fi
  19535. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
  19536. $as_echo "$ac_cv_type_int8_t" >&6; }
  19537. if test "x$ac_cv_type_int8_t" = x""yes; then
  19538. scm_stdint_has_int8=1
  19539. fi
  19540. { $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
  19541. $as_echo_n "checking for uint8_t... " >&6; }
  19542. if test "${ac_cv_type_uint8_t+set}" = set; then
  19543. $as_echo_n "(cached) " >&6
  19544. else
  19545. ac_cv_type_uint8_t=no
  19546. cat >conftest.$ac_ext <<_ACEOF
  19547. /* confdefs.h. */
  19548. _ACEOF
  19549. cat confdefs.h >>conftest.$ac_ext
  19550. cat >>conftest.$ac_ext <<_ACEOF
  19551. /* end confdefs.h. */
  19552. #include <stdint.h>
  19553. int
  19554. main ()
  19555. {
  19556. if (sizeof (uint8_t))
  19557. return 0;
  19558. ;
  19559. return 0;
  19560. }
  19561. _ACEOF
  19562. rm -f conftest.$ac_objext
  19563. if { (ac_try="$ac_compile"
  19564. case "(($ac_try" in
  19565. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19566. *) ac_try_echo=$ac_try;;
  19567. esac
  19568. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19569. $as_echo "$ac_try_echo") >&5
  19570. (eval "$ac_compile") 2>conftest.er1
  19571. ac_status=$?
  19572. grep -v '^ *+' conftest.er1 >conftest.err
  19573. rm -f conftest.er1
  19574. cat conftest.err >&5
  19575. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19576. (exit $ac_status); } && {
  19577. test -z "$ac_c_werror_flag" ||
  19578. test ! -s conftest.err
  19579. } && test -s conftest.$ac_objext; then
  19580. cat >conftest.$ac_ext <<_ACEOF
  19581. /* confdefs.h. */
  19582. _ACEOF
  19583. cat confdefs.h >>conftest.$ac_ext
  19584. cat >>conftest.$ac_ext <<_ACEOF
  19585. /* end confdefs.h. */
  19586. #include <stdint.h>
  19587. int
  19588. main ()
  19589. {
  19590. if (sizeof ((uint8_t)))
  19591. return 0;
  19592. ;
  19593. return 0;
  19594. }
  19595. _ACEOF
  19596. rm -f conftest.$ac_objext
  19597. if { (ac_try="$ac_compile"
  19598. case "(($ac_try" in
  19599. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19600. *) ac_try_echo=$ac_try;;
  19601. esac
  19602. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19603. $as_echo "$ac_try_echo") >&5
  19604. (eval "$ac_compile") 2>conftest.er1
  19605. ac_status=$?
  19606. grep -v '^ *+' conftest.er1 >conftest.err
  19607. rm -f conftest.er1
  19608. cat conftest.err >&5
  19609. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19610. (exit $ac_status); } && {
  19611. test -z "$ac_c_werror_flag" ||
  19612. test ! -s conftest.err
  19613. } && test -s conftest.$ac_objext; then
  19614. :
  19615. else
  19616. $as_echo "$as_me: failed program was:" >&5
  19617. sed 's/^/| /' conftest.$ac_ext >&5
  19618. ac_cv_type_uint8_t=yes
  19619. fi
  19620. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19621. else
  19622. $as_echo "$as_me: failed program was:" >&5
  19623. sed 's/^/| /' conftest.$ac_ext >&5
  19624. fi
  19625. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19626. fi
  19627. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
  19628. $as_echo "$ac_cv_type_uint8_t" >&6; }
  19629. if test "x$ac_cv_type_uint8_t" = x""yes; then
  19630. scm_stdint_has_uint8=1
  19631. fi
  19632. { $as_echo "$as_me:$LINENO: checking for int16_t" >&5
  19633. $as_echo_n "checking for int16_t... " >&6; }
  19634. if test "${ac_cv_type_int16_t+set}" = set; then
  19635. $as_echo_n "(cached) " >&6
  19636. else
  19637. ac_cv_type_int16_t=no
  19638. cat >conftest.$ac_ext <<_ACEOF
  19639. /* confdefs.h. */
  19640. _ACEOF
  19641. cat confdefs.h >>conftest.$ac_ext
  19642. cat >>conftest.$ac_ext <<_ACEOF
  19643. /* end confdefs.h. */
  19644. #include <stdint.h>
  19645. int
  19646. main ()
  19647. {
  19648. if (sizeof (int16_t))
  19649. return 0;
  19650. ;
  19651. return 0;
  19652. }
  19653. _ACEOF
  19654. rm -f conftest.$ac_objext
  19655. if { (ac_try="$ac_compile"
  19656. case "(($ac_try" in
  19657. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19658. *) ac_try_echo=$ac_try;;
  19659. esac
  19660. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19661. $as_echo "$ac_try_echo") >&5
  19662. (eval "$ac_compile") 2>conftest.er1
  19663. ac_status=$?
  19664. grep -v '^ *+' conftest.er1 >conftest.err
  19665. rm -f conftest.er1
  19666. cat conftest.err >&5
  19667. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19668. (exit $ac_status); } && {
  19669. test -z "$ac_c_werror_flag" ||
  19670. test ! -s conftest.err
  19671. } && test -s conftest.$ac_objext; then
  19672. cat >conftest.$ac_ext <<_ACEOF
  19673. /* confdefs.h. */
  19674. _ACEOF
  19675. cat confdefs.h >>conftest.$ac_ext
  19676. cat >>conftest.$ac_ext <<_ACEOF
  19677. /* end confdefs.h. */
  19678. #include <stdint.h>
  19679. int
  19680. main ()
  19681. {
  19682. if (sizeof ((int16_t)))
  19683. return 0;
  19684. ;
  19685. return 0;
  19686. }
  19687. _ACEOF
  19688. rm -f conftest.$ac_objext
  19689. if { (ac_try="$ac_compile"
  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_compile") 2>conftest.er1
  19697. ac_status=$?
  19698. grep -v '^ *+' conftest.er1 >conftest.err
  19699. rm -f conftest.er1
  19700. cat conftest.err >&5
  19701. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19702. (exit $ac_status); } && {
  19703. test -z "$ac_c_werror_flag" ||
  19704. test ! -s conftest.err
  19705. } && test -s conftest.$ac_objext; then
  19706. :
  19707. else
  19708. $as_echo "$as_me: failed program was:" >&5
  19709. sed 's/^/| /' conftest.$ac_ext >&5
  19710. ac_cv_type_int16_t=yes
  19711. fi
  19712. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19713. else
  19714. $as_echo "$as_me: failed program was:" >&5
  19715. sed 's/^/| /' conftest.$ac_ext >&5
  19716. fi
  19717. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19718. fi
  19719. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
  19720. $as_echo "$ac_cv_type_int16_t" >&6; }
  19721. if test "x$ac_cv_type_int16_t" = x""yes; then
  19722. scm_stdint_has_int16=1
  19723. fi
  19724. { $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
  19725. $as_echo_n "checking for uint16_t... " >&6; }
  19726. if test "${ac_cv_type_uint16_t+set}" = set; then
  19727. $as_echo_n "(cached) " >&6
  19728. else
  19729. ac_cv_type_uint16_t=no
  19730. cat >conftest.$ac_ext <<_ACEOF
  19731. /* confdefs.h. */
  19732. _ACEOF
  19733. cat confdefs.h >>conftest.$ac_ext
  19734. cat >>conftest.$ac_ext <<_ACEOF
  19735. /* end confdefs.h. */
  19736. #include <stdint.h>
  19737. int
  19738. main ()
  19739. {
  19740. if (sizeof (uint16_t))
  19741. return 0;
  19742. ;
  19743. return 0;
  19744. }
  19745. _ACEOF
  19746. rm -f conftest.$ac_objext
  19747. if { (ac_try="$ac_compile"
  19748. case "(($ac_try" in
  19749. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19750. *) ac_try_echo=$ac_try;;
  19751. esac
  19752. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19753. $as_echo "$ac_try_echo") >&5
  19754. (eval "$ac_compile") 2>conftest.er1
  19755. ac_status=$?
  19756. grep -v '^ *+' conftest.er1 >conftest.err
  19757. rm -f conftest.er1
  19758. cat conftest.err >&5
  19759. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19760. (exit $ac_status); } && {
  19761. test -z "$ac_c_werror_flag" ||
  19762. test ! -s conftest.err
  19763. } && test -s conftest.$ac_objext; then
  19764. cat >conftest.$ac_ext <<_ACEOF
  19765. /* confdefs.h. */
  19766. _ACEOF
  19767. cat confdefs.h >>conftest.$ac_ext
  19768. cat >>conftest.$ac_ext <<_ACEOF
  19769. /* end confdefs.h. */
  19770. #include <stdint.h>
  19771. int
  19772. main ()
  19773. {
  19774. if (sizeof ((uint16_t)))
  19775. return 0;
  19776. ;
  19777. return 0;
  19778. }
  19779. _ACEOF
  19780. rm -f conftest.$ac_objext
  19781. if { (ac_try="$ac_compile"
  19782. case "(($ac_try" in
  19783. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19784. *) ac_try_echo=$ac_try;;
  19785. esac
  19786. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19787. $as_echo "$ac_try_echo") >&5
  19788. (eval "$ac_compile") 2>conftest.er1
  19789. ac_status=$?
  19790. grep -v '^ *+' conftest.er1 >conftest.err
  19791. rm -f conftest.er1
  19792. cat conftest.err >&5
  19793. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19794. (exit $ac_status); } && {
  19795. test -z "$ac_c_werror_flag" ||
  19796. test ! -s conftest.err
  19797. } && test -s conftest.$ac_objext; then
  19798. :
  19799. else
  19800. $as_echo "$as_me: failed program was:" >&5
  19801. sed 's/^/| /' conftest.$ac_ext >&5
  19802. ac_cv_type_uint16_t=yes
  19803. fi
  19804. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19805. else
  19806. $as_echo "$as_me: failed program was:" >&5
  19807. sed 's/^/| /' conftest.$ac_ext >&5
  19808. fi
  19809. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19810. fi
  19811. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
  19812. $as_echo "$ac_cv_type_uint16_t" >&6; }
  19813. if test "x$ac_cv_type_uint16_t" = x""yes; then
  19814. scm_stdint_has_uint16=1
  19815. fi
  19816. { $as_echo "$as_me:$LINENO: checking for int32_t" >&5
  19817. $as_echo_n "checking for int32_t... " >&6; }
  19818. if test "${ac_cv_type_int32_t+set}" = set; then
  19819. $as_echo_n "(cached) " >&6
  19820. else
  19821. ac_cv_type_int32_t=no
  19822. cat >conftest.$ac_ext <<_ACEOF
  19823. /* confdefs.h. */
  19824. _ACEOF
  19825. cat confdefs.h >>conftest.$ac_ext
  19826. cat >>conftest.$ac_ext <<_ACEOF
  19827. /* end confdefs.h. */
  19828. #include <stdint.h>
  19829. int
  19830. main ()
  19831. {
  19832. if (sizeof (int32_t))
  19833. return 0;
  19834. ;
  19835. return 0;
  19836. }
  19837. _ACEOF
  19838. rm -f conftest.$ac_objext
  19839. if { (ac_try="$ac_compile"
  19840. case "(($ac_try" in
  19841. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19842. *) ac_try_echo=$ac_try;;
  19843. esac
  19844. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19845. $as_echo "$ac_try_echo") >&5
  19846. (eval "$ac_compile") 2>conftest.er1
  19847. ac_status=$?
  19848. grep -v '^ *+' conftest.er1 >conftest.err
  19849. rm -f conftest.er1
  19850. cat conftest.err >&5
  19851. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19852. (exit $ac_status); } && {
  19853. test -z "$ac_c_werror_flag" ||
  19854. test ! -s conftest.err
  19855. } && test -s conftest.$ac_objext; then
  19856. cat >conftest.$ac_ext <<_ACEOF
  19857. /* confdefs.h. */
  19858. _ACEOF
  19859. cat confdefs.h >>conftest.$ac_ext
  19860. cat >>conftest.$ac_ext <<_ACEOF
  19861. /* end confdefs.h. */
  19862. #include <stdint.h>
  19863. int
  19864. main ()
  19865. {
  19866. if (sizeof ((int32_t)))
  19867. return 0;
  19868. ;
  19869. return 0;
  19870. }
  19871. _ACEOF
  19872. rm -f conftest.$ac_objext
  19873. if { (ac_try="$ac_compile"
  19874. case "(($ac_try" in
  19875. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19876. *) ac_try_echo=$ac_try;;
  19877. esac
  19878. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19879. $as_echo "$ac_try_echo") >&5
  19880. (eval "$ac_compile") 2>conftest.er1
  19881. ac_status=$?
  19882. grep -v '^ *+' conftest.er1 >conftest.err
  19883. rm -f conftest.er1
  19884. cat conftest.err >&5
  19885. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19886. (exit $ac_status); } && {
  19887. test -z "$ac_c_werror_flag" ||
  19888. test ! -s conftest.err
  19889. } && test -s conftest.$ac_objext; then
  19890. :
  19891. else
  19892. $as_echo "$as_me: failed program was:" >&5
  19893. sed 's/^/| /' conftest.$ac_ext >&5
  19894. ac_cv_type_int32_t=yes
  19895. fi
  19896. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19897. else
  19898. $as_echo "$as_me: failed program was:" >&5
  19899. sed 's/^/| /' conftest.$ac_ext >&5
  19900. fi
  19901. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19902. fi
  19903. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
  19904. $as_echo "$ac_cv_type_int32_t" >&6; }
  19905. if test "x$ac_cv_type_int32_t" = x""yes; then
  19906. scm_stdint_has_int32=1
  19907. fi
  19908. { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
  19909. $as_echo_n "checking for uint32_t... " >&6; }
  19910. if test "${ac_cv_type_uint32_t+set}" = set; then
  19911. $as_echo_n "(cached) " >&6
  19912. else
  19913. ac_cv_type_uint32_t=no
  19914. cat >conftest.$ac_ext <<_ACEOF
  19915. /* confdefs.h. */
  19916. _ACEOF
  19917. cat confdefs.h >>conftest.$ac_ext
  19918. cat >>conftest.$ac_ext <<_ACEOF
  19919. /* end confdefs.h. */
  19920. #include <stdint.h>
  19921. int
  19922. main ()
  19923. {
  19924. if (sizeof (uint32_t))
  19925. return 0;
  19926. ;
  19927. return 0;
  19928. }
  19929. _ACEOF
  19930. rm -f conftest.$ac_objext
  19931. if { (ac_try="$ac_compile"
  19932. case "(($ac_try" in
  19933. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19934. *) ac_try_echo=$ac_try;;
  19935. esac
  19936. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19937. $as_echo "$ac_try_echo") >&5
  19938. (eval "$ac_compile") 2>conftest.er1
  19939. ac_status=$?
  19940. grep -v '^ *+' conftest.er1 >conftest.err
  19941. rm -f conftest.er1
  19942. cat conftest.err >&5
  19943. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19944. (exit $ac_status); } && {
  19945. test -z "$ac_c_werror_flag" ||
  19946. test ! -s conftest.err
  19947. } && test -s conftest.$ac_objext; then
  19948. cat >conftest.$ac_ext <<_ACEOF
  19949. /* confdefs.h. */
  19950. _ACEOF
  19951. cat confdefs.h >>conftest.$ac_ext
  19952. cat >>conftest.$ac_ext <<_ACEOF
  19953. /* end confdefs.h. */
  19954. #include <stdint.h>
  19955. int
  19956. main ()
  19957. {
  19958. if (sizeof ((uint32_t)))
  19959. return 0;
  19960. ;
  19961. return 0;
  19962. }
  19963. _ACEOF
  19964. rm -f conftest.$ac_objext
  19965. if { (ac_try="$ac_compile"
  19966. case "(($ac_try" in
  19967. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19968. *) ac_try_echo=$ac_try;;
  19969. esac
  19970. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19971. $as_echo "$ac_try_echo") >&5
  19972. (eval "$ac_compile") 2>conftest.er1
  19973. ac_status=$?
  19974. grep -v '^ *+' conftest.er1 >conftest.err
  19975. rm -f conftest.er1
  19976. cat conftest.err >&5
  19977. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19978. (exit $ac_status); } && {
  19979. test -z "$ac_c_werror_flag" ||
  19980. test ! -s conftest.err
  19981. } && test -s conftest.$ac_objext; then
  19982. :
  19983. else
  19984. $as_echo "$as_me: failed program was:" >&5
  19985. sed 's/^/| /' conftest.$ac_ext >&5
  19986. ac_cv_type_uint32_t=yes
  19987. fi
  19988. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19989. else
  19990. $as_echo "$as_me: failed program was:" >&5
  19991. sed 's/^/| /' conftest.$ac_ext >&5
  19992. fi
  19993. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19994. fi
  19995. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
  19996. $as_echo "$ac_cv_type_uint32_t" >&6; }
  19997. if test "x$ac_cv_type_uint32_t" = x""yes; then
  19998. scm_stdint_has_uint32=1
  19999. fi
  20000. { $as_echo "$as_me:$LINENO: checking for int64_t" >&5
  20001. $as_echo_n "checking for int64_t... " >&6; }
  20002. if test "${ac_cv_type_int64_t+set}" = set; then
  20003. $as_echo_n "(cached) " >&6
  20004. else
  20005. ac_cv_type_int64_t=no
  20006. cat >conftest.$ac_ext <<_ACEOF
  20007. /* confdefs.h. */
  20008. _ACEOF
  20009. cat confdefs.h >>conftest.$ac_ext
  20010. cat >>conftest.$ac_ext <<_ACEOF
  20011. /* end confdefs.h. */
  20012. #include <stdint.h>
  20013. int
  20014. main ()
  20015. {
  20016. if (sizeof (int64_t))
  20017. return 0;
  20018. ;
  20019. return 0;
  20020. }
  20021. _ACEOF
  20022. rm -f conftest.$ac_objext
  20023. if { (ac_try="$ac_compile"
  20024. case "(($ac_try" in
  20025. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20026. *) ac_try_echo=$ac_try;;
  20027. esac
  20028. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20029. $as_echo "$ac_try_echo") >&5
  20030. (eval "$ac_compile") 2>conftest.er1
  20031. ac_status=$?
  20032. grep -v '^ *+' conftest.er1 >conftest.err
  20033. rm -f conftest.er1
  20034. cat conftest.err >&5
  20035. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20036. (exit $ac_status); } && {
  20037. test -z "$ac_c_werror_flag" ||
  20038. test ! -s conftest.err
  20039. } && test -s conftest.$ac_objext; then
  20040. cat >conftest.$ac_ext <<_ACEOF
  20041. /* confdefs.h. */
  20042. _ACEOF
  20043. cat confdefs.h >>conftest.$ac_ext
  20044. cat >>conftest.$ac_ext <<_ACEOF
  20045. /* end confdefs.h. */
  20046. #include <stdint.h>
  20047. int
  20048. main ()
  20049. {
  20050. if (sizeof ((int64_t)))
  20051. return 0;
  20052. ;
  20053. return 0;
  20054. }
  20055. _ACEOF
  20056. rm -f conftest.$ac_objext
  20057. if { (ac_try="$ac_compile"
  20058. case "(($ac_try" in
  20059. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20060. *) ac_try_echo=$ac_try;;
  20061. esac
  20062. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20063. $as_echo "$ac_try_echo") >&5
  20064. (eval "$ac_compile") 2>conftest.er1
  20065. ac_status=$?
  20066. grep -v '^ *+' conftest.er1 >conftest.err
  20067. rm -f conftest.er1
  20068. cat conftest.err >&5
  20069. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20070. (exit $ac_status); } && {
  20071. test -z "$ac_c_werror_flag" ||
  20072. test ! -s conftest.err
  20073. } && test -s conftest.$ac_objext; then
  20074. :
  20075. else
  20076. $as_echo "$as_me: failed program was:" >&5
  20077. sed 's/^/| /' conftest.$ac_ext >&5
  20078. ac_cv_type_int64_t=yes
  20079. fi
  20080. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20081. else
  20082. $as_echo "$as_me: failed program was:" >&5
  20083. sed 's/^/| /' conftest.$ac_ext >&5
  20084. fi
  20085. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20086. fi
  20087. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
  20088. $as_echo "$ac_cv_type_int64_t" >&6; }
  20089. if test "x$ac_cv_type_int64_t" = x""yes; then
  20090. scm_stdint_has_int64=1
  20091. fi
  20092. { $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
  20093. $as_echo_n "checking for uint64_t... " >&6; }
  20094. if test "${ac_cv_type_uint64_t+set}" = set; then
  20095. $as_echo_n "(cached) " >&6
  20096. else
  20097. ac_cv_type_uint64_t=no
  20098. cat >conftest.$ac_ext <<_ACEOF
  20099. /* confdefs.h. */
  20100. _ACEOF
  20101. cat confdefs.h >>conftest.$ac_ext
  20102. cat >>conftest.$ac_ext <<_ACEOF
  20103. /* end confdefs.h. */
  20104. #include <stdint.h>
  20105. int
  20106. main ()
  20107. {
  20108. if (sizeof (uint64_t))
  20109. return 0;
  20110. ;
  20111. return 0;
  20112. }
  20113. _ACEOF
  20114. rm -f conftest.$ac_objext
  20115. if { (ac_try="$ac_compile"
  20116. case "(($ac_try" in
  20117. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20118. *) ac_try_echo=$ac_try;;
  20119. esac
  20120. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20121. $as_echo "$ac_try_echo") >&5
  20122. (eval "$ac_compile") 2>conftest.er1
  20123. ac_status=$?
  20124. grep -v '^ *+' conftest.er1 >conftest.err
  20125. rm -f conftest.er1
  20126. cat conftest.err >&5
  20127. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20128. (exit $ac_status); } && {
  20129. test -z "$ac_c_werror_flag" ||
  20130. test ! -s conftest.err
  20131. } && test -s conftest.$ac_objext; then
  20132. cat >conftest.$ac_ext <<_ACEOF
  20133. /* confdefs.h. */
  20134. _ACEOF
  20135. cat confdefs.h >>conftest.$ac_ext
  20136. cat >>conftest.$ac_ext <<_ACEOF
  20137. /* end confdefs.h. */
  20138. #include <stdint.h>
  20139. int
  20140. main ()
  20141. {
  20142. if (sizeof ((uint64_t)))
  20143. return 0;
  20144. ;
  20145. return 0;
  20146. }
  20147. _ACEOF
  20148. rm -f conftest.$ac_objext
  20149. if { (ac_try="$ac_compile"
  20150. case "(($ac_try" in
  20151. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20152. *) ac_try_echo=$ac_try;;
  20153. esac
  20154. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20155. $as_echo "$ac_try_echo") >&5
  20156. (eval "$ac_compile") 2>conftest.er1
  20157. ac_status=$?
  20158. grep -v '^ *+' conftest.er1 >conftest.err
  20159. rm -f conftest.er1
  20160. cat conftest.err >&5
  20161. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20162. (exit $ac_status); } && {
  20163. test -z "$ac_c_werror_flag" ||
  20164. test ! -s conftest.err
  20165. } && test -s conftest.$ac_objext; then
  20166. :
  20167. else
  20168. $as_echo "$as_me: failed program was:" >&5
  20169. sed 's/^/| /' conftest.$ac_ext >&5
  20170. ac_cv_type_uint64_t=yes
  20171. fi
  20172. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20173. else
  20174. $as_echo "$as_me: failed program was:" >&5
  20175. sed 's/^/| /' conftest.$ac_ext >&5
  20176. fi
  20177. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20178. fi
  20179. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
  20180. $as_echo "$ac_cv_type_uint64_t" >&6; }
  20181. if test "x$ac_cv_type_uint64_t" = x""yes; then
  20182. scm_stdint_has_uint64=1
  20183. fi
  20184. { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
  20185. $as_echo_n "checking for intmax_t... " >&6; }
  20186. if test "${ac_cv_type_intmax_t+set}" = set; then
  20187. $as_echo_n "(cached) " >&6
  20188. else
  20189. ac_cv_type_intmax_t=no
  20190. cat >conftest.$ac_ext <<_ACEOF
  20191. /* confdefs.h. */
  20192. _ACEOF
  20193. cat confdefs.h >>conftest.$ac_ext
  20194. cat >>conftest.$ac_ext <<_ACEOF
  20195. /* end confdefs.h. */
  20196. #include <stdint.h>
  20197. int
  20198. main ()
  20199. {
  20200. if (sizeof (intmax_t))
  20201. return 0;
  20202. ;
  20203. return 0;
  20204. }
  20205. _ACEOF
  20206. rm -f conftest.$ac_objext
  20207. if { (ac_try="$ac_compile"
  20208. case "(($ac_try" in
  20209. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20210. *) ac_try_echo=$ac_try;;
  20211. esac
  20212. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20213. $as_echo "$ac_try_echo") >&5
  20214. (eval "$ac_compile") 2>conftest.er1
  20215. ac_status=$?
  20216. grep -v '^ *+' conftest.er1 >conftest.err
  20217. rm -f conftest.er1
  20218. cat conftest.err >&5
  20219. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20220. (exit $ac_status); } && {
  20221. test -z "$ac_c_werror_flag" ||
  20222. test ! -s conftest.err
  20223. } && test -s conftest.$ac_objext; then
  20224. cat >conftest.$ac_ext <<_ACEOF
  20225. /* confdefs.h. */
  20226. _ACEOF
  20227. cat confdefs.h >>conftest.$ac_ext
  20228. cat >>conftest.$ac_ext <<_ACEOF
  20229. /* end confdefs.h. */
  20230. #include <stdint.h>
  20231. int
  20232. main ()
  20233. {
  20234. if (sizeof ((intmax_t)))
  20235. return 0;
  20236. ;
  20237. return 0;
  20238. }
  20239. _ACEOF
  20240. rm -f conftest.$ac_objext
  20241. if { (ac_try="$ac_compile"
  20242. case "(($ac_try" in
  20243. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20244. *) ac_try_echo=$ac_try;;
  20245. esac
  20246. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20247. $as_echo "$ac_try_echo") >&5
  20248. (eval "$ac_compile") 2>conftest.er1
  20249. ac_status=$?
  20250. grep -v '^ *+' conftest.er1 >conftest.err
  20251. rm -f conftest.er1
  20252. cat conftest.err >&5
  20253. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20254. (exit $ac_status); } && {
  20255. test -z "$ac_c_werror_flag" ||
  20256. test ! -s conftest.err
  20257. } && test -s conftest.$ac_objext; then
  20258. :
  20259. else
  20260. $as_echo "$as_me: failed program was:" >&5
  20261. sed 's/^/| /' conftest.$ac_ext >&5
  20262. ac_cv_type_intmax_t=yes
  20263. fi
  20264. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20265. else
  20266. $as_echo "$as_me: failed program was:" >&5
  20267. sed 's/^/| /' conftest.$ac_ext >&5
  20268. fi
  20269. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20270. fi
  20271. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
  20272. $as_echo "$ac_cv_type_intmax_t" >&6; }
  20273. if test "x$ac_cv_type_intmax_t" = x""yes; then
  20274. scm_stdint_has_intmax=1
  20275. fi
  20276. { $as_echo "$as_me:$LINENO: checking for uintmax_t" >&5
  20277. $as_echo_n "checking for uintmax_t... " >&6; }
  20278. if test "${ac_cv_type_uintmax_t+set}" = set; then
  20279. $as_echo_n "(cached) " >&6
  20280. else
  20281. ac_cv_type_uintmax_t=no
  20282. cat >conftest.$ac_ext <<_ACEOF
  20283. /* confdefs.h. */
  20284. _ACEOF
  20285. cat confdefs.h >>conftest.$ac_ext
  20286. cat >>conftest.$ac_ext <<_ACEOF
  20287. /* end confdefs.h. */
  20288. #include <stdint.h>
  20289. int
  20290. main ()
  20291. {
  20292. if (sizeof (uintmax_t))
  20293. return 0;
  20294. ;
  20295. return 0;
  20296. }
  20297. _ACEOF
  20298. rm -f conftest.$ac_objext
  20299. if { (ac_try="$ac_compile"
  20300. case "(($ac_try" in
  20301. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20302. *) ac_try_echo=$ac_try;;
  20303. esac
  20304. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20305. $as_echo "$ac_try_echo") >&5
  20306. (eval "$ac_compile") 2>conftest.er1
  20307. ac_status=$?
  20308. grep -v '^ *+' conftest.er1 >conftest.err
  20309. rm -f conftest.er1
  20310. cat conftest.err >&5
  20311. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20312. (exit $ac_status); } && {
  20313. test -z "$ac_c_werror_flag" ||
  20314. test ! -s conftest.err
  20315. } && test -s conftest.$ac_objext; then
  20316. cat >conftest.$ac_ext <<_ACEOF
  20317. /* confdefs.h. */
  20318. _ACEOF
  20319. cat confdefs.h >>conftest.$ac_ext
  20320. cat >>conftest.$ac_ext <<_ACEOF
  20321. /* end confdefs.h. */
  20322. #include <stdint.h>
  20323. int
  20324. main ()
  20325. {
  20326. if (sizeof ((uintmax_t)))
  20327. return 0;
  20328. ;
  20329. return 0;
  20330. }
  20331. _ACEOF
  20332. rm -f conftest.$ac_objext
  20333. if { (ac_try="$ac_compile"
  20334. case "(($ac_try" in
  20335. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20336. *) ac_try_echo=$ac_try;;
  20337. esac
  20338. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20339. $as_echo "$ac_try_echo") >&5
  20340. (eval "$ac_compile") 2>conftest.er1
  20341. ac_status=$?
  20342. grep -v '^ *+' conftest.er1 >conftest.err
  20343. rm -f conftest.er1
  20344. cat conftest.err >&5
  20345. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20346. (exit $ac_status); } && {
  20347. test -z "$ac_c_werror_flag" ||
  20348. test ! -s conftest.err
  20349. } && test -s conftest.$ac_objext; then
  20350. :
  20351. else
  20352. $as_echo "$as_me: failed program was:" >&5
  20353. sed 's/^/| /' conftest.$ac_ext >&5
  20354. ac_cv_type_uintmax_t=yes
  20355. fi
  20356. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20357. else
  20358. $as_echo "$as_me: failed program was:" >&5
  20359. sed 's/^/| /' conftest.$ac_ext >&5
  20360. fi
  20361. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20362. fi
  20363. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
  20364. $as_echo "$ac_cv_type_uintmax_t" >&6; }
  20365. if test "x$ac_cv_type_uintmax_t" = x""yes; then
  20366. scm_stdint_has_uintmax=1
  20367. fi
  20368. fi
  20369. # so we don't get confused by the cache (wish there was a better way
  20370. # to check particular headers for the same type...)
  20371. unset ac_cv_type_int8_t
  20372. unset ac_cv_type_uint8_t
  20373. unset ac_cv_type_int16_t
  20374. unset ac_cv_type_uint16_t
  20375. unset ac_cv_type_int32_t
  20376. unset ac_cv_type_uint32_t
  20377. unset ac_cv_type_int64_t
  20378. unset ac_cv_type_uint64_t
  20379. unset ac_cv_type_intmax_t
  20380. unset ac_cv_type_uintmax_t
  20381. ### See what's provided by inttypes.h
  20382. if test "$ac_cv_header_inttypes_h" = yes; then
  20383. { $as_echo "$as_me:$LINENO: checking for int8_t" >&5
  20384. $as_echo_n "checking for int8_t... " >&6; }
  20385. if test "${ac_cv_type_int8_t+set}" = set; then
  20386. $as_echo_n "(cached) " >&6
  20387. else
  20388. ac_cv_type_int8_t=no
  20389. cat >conftest.$ac_ext <<_ACEOF
  20390. /* confdefs.h. */
  20391. _ACEOF
  20392. cat confdefs.h >>conftest.$ac_ext
  20393. cat >>conftest.$ac_ext <<_ACEOF
  20394. /* end confdefs.h. */
  20395. #include <inttypes.h>
  20396. int
  20397. main ()
  20398. {
  20399. if (sizeof (int8_t))
  20400. return 0;
  20401. ;
  20402. return 0;
  20403. }
  20404. _ACEOF
  20405. rm -f conftest.$ac_objext
  20406. if { (ac_try="$ac_compile"
  20407. case "(($ac_try" in
  20408. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20409. *) ac_try_echo=$ac_try;;
  20410. esac
  20411. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20412. $as_echo "$ac_try_echo") >&5
  20413. (eval "$ac_compile") 2>conftest.er1
  20414. ac_status=$?
  20415. grep -v '^ *+' conftest.er1 >conftest.err
  20416. rm -f conftest.er1
  20417. cat conftest.err >&5
  20418. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20419. (exit $ac_status); } && {
  20420. test -z "$ac_c_werror_flag" ||
  20421. test ! -s conftest.err
  20422. } && test -s conftest.$ac_objext; then
  20423. cat >conftest.$ac_ext <<_ACEOF
  20424. /* confdefs.h. */
  20425. _ACEOF
  20426. cat confdefs.h >>conftest.$ac_ext
  20427. cat >>conftest.$ac_ext <<_ACEOF
  20428. /* end confdefs.h. */
  20429. #include <inttypes.h>
  20430. int
  20431. main ()
  20432. {
  20433. if (sizeof ((int8_t)))
  20434. return 0;
  20435. ;
  20436. return 0;
  20437. }
  20438. _ACEOF
  20439. rm -f conftest.$ac_objext
  20440. if { (ac_try="$ac_compile"
  20441. case "(($ac_try" in
  20442. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20443. *) ac_try_echo=$ac_try;;
  20444. esac
  20445. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20446. $as_echo "$ac_try_echo") >&5
  20447. (eval "$ac_compile") 2>conftest.er1
  20448. ac_status=$?
  20449. grep -v '^ *+' conftest.er1 >conftest.err
  20450. rm -f conftest.er1
  20451. cat conftest.err >&5
  20452. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20453. (exit $ac_status); } && {
  20454. test -z "$ac_c_werror_flag" ||
  20455. test ! -s conftest.err
  20456. } && test -s conftest.$ac_objext; then
  20457. :
  20458. else
  20459. $as_echo "$as_me: failed program was:" >&5
  20460. sed 's/^/| /' conftest.$ac_ext >&5
  20461. ac_cv_type_int8_t=yes
  20462. fi
  20463. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20464. else
  20465. $as_echo "$as_me: failed program was:" >&5
  20466. sed 's/^/| /' conftest.$ac_ext >&5
  20467. fi
  20468. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20469. fi
  20470. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
  20471. $as_echo "$ac_cv_type_int8_t" >&6; }
  20472. if test "x$ac_cv_type_int8_t" = x""yes; then
  20473. scm_inttypes_has_int8=1
  20474. fi
  20475. { $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
  20476. $as_echo_n "checking for uint8_t... " >&6; }
  20477. if test "${ac_cv_type_uint8_t+set}" = set; then
  20478. $as_echo_n "(cached) " >&6
  20479. else
  20480. ac_cv_type_uint8_t=no
  20481. cat >conftest.$ac_ext <<_ACEOF
  20482. /* confdefs.h. */
  20483. _ACEOF
  20484. cat confdefs.h >>conftest.$ac_ext
  20485. cat >>conftest.$ac_ext <<_ACEOF
  20486. /* end confdefs.h. */
  20487. #include <inttypes.h>
  20488. int
  20489. main ()
  20490. {
  20491. if (sizeof (uint8_t))
  20492. return 0;
  20493. ;
  20494. return 0;
  20495. }
  20496. _ACEOF
  20497. rm -f conftest.$ac_objext
  20498. if { (ac_try="$ac_compile"
  20499. case "(($ac_try" in
  20500. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20501. *) ac_try_echo=$ac_try;;
  20502. esac
  20503. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20504. $as_echo "$ac_try_echo") >&5
  20505. (eval "$ac_compile") 2>conftest.er1
  20506. ac_status=$?
  20507. grep -v '^ *+' conftest.er1 >conftest.err
  20508. rm -f conftest.er1
  20509. cat conftest.err >&5
  20510. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20511. (exit $ac_status); } && {
  20512. test -z "$ac_c_werror_flag" ||
  20513. test ! -s conftest.err
  20514. } && test -s conftest.$ac_objext; then
  20515. cat >conftest.$ac_ext <<_ACEOF
  20516. /* confdefs.h. */
  20517. _ACEOF
  20518. cat confdefs.h >>conftest.$ac_ext
  20519. cat >>conftest.$ac_ext <<_ACEOF
  20520. /* end confdefs.h. */
  20521. #include <inttypes.h>
  20522. int
  20523. main ()
  20524. {
  20525. if (sizeof ((uint8_t)))
  20526. return 0;
  20527. ;
  20528. return 0;
  20529. }
  20530. _ACEOF
  20531. rm -f conftest.$ac_objext
  20532. if { (ac_try="$ac_compile"
  20533. case "(($ac_try" in
  20534. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20535. *) ac_try_echo=$ac_try;;
  20536. esac
  20537. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20538. $as_echo "$ac_try_echo") >&5
  20539. (eval "$ac_compile") 2>conftest.er1
  20540. ac_status=$?
  20541. grep -v '^ *+' conftest.er1 >conftest.err
  20542. rm -f conftest.er1
  20543. cat conftest.err >&5
  20544. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20545. (exit $ac_status); } && {
  20546. test -z "$ac_c_werror_flag" ||
  20547. test ! -s conftest.err
  20548. } && test -s conftest.$ac_objext; then
  20549. :
  20550. else
  20551. $as_echo "$as_me: failed program was:" >&5
  20552. sed 's/^/| /' conftest.$ac_ext >&5
  20553. ac_cv_type_uint8_t=yes
  20554. fi
  20555. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20556. else
  20557. $as_echo "$as_me: failed program was:" >&5
  20558. sed 's/^/| /' conftest.$ac_ext >&5
  20559. fi
  20560. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20561. fi
  20562. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
  20563. $as_echo "$ac_cv_type_uint8_t" >&6; }
  20564. if test "x$ac_cv_type_uint8_t" = x""yes; then
  20565. scm_inttypes_has_uint8=1
  20566. fi
  20567. { $as_echo "$as_me:$LINENO: checking for int16_t" >&5
  20568. $as_echo_n "checking for int16_t... " >&6; }
  20569. if test "${ac_cv_type_int16_t+set}" = set; then
  20570. $as_echo_n "(cached) " >&6
  20571. else
  20572. ac_cv_type_int16_t=no
  20573. cat >conftest.$ac_ext <<_ACEOF
  20574. /* confdefs.h. */
  20575. _ACEOF
  20576. cat confdefs.h >>conftest.$ac_ext
  20577. cat >>conftest.$ac_ext <<_ACEOF
  20578. /* end confdefs.h. */
  20579. #include <inttypes.h>
  20580. int
  20581. main ()
  20582. {
  20583. if (sizeof (int16_t))
  20584. return 0;
  20585. ;
  20586. return 0;
  20587. }
  20588. _ACEOF
  20589. rm -f conftest.$ac_objext
  20590. if { (ac_try="$ac_compile"
  20591. case "(($ac_try" in
  20592. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20593. *) ac_try_echo=$ac_try;;
  20594. esac
  20595. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20596. $as_echo "$ac_try_echo") >&5
  20597. (eval "$ac_compile") 2>conftest.er1
  20598. ac_status=$?
  20599. grep -v '^ *+' conftest.er1 >conftest.err
  20600. rm -f conftest.er1
  20601. cat conftest.err >&5
  20602. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20603. (exit $ac_status); } && {
  20604. test -z "$ac_c_werror_flag" ||
  20605. test ! -s conftest.err
  20606. } && test -s conftest.$ac_objext; then
  20607. cat >conftest.$ac_ext <<_ACEOF
  20608. /* confdefs.h. */
  20609. _ACEOF
  20610. cat confdefs.h >>conftest.$ac_ext
  20611. cat >>conftest.$ac_ext <<_ACEOF
  20612. /* end confdefs.h. */
  20613. #include <inttypes.h>
  20614. int
  20615. main ()
  20616. {
  20617. if (sizeof ((int16_t)))
  20618. return 0;
  20619. ;
  20620. return 0;
  20621. }
  20622. _ACEOF
  20623. rm -f conftest.$ac_objext
  20624. if { (ac_try="$ac_compile"
  20625. case "(($ac_try" in
  20626. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20627. *) ac_try_echo=$ac_try;;
  20628. esac
  20629. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20630. $as_echo "$ac_try_echo") >&5
  20631. (eval "$ac_compile") 2>conftest.er1
  20632. ac_status=$?
  20633. grep -v '^ *+' conftest.er1 >conftest.err
  20634. rm -f conftest.er1
  20635. cat conftest.err >&5
  20636. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20637. (exit $ac_status); } && {
  20638. test -z "$ac_c_werror_flag" ||
  20639. test ! -s conftest.err
  20640. } && test -s conftest.$ac_objext; then
  20641. :
  20642. else
  20643. $as_echo "$as_me: failed program was:" >&5
  20644. sed 's/^/| /' conftest.$ac_ext >&5
  20645. ac_cv_type_int16_t=yes
  20646. fi
  20647. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20648. else
  20649. $as_echo "$as_me: failed program was:" >&5
  20650. sed 's/^/| /' conftest.$ac_ext >&5
  20651. fi
  20652. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20653. fi
  20654. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
  20655. $as_echo "$ac_cv_type_int16_t" >&6; }
  20656. if test "x$ac_cv_type_int16_t" = x""yes; then
  20657. scm_inttypes_has_int16=1
  20658. fi
  20659. { $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
  20660. $as_echo_n "checking for uint16_t... " >&6; }
  20661. if test "${ac_cv_type_uint16_t+set}" = set; then
  20662. $as_echo_n "(cached) " >&6
  20663. else
  20664. ac_cv_type_uint16_t=no
  20665. cat >conftest.$ac_ext <<_ACEOF
  20666. /* confdefs.h. */
  20667. _ACEOF
  20668. cat confdefs.h >>conftest.$ac_ext
  20669. cat >>conftest.$ac_ext <<_ACEOF
  20670. /* end confdefs.h. */
  20671. #include <inttypes.h>
  20672. int
  20673. main ()
  20674. {
  20675. if (sizeof (uint16_t))
  20676. return 0;
  20677. ;
  20678. return 0;
  20679. }
  20680. _ACEOF
  20681. rm -f conftest.$ac_objext
  20682. if { (ac_try="$ac_compile"
  20683. case "(($ac_try" in
  20684. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20685. *) ac_try_echo=$ac_try;;
  20686. esac
  20687. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20688. $as_echo "$ac_try_echo") >&5
  20689. (eval "$ac_compile") 2>conftest.er1
  20690. ac_status=$?
  20691. grep -v '^ *+' conftest.er1 >conftest.err
  20692. rm -f conftest.er1
  20693. cat conftest.err >&5
  20694. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20695. (exit $ac_status); } && {
  20696. test -z "$ac_c_werror_flag" ||
  20697. test ! -s conftest.err
  20698. } && test -s conftest.$ac_objext; then
  20699. cat >conftest.$ac_ext <<_ACEOF
  20700. /* confdefs.h. */
  20701. _ACEOF
  20702. cat confdefs.h >>conftest.$ac_ext
  20703. cat >>conftest.$ac_ext <<_ACEOF
  20704. /* end confdefs.h. */
  20705. #include <inttypes.h>
  20706. int
  20707. main ()
  20708. {
  20709. if (sizeof ((uint16_t)))
  20710. return 0;
  20711. ;
  20712. return 0;
  20713. }
  20714. _ACEOF
  20715. rm -f conftest.$ac_objext
  20716. if { (ac_try="$ac_compile"
  20717. case "(($ac_try" in
  20718. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20719. *) ac_try_echo=$ac_try;;
  20720. esac
  20721. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20722. $as_echo "$ac_try_echo") >&5
  20723. (eval "$ac_compile") 2>conftest.er1
  20724. ac_status=$?
  20725. grep -v '^ *+' conftest.er1 >conftest.err
  20726. rm -f conftest.er1
  20727. cat conftest.err >&5
  20728. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20729. (exit $ac_status); } && {
  20730. test -z "$ac_c_werror_flag" ||
  20731. test ! -s conftest.err
  20732. } && test -s conftest.$ac_objext; then
  20733. :
  20734. else
  20735. $as_echo "$as_me: failed program was:" >&5
  20736. sed 's/^/| /' conftest.$ac_ext >&5
  20737. ac_cv_type_uint16_t=yes
  20738. fi
  20739. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20740. else
  20741. $as_echo "$as_me: failed program was:" >&5
  20742. sed 's/^/| /' conftest.$ac_ext >&5
  20743. fi
  20744. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20745. fi
  20746. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
  20747. $as_echo "$ac_cv_type_uint16_t" >&6; }
  20748. if test "x$ac_cv_type_uint16_t" = x""yes; then
  20749. scm_inttypes_has_uint16=1
  20750. fi
  20751. { $as_echo "$as_me:$LINENO: checking for int32_t" >&5
  20752. $as_echo_n "checking for int32_t... " >&6; }
  20753. if test "${ac_cv_type_int32_t+set}" = set; then
  20754. $as_echo_n "(cached) " >&6
  20755. else
  20756. ac_cv_type_int32_t=no
  20757. cat >conftest.$ac_ext <<_ACEOF
  20758. /* confdefs.h. */
  20759. _ACEOF
  20760. cat confdefs.h >>conftest.$ac_ext
  20761. cat >>conftest.$ac_ext <<_ACEOF
  20762. /* end confdefs.h. */
  20763. #include <inttypes.h>
  20764. int
  20765. main ()
  20766. {
  20767. if (sizeof (int32_t))
  20768. return 0;
  20769. ;
  20770. return 0;
  20771. }
  20772. _ACEOF
  20773. rm -f conftest.$ac_objext
  20774. if { (ac_try="$ac_compile"
  20775. case "(($ac_try" in
  20776. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20777. *) ac_try_echo=$ac_try;;
  20778. esac
  20779. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20780. $as_echo "$ac_try_echo") >&5
  20781. (eval "$ac_compile") 2>conftest.er1
  20782. ac_status=$?
  20783. grep -v '^ *+' conftest.er1 >conftest.err
  20784. rm -f conftest.er1
  20785. cat conftest.err >&5
  20786. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20787. (exit $ac_status); } && {
  20788. test -z "$ac_c_werror_flag" ||
  20789. test ! -s conftest.err
  20790. } && test -s conftest.$ac_objext; then
  20791. cat >conftest.$ac_ext <<_ACEOF
  20792. /* confdefs.h. */
  20793. _ACEOF
  20794. cat confdefs.h >>conftest.$ac_ext
  20795. cat >>conftest.$ac_ext <<_ACEOF
  20796. /* end confdefs.h. */
  20797. #include <inttypes.h>
  20798. int
  20799. main ()
  20800. {
  20801. if (sizeof ((int32_t)))
  20802. return 0;
  20803. ;
  20804. return 0;
  20805. }
  20806. _ACEOF
  20807. rm -f conftest.$ac_objext
  20808. if { (ac_try="$ac_compile"
  20809. case "(($ac_try" in
  20810. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20811. *) ac_try_echo=$ac_try;;
  20812. esac
  20813. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20814. $as_echo "$ac_try_echo") >&5
  20815. (eval "$ac_compile") 2>conftest.er1
  20816. ac_status=$?
  20817. grep -v '^ *+' conftest.er1 >conftest.err
  20818. rm -f conftest.er1
  20819. cat conftest.err >&5
  20820. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20821. (exit $ac_status); } && {
  20822. test -z "$ac_c_werror_flag" ||
  20823. test ! -s conftest.err
  20824. } && test -s conftest.$ac_objext; then
  20825. :
  20826. else
  20827. $as_echo "$as_me: failed program was:" >&5
  20828. sed 's/^/| /' conftest.$ac_ext >&5
  20829. ac_cv_type_int32_t=yes
  20830. fi
  20831. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20832. else
  20833. $as_echo "$as_me: failed program was:" >&5
  20834. sed 's/^/| /' conftest.$ac_ext >&5
  20835. fi
  20836. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20837. fi
  20838. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
  20839. $as_echo "$ac_cv_type_int32_t" >&6; }
  20840. if test "x$ac_cv_type_int32_t" = x""yes; then
  20841. scm_inttypes_has_int32=1
  20842. fi
  20843. { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
  20844. $as_echo_n "checking for uint32_t... " >&6; }
  20845. if test "${ac_cv_type_uint32_t+set}" = set; then
  20846. $as_echo_n "(cached) " >&6
  20847. else
  20848. ac_cv_type_uint32_t=no
  20849. cat >conftest.$ac_ext <<_ACEOF
  20850. /* confdefs.h. */
  20851. _ACEOF
  20852. cat confdefs.h >>conftest.$ac_ext
  20853. cat >>conftest.$ac_ext <<_ACEOF
  20854. /* end confdefs.h. */
  20855. #include <inttypes.h>
  20856. int
  20857. main ()
  20858. {
  20859. if (sizeof (uint32_t))
  20860. return 0;
  20861. ;
  20862. return 0;
  20863. }
  20864. _ACEOF
  20865. rm -f conftest.$ac_objext
  20866. if { (ac_try="$ac_compile"
  20867. case "(($ac_try" in
  20868. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20869. *) ac_try_echo=$ac_try;;
  20870. esac
  20871. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20872. $as_echo "$ac_try_echo") >&5
  20873. (eval "$ac_compile") 2>conftest.er1
  20874. ac_status=$?
  20875. grep -v '^ *+' conftest.er1 >conftest.err
  20876. rm -f conftest.er1
  20877. cat conftest.err >&5
  20878. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20879. (exit $ac_status); } && {
  20880. test -z "$ac_c_werror_flag" ||
  20881. test ! -s conftest.err
  20882. } && test -s conftest.$ac_objext; then
  20883. cat >conftest.$ac_ext <<_ACEOF
  20884. /* confdefs.h. */
  20885. _ACEOF
  20886. cat confdefs.h >>conftest.$ac_ext
  20887. cat >>conftest.$ac_ext <<_ACEOF
  20888. /* end confdefs.h. */
  20889. #include <inttypes.h>
  20890. int
  20891. main ()
  20892. {
  20893. if (sizeof ((uint32_t)))
  20894. return 0;
  20895. ;
  20896. return 0;
  20897. }
  20898. _ACEOF
  20899. rm -f conftest.$ac_objext
  20900. if { (ac_try="$ac_compile"
  20901. case "(($ac_try" in
  20902. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20903. *) ac_try_echo=$ac_try;;
  20904. esac
  20905. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20906. $as_echo "$ac_try_echo") >&5
  20907. (eval "$ac_compile") 2>conftest.er1
  20908. ac_status=$?
  20909. grep -v '^ *+' conftest.er1 >conftest.err
  20910. rm -f conftest.er1
  20911. cat conftest.err >&5
  20912. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20913. (exit $ac_status); } && {
  20914. test -z "$ac_c_werror_flag" ||
  20915. test ! -s conftest.err
  20916. } && test -s conftest.$ac_objext; then
  20917. :
  20918. else
  20919. $as_echo "$as_me: failed program was:" >&5
  20920. sed 's/^/| /' conftest.$ac_ext >&5
  20921. ac_cv_type_uint32_t=yes
  20922. fi
  20923. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20924. else
  20925. $as_echo "$as_me: failed program was:" >&5
  20926. sed 's/^/| /' conftest.$ac_ext >&5
  20927. fi
  20928. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20929. fi
  20930. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
  20931. $as_echo "$ac_cv_type_uint32_t" >&6; }
  20932. if test "x$ac_cv_type_uint32_t" = x""yes; then
  20933. scm_inttypes_has_uint32=1
  20934. fi
  20935. { $as_echo "$as_me:$LINENO: checking for int64_t" >&5
  20936. $as_echo_n "checking for int64_t... " >&6; }
  20937. if test "${ac_cv_type_int64_t+set}" = set; then
  20938. $as_echo_n "(cached) " >&6
  20939. else
  20940. ac_cv_type_int64_t=no
  20941. cat >conftest.$ac_ext <<_ACEOF
  20942. /* confdefs.h. */
  20943. _ACEOF
  20944. cat confdefs.h >>conftest.$ac_ext
  20945. cat >>conftest.$ac_ext <<_ACEOF
  20946. /* end confdefs.h. */
  20947. #include <inttypes.h>
  20948. int
  20949. main ()
  20950. {
  20951. if (sizeof (int64_t))
  20952. return 0;
  20953. ;
  20954. return 0;
  20955. }
  20956. _ACEOF
  20957. rm -f conftest.$ac_objext
  20958. if { (ac_try="$ac_compile"
  20959. case "(($ac_try" in
  20960. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20961. *) ac_try_echo=$ac_try;;
  20962. esac
  20963. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20964. $as_echo "$ac_try_echo") >&5
  20965. (eval "$ac_compile") 2>conftest.er1
  20966. ac_status=$?
  20967. grep -v '^ *+' conftest.er1 >conftest.err
  20968. rm -f conftest.er1
  20969. cat conftest.err >&5
  20970. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20971. (exit $ac_status); } && {
  20972. test -z "$ac_c_werror_flag" ||
  20973. test ! -s conftest.err
  20974. } && test -s conftest.$ac_objext; then
  20975. cat >conftest.$ac_ext <<_ACEOF
  20976. /* confdefs.h. */
  20977. _ACEOF
  20978. cat confdefs.h >>conftest.$ac_ext
  20979. cat >>conftest.$ac_ext <<_ACEOF
  20980. /* end confdefs.h. */
  20981. #include <inttypes.h>
  20982. int
  20983. main ()
  20984. {
  20985. if (sizeof ((int64_t)))
  20986. return 0;
  20987. ;
  20988. return 0;
  20989. }
  20990. _ACEOF
  20991. rm -f conftest.$ac_objext
  20992. if { (ac_try="$ac_compile"
  20993. case "(($ac_try" in
  20994. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20995. *) ac_try_echo=$ac_try;;
  20996. esac
  20997. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20998. $as_echo "$ac_try_echo") >&5
  20999. (eval "$ac_compile") 2>conftest.er1
  21000. ac_status=$?
  21001. grep -v '^ *+' conftest.er1 >conftest.err
  21002. rm -f conftest.er1
  21003. cat conftest.err >&5
  21004. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21005. (exit $ac_status); } && {
  21006. test -z "$ac_c_werror_flag" ||
  21007. test ! -s conftest.err
  21008. } && test -s conftest.$ac_objext; then
  21009. :
  21010. else
  21011. $as_echo "$as_me: failed program was:" >&5
  21012. sed 's/^/| /' conftest.$ac_ext >&5
  21013. ac_cv_type_int64_t=yes
  21014. fi
  21015. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21016. else
  21017. $as_echo "$as_me: failed program was:" >&5
  21018. sed 's/^/| /' conftest.$ac_ext >&5
  21019. fi
  21020. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21021. fi
  21022. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
  21023. $as_echo "$ac_cv_type_int64_t" >&6; }
  21024. if test "x$ac_cv_type_int64_t" = x""yes; then
  21025. scm_inttypes_has_int64=1
  21026. fi
  21027. { $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
  21028. $as_echo_n "checking for uint64_t... " >&6; }
  21029. if test "${ac_cv_type_uint64_t+set}" = set; then
  21030. $as_echo_n "(cached) " >&6
  21031. else
  21032. ac_cv_type_uint64_t=no
  21033. cat >conftest.$ac_ext <<_ACEOF
  21034. /* confdefs.h. */
  21035. _ACEOF
  21036. cat confdefs.h >>conftest.$ac_ext
  21037. cat >>conftest.$ac_ext <<_ACEOF
  21038. /* end confdefs.h. */
  21039. #include <inttypes.h>
  21040. int
  21041. main ()
  21042. {
  21043. if (sizeof (uint64_t))
  21044. return 0;
  21045. ;
  21046. return 0;
  21047. }
  21048. _ACEOF
  21049. rm -f conftest.$ac_objext
  21050. if { (ac_try="$ac_compile"
  21051. case "(($ac_try" in
  21052. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21053. *) ac_try_echo=$ac_try;;
  21054. esac
  21055. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21056. $as_echo "$ac_try_echo") >&5
  21057. (eval "$ac_compile") 2>conftest.er1
  21058. ac_status=$?
  21059. grep -v '^ *+' conftest.er1 >conftest.err
  21060. rm -f conftest.er1
  21061. cat conftest.err >&5
  21062. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21063. (exit $ac_status); } && {
  21064. test -z "$ac_c_werror_flag" ||
  21065. test ! -s conftest.err
  21066. } && test -s conftest.$ac_objext; then
  21067. cat >conftest.$ac_ext <<_ACEOF
  21068. /* confdefs.h. */
  21069. _ACEOF
  21070. cat confdefs.h >>conftest.$ac_ext
  21071. cat >>conftest.$ac_ext <<_ACEOF
  21072. /* end confdefs.h. */
  21073. #include <inttypes.h>
  21074. int
  21075. main ()
  21076. {
  21077. if (sizeof ((uint64_t)))
  21078. return 0;
  21079. ;
  21080. return 0;
  21081. }
  21082. _ACEOF
  21083. rm -f conftest.$ac_objext
  21084. if { (ac_try="$ac_compile"
  21085. case "(($ac_try" in
  21086. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21087. *) ac_try_echo=$ac_try;;
  21088. esac
  21089. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21090. $as_echo "$ac_try_echo") >&5
  21091. (eval "$ac_compile") 2>conftest.er1
  21092. ac_status=$?
  21093. grep -v '^ *+' conftest.er1 >conftest.err
  21094. rm -f conftest.er1
  21095. cat conftest.err >&5
  21096. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21097. (exit $ac_status); } && {
  21098. test -z "$ac_c_werror_flag" ||
  21099. test ! -s conftest.err
  21100. } && test -s conftest.$ac_objext; then
  21101. :
  21102. else
  21103. $as_echo "$as_me: failed program was:" >&5
  21104. sed 's/^/| /' conftest.$ac_ext >&5
  21105. ac_cv_type_uint64_t=yes
  21106. fi
  21107. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21108. else
  21109. $as_echo "$as_me: failed program was:" >&5
  21110. sed 's/^/| /' conftest.$ac_ext >&5
  21111. fi
  21112. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21113. fi
  21114. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
  21115. $as_echo "$ac_cv_type_uint64_t" >&6; }
  21116. if test "x$ac_cv_type_uint64_t" = x""yes; then
  21117. scm_inttypes_has_uint64=1
  21118. fi
  21119. { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
  21120. $as_echo_n "checking for intmax_t... " >&6; }
  21121. if test "${ac_cv_type_intmax_t+set}" = set; then
  21122. $as_echo_n "(cached) " >&6
  21123. else
  21124. ac_cv_type_intmax_t=no
  21125. cat >conftest.$ac_ext <<_ACEOF
  21126. /* confdefs.h. */
  21127. _ACEOF
  21128. cat confdefs.h >>conftest.$ac_ext
  21129. cat >>conftest.$ac_ext <<_ACEOF
  21130. /* end confdefs.h. */
  21131. #include <inttypes.h>
  21132. int
  21133. main ()
  21134. {
  21135. if (sizeof (intmax_t))
  21136. return 0;
  21137. ;
  21138. return 0;
  21139. }
  21140. _ACEOF
  21141. rm -f conftest.$ac_objext
  21142. if { (ac_try="$ac_compile"
  21143. case "(($ac_try" in
  21144. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21145. *) ac_try_echo=$ac_try;;
  21146. esac
  21147. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21148. $as_echo "$ac_try_echo") >&5
  21149. (eval "$ac_compile") 2>conftest.er1
  21150. ac_status=$?
  21151. grep -v '^ *+' conftest.er1 >conftest.err
  21152. rm -f conftest.er1
  21153. cat conftest.err >&5
  21154. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21155. (exit $ac_status); } && {
  21156. test -z "$ac_c_werror_flag" ||
  21157. test ! -s conftest.err
  21158. } && test -s conftest.$ac_objext; then
  21159. cat >conftest.$ac_ext <<_ACEOF
  21160. /* confdefs.h. */
  21161. _ACEOF
  21162. cat confdefs.h >>conftest.$ac_ext
  21163. cat >>conftest.$ac_ext <<_ACEOF
  21164. /* end confdefs.h. */
  21165. #include <inttypes.h>
  21166. int
  21167. main ()
  21168. {
  21169. if (sizeof ((intmax_t)))
  21170. return 0;
  21171. ;
  21172. return 0;
  21173. }
  21174. _ACEOF
  21175. rm -f conftest.$ac_objext
  21176. if { (ac_try="$ac_compile"
  21177. case "(($ac_try" in
  21178. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21179. *) ac_try_echo=$ac_try;;
  21180. esac
  21181. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21182. $as_echo "$ac_try_echo") >&5
  21183. (eval "$ac_compile") 2>conftest.er1
  21184. ac_status=$?
  21185. grep -v '^ *+' conftest.er1 >conftest.err
  21186. rm -f conftest.er1
  21187. cat conftest.err >&5
  21188. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21189. (exit $ac_status); } && {
  21190. test -z "$ac_c_werror_flag" ||
  21191. test ! -s conftest.err
  21192. } && test -s conftest.$ac_objext; then
  21193. :
  21194. else
  21195. $as_echo "$as_me: failed program was:" >&5
  21196. sed 's/^/| /' conftest.$ac_ext >&5
  21197. ac_cv_type_intmax_t=yes
  21198. fi
  21199. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21200. else
  21201. $as_echo "$as_me: failed program was:" >&5
  21202. sed 's/^/| /' conftest.$ac_ext >&5
  21203. fi
  21204. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21205. fi
  21206. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
  21207. $as_echo "$ac_cv_type_intmax_t" >&6; }
  21208. if test "x$ac_cv_type_intmax_t" = x""yes; then
  21209. scm_inttypes_has_intmax=1
  21210. fi
  21211. { $as_echo "$as_me:$LINENO: checking for uintmax_t" >&5
  21212. $as_echo_n "checking for uintmax_t... " >&6; }
  21213. if test "${ac_cv_type_uintmax_t+set}" = set; then
  21214. $as_echo_n "(cached) " >&6
  21215. else
  21216. ac_cv_type_uintmax_t=no
  21217. cat >conftest.$ac_ext <<_ACEOF
  21218. /* confdefs.h. */
  21219. _ACEOF
  21220. cat confdefs.h >>conftest.$ac_ext
  21221. cat >>conftest.$ac_ext <<_ACEOF
  21222. /* end confdefs.h. */
  21223. #include <inttypes.h>
  21224. int
  21225. main ()
  21226. {
  21227. if (sizeof (uintmax_t))
  21228. return 0;
  21229. ;
  21230. return 0;
  21231. }
  21232. _ACEOF
  21233. rm -f conftest.$ac_objext
  21234. if { (ac_try="$ac_compile"
  21235. case "(($ac_try" in
  21236. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21237. *) ac_try_echo=$ac_try;;
  21238. esac
  21239. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21240. $as_echo "$ac_try_echo") >&5
  21241. (eval "$ac_compile") 2>conftest.er1
  21242. ac_status=$?
  21243. grep -v '^ *+' conftest.er1 >conftest.err
  21244. rm -f conftest.er1
  21245. cat conftest.err >&5
  21246. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21247. (exit $ac_status); } && {
  21248. test -z "$ac_c_werror_flag" ||
  21249. test ! -s conftest.err
  21250. } && test -s conftest.$ac_objext; then
  21251. cat >conftest.$ac_ext <<_ACEOF
  21252. /* confdefs.h. */
  21253. _ACEOF
  21254. cat confdefs.h >>conftest.$ac_ext
  21255. cat >>conftest.$ac_ext <<_ACEOF
  21256. /* end confdefs.h. */
  21257. #include <inttypes.h>
  21258. int
  21259. main ()
  21260. {
  21261. if (sizeof ((uintmax_t)))
  21262. return 0;
  21263. ;
  21264. return 0;
  21265. }
  21266. _ACEOF
  21267. rm -f conftest.$ac_objext
  21268. if { (ac_try="$ac_compile"
  21269. case "(($ac_try" in
  21270. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21271. *) ac_try_echo=$ac_try;;
  21272. esac
  21273. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21274. $as_echo "$ac_try_echo") >&5
  21275. (eval "$ac_compile") 2>conftest.er1
  21276. ac_status=$?
  21277. grep -v '^ *+' conftest.er1 >conftest.err
  21278. rm -f conftest.er1
  21279. cat conftest.err >&5
  21280. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21281. (exit $ac_status); } && {
  21282. test -z "$ac_c_werror_flag" ||
  21283. test ! -s conftest.err
  21284. } && test -s conftest.$ac_objext; then
  21285. :
  21286. else
  21287. $as_echo "$as_me: failed program was:" >&5
  21288. sed 's/^/| /' conftest.$ac_ext >&5
  21289. ac_cv_type_uintmax_t=yes
  21290. fi
  21291. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21292. else
  21293. $as_echo "$as_me: failed program was:" >&5
  21294. sed 's/^/| /' conftest.$ac_ext >&5
  21295. fi
  21296. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21297. fi
  21298. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
  21299. $as_echo "$ac_cv_type_uintmax_t" >&6; }
  21300. if test "x$ac_cv_type_uintmax_t" = x""yes; then
  21301. scm_inttypes_has_uintmax=1
  21302. fi
  21303. fi
  21304. # Try hard to find definitions for some required scm_t_*int* types.
  21305. ### Required type scm_t_int8
  21306. if test "$scm_stdint_has_int8"; then
  21307. SCM_I_GSC_T_INT8='"int8_t"'
  21308. SCM_I_GSC_NEEDS_STDINT_H=1
  21309. elif test "$scm_inttypes_has_int8"; then
  21310. SCM_I_GSC_T_INT8='"int8_t"'
  21311. SCM_I_GSC_NEEDS_INTTYPES_H=1
  21312. elif test "$ac_cv_sizeof_char" -eq 1; then
  21313. SCM_I_GSC_T_INT8='"signed char"'
  21314. else
  21315. { { $as_echo "$as_me:$LINENO: error: Can't find appropriate type for scm_t_int8." >&5
  21316. $as_echo "$as_me: error: Can't find appropriate type for scm_t_int8." >&2;}
  21317. { (exit 1); exit 1; }; }
  21318. fi
  21319. ### Required type scm_t_uint8
  21320. if test "$scm_stdint_has_uint8"; then
  21321. SCM_I_GSC_T_UINT8='"uint8_t"'
  21322. SCM_I_GSC_NEEDS_STDINT_H=1
  21323. elif test "$scm_inttypes_has_uint8"; then
  21324. SCM_I_GSC_T_UINT8='"uint8_t"'
  21325. SCM_I_GSC_NEEDS_INTTYPES_H=1
  21326. elif test "$ac_cv_sizeof_unsigned_char" -eq 1; then
  21327. SCM_I_GSC_T_UINT8='"unsigned char"'
  21328. else
  21329. { { $as_echo "$as_me:$LINENO: error: Can't find appropriate type for scm_t_uint8." >&5
  21330. $as_echo "$as_me: error: Can't find appropriate type for scm_t_uint8." >&2;}
  21331. { (exit 1); exit 1; }; }
  21332. fi
  21333. ### Required type scm_t_int16 (ANSI C says int or short might work)
  21334. if test "$scm_stdint_has_int16"; then
  21335. SCM_I_GSC_T_INT16='"int16_t"'
  21336. SCM_I_GSC_NEEDS_STDINT_H=1
  21337. elif test "$scm_inttypes_has_int16"; then
  21338. SCM_I_GSC_T_INT16='"int16_t"'
  21339. SCM_I_GSC_NEEDS_INTTYPES_H=1
  21340. elif test "$ac_cv_sizeof_int" -eq 2; then
  21341. SCM_I_GSC_T_INT16='"int"'
  21342. elif test "$ac_cv_sizeof_short" -eq 2; then
  21343. SCM_I_GSC_T_INT16='"short"'
  21344. else
  21345. { { $as_echo "$as_me:$LINENO: error: Can't find appropriate type for scm_t_int16." >&5
  21346. $as_echo "$as_me: error: Can't find appropriate type for scm_t_int16." >&2;}
  21347. { (exit 1); exit 1; }; }
  21348. fi
  21349. ### Required type scm_t_uint16 (ANSI C says int or short might work)
  21350. if test "$scm_stdint_has_uint16"; then
  21351. SCM_I_GSC_T_UINT16='"uint16_t"'
  21352. SCM_I_GSC_NEEDS_STDINT_H=1
  21353. elif test "$scm_inttypes_has_uint16"; then
  21354. SCM_I_GSC_T_UINT16='"uint16_t"'
  21355. SCM_I_GSC_NEEDS_INTTYPES_H=1
  21356. elif test "$ac_cv_sizeof_unsigned_int" -eq 2; then
  21357. SCM_I_GSC_T_UINT16='"unsigned int"'
  21358. elif test "$ac_cv_sizeof_unsigned_short" -eq 2; then
  21359. SCM_I_GSC_T_UINT16='"unsigned short"'
  21360. else
  21361. { { $as_echo "$as_me:$LINENO: error: Can't find appropriate type for scm_t_uint16." >&5
  21362. $as_echo "$as_me: error: Can't find appropriate type for scm_t_uint16." >&2;}
  21363. { (exit 1); exit 1; }; }
  21364. fi
  21365. ### Required type scm_t_int32 (ANSI C says int, short, or long might work)
  21366. if test "$scm_stdint_has_int32"; then
  21367. SCM_I_GSC_T_INT32='"int32_t"'
  21368. SCM_I_GSC_NEEDS_STDINT_H=1
  21369. elif test "$scm_inttypes_has_int32"; then
  21370. SCM_I_GSC_T_INT32='"int32_t"'
  21371. SCM_I_GSC_NEEDS_INTTYPES_H=1
  21372. elif test "$ac_cv_sizeof_int" -eq 4; then
  21373. SCM_I_GSC_T_INT32='"int"'
  21374. elif test "$ac_cv_sizeof_long" -eq 4; then
  21375. SCM_I_GSC_T_INT32='"long"'
  21376. elif test "$ac_cv_sizeof_short" -eq 4; then
  21377. SCM_I_GSC_T_INT32='"short"'
  21378. else
  21379. { { $as_echo "$as_me:$LINENO: error: Can't find appropriate type for scm_t_int32." >&5
  21380. $as_echo "$as_me: error: Can't find appropriate type for scm_t_int32." >&2;}
  21381. { (exit 1); exit 1; }; }
  21382. fi
  21383. ### Required type scm_t_uint32 (ANSI C says int, short, or long might work)
  21384. if test "$scm_stdint_has_uint32"; then
  21385. SCM_I_GSC_T_UINT32='"uint32_t"'
  21386. SCM_I_GSC_NEEDS_STDINT_H=1
  21387. elif test "$scm_inttypes_has_uint32"; then
  21388. SCM_I_GSC_T_UINT32='"uint32_t"'
  21389. SCM_I_GSC_NEEDS_INTTYPES_H=1
  21390. elif test "$ac_cv_sizeof_unsigned_int" -eq 4; then
  21391. SCM_I_GSC_T_UINT32='"unsigned int"'
  21392. elif test "$ac_cv_sizeof_unsigned_long" -eq 4; then
  21393. SCM_I_GSC_T_UINT32='"unsigned long"'
  21394. elif test "$ac_cv_sizeof_unsigned_short" -eq 4; then
  21395. SCM_I_GSC_T_UINT32='"unsigned short"'
  21396. else
  21397. { { $as_echo "$as_me:$LINENO: error: Can't find appropriate type for scm_t_uint32." >&5
  21398. $as_echo "$as_me: error: Can't find appropriate type for scm_t_uint32." >&2;}
  21399. { (exit 1); exit 1; }; }
  21400. fi
  21401. ### Optional type scm_t_int64 (ANSI C says int, short, or long might work)
  21402. ### Also try 'long long' and '__int64' if we have it.
  21403. SCM_I_GSC_T_INT64=0
  21404. if test "$scm_stdint_has_int64"; then
  21405. SCM_I_GSC_T_INT64='"int64_t"'
  21406. SCM_I_GSC_NEEDS_STDINT_H=1
  21407. elif test "$scm_inttypes_has_int64"; then
  21408. SCM_I_GSC_T_INT64='"int64_t"'
  21409. SCM_I_GSC_NEEDS_INTTYPES_H=1
  21410. elif test "$ac_cv_sizeof_int" -eq 8; then
  21411. SCM_I_GSC_T_INT64='"int"'
  21412. elif test "$ac_cv_sizeof_long" -eq 8; then
  21413. SCM_I_GSC_T_INT64='"long"'
  21414. elif test "$ac_cv_sizeof_short" -eq 8; then
  21415. SCM_I_GSC_T_INT64='"short"'
  21416. elif test "$ac_cv_sizeof_long_long" -eq 8; then
  21417. SCM_I_GSC_T_INT64='"long long"'
  21418. elif test "$ac_cv_sizeof___int64" -eq 8; then
  21419. SCM_I_GSC_T_INT64='"__int64"'
  21420. else
  21421. { { $as_echo "$as_me:$LINENO: error: Can't find appropriate type for scm_t_int64." >&5
  21422. $as_echo "$as_me: error: Can't find appropriate type for scm_t_int64." >&2;}
  21423. { (exit 1); exit 1; }; }
  21424. fi
  21425. ### Optional type scm_t_uint64 (ANSI C says int, short, or long might work)
  21426. ### Also try 'long long' and '__int64' if we have it.
  21427. SCM_I_GSC_T_UINT64=0
  21428. if test "$scm_stdint_has_uint64"; then
  21429. SCM_I_GSC_T_UINT64='"uint64_t"'
  21430. SCM_I_GSC_NEEDS_STDINT_H=1
  21431. elif test "$scm_inttypes_has_uint64"; then
  21432. SCM_I_GSC_T_UINT64='"uint64_t"'
  21433. SCM_I_GSC_NEEDS_INTTYPES_H=1
  21434. elif test "$ac_cv_sizeof_unsigned_int" -eq 8; then
  21435. SCM_I_GSC_T_UINT64='"unsigned int"'
  21436. elif test "$ac_cv_sizeof_unsigned_long" -eq 8; then
  21437. SCM_I_GSC_T_UINT64='"unsigned long"'
  21438. elif test "$ac_cv_sizeof_unsigned_short" -eq 8; then
  21439. SCM_I_GSC_T_UINT64='"unsigned short"'
  21440. elif test "$ac_cv_sizeof_unsigned_long_long" -eq 8; then
  21441. SCM_I_GSC_T_UINT64='"unsigned long long"'
  21442. elif test "$ac_cv_sizeof_unsigned___int64" -eq 8; then
  21443. SCM_I_GSC_T_UINT64='"unsigned __int64"'
  21444. else
  21445. { { $as_echo "$as_me:$LINENO: error: Can't find appropriate type for scm_t_uint64." >&5
  21446. $as_echo "$as_me: error: Can't find appropriate type for scm_t_uint64." >&2;}
  21447. { (exit 1); exit 1; }; }
  21448. fi
  21449. ### Required type scm_t_intmax
  21450. ###
  21451. ### We try 'intmax_t', '__int64', 'long long' in this order. When
  21452. ### none of them is available, we use 'long'.
  21453. ###
  21454. SCM_I_GSC_T_INTMAX=0
  21455. if test "$scm_stdint_has_intmax"; then
  21456. SCM_I_GSC_T_INTMAX='"intmax_t"'
  21457. SCM_I_GSC_NEEDS_STDINT_H=1
  21458. elif test "$scm_inttypes_has_intmax"; then
  21459. SCM_I_GSC_T_INTMAX='"intmax_t"'
  21460. SCM_I_GSC_NEEDS_INTTYPES_H=1
  21461. elif test "$ac_cv_sizeof___int64" -ne 0; then
  21462. SCM_I_GSC_T_INTMAX='"__int64"'
  21463. elif test "$ac_cv_sizeof_long_long" -ne 0; then
  21464. SCM_I_GSC_T_INTMAX='"long long"'
  21465. else
  21466. SCM_I_GSC_T_INTMAX='"long"'
  21467. fi
  21468. ### Required type scm_t_uintmax
  21469. ###
  21470. ### We try 'uintmax_t', 'unsigned __int64', 'unsigned long long' in
  21471. ### this order. When none of them is available, we use 'unsigned long'.
  21472. ###
  21473. SCM_I_GSC_T_UINTMAX=0
  21474. if test "$scm_stdint_has_uintmax"; then
  21475. SCM_I_GSC_T_UINTMAX='"uintmax_t"'
  21476. SCM_I_GSC_NEEDS_STDINT_H=1
  21477. elif test "$scm_inttypes_has_uintmax"; then
  21478. SCM_I_GSC_T_UINTMAX='"uintmax_t"'
  21479. SCM_I_GSC_NEEDS_INTTYPES_H=1
  21480. elif test "$ac_cv_sizeof_unsigned___int64" -ne 0; then
  21481. SCM_I_GSC_T_UINTMAX='"unsigned __int64"'
  21482. elif test "$ac_cv_sizeof_unsigned_long_long" -ne 0; then
  21483. SCM_I_GSC_T_UINTMAX='"unsigned long long"'
  21484. else
  21485. SCM_I_GSC_T_UINTMAX='"unsigned long"'
  21486. fi
  21487. { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  21488. $as_echo_n "checking for ANSI C header files... " >&6; }
  21489. if test "${ac_cv_header_stdc+set}" = set; then
  21490. $as_echo_n "(cached) " >&6
  21491. else
  21492. cat >conftest.$ac_ext <<_ACEOF
  21493. /* confdefs.h. */
  21494. _ACEOF
  21495. cat confdefs.h >>conftest.$ac_ext
  21496. cat >>conftest.$ac_ext <<_ACEOF
  21497. /* end confdefs.h. */
  21498. #include <stdlib.h>
  21499. #include <stdarg.h>
  21500. #include <string.h>
  21501. #include <float.h>
  21502. int
  21503. main ()
  21504. {
  21505. ;
  21506. return 0;
  21507. }
  21508. _ACEOF
  21509. rm -f conftest.$ac_objext
  21510. if { (ac_try="$ac_compile"
  21511. case "(($ac_try" in
  21512. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21513. *) ac_try_echo=$ac_try;;
  21514. esac
  21515. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21516. $as_echo "$ac_try_echo") >&5
  21517. (eval "$ac_compile") 2>conftest.er1
  21518. ac_status=$?
  21519. grep -v '^ *+' conftest.er1 >conftest.err
  21520. rm -f conftest.er1
  21521. cat conftest.err >&5
  21522. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21523. (exit $ac_status); } && {
  21524. test -z "$ac_c_werror_flag" ||
  21525. test ! -s conftest.err
  21526. } && test -s conftest.$ac_objext; then
  21527. ac_cv_header_stdc=yes
  21528. else
  21529. $as_echo "$as_me: failed program was:" >&5
  21530. sed 's/^/| /' conftest.$ac_ext >&5
  21531. ac_cv_header_stdc=no
  21532. fi
  21533. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21534. if test $ac_cv_header_stdc = yes; then
  21535. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  21536. cat >conftest.$ac_ext <<_ACEOF
  21537. /* confdefs.h. */
  21538. _ACEOF
  21539. cat confdefs.h >>conftest.$ac_ext
  21540. cat >>conftest.$ac_ext <<_ACEOF
  21541. /* end confdefs.h. */
  21542. #include <string.h>
  21543. _ACEOF
  21544. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  21545. $EGREP "memchr" >/dev/null 2>&1; then
  21546. :
  21547. else
  21548. ac_cv_header_stdc=no
  21549. fi
  21550. rm -f conftest*
  21551. fi
  21552. if test $ac_cv_header_stdc = yes; then
  21553. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  21554. cat >conftest.$ac_ext <<_ACEOF
  21555. /* confdefs.h. */
  21556. _ACEOF
  21557. cat confdefs.h >>conftest.$ac_ext
  21558. cat >>conftest.$ac_ext <<_ACEOF
  21559. /* end confdefs.h. */
  21560. #include <stdlib.h>
  21561. _ACEOF
  21562. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  21563. $EGREP "free" >/dev/null 2>&1; then
  21564. :
  21565. else
  21566. ac_cv_header_stdc=no
  21567. fi
  21568. rm -f conftest*
  21569. fi
  21570. if test $ac_cv_header_stdc = yes; then
  21571. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  21572. if test "$cross_compiling" = yes; then
  21573. :
  21574. else
  21575. cat >conftest.$ac_ext <<_ACEOF
  21576. /* confdefs.h. */
  21577. _ACEOF
  21578. cat confdefs.h >>conftest.$ac_ext
  21579. cat >>conftest.$ac_ext <<_ACEOF
  21580. /* end confdefs.h. */
  21581. #include <ctype.h>
  21582. #include <stdlib.h>
  21583. #if ((' ' & 0x0FF) == 0x020)
  21584. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  21585. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  21586. #else
  21587. # define ISLOWER(c) \
  21588. (('a' <= (c) && (c) <= 'i') \
  21589. || ('j' <= (c) && (c) <= 'r') \
  21590. || ('s' <= (c) && (c) <= 'z'))
  21591. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  21592. #endif
  21593. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  21594. int
  21595. main ()
  21596. {
  21597. int i;
  21598. for (i = 0; i < 256; i++)
  21599. if (XOR (islower (i), ISLOWER (i))
  21600. || toupper (i) != TOUPPER (i))
  21601. return 2;
  21602. return 0;
  21603. }
  21604. _ACEOF
  21605. rm -f conftest$ac_exeext
  21606. if { (ac_try="$ac_link"
  21607. case "(($ac_try" in
  21608. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21609. *) ac_try_echo=$ac_try;;
  21610. esac
  21611. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21612. $as_echo "$ac_try_echo") >&5
  21613. (eval "$ac_link") 2>&5
  21614. ac_status=$?
  21615. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21616. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  21617. { (case "(($ac_try" in
  21618. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21619. *) ac_try_echo=$ac_try;;
  21620. esac
  21621. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21622. $as_echo "$ac_try_echo") >&5
  21623. (eval "$ac_try") 2>&5
  21624. ac_status=$?
  21625. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21626. (exit $ac_status); }; }; then
  21627. :
  21628. else
  21629. $as_echo "$as_me: program exited with status $ac_status" >&5
  21630. $as_echo "$as_me: failed program was:" >&5
  21631. sed 's/^/| /' conftest.$ac_ext >&5
  21632. ( exit $ac_status )
  21633. ac_cv_header_stdc=no
  21634. fi
  21635. rm -rf conftest.dSYM
  21636. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  21637. fi
  21638. fi
  21639. fi
  21640. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  21641. $as_echo "$ac_cv_header_stdc" >&6; }
  21642. if test $ac_cv_header_stdc = yes; then
  21643. cat >>confdefs.h <<\_ACEOF
  21644. #define STDC_HEADERS 1
  21645. _ACEOF
  21646. fi
  21647. { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  21648. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  21649. if test "${ac_cv_header_time+set}" = set; then
  21650. $as_echo_n "(cached) " >&6
  21651. else
  21652. cat >conftest.$ac_ext <<_ACEOF
  21653. /* confdefs.h. */
  21654. _ACEOF
  21655. cat confdefs.h >>conftest.$ac_ext
  21656. cat >>conftest.$ac_ext <<_ACEOF
  21657. /* end confdefs.h. */
  21658. #include <sys/types.h>
  21659. #include <sys/time.h>
  21660. #include <time.h>
  21661. int
  21662. main ()
  21663. {
  21664. if ((struct tm *) 0)
  21665. return 0;
  21666. ;
  21667. return 0;
  21668. }
  21669. _ACEOF
  21670. rm -f conftest.$ac_objext
  21671. if { (ac_try="$ac_compile"
  21672. case "(($ac_try" in
  21673. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21674. *) ac_try_echo=$ac_try;;
  21675. esac
  21676. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21677. $as_echo "$ac_try_echo") >&5
  21678. (eval "$ac_compile") 2>conftest.er1
  21679. ac_status=$?
  21680. grep -v '^ *+' conftest.er1 >conftest.err
  21681. rm -f conftest.er1
  21682. cat conftest.err >&5
  21683. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21684. (exit $ac_status); } && {
  21685. test -z "$ac_c_werror_flag" ||
  21686. test ! -s conftest.err
  21687. } && test -s conftest.$ac_objext; then
  21688. ac_cv_header_time=yes
  21689. else
  21690. $as_echo "$as_me: failed program was:" >&5
  21691. sed 's/^/| /' conftest.$ac_ext >&5
  21692. ac_cv_header_time=no
  21693. fi
  21694. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21695. fi
  21696. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  21697. $as_echo "$ac_cv_header_time" >&6; }
  21698. if test $ac_cv_header_time = yes; then
  21699. cat >>confdefs.h <<\_ACEOF
  21700. #define TIME_WITH_SYS_TIME 1
  21701. _ACEOF
  21702. fi
  21703. { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  21704. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  21705. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  21706. $as_echo_n "(cached) " >&6
  21707. else
  21708. cat >conftest.$ac_ext <<_ACEOF
  21709. /* confdefs.h. */
  21710. _ACEOF
  21711. cat confdefs.h >>conftest.$ac_ext
  21712. cat >>conftest.$ac_ext <<_ACEOF
  21713. /* end confdefs.h. */
  21714. #include <sys/types.h>
  21715. #include <sys/wait.h>
  21716. #ifndef WEXITSTATUS
  21717. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  21718. #endif
  21719. #ifndef WIFEXITED
  21720. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  21721. #endif
  21722. int
  21723. main ()
  21724. {
  21725. int s;
  21726. wait (&s);
  21727. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  21728. ;
  21729. return 0;
  21730. }
  21731. _ACEOF
  21732. rm -f conftest.$ac_objext
  21733. if { (ac_try="$ac_compile"
  21734. case "(($ac_try" in
  21735. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21736. *) ac_try_echo=$ac_try;;
  21737. esac
  21738. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21739. $as_echo "$ac_try_echo") >&5
  21740. (eval "$ac_compile") 2>conftest.er1
  21741. ac_status=$?
  21742. grep -v '^ *+' conftest.er1 >conftest.err
  21743. rm -f conftest.er1
  21744. cat conftest.err >&5
  21745. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21746. (exit $ac_status); } && {
  21747. test -z "$ac_c_werror_flag" ||
  21748. test ! -s conftest.err
  21749. } && test -s conftest.$ac_objext; then
  21750. ac_cv_header_sys_wait_h=yes
  21751. else
  21752. $as_echo "$as_me: failed program was:" >&5
  21753. sed 's/^/| /' conftest.$ac_ext >&5
  21754. ac_cv_header_sys_wait_h=no
  21755. fi
  21756. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21757. fi
  21758. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  21759. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  21760. if test $ac_cv_header_sys_wait_h = yes; then
  21761. cat >>confdefs.h <<\_ACEOF
  21762. #define HAVE_SYS_WAIT_H 1
  21763. _ACEOF
  21764. fi
  21765. ac_header_dirent=no
  21766. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  21767. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  21768. { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  21769. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  21770. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  21771. $as_echo_n "(cached) " >&6
  21772. else
  21773. cat >conftest.$ac_ext <<_ACEOF
  21774. /* confdefs.h. */
  21775. _ACEOF
  21776. cat confdefs.h >>conftest.$ac_ext
  21777. cat >>conftest.$ac_ext <<_ACEOF
  21778. /* end confdefs.h. */
  21779. #include <sys/types.h>
  21780. #include <$ac_hdr>
  21781. int
  21782. main ()
  21783. {
  21784. if ((DIR *) 0)
  21785. return 0;
  21786. ;
  21787. return 0;
  21788. }
  21789. _ACEOF
  21790. rm -f conftest.$ac_objext
  21791. if { (ac_try="$ac_compile"
  21792. case "(($ac_try" in
  21793. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21794. *) ac_try_echo=$ac_try;;
  21795. esac
  21796. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21797. $as_echo "$ac_try_echo") >&5
  21798. (eval "$ac_compile") 2>conftest.er1
  21799. ac_status=$?
  21800. grep -v '^ *+' conftest.er1 >conftest.err
  21801. rm -f conftest.er1
  21802. cat conftest.err >&5
  21803. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21804. (exit $ac_status); } && {
  21805. test -z "$ac_c_werror_flag" ||
  21806. test ! -s conftest.err
  21807. } && test -s conftest.$ac_objext; then
  21808. eval "$as_ac_Header=yes"
  21809. else
  21810. $as_echo "$as_me: failed program was:" >&5
  21811. sed 's/^/| /' conftest.$ac_ext >&5
  21812. eval "$as_ac_Header=no"
  21813. fi
  21814. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21815. fi
  21816. ac_res=`eval 'as_val=${'$as_ac_Header'}
  21817. $as_echo "$as_val"'`
  21818. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  21819. $as_echo "$ac_res" >&6; }
  21820. as_val=`eval 'as_val=${'$as_ac_Header'}
  21821. $as_echo "$as_val"'`
  21822. if test "x$as_val" = x""yes; then
  21823. cat >>confdefs.h <<_ACEOF
  21824. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  21825. _ACEOF
  21826. ac_header_dirent=$ac_hdr; break
  21827. fi
  21828. done
  21829. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  21830. if test $ac_header_dirent = dirent.h; then
  21831. { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
  21832. $as_echo_n "checking for library containing opendir... " >&6; }
  21833. if test "${ac_cv_search_opendir+set}" = set; then
  21834. $as_echo_n "(cached) " >&6
  21835. else
  21836. ac_func_search_save_LIBS=$LIBS
  21837. cat >conftest.$ac_ext <<_ACEOF
  21838. /* confdefs.h. */
  21839. _ACEOF
  21840. cat confdefs.h >>conftest.$ac_ext
  21841. cat >>conftest.$ac_ext <<_ACEOF
  21842. /* end confdefs.h. */
  21843. /* Override any GCC internal prototype to avoid an error.
  21844. Use char because int might match the return type of a GCC
  21845. builtin and then its argument prototype would still apply. */
  21846. #ifdef __cplusplus
  21847. extern "C"
  21848. #endif
  21849. char opendir ();
  21850. int
  21851. main ()
  21852. {
  21853. return opendir ();
  21854. ;
  21855. return 0;
  21856. }
  21857. _ACEOF
  21858. for ac_lib in '' dir; do
  21859. if test -z "$ac_lib"; then
  21860. ac_res="none required"
  21861. else
  21862. ac_res=-l$ac_lib
  21863. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  21864. fi
  21865. rm -f conftest.$ac_objext conftest$ac_exeext
  21866. if { (ac_try="$ac_link"
  21867. case "(($ac_try" in
  21868. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21869. *) ac_try_echo=$ac_try;;
  21870. esac
  21871. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21872. $as_echo "$ac_try_echo") >&5
  21873. (eval "$ac_link") 2>conftest.er1
  21874. ac_status=$?
  21875. grep -v '^ *+' conftest.er1 >conftest.err
  21876. rm -f conftest.er1
  21877. cat conftest.err >&5
  21878. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21879. (exit $ac_status); } && {
  21880. test -z "$ac_c_werror_flag" ||
  21881. test ! -s conftest.err
  21882. } && test -s conftest$ac_exeext && {
  21883. test "$cross_compiling" = yes ||
  21884. $as_test_x conftest$ac_exeext
  21885. }; then
  21886. ac_cv_search_opendir=$ac_res
  21887. else
  21888. $as_echo "$as_me: failed program was:" >&5
  21889. sed 's/^/| /' conftest.$ac_ext >&5
  21890. fi
  21891. rm -rf conftest.dSYM
  21892. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21893. conftest$ac_exeext
  21894. if test "${ac_cv_search_opendir+set}" = set; then
  21895. break
  21896. fi
  21897. done
  21898. if test "${ac_cv_search_opendir+set}" = set; then
  21899. :
  21900. else
  21901. ac_cv_search_opendir=no
  21902. fi
  21903. rm conftest.$ac_ext
  21904. LIBS=$ac_func_search_save_LIBS
  21905. fi
  21906. { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  21907. $as_echo "$ac_cv_search_opendir" >&6; }
  21908. ac_res=$ac_cv_search_opendir
  21909. if test "$ac_res" != no; then
  21910. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  21911. fi
  21912. else
  21913. { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
  21914. $as_echo_n "checking for library containing opendir... " >&6; }
  21915. if test "${ac_cv_search_opendir+set}" = set; then
  21916. $as_echo_n "(cached) " >&6
  21917. else
  21918. ac_func_search_save_LIBS=$LIBS
  21919. cat >conftest.$ac_ext <<_ACEOF
  21920. /* confdefs.h. */
  21921. _ACEOF
  21922. cat confdefs.h >>conftest.$ac_ext
  21923. cat >>conftest.$ac_ext <<_ACEOF
  21924. /* end confdefs.h. */
  21925. /* Override any GCC internal prototype to avoid an error.
  21926. Use char because int might match the return type of a GCC
  21927. builtin and then its argument prototype would still apply. */
  21928. #ifdef __cplusplus
  21929. extern "C"
  21930. #endif
  21931. char opendir ();
  21932. int
  21933. main ()
  21934. {
  21935. return opendir ();
  21936. ;
  21937. return 0;
  21938. }
  21939. _ACEOF
  21940. for ac_lib in '' x; do
  21941. if test -z "$ac_lib"; then
  21942. ac_res="none required"
  21943. else
  21944. ac_res=-l$ac_lib
  21945. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  21946. fi
  21947. rm -f conftest.$ac_objext conftest$ac_exeext
  21948. if { (ac_try="$ac_link"
  21949. case "(($ac_try" in
  21950. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21951. *) ac_try_echo=$ac_try;;
  21952. esac
  21953. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21954. $as_echo "$ac_try_echo") >&5
  21955. (eval "$ac_link") 2>conftest.er1
  21956. ac_status=$?
  21957. grep -v '^ *+' conftest.er1 >conftest.err
  21958. rm -f conftest.er1
  21959. cat conftest.err >&5
  21960. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21961. (exit $ac_status); } && {
  21962. test -z "$ac_c_werror_flag" ||
  21963. test ! -s conftest.err
  21964. } && test -s conftest$ac_exeext && {
  21965. test "$cross_compiling" = yes ||
  21966. $as_test_x conftest$ac_exeext
  21967. }; then
  21968. ac_cv_search_opendir=$ac_res
  21969. else
  21970. $as_echo "$as_me: failed program was:" >&5
  21971. sed 's/^/| /' conftest.$ac_ext >&5
  21972. fi
  21973. rm -rf conftest.dSYM
  21974. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21975. conftest$ac_exeext
  21976. if test "${ac_cv_search_opendir+set}" = set; then
  21977. break
  21978. fi
  21979. done
  21980. if test "${ac_cv_search_opendir+set}" = set; then
  21981. :
  21982. else
  21983. ac_cv_search_opendir=no
  21984. fi
  21985. rm conftest.$ac_ext
  21986. LIBS=$ac_func_search_save_LIBS
  21987. fi
  21988. { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  21989. $as_echo "$ac_cv_search_opendir" >&6; }
  21990. ac_res=$ac_cv_search_opendir
  21991. if test "$ac_res" != no; then
  21992. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  21993. fi
  21994. fi
  21995. # Reason for checking:
  21996. #
  21997. # HP-UX 11.11 (at least) doesn't provide `struct dirent64', even
  21998. # with `_LARGEFILE64_SOURCE', so check whether it's available.
  21999. #
  22000. { $as_echo "$as_me:$LINENO: checking for struct dirent64.d_name" >&5
  22001. $as_echo_n "checking for struct dirent64.d_name... " >&6; }
  22002. if test "${ac_cv_member_struct_dirent64_d_name+set}" = set; then
  22003. $as_echo_n "(cached) " >&6
  22004. else
  22005. cat >conftest.$ac_ext <<_ACEOF
  22006. /* confdefs.h. */
  22007. _ACEOF
  22008. cat confdefs.h >>conftest.$ac_ext
  22009. cat >>conftest.$ac_ext <<_ACEOF
  22010. /* end confdefs.h. */
  22011. #ifndef _LARGEFILE64_SOURCE
  22012. # define _LARGEFILE64_SOURCE
  22013. #endif
  22014. /* Per Autoconf manual. */
  22015. #include <sys/types.h>
  22016. #ifdef HAVE_DIRENT_H
  22017. # include <dirent.h>
  22018. #else
  22019. # define dirent direct
  22020. # ifdef HAVE_SYS_NDIR_H
  22021. # include <sys/ndir.h>
  22022. # endif
  22023. # ifdef HAVE_SYS_DIR_H
  22024. # include <sys/dir.h>
  22025. # endif
  22026. # ifdef HAVE_NDIR_H
  22027. # include <ndir.h>
  22028. # endif
  22029. #endif
  22030. int
  22031. main ()
  22032. {
  22033. static struct dirent64 ac_aggr;
  22034. if (ac_aggr.d_name)
  22035. return 0;
  22036. ;
  22037. return 0;
  22038. }
  22039. _ACEOF
  22040. rm -f conftest.$ac_objext
  22041. if { (ac_try="$ac_compile"
  22042. case "(($ac_try" in
  22043. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22044. *) ac_try_echo=$ac_try;;
  22045. esac
  22046. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22047. $as_echo "$ac_try_echo") >&5
  22048. (eval "$ac_compile") 2>conftest.er1
  22049. ac_status=$?
  22050. grep -v '^ *+' conftest.er1 >conftest.err
  22051. rm -f conftest.er1
  22052. cat conftest.err >&5
  22053. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22054. (exit $ac_status); } && {
  22055. test -z "$ac_c_werror_flag" ||
  22056. test ! -s conftest.err
  22057. } && test -s conftest.$ac_objext; then
  22058. ac_cv_member_struct_dirent64_d_name=yes
  22059. else
  22060. $as_echo "$as_me: failed program was:" >&5
  22061. sed 's/^/| /' conftest.$ac_ext >&5
  22062. cat >conftest.$ac_ext <<_ACEOF
  22063. /* confdefs.h. */
  22064. _ACEOF
  22065. cat confdefs.h >>conftest.$ac_ext
  22066. cat >>conftest.$ac_ext <<_ACEOF
  22067. /* end confdefs.h. */
  22068. #ifndef _LARGEFILE64_SOURCE
  22069. # define _LARGEFILE64_SOURCE
  22070. #endif
  22071. /* Per Autoconf manual. */
  22072. #include <sys/types.h>
  22073. #ifdef HAVE_DIRENT_H
  22074. # include <dirent.h>
  22075. #else
  22076. # define dirent direct
  22077. # ifdef HAVE_SYS_NDIR_H
  22078. # include <sys/ndir.h>
  22079. # endif
  22080. # ifdef HAVE_SYS_DIR_H
  22081. # include <sys/dir.h>
  22082. # endif
  22083. # ifdef HAVE_NDIR_H
  22084. # include <ndir.h>
  22085. # endif
  22086. #endif
  22087. int
  22088. main ()
  22089. {
  22090. static struct dirent64 ac_aggr;
  22091. if (sizeof ac_aggr.d_name)
  22092. return 0;
  22093. ;
  22094. return 0;
  22095. }
  22096. _ACEOF
  22097. rm -f conftest.$ac_objext
  22098. if { (ac_try="$ac_compile"
  22099. case "(($ac_try" in
  22100. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22101. *) ac_try_echo=$ac_try;;
  22102. esac
  22103. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22104. $as_echo "$ac_try_echo") >&5
  22105. (eval "$ac_compile") 2>conftest.er1
  22106. ac_status=$?
  22107. grep -v '^ *+' conftest.er1 >conftest.err
  22108. rm -f conftest.er1
  22109. cat conftest.err >&5
  22110. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22111. (exit $ac_status); } && {
  22112. test -z "$ac_c_werror_flag" ||
  22113. test ! -s conftest.err
  22114. } && test -s conftest.$ac_objext; then
  22115. ac_cv_member_struct_dirent64_d_name=yes
  22116. else
  22117. $as_echo "$as_me: failed program was:" >&5
  22118. sed 's/^/| /' conftest.$ac_ext >&5
  22119. ac_cv_member_struct_dirent64_d_name=no
  22120. fi
  22121. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22122. fi
  22123. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22124. fi
  22125. { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent64_d_name" >&5
  22126. $as_echo "$ac_cv_member_struct_dirent64_d_name" >&6; }
  22127. if test "x$ac_cv_member_struct_dirent64_d_name" = x""yes; then
  22128. SCM_I_GSC_HAVE_STRUCT_DIRENT64=1
  22129. else
  22130. SCM_I_GSC_HAVE_STRUCT_DIRENT64=0
  22131. fi
  22132. # Reasons for testing:
  22133. # complex.h - new in C99
  22134. # fenv.h - available in C99, but not older systems
  22135. # machine/fpu.h - on Tru64 5.1b, the declaration of fesetround(3) is in
  22136. # this file instead of <fenv.h>
  22137. # process.h - mingw specific
  22138. #
  22139. for ac_header in complex.h fenv.h io.h libc.h limits.h malloc.h memory.h process.h string.h \
  22140. regex.h rxposix.h rx/rxposix.h sys/dir.h sys/ioctl.h sys/select.h \
  22141. sys/time.h sys/timeb.h sys/times.h sys/stdtypes.h sys/types.h \
  22142. sys/utime.h time.h unistd.h utime.h pwd.h grp.h sys/utsname.h \
  22143. direct.h strings.h machine/fpu.h
  22144. do
  22145. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  22146. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  22147. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  22148. $as_echo_n "checking for $ac_header... " >&6; }
  22149. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  22150. $as_echo_n "(cached) " >&6
  22151. fi
  22152. ac_res=`eval 'as_val=${'$as_ac_Header'}
  22153. $as_echo "$as_val"'`
  22154. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  22155. $as_echo "$ac_res" >&6; }
  22156. else
  22157. # Is the header compilable?
  22158. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  22159. $as_echo_n "checking $ac_header usability... " >&6; }
  22160. cat >conftest.$ac_ext <<_ACEOF
  22161. /* confdefs.h. */
  22162. _ACEOF
  22163. cat confdefs.h >>conftest.$ac_ext
  22164. cat >>conftest.$ac_ext <<_ACEOF
  22165. /* end confdefs.h. */
  22166. $ac_includes_default
  22167. #include <$ac_header>
  22168. _ACEOF
  22169. rm -f conftest.$ac_objext
  22170. if { (ac_try="$ac_compile"
  22171. case "(($ac_try" in
  22172. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22173. *) ac_try_echo=$ac_try;;
  22174. esac
  22175. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22176. $as_echo "$ac_try_echo") >&5
  22177. (eval "$ac_compile") 2>conftest.er1
  22178. ac_status=$?
  22179. grep -v '^ *+' conftest.er1 >conftest.err
  22180. rm -f conftest.er1
  22181. cat conftest.err >&5
  22182. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22183. (exit $ac_status); } && {
  22184. test -z "$ac_c_werror_flag" ||
  22185. test ! -s conftest.err
  22186. } && test -s conftest.$ac_objext; then
  22187. ac_header_compiler=yes
  22188. else
  22189. $as_echo "$as_me: failed program was:" >&5
  22190. sed 's/^/| /' conftest.$ac_ext >&5
  22191. ac_header_compiler=no
  22192. fi
  22193. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22194. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  22195. $as_echo "$ac_header_compiler" >&6; }
  22196. # Is the header present?
  22197. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  22198. $as_echo_n "checking $ac_header presence... " >&6; }
  22199. cat >conftest.$ac_ext <<_ACEOF
  22200. /* confdefs.h. */
  22201. _ACEOF
  22202. cat confdefs.h >>conftest.$ac_ext
  22203. cat >>conftest.$ac_ext <<_ACEOF
  22204. /* end confdefs.h. */
  22205. #include <$ac_header>
  22206. _ACEOF
  22207. if { (ac_try="$ac_cpp conftest.$ac_ext"
  22208. case "(($ac_try" in
  22209. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22210. *) ac_try_echo=$ac_try;;
  22211. esac
  22212. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22213. $as_echo "$ac_try_echo") >&5
  22214. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  22215. ac_status=$?
  22216. grep -v '^ *+' conftest.er1 >conftest.err
  22217. rm -f conftest.er1
  22218. cat conftest.err >&5
  22219. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22220. (exit $ac_status); } >/dev/null && {
  22221. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  22222. test ! -s conftest.err
  22223. }; then
  22224. ac_header_preproc=yes
  22225. else
  22226. $as_echo "$as_me: failed program was:" >&5
  22227. sed 's/^/| /' conftest.$ac_ext >&5
  22228. ac_header_preproc=no
  22229. fi
  22230. rm -f conftest.err conftest.$ac_ext
  22231. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  22232. $as_echo "$ac_header_preproc" >&6; }
  22233. # So? What about this header?
  22234. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  22235. yes:no: )
  22236. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  22237. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  22238. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  22239. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  22240. ac_header_preproc=yes
  22241. ;;
  22242. no:yes:* )
  22243. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  22244. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  22245. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  22246. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  22247. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  22248. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  22249. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  22250. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  22251. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  22252. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  22253. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  22254. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  22255. ( cat <<\_ASBOX
  22256. ## -------------------------------- ##
  22257. ## Report this to bug-guile@gnu.org ##
  22258. ## -------------------------------- ##
  22259. _ASBOX
  22260. ) | sed "s/^/$as_me: WARNING: /" >&2
  22261. ;;
  22262. esac
  22263. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  22264. $as_echo_n "checking for $ac_header... " >&6; }
  22265. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  22266. $as_echo_n "(cached) " >&6
  22267. else
  22268. eval "$as_ac_Header=\$ac_header_preproc"
  22269. fi
  22270. ac_res=`eval 'as_val=${'$as_ac_Header'}
  22271. $as_echo "$as_val"'`
  22272. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  22273. $as_echo "$ac_res" >&6; }
  22274. fi
  22275. as_val=`eval 'as_val=${'$as_ac_Header'}
  22276. $as_echo "$as_val"'`
  22277. if test "x$as_val" = x""yes; then
  22278. cat >>confdefs.h <<_ACEOF
  22279. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  22280. _ACEOF
  22281. fi
  22282. done
  22283. # "complex double" is new in C99, and "complex" is only a keyword if
  22284. # <complex.h> is included
  22285. { $as_echo "$as_me:$LINENO: checking for complex double" >&5
  22286. $as_echo_n "checking for complex double... " >&6; }
  22287. if test "${ac_cv_type_complex_double+set}" = set; then
  22288. $as_echo_n "(cached) " >&6
  22289. else
  22290. ac_cv_type_complex_double=no
  22291. cat >conftest.$ac_ext <<_ACEOF
  22292. /* confdefs.h. */
  22293. _ACEOF
  22294. cat confdefs.h >>conftest.$ac_ext
  22295. cat >>conftest.$ac_ext <<_ACEOF
  22296. /* end confdefs.h. */
  22297. #if HAVE_COMPLEX_H
  22298. #include <complex.h>
  22299. #endif
  22300. int
  22301. main ()
  22302. {
  22303. if (sizeof (complex double))
  22304. return 0;
  22305. ;
  22306. return 0;
  22307. }
  22308. _ACEOF
  22309. rm -f conftest.$ac_objext
  22310. if { (ac_try="$ac_compile"
  22311. case "(($ac_try" in
  22312. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22313. *) ac_try_echo=$ac_try;;
  22314. esac
  22315. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22316. $as_echo "$ac_try_echo") >&5
  22317. (eval "$ac_compile") 2>conftest.er1
  22318. ac_status=$?
  22319. grep -v '^ *+' conftest.er1 >conftest.err
  22320. rm -f conftest.er1
  22321. cat conftest.err >&5
  22322. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22323. (exit $ac_status); } && {
  22324. test -z "$ac_c_werror_flag" ||
  22325. test ! -s conftest.err
  22326. } && test -s conftest.$ac_objext; then
  22327. cat >conftest.$ac_ext <<_ACEOF
  22328. /* confdefs.h. */
  22329. _ACEOF
  22330. cat confdefs.h >>conftest.$ac_ext
  22331. cat >>conftest.$ac_ext <<_ACEOF
  22332. /* end confdefs.h. */
  22333. #if HAVE_COMPLEX_H
  22334. #include <complex.h>
  22335. #endif
  22336. int
  22337. main ()
  22338. {
  22339. if (sizeof ((complex double)))
  22340. return 0;
  22341. ;
  22342. return 0;
  22343. }
  22344. _ACEOF
  22345. rm -f conftest.$ac_objext
  22346. if { (ac_try="$ac_compile"
  22347. case "(($ac_try" in
  22348. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22349. *) ac_try_echo=$ac_try;;
  22350. esac
  22351. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22352. $as_echo "$ac_try_echo") >&5
  22353. (eval "$ac_compile") 2>conftest.er1
  22354. ac_status=$?
  22355. grep -v '^ *+' conftest.er1 >conftest.err
  22356. rm -f conftest.er1
  22357. cat conftest.err >&5
  22358. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22359. (exit $ac_status); } && {
  22360. test -z "$ac_c_werror_flag" ||
  22361. test ! -s conftest.err
  22362. } && test -s conftest.$ac_objext; then
  22363. :
  22364. else
  22365. $as_echo "$as_me: failed program was:" >&5
  22366. sed 's/^/| /' conftest.$ac_ext >&5
  22367. ac_cv_type_complex_double=yes
  22368. fi
  22369. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22370. else
  22371. $as_echo "$as_me: failed program was:" >&5
  22372. sed 's/^/| /' conftest.$ac_ext >&5
  22373. fi
  22374. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22375. fi
  22376. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_complex_double" >&5
  22377. $as_echo "$ac_cv_type_complex_double" >&6; }
  22378. if test "x$ac_cv_type_complex_double" = x""yes; then
  22379. cat >>confdefs.h <<_ACEOF
  22380. #define HAVE_COMPLEX_DOUBLE 1
  22381. _ACEOF
  22382. fi
  22383. # On MacOS X <sys/socklen.h> contains socklen_t, so must include that
  22384. # when testing.
  22385. { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
  22386. $as_echo_n "checking for socklen_t... " >&6; }
  22387. if test "${ac_cv_type_socklen_t+set}" = set; then
  22388. $as_echo_n "(cached) " >&6
  22389. else
  22390. ac_cv_type_socklen_t=no
  22391. cat >conftest.$ac_ext <<_ACEOF
  22392. /* confdefs.h. */
  22393. _ACEOF
  22394. cat confdefs.h >>conftest.$ac_ext
  22395. cat >>conftest.$ac_ext <<_ACEOF
  22396. /* end confdefs.h. */
  22397. #if HAVE_SYS_TYPES_H
  22398. #include <sys/types.h>
  22399. #endif
  22400. #include <sys/socket.h>
  22401. int
  22402. main ()
  22403. {
  22404. if (sizeof (socklen_t))
  22405. return 0;
  22406. ;
  22407. return 0;
  22408. }
  22409. _ACEOF
  22410. rm -f conftest.$ac_objext
  22411. if { (ac_try="$ac_compile"
  22412. case "(($ac_try" in
  22413. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22414. *) ac_try_echo=$ac_try;;
  22415. esac
  22416. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22417. $as_echo "$ac_try_echo") >&5
  22418. (eval "$ac_compile") 2>conftest.er1
  22419. ac_status=$?
  22420. grep -v '^ *+' conftest.er1 >conftest.err
  22421. rm -f conftest.er1
  22422. cat conftest.err >&5
  22423. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22424. (exit $ac_status); } && {
  22425. test -z "$ac_c_werror_flag" ||
  22426. test ! -s conftest.err
  22427. } && test -s conftest.$ac_objext; then
  22428. cat >conftest.$ac_ext <<_ACEOF
  22429. /* confdefs.h. */
  22430. _ACEOF
  22431. cat confdefs.h >>conftest.$ac_ext
  22432. cat >>conftest.$ac_ext <<_ACEOF
  22433. /* end confdefs.h. */
  22434. #if HAVE_SYS_TYPES_H
  22435. #include <sys/types.h>
  22436. #endif
  22437. #include <sys/socket.h>
  22438. int
  22439. main ()
  22440. {
  22441. if (sizeof ((socklen_t)))
  22442. return 0;
  22443. ;
  22444. return 0;
  22445. }
  22446. _ACEOF
  22447. rm -f conftest.$ac_objext
  22448. if { (ac_try="$ac_compile"
  22449. case "(($ac_try" in
  22450. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22451. *) ac_try_echo=$ac_try;;
  22452. esac
  22453. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22454. $as_echo "$ac_try_echo") >&5
  22455. (eval "$ac_compile") 2>conftest.er1
  22456. ac_status=$?
  22457. grep -v '^ *+' conftest.er1 >conftest.err
  22458. rm -f conftest.er1
  22459. cat conftest.err >&5
  22460. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22461. (exit $ac_status); } && {
  22462. test -z "$ac_c_werror_flag" ||
  22463. test ! -s conftest.err
  22464. } && test -s conftest.$ac_objext; then
  22465. :
  22466. else
  22467. $as_echo "$as_me: failed program was:" >&5
  22468. sed 's/^/| /' conftest.$ac_ext >&5
  22469. ac_cv_type_socklen_t=yes
  22470. fi
  22471. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22472. else
  22473. $as_echo "$as_me: failed program was:" >&5
  22474. sed 's/^/| /' conftest.$ac_ext >&5
  22475. fi
  22476. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22477. fi
  22478. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
  22479. $as_echo "$ac_cv_type_socklen_t" >&6; }
  22480. if test "x$ac_cv_type_socklen_t" = x""yes; then
  22481. :
  22482. else
  22483. cat >>confdefs.h <<_ACEOF
  22484. #define socklen_t int
  22485. _ACEOF
  22486. fi
  22487. { $as_echo "$as_me:$LINENO: checking for struct ip_mreq" >&5
  22488. $as_echo_n "checking for struct ip_mreq... " >&6; }
  22489. if test "${ac_cv_type_struct_ip_mreq+set}" = set; then
  22490. $as_echo_n "(cached) " >&6
  22491. else
  22492. ac_cv_type_struct_ip_mreq=no
  22493. cat >conftest.$ac_ext <<_ACEOF
  22494. /* confdefs.h. */
  22495. _ACEOF
  22496. cat confdefs.h >>conftest.$ac_ext
  22497. cat >>conftest.$ac_ext <<_ACEOF
  22498. /* end confdefs.h. */
  22499. $ac_includes_default
  22500. int
  22501. main ()
  22502. {
  22503. if (sizeof (struct ip_mreq))
  22504. return 0;
  22505. ;
  22506. return 0;
  22507. }
  22508. _ACEOF
  22509. rm -f conftest.$ac_objext
  22510. if { (ac_try="$ac_compile"
  22511. case "(($ac_try" in
  22512. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22513. *) ac_try_echo=$ac_try;;
  22514. esac
  22515. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22516. $as_echo "$ac_try_echo") >&5
  22517. (eval "$ac_compile") 2>conftest.er1
  22518. ac_status=$?
  22519. grep -v '^ *+' conftest.er1 >conftest.err
  22520. rm -f conftest.er1
  22521. cat conftest.err >&5
  22522. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22523. (exit $ac_status); } && {
  22524. test -z "$ac_c_werror_flag" ||
  22525. test ! -s conftest.err
  22526. } && test -s conftest.$ac_objext; then
  22527. cat >conftest.$ac_ext <<_ACEOF
  22528. /* confdefs.h. */
  22529. _ACEOF
  22530. cat confdefs.h >>conftest.$ac_ext
  22531. cat >>conftest.$ac_ext <<_ACEOF
  22532. /* end confdefs.h. */
  22533. $ac_includes_default
  22534. int
  22535. main ()
  22536. {
  22537. if (sizeof ((struct ip_mreq)))
  22538. return 0;
  22539. ;
  22540. return 0;
  22541. }
  22542. _ACEOF
  22543. rm -f conftest.$ac_objext
  22544. if { (ac_try="$ac_compile"
  22545. case "(($ac_try" in
  22546. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22547. *) ac_try_echo=$ac_try;;
  22548. esac
  22549. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22550. $as_echo "$ac_try_echo") >&5
  22551. (eval "$ac_compile") 2>conftest.er1
  22552. ac_status=$?
  22553. grep -v '^ *+' conftest.er1 >conftest.err
  22554. rm -f conftest.er1
  22555. cat conftest.err >&5
  22556. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22557. (exit $ac_status); } && {
  22558. test -z "$ac_c_werror_flag" ||
  22559. test ! -s conftest.err
  22560. } && test -s conftest.$ac_objext; then
  22561. :
  22562. else
  22563. $as_echo "$as_me: failed program was:" >&5
  22564. sed 's/^/| /' conftest.$ac_ext >&5
  22565. ac_cv_type_struct_ip_mreq=yes
  22566. fi
  22567. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22568. else
  22569. $as_echo "$as_me: failed program was:" >&5
  22570. sed 's/^/| /' conftest.$ac_ext >&5
  22571. fi
  22572. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22573. fi
  22574. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_ip_mreq" >&5
  22575. $as_echo "$ac_cv_type_struct_ip_mreq" >&6; }
  22576. for ac_header in libc.h unistd.h
  22577. do
  22578. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  22579. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  22580. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  22581. $as_echo_n "checking for $ac_header... " >&6; }
  22582. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  22583. $as_echo_n "(cached) " >&6
  22584. fi
  22585. ac_res=`eval 'as_val=${'$as_ac_Header'}
  22586. $as_echo "$as_val"'`
  22587. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  22588. $as_echo "$ac_res" >&6; }
  22589. else
  22590. # Is the header compilable?
  22591. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  22592. $as_echo_n "checking $ac_header usability... " >&6; }
  22593. cat >conftest.$ac_ext <<_ACEOF
  22594. /* confdefs.h. */
  22595. _ACEOF
  22596. cat confdefs.h >>conftest.$ac_ext
  22597. cat >>conftest.$ac_ext <<_ACEOF
  22598. /* end confdefs.h. */
  22599. $ac_includes_default
  22600. #include <$ac_header>
  22601. _ACEOF
  22602. rm -f conftest.$ac_objext
  22603. if { (ac_try="$ac_compile"
  22604. case "(($ac_try" in
  22605. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22606. *) ac_try_echo=$ac_try;;
  22607. esac
  22608. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22609. $as_echo "$ac_try_echo") >&5
  22610. (eval "$ac_compile") 2>conftest.er1
  22611. ac_status=$?
  22612. grep -v '^ *+' conftest.er1 >conftest.err
  22613. rm -f conftest.er1
  22614. cat conftest.err >&5
  22615. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22616. (exit $ac_status); } && {
  22617. test -z "$ac_c_werror_flag" ||
  22618. test ! -s conftest.err
  22619. } && test -s conftest.$ac_objext; then
  22620. ac_header_compiler=yes
  22621. else
  22622. $as_echo "$as_me: failed program was:" >&5
  22623. sed 's/^/| /' conftest.$ac_ext >&5
  22624. ac_header_compiler=no
  22625. fi
  22626. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22627. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  22628. $as_echo "$ac_header_compiler" >&6; }
  22629. # Is the header present?
  22630. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  22631. $as_echo_n "checking $ac_header presence... " >&6; }
  22632. cat >conftest.$ac_ext <<_ACEOF
  22633. /* confdefs.h. */
  22634. _ACEOF
  22635. cat confdefs.h >>conftest.$ac_ext
  22636. cat >>conftest.$ac_ext <<_ACEOF
  22637. /* end confdefs.h. */
  22638. #include <$ac_header>
  22639. _ACEOF
  22640. if { (ac_try="$ac_cpp conftest.$ac_ext"
  22641. case "(($ac_try" in
  22642. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22643. *) ac_try_echo=$ac_try;;
  22644. esac
  22645. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22646. $as_echo "$ac_try_echo") >&5
  22647. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  22648. ac_status=$?
  22649. grep -v '^ *+' conftest.er1 >conftest.err
  22650. rm -f conftest.er1
  22651. cat conftest.err >&5
  22652. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22653. (exit $ac_status); } >/dev/null && {
  22654. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  22655. test ! -s conftest.err
  22656. }; then
  22657. ac_header_preproc=yes
  22658. else
  22659. $as_echo "$as_me: failed program was:" >&5
  22660. sed 's/^/| /' conftest.$ac_ext >&5
  22661. ac_header_preproc=no
  22662. fi
  22663. rm -f conftest.err conftest.$ac_ext
  22664. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  22665. $as_echo "$ac_header_preproc" >&6; }
  22666. # So? What about this header?
  22667. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  22668. yes:no: )
  22669. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  22670. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  22671. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  22672. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  22673. ac_header_preproc=yes
  22674. ;;
  22675. no:yes:* )
  22676. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  22677. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  22678. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  22679. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  22680. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  22681. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  22682. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  22683. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  22684. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  22685. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  22686. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  22687. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  22688. ( cat <<\_ASBOX
  22689. ## -------------------------------- ##
  22690. ## Report this to bug-guile@gnu.org ##
  22691. ## -------------------------------- ##
  22692. _ASBOX
  22693. ) | sed "s/^/$as_me: WARNING: /" >&2
  22694. ;;
  22695. esac
  22696. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  22697. $as_echo_n "checking for $ac_header... " >&6; }
  22698. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  22699. $as_echo_n "(cached) " >&6
  22700. else
  22701. eval "$as_ac_Header=\$ac_header_preproc"
  22702. fi
  22703. ac_res=`eval 'as_val=${'$as_ac_Header'}
  22704. $as_echo "$as_val"'`
  22705. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  22706. $as_echo "$ac_res" >&6; }
  22707. fi
  22708. as_val=`eval 'as_val=${'$as_ac_Header'}
  22709. $as_echo "$as_val"'`
  22710. if test "x$as_val" = x""yes; then
  22711. cat >>confdefs.h <<_ACEOF
  22712. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  22713. _ACEOF
  22714. fi
  22715. done
  22716. { $as_echo "$as_me:$LINENO: checking whether libc.h and unistd.h can be included together" >&5
  22717. $as_echo_n "checking whether libc.h and unistd.h can be included together... " >&6; }
  22718. if test "${guile_cv_header_libc_with_unistd+set}" = set; then
  22719. $as_echo_n "(cached) " >&6
  22720. else
  22721. if test "$ac_cv_header_libc_h" = "no"; then
  22722. guile_cv_header_libc_with_unistd="no"
  22723. elif test "$ac_cv_header_unistd_h" = "no"; then
  22724. guile_cv_header_libc_with_unistd="yes"
  22725. else
  22726. cat >conftest.$ac_ext <<_ACEOF
  22727. /* confdefs.h. */
  22728. _ACEOF
  22729. cat confdefs.h >>conftest.$ac_ext
  22730. cat >>conftest.$ac_ext <<_ACEOF
  22731. /* end confdefs.h. */
  22732. # include <libc.h>
  22733. # include <unistd.h>
  22734. int
  22735. main ()
  22736. {
  22737. ;
  22738. return 0;
  22739. }
  22740. _ACEOF
  22741. rm -f conftest.$ac_objext
  22742. if { (ac_try="$ac_compile"
  22743. case "(($ac_try" in
  22744. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22745. *) ac_try_echo=$ac_try;;
  22746. esac
  22747. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22748. $as_echo "$ac_try_echo") >&5
  22749. (eval "$ac_compile") 2>conftest.er1
  22750. ac_status=$?
  22751. grep -v '^ *+' conftest.er1 >conftest.err
  22752. rm -f conftest.er1
  22753. cat conftest.err >&5
  22754. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22755. (exit $ac_status); } && {
  22756. test -z "$ac_c_werror_flag" ||
  22757. test ! -s conftest.err
  22758. } && test -s conftest.$ac_objext; then
  22759. guile_cv_header_libc_with_unistd=yes
  22760. else
  22761. $as_echo "$as_me: failed program was:" >&5
  22762. sed 's/^/| /' conftest.$ac_ext >&5
  22763. guile_cv_header_libc_with_unistd=no
  22764. fi
  22765. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22766. fi
  22767. fi
  22768. { $as_echo "$as_me:$LINENO: result: $guile_cv_header_libc_with_unistd" >&5
  22769. $as_echo "$guile_cv_header_libc_with_unistd" >&6; }
  22770. if test "$guile_cv_header_libc_with_unistd" = yes; then
  22771. cat >>confdefs.h <<\_ACEOF
  22772. #define LIBC_H_WITH_UNISTD_H 1
  22773. _ACEOF
  22774. fi
  22775. { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  22776. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  22777. if test "${ac_cv_type_uid_t+set}" = set; then
  22778. $as_echo_n "(cached) " >&6
  22779. else
  22780. cat >conftest.$ac_ext <<_ACEOF
  22781. /* confdefs.h. */
  22782. _ACEOF
  22783. cat confdefs.h >>conftest.$ac_ext
  22784. cat >>conftest.$ac_ext <<_ACEOF
  22785. /* end confdefs.h. */
  22786. #include <sys/types.h>
  22787. _ACEOF
  22788. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  22789. $EGREP "uid_t" >/dev/null 2>&1; then
  22790. ac_cv_type_uid_t=yes
  22791. else
  22792. ac_cv_type_uid_t=no
  22793. fi
  22794. rm -f conftest*
  22795. fi
  22796. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  22797. $as_echo "$ac_cv_type_uid_t" >&6; }
  22798. if test $ac_cv_type_uid_t = no; then
  22799. cat >>confdefs.h <<\_ACEOF
  22800. #define uid_t int
  22801. _ACEOF
  22802. cat >>confdefs.h <<\_ACEOF
  22803. #define gid_t int
  22804. _ACEOF
  22805. fi
  22806. { $as_echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
  22807. $as_echo_n "checking type of array argument to getgroups... " >&6; }
  22808. if test "${ac_cv_type_getgroups+set}" = set; then
  22809. $as_echo_n "(cached) " >&6
  22810. else
  22811. if test "$cross_compiling" = yes; then
  22812. ac_cv_type_getgroups=cross
  22813. else
  22814. cat >conftest.$ac_ext <<_ACEOF
  22815. /* confdefs.h. */
  22816. _ACEOF
  22817. cat confdefs.h >>conftest.$ac_ext
  22818. cat >>conftest.$ac_ext <<_ACEOF
  22819. /* end confdefs.h. */
  22820. /* Thanks to Mike Rendell for this test. */
  22821. $ac_includes_default
  22822. #define NGID 256
  22823. #undef MAX
  22824. #define MAX(x, y) ((x) > (y) ? (x) : (y))
  22825. int
  22826. main ()
  22827. {
  22828. gid_t gidset[NGID];
  22829. int i, n;
  22830. union { gid_t gval; long int lval; } val;
  22831. val.lval = -1;
  22832. for (i = 0; i < NGID; i++)
  22833. gidset[i] = val.gval;
  22834. n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
  22835. gidset);
  22836. /* Exit non-zero if getgroups seems to require an array of ints. This
  22837. happens when gid_t is short int but getgroups modifies an array
  22838. of ints. */
  22839. return n > 0 && gidset[n] != val.gval;
  22840. }
  22841. _ACEOF
  22842. rm -f conftest$ac_exeext
  22843. if { (ac_try="$ac_link"
  22844. case "(($ac_try" in
  22845. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22846. *) ac_try_echo=$ac_try;;
  22847. esac
  22848. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22849. $as_echo "$ac_try_echo") >&5
  22850. (eval "$ac_link") 2>&5
  22851. ac_status=$?
  22852. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22853. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  22854. { (case "(($ac_try" in
  22855. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22856. *) ac_try_echo=$ac_try;;
  22857. esac
  22858. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22859. $as_echo "$ac_try_echo") >&5
  22860. (eval "$ac_try") 2>&5
  22861. ac_status=$?
  22862. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22863. (exit $ac_status); }; }; then
  22864. ac_cv_type_getgroups=gid_t
  22865. else
  22866. $as_echo "$as_me: program exited with status $ac_status" >&5
  22867. $as_echo "$as_me: failed program was:" >&5
  22868. sed 's/^/| /' conftest.$ac_ext >&5
  22869. ( exit $ac_status )
  22870. ac_cv_type_getgroups=int
  22871. fi
  22872. rm -rf conftest.dSYM
  22873. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  22874. fi
  22875. if test $ac_cv_type_getgroups = cross; then
  22876. cat >conftest.$ac_ext <<_ACEOF
  22877. /* confdefs.h. */
  22878. _ACEOF
  22879. cat confdefs.h >>conftest.$ac_ext
  22880. cat >>conftest.$ac_ext <<_ACEOF
  22881. /* end confdefs.h. */
  22882. #include <unistd.h>
  22883. _ACEOF
  22884. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  22885. $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
  22886. ac_cv_type_getgroups=gid_t
  22887. else
  22888. ac_cv_type_getgroups=int
  22889. fi
  22890. rm -f conftest*
  22891. fi
  22892. fi
  22893. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
  22894. $as_echo "$ac_cv_type_getgroups" >&6; }
  22895. cat >>confdefs.h <<_ACEOF
  22896. #define GETGROUPS_T $ac_cv_type_getgroups
  22897. _ACEOF
  22898. { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  22899. $as_echo_n "checking return type of signal handlers... " >&6; }
  22900. if test "${ac_cv_type_signal+set}" = set; then
  22901. $as_echo_n "(cached) " >&6
  22902. else
  22903. cat >conftest.$ac_ext <<_ACEOF
  22904. /* confdefs.h. */
  22905. _ACEOF
  22906. cat confdefs.h >>conftest.$ac_ext
  22907. cat >>conftest.$ac_ext <<_ACEOF
  22908. /* end confdefs.h. */
  22909. #include <sys/types.h>
  22910. #include <signal.h>
  22911. int
  22912. main ()
  22913. {
  22914. return *(signal (0, 0)) (0) == 1;
  22915. ;
  22916. return 0;
  22917. }
  22918. _ACEOF
  22919. rm -f conftest.$ac_objext
  22920. if { (ac_try="$ac_compile"
  22921. case "(($ac_try" in
  22922. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22923. *) ac_try_echo=$ac_try;;
  22924. esac
  22925. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22926. $as_echo "$ac_try_echo") >&5
  22927. (eval "$ac_compile") 2>conftest.er1
  22928. ac_status=$?
  22929. grep -v '^ *+' conftest.er1 >conftest.err
  22930. rm -f conftest.er1
  22931. cat conftest.err >&5
  22932. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22933. (exit $ac_status); } && {
  22934. test -z "$ac_c_werror_flag" ||
  22935. test ! -s conftest.err
  22936. } && test -s conftest.$ac_objext; then
  22937. ac_cv_type_signal=int
  22938. else
  22939. $as_echo "$as_me: failed program was:" >&5
  22940. sed 's/^/| /' conftest.$ac_ext >&5
  22941. ac_cv_type_signal=void
  22942. fi
  22943. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22944. fi
  22945. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  22946. $as_echo "$ac_cv_type_signal" >&6; }
  22947. cat >>confdefs.h <<_ACEOF
  22948. #define RETSIGTYPE $ac_cv_type_signal
  22949. _ACEOF
  22950. { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
  22951. $as_echo_n "checking for mode_t... " >&6; }
  22952. if test "${ac_cv_type_mode_t+set}" = set; then
  22953. $as_echo_n "(cached) " >&6
  22954. else
  22955. ac_cv_type_mode_t=no
  22956. cat >conftest.$ac_ext <<_ACEOF
  22957. /* confdefs.h. */
  22958. _ACEOF
  22959. cat confdefs.h >>conftest.$ac_ext
  22960. cat >>conftest.$ac_ext <<_ACEOF
  22961. /* end confdefs.h. */
  22962. $ac_includes_default
  22963. int
  22964. main ()
  22965. {
  22966. if (sizeof (mode_t))
  22967. return 0;
  22968. ;
  22969. return 0;
  22970. }
  22971. _ACEOF
  22972. rm -f conftest.$ac_objext
  22973. if { (ac_try="$ac_compile"
  22974. case "(($ac_try" in
  22975. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22976. *) ac_try_echo=$ac_try;;
  22977. esac
  22978. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22979. $as_echo "$ac_try_echo") >&5
  22980. (eval "$ac_compile") 2>conftest.er1
  22981. ac_status=$?
  22982. grep -v '^ *+' conftest.er1 >conftest.err
  22983. rm -f conftest.er1
  22984. cat conftest.err >&5
  22985. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22986. (exit $ac_status); } && {
  22987. test -z "$ac_c_werror_flag" ||
  22988. test ! -s conftest.err
  22989. } && test -s conftest.$ac_objext; then
  22990. cat >conftest.$ac_ext <<_ACEOF
  22991. /* confdefs.h. */
  22992. _ACEOF
  22993. cat confdefs.h >>conftest.$ac_ext
  22994. cat >>conftest.$ac_ext <<_ACEOF
  22995. /* end confdefs.h. */
  22996. $ac_includes_default
  22997. int
  22998. main ()
  22999. {
  23000. if (sizeof ((mode_t)))
  23001. return 0;
  23002. ;
  23003. return 0;
  23004. }
  23005. _ACEOF
  23006. rm -f conftest.$ac_objext
  23007. if { (ac_try="$ac_compile"
  23008. case "(($ac_try" in
  23009. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23010. *) ac_try_echo=$ac_try;;
  23011. esac
  23012. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23013. $as_echo "$ac_try_echo") >&5
  23014. (eval "$ac_compile") 2>conftest.er1
  23015. ac_status=$?
  23016. grep -v '^ *+' conftest.er1 >conftest.err
  23017. rm -f conftest.er1
  23018. cat conftest.err >&5
  23019. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23020. (exit $ac_status); } && {
  23021. test -z "$ac_c_werror_flag" ||
  23022. test ! -s conftest.err
  23023. } && test -s conftest.$ac_objext; then
  23024. :
  23025. else
  23026. $as_echo "$as_me: failed program was:" >&5
  23027. sed 's/^/| /' conftest.$ac_ext >&5
  23028. ac_cv_type_mode_t=yes
  23029. fi
  23030. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23031. else
  23032. $as_echo "$as_me: failed program was:" >&5
  23033. sed 's/^/| /' conftest.$ac_ext >&5
  23034. fi
  23035. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23036. fi
  23037. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
  23038. $as_echo "$ac_cv_type_mode_t" >&6; }
  23039. if test "x$ac_cv_type_mode_t" = x""yes; then
  23040. :
  23041. else
  23042. cat >>confdefs.h <<_ACEOF
  23043. #define mode_t int
  23044. _ACEOF
  23045. fi
  23046. # On mingw -lm is empty, so this test is unnecessary, but it's
  23047. # harmless so we don't hard-code to suppress it.
  23048. #
  23049. { $as_echo "$as_me:$LINENO: checking for cos in -lm" >&5
  23050. $as_echo_n "checking for cos in -lm... " >&6; }
  23051. if test "${ac_cv_lib_m_cos+set}" = set; then
  23052. $as_echo_n "(cached) " >&6
  23053. else
  23054. ac_check_lib_save_LIBS=$LIBS
  23055. LIBS="-lm $LIBS"
  23056. cat >conftest.$ac_ext <<_ACEOF
  23057. /* confdefs.h. */
  23058. _ACEOF
  23059. cat confdefs.h >>conftest.$ac_ext
  23060. cat >>conftest.$ac_ext <<_ACEOF
  23061. /* end confdefs.h. */
  23062. /* Override any GCC internal prototype to avoid an error.
  23063. Use char because int might match the return type of a GCC
  23064. builtin and then its argument prototype would still apply. */
  23065. #ifdef __cplusplus
  23066. extern "C"
  23067. #endif
  23068. char cos ();
  23069. int
  23070. main ()
  23071. {
  23072. return cos ();
  23073. ;
  23074. return 0;
  23075. }
  23076. _ACEOF
  23077. rm -f conftest.$ac_objext conftest$ac_exeext
  23078. if { (ac_try="$ac_link"
  23079. case "(($ac_try" in
  23080. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23081. *) ac_try_echo=$ac_try;;
  23082. esac
  23083. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23084. $as_echo "$ac_try_echo") >&5
  23085. (eval "$ac_link") 2>conftest.er1
  23086. ac_status=$?
  23087. grep -v '^ *+' conftest.er1 >conftest.err
  23088. rm -f conftest.er1
  23089. cat conftest.err >&5
  23090. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23091. (exit $ac_status); } && {
  23092. test -z "$ac_c_werror_flag" ||
  23093. test ! -s conftest.err
  23094. } && test -s conftest$ac_exeext && {
  23095. test "$cross_compiling" = yes ||
  23096. $as_test_x conftest$ac_exeext
  23097. }; then
  23098. ac_cv_lib_m_cos=yes
  23099. else
  23100. $as_echo "$as_me: failed program was:" >&5
  23101. sed 's/^/| /' conftest.$ac_ext >&5
  23102. ac_cv_lib_m_cos=no
  23103. fi
  23104. rm -rf conftest.dSYM
  23105. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  23106. conftest$ac_exeext conftest.$ac_ext
  23107. LIBS=$ac_check_lib_save_LIBS
  23108. fi
  23109. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
  23110. $as_echo "$ac_cv_lib_m_cos" >&6; }
  23111. if test "x$ac_cv_lib_m_cos" = x""yes; then
  23112. cat >>confdefs.h <<_ACEOF
  23113. #define HAVE_LIBM 1
  23114. _ACEOF
  23115. LIBS="-lm $LIBS"
  23116. fi
  23117. for ac_func in gethostbyname
  23118. do
  23119. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  23120. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  23121. $as_echo_n "checking for $ac_func... " >&6; }
  23122. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  23123. $as_echo_n "(cached) " >&6
  23124. else
  23125. cat >conftest.$ac_ext <<_ACEOF
  23126. /* confdefs.h. */
  23127. _ACEOF
  23128. cat confdefs.h >>conftest.$ac_ext
  23129. cat >>conftest.$ac_ext <<_ACEOF
  23130. /* end confdefs.h. */
  23131. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  23132. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  23133. #define $ac_func innocuous_$ac_func
  23134. /* System header to define __stub macros and hopefully few prototypes,
  23135. which can conflict with char $ac_func (); below.
  23136. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  23137. <limits.h> exists even on freestanding compilers. */
  23138. #ifdef __STDC__
  23139. # include <limits.h>
  23140. #else
  23141. # include <assert.h>
  23142. #endif
  23143. #undef $ac_func
  23144. /* Override any GCC internal prototype to avoid an error.
  23145. Use char because int might match the return type of a GCC
  23146. builtin and then its argument prototype would still apply. */
  23147. #ifdef __cplusplus
  23148. extern "C"
  23149. #endif
  23150. char $ac_func ();
  23151. /* The GNU C library defines this for functions which it implements
  23152. to always fail with ENOSYS. Some functions are actually named
  23153. something starting with __ and the normal name is an alias. */
  23154. #if defined __stub_$ac_func || defined __stub___$ac_func
  23155. choke me
  23156. #endif
  23157. int
  23158. main ()
  23159. {
  23160. return $ac_func ();
  23161. ;
  23162. return 0;
  23163. }
  23164. _ACEOF
  23165. rm -f conftest.$ac_objext conftest$ac_exeext
  23166. if { (ac_try="$ac_link"
  23167. case "(($ac_try" in
  23168. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23169. *) ac_try_echo=$ac_try;;
  23170. esac
  23171. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23172. $as_echo "$ac_try_echo") >&5
  23173. (eval "$ac_link") 2>conftest.er1
  23174. ac_status=$?
  23175. grep -v '^ *+' conftest.er1 >conftest.err
  23176. rm -f conftest.er1
  23177. cat conftest.err >&5
  23178. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23179. (exit $ac_status); } && {
  23180. test -z "$ac_c_werror_flag" ||
  23181. test ! -s conftest.err
  23182. } && test -s conftest$ac_exeext && {
  23183. test "$cross_compiling" = yes ||
  23184. $as_test_x conftest$ac_exeext
  23185. }; then
  23186. eval "$as_ac_var=yes"
  23187. else
  23188. $as_echo "$as_me: failed program was:" >&5
  23189. sed 's/^/| /' conftest.$ac_ext >&5
  23190. eval "$as_ac_var=no"
  23191. fi
  23192. rm -rf conftest.dSYM
  23193. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  23194. conftest$ac_exeext conftest.$ac_ext
  23195. fi
  23196. ac_res=`eval 'as_val=${'$as_ac_var'}
  23197. $as_echo "$as_val"'`
  23198. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  23199. $as_echo "$ac_res" >&6; }
  23200. as_val=`eval 'as_val=${'$as_ac_var'}
  23201. $as_echo "$as_val"'`
  23202. if test "x$as_val" = x""yes; then
  23203. cat >>confdefs.h <<_ACEOF
  23204. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  23205. _ACEOF
  23206. fi
  23207. done
  23208. if test $ac_cv_func_gethostbyname = no; then
  23209. { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
  23210. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  23211. if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
  23212. $as_echo_n "(cached) " >&6
  23213. else
  23214. ac_check_lib_save_LIBS=$LIBS
  23215. LIBS="-lnsl $LIBS"
  23216. cat >conftest.$ac_ext <<_ACEOF
  23217. /* confdefs.h. */
  23218. _ACEOF
  23219. cat confdefs.h >>conftest.$ac_ext
  23220. cat >>conftest.$ac_ext <<_ACEOF
  23221. /* end confdefs.h. */
  23222. /* Override any GCC internal prototype to avoid an error.
  23223. Use char because int might match the return type of a GCC
  23224. builtin and then its argument prototype would still apply. */
  23225. #ifdef __cplusplus
  23226. extern "C"
  23227. #endif
  23228. char gethostbyname ();
  23229. int
  23230. main ()
  23231. {
  23232. return gethostbyname ();
  23233. ;
  23234. return 0;
  23235. }
  23236. _ACEOF
  23237. rm -f conftest.$ac_objext conftest$ac_exeext
  23238. if { (ac_try="$ac_link"
  23239. case "(($ac_try" in
  23240. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23241. *) ac_try_echo=$ac_try;;
  23242. esac
  23243. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23244. $as_echo "$ac_try_echo") >&5
  23245. (eval "$ac_link") 2>conftest.er1
  23246. ac_status=$?
  23247. grep -v '^ *+' conftest.er1 >conftest.err
  23248. rm -f conftest.er1
  23249. cat conftest.err >&5
  23250. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23251. (exit $ac_status); } && {
  23252. test -z "$ac_c_werror_flag" ||
  23253. test ! -s conftest.err
  23254. } && test -s conftest$ac_exeext && {
  23255. test "$cross_compiling" = yes ||
  23256. $as_test_x conftest$ac_exeext
  23257. }; then
  23258. ac_cv_lib_nsl_gethostbyname=yes
  23259. else
  23260. $as_echo "$as_me: failed program was:" >&5
  23261. sed 's/^/| /' conftest.$ac_ext >&5
  23262. ac_cv_lib_nsl_gethostbyname=no
  23263. fi
  23264. rm -rf conftest.dSYM
  23265. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  23266. conftest$ac_exeext conftest.$ac_ext
  23267. LIBS=$ac_check_lib_save_LIBS
  23268. fi
  23269. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
  23270. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  23271. if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
  23272. cat >>confdefs.h <<_ACEOF
  23273. #define HAVE_LIBNSL 1
  23274. _ACEOF
  23275. LIBS="-lnsl $LIBS"
  23276. fi
  23277. fi
  23278. for ac_func in connect
  23279. do
  23280. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  23281. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  23282. $as_echo_n "checking for $ac_func... " >&6; }
  23283. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  23284. $as_echo_n "(cached) " >&6
  23285. else
  23286. cat >conftest.$ac_ext <<_ACEOF
  23287. /* confdefs.h. */
  23288. _ACEOF
  23289. cat confdefs.h >>conftest.$ac_ext
  23290. cat >>conftest.$ac_ext <<_ACEOF
  23291. /* end confdefs.h. */
  23292. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  23293. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  23294. #define $ac_func innocuous_$ac_func
  23295. /* System header to define __stub macros and hopefully few prototypes,
  23296. which can conflict with char $ac_func (); below.
  23297. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  23298. <limits.h> exists even on freestanding compilers. */
  23299. #ifdef __STDC__
  23300. # include <limits.h>
  23301. #else
  23302. # include <assert.h>
  23303. #endif
  23304. #undef $ac_func
  23305. /* Override any GCC internal prototype to avoid an error.
  23306. Use char because int might match the return type of a GCC
  23307. builtin and then its argument prototype would still apply. */
  23308. #ifdef __cplusplus
  23309. extern "C"
  23310. #endif
  23311. char $ac_func ();
  23312. /* The GNU C library defines this for functions which it implements
  23313. to always fail with ENOSYS. Some functions are actually named
  23314. something starting with __ and the normal name is an alias. */
  23315. #if defined __stub_$ac_func || defined __stub___$ac_func
  23316. choke me
  23317. #endif
  23318. int
  23319. main ()
  23320. {
  23321. return $ac_func ();
  23322. ;
  23323. return 0;
  23324. }
  23325. _ACEOF
  23326. rm -f conftest.$ac_objext conftest$ac_exeext
  23327. if { (ac_try="$ac_link"
  23328. case "(($ac_try" in
  23329. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23330. *) ac_try_echo=$ac_try;;
  23331. esac
  23332. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23333. $as_echo "$ac_try_echo") >&5
  23334. (eval "$ac_link") 2>conftest.er1
  23335. ac_status=$?
  23336. grep -v '^ *+' conftest.er1 >conftest.err
  23337. rm -f conftest.er1
  23338. cat conftest.err >&5
  23339. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23340. (exit $ac_status); } && {
  23341. test -z "$ac_c_werror_flag" ||
  23342. test ! -s conftest.err
  23343. } && test -s conftest$ac_exeext && {
  23344. test "$cross_compiling" = yes ||
  23345. $as_test_x conftest$ac_exeext
  23346. }; then
  23347. eval "$as_ac_var=yes"
  23348. else
  23349. $as_echo "$as_me: failed program was:" >&5
  23350. sed 's/^/| /' conftest.$ac_ext >&5
  23351. eval "$as_ac_var=no"
  23352. fi
  23353. rm -rf conftest.dSYM
  23354. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  23355. conftest$ac_exeext conftest.$ac_ext
  23356. fi
  23357. ac_res=`eval 'as_val=${'$as_ac_var'}
  23358. $as_echo "$as_val"'`
  23359. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  23360. $as_echo "$ac_res" >&6; }
  23361. as_val=`eval 'as_val=${'$as_ac_var'}
  23362. $as_echo "$as_val"'`
  23363. if test "x$as_val" = x""yes; then
  23364. cat >>confdefs.h <<_ACEOF
  23365. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  23366. _ACEOF
  23367. fi
  23368. done
  23369. if test $ac_cv_func_connect = no; then
  23370. { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
  23371. $as_echo_n "checking for connect in -lsocket... " >&6; }
  23372. if test "${ac_cv_lib_socket_connect+set}" = set; then
  23373. $as_echo_n "(cached) " >&6
  23374. else
  23375. ac_check_lib_save_LIBS=$LIBS
  23376. LIBS="-lsocket $LIBS"
  23377. cat >conftest.$ac_ext <<_ACEOF
  23378. /* confdefs.h. */
  23379. _ACEOF
  23380. cat confdefs.h >>conftest.$ac_ext
  23381. cat >>conftest.$ac_ext <<_ACEOF
  23382. /* end confdefs.h. */
  23383. /* Override any GCC internal prototype to avoid an error.
  23384. Use char because int might match the return type of a GCC
  23385. builtin and then its argument prototype would still apply. */
  23386. #ifdef __cplusplus
  23387. extern "C"
  23388. #endif
  23389. char connect ();
  23390. int
  23391. main ()
  23392. {
  23393. return connect ();
  23394. ;
  23395. return 0;
  23396. }
  23397. _ACEOF
  23398. rm -f conftest.$ac_objext conftest$ac_exeext
  23399. if { (ac_try="$ac_link"
  23400. case "(($ac_try" in
  23401. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23402. *) ac_try_echo=$ac_try;;
  23403. esac
  23404. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23405. $as_echo "$ac_try_echo") >&5
  23406. (eval "$ac_link") 2>conftest.er1
  23407. ac_status=$?
  23408. grep -v '^ *+' conftest.er1 >conftest.err
  23409. rm -f conftest.er1
  23410. cat conftest.err >&5
  23411. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23412. (exit $ac_status); } && {
  23413. test -z "$ac_c_werror_flag" ||
  23414. test ! -s conftest.err
  23415. } && test -s conftest$ac_exeext && {
  23416. test "$cross_compiling" = yes ||
  23417. $as_test_x conftest$ac_exeext
  23418. }; then
  23419. ac_cv_lib_socket_connect=yes
  23420. else
  23421. $as_echo "$as_me: failed program was:" >&5
  23422. sed 's/^/| /' conftest.$ac_ext >&5
  23423. ac_cv_lib_socket_connect=no
  23424. fi
  23425. rm -rf conftest.dSYM
  23426. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  23427. conftest$ac_exeext conftest.$ac_ext
  23428. LIBS=$ac_check_lib_save_LIBS
  23429. fi
  23430. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
  23431. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  23432. if test "x$ac_cv_lib_socket_connect" = x""yes; then
  23433. cat >>confdefs.h <<_ACEOF
  23434. #define HAVE_LIBSOCKET 1
  23435. _ACEOF
  23436. LIBS="-lsocket $LIBS"
  23437. fi
  23438. fi
  23439. EXTRA_DEFS=""
  23440. case $host in
  23441. *-*-mingw*)
  23442. if test "${ac_cv_header_winsock2_h+set}" = set; then
  23443. { $as_echo "$as_me:$LINENO: checking for winsock2.h" >&5
  23444. $as_echo_n "checking for winsock2.h... " >&6; }
  23445. if test "${ac_cv_header_winsock2_h+set}" = set; then
  23446. $as_echo_n "(cached) " >&6
  23447. fi
  23448. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
  23449. $as_echo "$ac_cv_header_winsock2_h" >&6; }
  23450. else
  23451. # Is the header compilable?
  23452. { $as_echo "$as_me:$LINENO: checking winsock2.h usability" >&5
  23453. $as_echo_n "checking winsock2.h usability... " >&6; }
  23454. cat >conftest.$ac_ext <<_ACEOF
  23455. /* confdefs.h. */
  23456. _ACEOF
  23457. cat confdefs.h >>conftest.$ac_ext
  23458. cat >>conftest.$ac_ext <<_ACEOF
  23459. /* end confdefs.h. */
  23460. $ac_includes_default
  23461. #include <winsock2.h>
  23462. _ACEOF
  23463. rm -f conftest.$ac_objext
  23464. if { (ac_try="$ac_compile"
  23465. case "(($ac_try" in
  23466. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23467. *) ac_try_echo=$ac_try;;
  23468. esac
  23469. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23470. $as_echo "$ac_try_echo") >&5
  23471. (eval "$ac_compile") 2>conftest.er1
  23472. ac_status=$?
  23473. grep -v '^ *+' conftest.er1 >conftest.err
  23474. rm -f conftest.er1
  23475. cat conftest.err >&5
  23476. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23477. (exit $ac_status); } && {
  23478. test -z "$ac_c_werror_flag" ||
  23479. test ! -s conftest.err
  23480. } && test -s conftest.$ac_objext; then
  23481. ac_header_compiler=yes
  23482. else
  23483. $as_echo "$as_me: failed program was:" >&5
  23484. sed 's/^/| /' conftest.$ac_ext >&5
  23485. ac_header_compiler=no
  23486. fi
  23487. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23488. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  23489. $as_echo "$ac_header_compiler" >&6; }
  23490. # Is the header present?
  23491. { $as_echo "$as_me:$LINENO: checking winsock2.h presence" >&5
  23492. $as_echo_n "checking winsock2.h presence... " >&6; }
  23493. cat >conftest.$ac_ext <<_ACEOF
  23494. /* confdefs.h. */
  23495. _ACEOF
  23496. cat confdefs.h >>conftest.$ac_ext
  23497. cat >>conftest.$ac_ext <<_ACEOF
  23498. /* end confdefs.h. */
  23499. #include <winsock2.h>
  23500. _ACEOF
  23501. if { (ac_try="$ac_cpp conftest.$ac_ext"
  23502. case "(($ac_try" in
  23503. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23504. *) ac_try_echo=$ac_try;;
  23505. esac
  23506. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23507. $as_echo "$ac_try_echo") >&5
  23508. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  23509. ac_status=$?
  23510. grep -v '^ *+' conftest.er1 >conftest.err
  23511. rm -f conftest.er1
  23512. cat conftest.err >&5
  23513. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23514. (exit $ac_status); } >/dev/null && {
  23515. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  23516. test ! -s conftest.err
  23517. }; then
  23518. ac_header_preproc=yes
  23519. else
  23520. $as_echo "$as_me: failed program was:" >&5
  23521. sed 's/^/| /' conftest.$ac_ext >&5
  23522. ac_header_preproc=no
  23523. fi
  23524. rm -f conftest.err conftest.$ac_ext
  23525. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  23526. $as_echo "$ac_header_preproc" >&6; }
  23527. # So? What about this header?
  23528. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  23529. yes:no: )
  23530. { $as_echo "$as_me:$LINENO: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&5
  23531. $as_echo "$as_me: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  23532. { $as_echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the compiler's result" >&5
  23533. $as_echo "$as_me: WARNING: winsock2.h: proceeding with the compiler's result" >&2;}
  23534. ac_header_preproc=yes
  23535. ;;
  23536. no:yes:* )
  23537. { $as_echo "$as_me:$LINENO: WARNING: winsock2.h: present but cannot be compiled" >&5
  23538. $as_echo "$as_me: WARNING: winsock2.h: present but cannot be compiled" >&2;}
  23539. { $as_echo "$as_me:$LINENO: WARNING: winsock2.h: check for missing prerequisite headers?" >&5
  23540. $as_echo "$as_me: WARNING: winsock2.h: check for missing prerequisite headers?" >&2;}
  23541. { $as_echo "$as_me:$LINENO: WARNING: winsock2.h: see the Autoconf documentation" >&5
  23542. $as_echo "$as_me: WARNING: winsock2.h: see the Autoconf documentation" >&2;}
  23543. { $as_echo "$as_me:$LINENO: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&5
  23544. $as_echo "$as_me: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&2;}
  23545. { $as_echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the preprocessor's result" >&5
  23546. $as_echo "$as_me: WARNING: winsock2.h: proceeding with the preprocessor's result" >&2;}
  23547. { $as_echo "$as_me:$LINENO: WARNING: winsock2.h: in the future, the compiler will take precedence" >&5
  23548. $as_echo "$as_me: WARNING: winsock2.h: in the future, the compiler will take precedence" >&2;}
  23549. ( cat <<\_ASBOX
  23550. ## -------------------------------- ##
  23551. ## Report this to bug-guile@gnu.org ##
  23552. ## -------------------------------- ##
  23553. _ASBOX
  23554. ) | sed "s/^/$as_me: WARNING: /" >&2
  23555. ;;
  23556. esac
  23557. { $as_echo "$as_me:$LINENO: checking for winsock2.h" >&5
  23558. $as_echo_n "checking for winsock2.h... " >&6; }
  23559. if test "${ac_cv_header_winsock2_h+set}" = set; then
  23560. $as_echo_n "(cached) " >&6
  23561. else
  23562. ac_cv_header_winsock2_h=$ac_header_preproc
  23563. fi
  23564. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
  23565. $as_echo "$ac_cv_header_winsock2_h" >&6; }
  23566. fi
  23567. if test "x$ac_cv_header_winsock2_h" = x""yes; then
  23568. cat >>confdefs.h <<\_ACEOF
  23569. #define HAVE_WINSOCK2_H 1
  23570. _ACEOF
  23571. fi
  23572. { $as_echo "$as_me:$LINENO: checking for main in -lws2_32" >&5
  23573. $as_echo_n "checking for main in -lws2_32... " >&6; }
  23574. if test "${ac_cv_lib_ws2_32_main+set}" = set; then
  23575. $as_echo_n "(cached) " >&6
  23576. else
  23577. ac_check_lib_save_LIBS=$LIBS
  23578. LIBS="-lws2_32 $LIBS"
  23579. cat >conftest.$ac_ext <<_ACEOF
  23580. /* confdefs.h. */
  23581. _ACEOF
  23582. cat confdefs.h >>conftest.$ac_ext
  23583. cat >>conftest.$ac_ext <<_ACEOF
  23584. /* end confdefs.h. */
  23585. int
  23586. main ()
  23587. {
  23588. return main ();
  23589. ;
  23590. return 0;
  23591. }
  23592. _ACEOF
  23593. rm -f conftest.$ac_objext conftest$ac_exeext
  23594. if { (ac_try="$ac_link"
  23595. case "(($ac_try" in
  23596. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23597. *) ac_try_echo=$ac_try;;
  23598. esac
  23599. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23600. $as_echo "$ac_try_echo") >&5
  23601. (eval "$ac_link") 2>conftest.er1
  23602. ac_status=$?
  23603. grep -v '^ *+' conftest.er1 >conftest.err
  23604. rm -f conftest.er1
  23605. cat conftest.err >&5
  23606. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23607. (exit $ac_status); } && {
  23608. test -z "$ac_c_werror_flag" ||
  23609. test ! -s conftest.err
  23610. } && test -s conftest$ac_exeext && {
  23611. test "$cross_compiling" = yes ||
  23612. $as_test_x conftest$ac_exeext
  23613. }; then
  23614. ac_cv_lib_ws2_32_main=yes
  23615. else
  23616. $as_echo "$as_me: failed program was:" >&5
  23617. sed 's/^/| /' conftest.$ac_ext >&5
  23618. ac_cv_lib_ws2_32_main=no
  23619. fi
  23620. rm -rf conftest.dSYM
  23621. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  23622. conftest$ac_exeext conftest.$ac_ext
  23623. LIBS=$ac_check_lib_save_LIBS
  23624. fi
  23625. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_main" >&5
  23626. $as_echo "$ac_cv_lib_ws2_32_main" >&6; }
  23627. if test "x$ac_cv_lib_ws2_32_main" = x""yes; then
  23628. cat >>confdefs.h <<_ACEOF
  23629. #define HAVE_LIBWS2_32 1
  23630. _ACEOF
  23631. LIBS="-lws2_32 $LIBS"
  23632. fi
  23633. case " $LIBOBJS " in
  23634. *" win32-uname.$ac_objext "* ) ;;
  23635. *) LIBOBJS="$LIBOBJS win32-uname.$ac_objext"
  23636. ;;
  23637. esac
  23638. case " $LIBOBJS " in
  23639. *" win32-dirent.$ac_objext "* ) ;;
  23640. *) LIBOBJS="$LIBOBJS win32-dirent.$ac_objext"
  23641. ;;
  23642. esac
  23643. if test "$enable_networking" = yes ; then
  23644. case " $LIBOBJS " in
  23645. *" win32-socket.$ac_objext "* ) ;;
  23646. *) LIBOBJS="$LIBOBJS win32-socket.$ac_objext"
  23647. ;;
  23648. esac
  23649. fi
  23650. if test "$enable_shared" = yes ; then
  23651. EXTRA_DEFS="-DSCM_IMPORT"
  23652. cat >>confdefs.h <<\_ACEOF
  23653. #define USE_DLL_IMPORT 1
  23654. _ACEOF
  23655. fi
  23656. ;;
  23657. esac
  23658. # Reasons for testing:
  23659. # crt_externs.h - Darwin specific
  23660. #
  23661. for ac_header in assert.h crt_externs.h
  23662. do
  23663. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  23664. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  23665. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  23666. $as_echo_n "checking for $ac_header... " >&6; }
  23667. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  23668. $as_echo_n "(cached) " >&6
  23669. fi
  23670. ac_res=`eval 'as_val=${'$as_ac_Header'}
  23671. $as_echo "$as_val"'`
  23672. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  23673. $as_echo "$ac_res" >&6; }
  23674. else
  23675. # Is the header compilable?
  23676. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  23677. $as_echo_n "checking $ac_header usability... " >&6; }
  23678. cat >conftest.$ac_ext <<_ACEOF
  23679. /* confdefs.h. */
  23680. _ACEOF
  23681. cat confdefs.h >>conftest.$ac_ext
  23682. cat >>conftest.$ac_ext <<_ACEOF
  23683. /* end confdefs.h. */
  23684. $ac_includes_default
  23685. #include <$ac_header>
  23686. _ACEOF
  23687. rm -f conftest.$ac_objext
  23688. if { (ac_try="$ac_compile"
  23689. case "(($ac_try" in
  23690. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23691. *) ac_try_echo=$ac_try;;
  23692. esac
  23693. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23694. $as_echo "$ac_try_echo") >&5
  23695. (eval "$ac_compile") 2>conftest.er1
  23696. ac_status=$?
  23697. grep -v '^ *+' conftest.er1 >conftest.err
  23698. rm -f conftest.er1
  23699. cat conftest.err >&5
  23700. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23701. (exit $ac_status); } && {
  23702. test -z "$ac_c_werror_flag" ||
  23703. test ! -s conftest.err
  23704. } && test -s conftest.$ac_objext; then
  23705. ac_header_compiler=yes
  23706. else
  23707. $as_echo "$as_me: failed program was:" >&5
  23708. sed 's/^/| /' conftest.$ac_ext >&5
  23709. ac_header_compiler=no
  23710. fi
  23711. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23712. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  23713. $as_echo "$ac_header_compiler" >&6; }
  23714. # Is the header present?
  23715. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  23716. $as_echo_n "checking $ac_header presence... " >&6; }
  23717. cat >conftest.$ac_ext <<_ACEOF
  23718. /* confdefs.h. */
  23719. _ACEOF
  23720. cat confdefs.h >>conftest.$ac_ext
  23721. cat >>conftest.$ac_ext <<_ACEOF
  23722. /* end confdefs.h. */
  23723. #include <$ac_header>
  23724. _ACEOF
  23725. if { (ac_try="$ac_cpp conftest.$ac_ext"
  23726. case "(($ac_try" in
  23727. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23728. *) ac_try_echo=$ac_try;;
  23729. esac
  23730. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23731. $as_echo "$ac_try_echo") >&5
  23732. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  23733. ac_status=$?
  23734. grep -v '^ *+' conftest.er1 >conftest.err
  23735. rm -f conftest.er1
  23736. cat conftest.err >&5
  23737. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23738. (exit $ac_status); } >/dev/null && {
  23739. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  23740. test ! -s conftest.err
  23741. }; then
  23742. ac_header_preproc=yes
  23743. else
  23744. $as_echo "$as_me: failed program was:" >&5
  23745. sed 's/^/| /' conftest.$ac_ext >&5
  23746. ac_header_preproc=no
  23747. fi
  23748. rm -f conftest.err conftest.$ac_ext
  23749. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  23750. $as_echo "$ac_header_preproc" >&6; }
  23751. # So? What about this header?
  23752. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  23753. yes:no: )
  23754. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  23755. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  23756. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  23757. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  23758. ac_header_preproc=yes
  23759. ;;
  23760. no:yes:* )
  23761. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  23762. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  23763. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  23764. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  23765. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  23766. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  23767. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  23768. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  23769. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  23770. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  23771. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  23772. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  23773. ( cat <<\_ASBOX
  23774. ## -------------------------------- ##
  23775. ## Report this to bug-guile@gnu.org ##
  23776. ## -------------------------------- ##
  23777. _ASBOX
  23778. ) | sed "s/^/$as_me: WARNING: /" >&2
  23779. ;;
  23780. esac
  23781. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  23782. $as_echo_n "checking for $ac_header... " >&6; }
  23783. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  23784. $as_echo_n "(cached) " >&6
  23785. else
  23786. eval "$as_ac_Header=\$ac_header_preproc"
  23787. fi
  23788. ac_res=`eval 'as_val=${'$as_ac_Header'}
  23789. $as_echo "$as_val"'`
  23790. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  23791. $as_echo "$ac_res" >&6; }
  23792. fi
  23793. as_val=`eval 'as_val=${'$as_ac_Header'}
  23794. $as_echo "$as_val"'`
  23795. if test "x$as_val" = x""yes; then
  23796. cat >>confdefs.h <<_ACEOF
  23797. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  23798. _ACEOF
  23799. fi
  23800. done
  23801. # Reasons for testing:
  23802. # DINFINITY - OSF specific
  23803. # DQNAN - OSF specific
  23804. # (DINFINITY and DQNAN are actually global variables, not functions)
  23805. # chsize - an MS-DOS-ism, found in mingw
  23806. # cexp, clog - not in various pre-c99 systems, and note that it's possible
  23807. # for gcc to provide the "complex double" type but the system to not
  23808. # have functions like cexp and clog
  23809. # clog10 - not in mingw (though others like clog and csqrt are)
  23810. # fesetround - available in C99, but not older systems
  23811. # ftruncate - posix, but probably not older systems (current mingw
  23812. # has it as an inline for chsize)
  23813. # ioctl - not in mingw.
  23814. # gmtime_r - recent posix, not on old systems
  23815. # pipe - not in mingw
  23816. # _pipe - specific to mingw, taking 3 args
  23817. # readdir_r - recent posix, not on old systems
  23818. # readdir64_r - not available on HP-UX 11.11
  23819. # stat64 - SuS largefile stuff, not on old systems
  23820. # sysconf - not on old systems
  23821. # truncate - not in mingw
  23822. # isblank - available as a GNU extension or in C99
  23823. # _NSGetEnviron - Darwin specific
  23824. #
  23825. for ac_func in DINFINITY DQNAN cexp chsize clog clog10 ctermid fesetround ftime ftruncate fchown getcwd geteuid gettimeofday gmtime_r ioctl lstat mkdir mknod nice pipe _pipe readdir_r readdir64_r readlink rename rmdir select setegid seteuid setlocale setpgid setsid sigaction siginterrupt stat64 strftime strptime symlink sync sysconf tcgetpgrp tcsetpgrp times uname waitpid strdup system usleep atexit on_exit chown link fcntl ttyname getpwent getgrent kill getppid getpgrp fork setitimer getitimer strchr strcmp index bcopy memcpy rindex truncate unsetenv isblank _NSGetEnviron strncasecmp
  23826. do
  23827. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  23828. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  23829. $as_echo_n "checking for $ac_func... " >&6; }
  23830. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  23831. $as_echo_n "(cached) " >&6
  23832. else
  23833. cat >conftest.$ac_ext <<_ACEOF
  23834. /* confdefs.h. */
  23835. _ACEOF
  23836. cat confdefs.h >>conftest.$ac_ext
  23837. cat >>conftest.$ac_ext <<_ACEOF
  23838. /* end confdefs.h. */
  23839. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  23840. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  23841. #define $ac_func innocuous_$ac_func
  23842. /* System header to define __stub macros and hopefully few prototypes,
  23843. which can conflict with char $ac_func (); below.
  23844. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  23845. <limits.h> exists even on freestanding compilers. */
  23846. #ifdef __STDC__
  23847. # include <limits.h>
  23848. #else
  23849. # include <assert.h>
  23850. #endif
  23851. #undef $ac_func
  23852. /* Override any GCC internal prototype to avoid an error.
  23853. Use char because int might match the return type of a GCC
  23854. builtin and then its argument prototype would still apply. */
  23855. #ifdef __cplusplus
  23856. extern "C"
  23857. #endif
  23858. char $ac_func ();
  23859. /* The GNU C library defines this for functions which it implements
  23860. to always fail with ENOSYS. Some functions are actually named
  23861. something starting with __ and the normal name is an alias. */
  23862. #if defined __stub_$ac_func || defined __stub___$ac_func
  23863. choke me
  23864. #endif
  23865. int
  23866. main ()
  23867. {
  23868. return $ac_func ();
  23869. ;
  23870. return 0;
  23871. }
  23872. _ACEOF
  23873. rm -f conftest.$ac_objext conftest$ac_exeext
  23874. if { (ac_try="$ac_link"
  23875. case "(($ac_try" in
  23876. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23877. *) ac_try_echo=$ac_try;;
  23878. esac
  23879. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23880. $as_echo "$ac_try_echo") >&5
  23881. (eval "$ac_link") 2>conftest.er1
  23882. ac_status=$?
  23883. grep -v '^ *+' conftest.er1 >conftest.err
  23884. rm -f conftest.er1
  23885. cat conftest.err >&5
  23886. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23887. (exit $ac_status); } && {
  23888. test -z "$ac_c_werror_flag" ||
  23889. test ! -s conftest.err
  23890. } && test -s conftest$ac_exeext && {
  23891. test "$cross_compiling" = yes ||
  23892. $as_test_x conftest$ac_exeext
  23893. }; then
  23894. eval "$as_ac_var=yes"
  23895. else
  23896. $as_echo "$as_me: failed program was:" >&5
  23897. sed 's/^/| /' conftest.$ac_ext >&5
  23898. eval "$as_ac_var=no"
  23899. fi
  23900. rm -rf conftest.dSYM
  23901. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  23902. conftest$ac_exeext conftest.$ac_ext
  23903. fi
  23904. ac_res=`eval 'as_val=${'$as_ac_var'}
  23905. $as_echo "$as_val"'`
  23906. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  23907. $as_echo "$ac_res" >&6; }
  23908. as_val=`eval 'as_val=${'$as_ac_var'}
  23909. $as_echo "$as_val"'`
  23910. if test "x$as_val" = x""yes; then
  23911. cat >>confdefs.h <<_ACEOF
  23912. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  23913. _ACEOF
  23914. fi
  23915. done
  23916. # Reasons for testing:
  23917. # netdb.h - not in mingw
  23918. # sys/param.h - not in mingw
  23919. # pthread.h - only available with pthreads. ACX_PTHREAD doesn't
  23920. # check this specifically, we need it for the timespec test below.
  23921. # sethostname - the function itself check because it's not in mingw,
  23922. # the DECL is checked because Solaris 10 doens't have in any header
  23923. # strncasecmp - on NetBSD 1.6 the symbol is available in libc but the
  23924. # declaration cannot be found
  23925. # unsetenv - on Tru64 5.1b the symbol is available in libc but the
  23926. # declaration is only found if `_BSD' is defined; it's marked as
  23927. # discouraged in <stdlib.h> and has type `void' instead of `int'
  23928. # anyway.
  23929. # hstrerror - on Tru64 5.1b the symbol is available in libc but the
  23930. # declaration isn't anywhere.
  23931. # cuserid - on Tru64 5.1b the declaration is documented to be available
  23932. # only with `_XOPEN_SOURCE' or some such.
  23933. # flock - on Tru64 5.1b the declaration is available from <sys/fcntl.h>
  23934. # but only if `_BSD' is defined.
  23935. # vsnprintf - on AIX 5.3, the declaration is only visible with
  23936. # `_XOPEN_SOURCE >= 500' or `_ISOC99_SOURCE'.
  23937. #
  23938. for ac_header in crypt.h netdb.h pthread.h sys/param.h sys/resource.h sys/file.h
  23939. do
  23940. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  23941. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  23942. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  23943. $as_echo_n "checking for $ac_header... " >&6; }
  23944. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  23945. $as_echo_n "(cached) " >&6
  23946. fi
  23947. ac_res=`eval 'as_val=${'$as_ac_Header'}
  23948. $as_echo "$as_val"'`
  23949. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  23950. $as_echo "$ac_res" >&6; }
  23951. else
  23952. # Is the header compilable?
  23953. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  23954. $as_echo_n "checking $ac_header usability... " >&6; }
  23955. cat >conftest.$ac_ext <<_ACEOF
  23956. /* confdefs.h. */
  23957. _ACEOF
  23958. cat confdefs.h >>conftest.$ac_ext
  23959. cat >>conftest.$ac_ext <<_ACEOF
  23960. /* end confdefs.h. */
  23961. $ac_includes_default
  23962. #include <$ac_header>
  23963. _ACEOF
  23964. rm -f conftest.$ac_objext
  23965. if { (ac_try="$ac_compile"
  23966. case "(($ac_try" in
  23967. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23968. *) ac_try_echo=$ac_try;;
  23969. esac
  23970. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23971. $as_echo "$ac_try_echo") >&5
  23972. (eval "$ac_compile") 2>conftest.er1
  23973. ac_status=$?
  23974. grep -v '^ *+' conftest.er1 >conftest.err
  23975. rm -f conftest.er1
  23976. cat conftest.err >&5
  23977. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23978. (exit $ac_status); } && {
  23979. test -z "$ac_c_werror_flag" ||
  23980. test ! -s conftest.err
  23981. } && test -s conftest.$ac_objext; then
  23982. ac_header_compiler=yes
  23983. else
  23984. $as_echo "$as_me: failed program was:" >&5
  23985. sed 's/^/| /' conftest.$ac_ext >&5
  23986. ac_header_compiler=no
  23987. fi
  23988. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23989. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  23990. $as_echo "$ac_header_compiler" >&6; }
  23991. # Is the header present?
  23992. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  23993. $as_echo_n "checking $ac_header presence... " >&6; }
  23994. cat >conftest.$ac_ext <<_ACEOF
  23995. /* confdefs.h. */
  23996. _ACEOF
  23997. cat confdefs.h >>conftest.$ac_ext
  23998. cat >>conftest.$ac_ext <<_ACEOF
  23999. /* end confdefs.h. */
  24000. #include <$ac_header>
  24001. _ACEOF
  24002. if { (ac_try="$ac_cpp conftest.$ac_ext"
  24003. case "(($ac_try" in
  24004. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24005. *) ac_try_echo=$ac_try;;
  24006. esac
  24007. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24008. $as_echo "$ac_try_echo") >&5
  24009. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  24010. ac_status=$?
  24011. grep -v '^ *+' conftest.er1 >conftest.err
  24012. rm -f conftest.er1
  24013. cat conftest.err >&5
  24014. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24015. (exit $ac_status); } >/dev/null && {
  24016. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  24017. test ! -s conftest.err
  24018. }; then
  24019. ac_header_preproc=yes
  24020. else
  24021. $as_echo "$as_me: failed program was:" >&5
  24022. sed 's/^/| /' conftest.$ac_ext >&5
  24023. ac_header_preproc=no
  24024. fi
  24025. rm -f conftest.err conftest.$ac_ext
  24026. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  24027. $as_echo "$ac_header_preproc" >&6; }
  24028. # So? What about this header?
  24029. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  24030. yes:no: )
  24031. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  24032. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  24033. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  24034. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  24035. ac_header_preproc=yes
  24036. ;;
  24037. no:yes:* )
  24038. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  24039. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  24040. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  24041. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  24042. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  24043. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  24044. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  24045. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  24046. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  24047. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  24048. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  24049. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  24050. ( cat <<\_ASBOX
  24051. ## -------------------------------- ##
  24052. ## Report this to bug-guile@gnu.org ##
  24053. ## -------------------------------- ##
  24054. _ASBOX
  24055. ) | sed "s/^/$as_me: WARNING: /" >&2
  24056. ;;
  24057. esac
  24058. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  24059. $as_echo_n "checking for $ac_header... " >&6; }
  24060. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  24061. $as_echo_n "(cached) " >&6
  24062. else
  24063. eval "$as_ac_Header=\$ac_header_preproc"
  24064. fi
  24065. ac_res=`eval 'as_val=${'$as_ac_Header'}
  24066. $as_echo "$as_val"'`
  24067. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  24068. $as_echo "$ac_res" >&6; }
  24069. fi
  24070. as_val=`eval 'as_val=${'$as_ac_Header'}
  24071. $as_echo "$as_val"'`
  24072. if test "x$as_val" = x""yes; then
  24073. cat >>confdefs.h <<_ACEOF
  24074. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  24075. _ACEOF
  24076. fi
  24077. done
  24078. for ac_func in chroot flock getlogin cuserid getpriority setpriority getpass sethostname gethostname
  24079. do
  24080. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  24081. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  24082. $as_echo_n "checking for $ac_func... " >&6; }
  24083. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  24084. $as_echo_n "(cached) " >&6
  24085. else
  24086. cat >conftest.$ac_ext <<_ACEOF
  24087. /* confdefs.h. */
  24088. _ACEOF
  24089. cat confdefs.h >>conftest.$ac_ext
  24090. cat >>conftest.$ac_ext <<_ACEOF
  24091. /* end confdefs.h. */
  24092. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  24093. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  24094. #define $ac_func innocuous_$ac_func
  24095. /* System header to define __stub macros and hopefully few prototypes,
  24096. which can conflict with char $ac_func (); below.
  24097. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  24098. <limits.h> exists even on freestanding compilers. */
  24099. #ifdef __STDC__
  24100. # include <limits.h>
  24101. #else
  24102. # include <assert.h>
  24103. #endif
  24104. #undef $ac_func
  24105. /* Override any GCC internal prototype to avoid an error.
  24106. Use char because int might match the return type of a GCC
  24107. builtin and then its argument prototype would still apply. */
  24108. #ifdef __cplusplus
  24109. extern "C"
  24110. #endif
  24111. char $ac_func ();
  24112. /* The GNU C library defines this for functions which it implements
  24113. to always fail with ENOSYS. Some functions are actually named
  24114. something starting with __ and the normal name is an alias. */
  24115. #if defined __stub_$ac_func || defined __stub___$ac_func
  24116. choke me
  24117. #endif
  24118. int
  24119. main ()
  24120. {
  24121. return $ac_func ();
  24122. ;
  24123. return 0;
  24124. }
  24125. _ACEOF
  24126. rm -f conftest.$ac_objext conftest$ac_exeext
  24127. if { (ac_try="$ac_link"
  24128. case "(($ac_try" in
  24129. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24130. *) ac_try_echo=$ac_try;;
  24131. esac
  24132. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24133. $as_echo "$ac_try_echo") >&5
  24134. (eval "$ac_link") 2>conftest.er1
  24135. ac_status=$?
  24136. grep -v '^ *+' conftest.er1 >conftest.err
  24137. rm -f conftest.er1
  24138. cat conftest.err >&5
  24139. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24140. (exit $ac_status); } && {
  24141. test -z "$ac_c_werror_flag" ||
  24142. test ! -s conftest.err
  24143. } && test -s conftest$ac_exeext && {
  24144. test "$cross_compiling" = yes ||
  24145. $as_test_x conftest$ac_exeext
  24146. }; then
  24147. eval "$as_ac_var=yes"
  24148. else
  24149. $as_echo "$as_me: failed program was:" >&5
  24150. sed 's/^/| /' conftest.$ac_ext >&5
  24151. eval "$as_ac_var=no"
  24152. fi
  24153. rm -rf conftest.dSYM
  24154. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  24155. conftest$ac_exeext conftest.$ac_ext
  24156. fi
  24157. ac_res=`eval 'as_val=${'$as_ac_var'}
  24158. $as_echo "$as_val"'`
  24159. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  24160. $as_echo "$ac_res" >&6; }
  24161. as_val=`eval 'as_val=${'$as_ac_var'}
  24162. $as_echo "$as_val"'`
  24163. if test "x$as_val" = x""yes; then
  24164. cat >>confdefs.h <<_ACEOF
  24165. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  24166. _ACEOF
  24167. fi
  24168. done
  24169. { $as_echo "$as_me:$LINENO: checking whether sethostname is declared" >&5
  24170. $as_echo_n "checking whether sethostname is declared... " >&6; }
  24171. if test "${ac_cv_have_decl_sethostname+set}" = set; then
  24172. $as_echo_n "(cached) " >&6
  24173. else
  24174. cat >conftest.$ac_ext <<_ACEOF
  24175. /* confdefs.h. */
  24176. _ACEOF
  24177. cat confdefs.h >>conftest.$ac_ext
  24178. cat >>conftest.$ac_ext <<_ACEOF
  24179. /* end confdefs.h. */
  24180. $ac_includes_default
  24181. int
  24182. main ()
  24183. {
  24184. #ifndef sethostname
  24185. (void) sethostname;
  24186. #endif
  24187. ;
  24188. return 0;
  24189. }
  24190. _ACEOF
  24191. rm -f conftest.$ac_objext
  24192. if { (ac_try="$ac_compile"
  24193. case "(($ac_try" in
  24194. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24195. *) ac_try_echo=$ac_try;;
  24196. esac
  24197. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24198. $as_echo "$ac_try_echo") >&5
  24199. (eval "$ac_compile") 2>conftest.er1
  24200. ac_status=$?
  24201. grep -v '^ *+' conftest.er1 >conftest.err
  24202. rm -f conftest.er1
  24203. cat conftest.err >&5
  24204. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24205. (exit $ac_status); } && {
  24206. test -z "$ac_c_werror_flag" ||
  24207. test ! -s conftest.err
  24208. } && test -s conftest.$ac_objext; then
  24209. ac_cv_have_decl_sethostname=yes
  24210. else
  24211. $as_echo "$as_me: failed program was:" >&5
  24212. sed 's/^/| /' conftest.$ac_ext >&5
  24213. ac_cv_have_decl_sethostname=no
  24214. fi
  24215. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24216. fi
  24217. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sethostname" >&5
  24218. $as_echo "$ac_cv_have_decl_sethostname" >&6; }
  24219. if test "x$ac_cv_have_decl_sethostname" = x""yes; then
  24220. cat >>confdefs.h <<_ACEOF
  24221. #define HAVE_DECL_SETHOSTNAME 1
  24222. _ACEOF
  24223. else
  24224. cat >>confdefs.h <<_ACEOF
  24225. #define HAVE_DECL_SETHOSTNAME 0
  24226. _ACEOF
  24227. fi
  24228. { $as_echo "$as_me:$LINENO: checking whether strncasecmp is declared" >&5
  24229. $as_echo_n "checking whether strncasecmp is declared... " >&6; }
  24230. if test "${ac_cv_have_decl_strncasecmp+set}" = set; then
  24231. $as_echo_n "(cached) " >&6
  24232. else
  24233. cat >conftest.$ac_ext <<_ACEOF
  24234. /* confdefs.h. */
  24235. _ACEOF
  24236. cat confdefs.h >>conftest.$ac_ext
  24237. cat >>conftest.$ac_ext <<_ACEOF
  24238. /* end confdefs.h. */
  24239. $ac_includes_default
  24240. int
  24241. main ()
  24242. {
  24243. #ifndef strncasecmp
  24244. (void) strncasecmp;
  24245. #endif
  24246. ;
  24247. return 0;
  24248. }
  24249. _ACEOF
  24250. rm -f conftest.$ac_objext
  24251. if { (ac_try="$ac_compile"
  24252. case "(($ac_try" in
  24253. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24254. *) ac_try_echo=$ac_try;;
  24255. esac
  24256. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24257. $as_echo "$ac_try_echo") >&5
  24258. (eval "$ac_compile") 2>conftest.er1
  24259. ac_status=$?
  24260. grep -v '^ *+' conftest.er1 >conftest.err
  24261. rm -f conftest.er1
  24262. cat conftest.err >&5
  24263. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24264. (exit $ac_status); } && {
  24265. test -z "$ac_c_werror_flag" ||
  24266. test ! -s conftest.err
  24267. } && test -s conftest.$ac_objext; then
  24268. ac_cv_have_decl_strncasecmp=yes
  24269. else
  24270. $as_echo "$as_me: failed program was:" >&5
  24271. sed 's/^/| /' conftest.$ac_ext >&5
  24272. ac_cv_have_decl_strncasecmp=no
  24273. fi
  24274. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24275. fi
  24276. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strncasecmp" >&5
  24277. $as_echo "$ac_cv_have_decl_strncasecmp" >&6; }
  24278. if test "x$ac_cv_have_decl_strncasecmp" = x""yes; then
  24279. cat >>confdefs.h <<_ACEOF
  24280. #define HAVE_DECL_STRNCASECMP 1
  24281. _ACEOF
  24282. else
  24283. cat >>confdefs.h <<_ACEOF
  24284. #define HAVE_DECL_STRNCASECMP 0
  24285. _ACEOF
  24286. fi
  24287. { $as_echo "$as_me:$LINENO: checking whether unsetenv is declared" >&5
  24288. $as_echo_n "checking whether unsetenv is declared... " >&6; }
  24289. if test "${ac_cv_have_decl_unsetenv+set}" = set; then
  24290. $as_echo_n "(cached) " >&6
  24291. else
  24292. cat >conftest.$ac_ext <<_ACEOF
  24293. /* confdefs.h. */
  24294. _ACEOF
  24295. cat confdefs.h >>conftest.$ac_ext
  24296. cat >>conftest.$ac_ext <<_ACEOF
  24297. /* end confdefs.h. */
  24298. $ac_includes_default
  24299. int
  24300. main ()
  24301. {
  24302. #ifndef unsetenv
  24303. (void) unsetenv;
  24304. #endif
  24305. ;
  24306. return 0;
  24307. }
  24308. _ACEOF
  24309. rm -f conftest.$ac_objext
  24310. if { (ac_try="$ac_compile"
  24311. case "(($ac_try" in
  24312. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24313. *) ac_try_echo=$ac_try;;
  24314. esac
  24315. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24316. $as_echo "$ac_try_echo") >&5
  24317. (eval "$ac_compile") 2>conftest.er1
  24318. ac_status=$?
  24319. grep -v '^ *+' conftest.er1 >conftest.err
  24320. rm -f conftest.er1
  24321. cat conftest.err >&5
  24322. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24323. (exit $ac_status); } && {
  24324. test -z "$ac_c_werror_flag" ||
  24325. test ! -s conftest.err
  24326. } && test -s conftest.$ac_objext; then
  24327. ac_cv_have_decl_unsetenv=yes
  24328. else
  24329. $as_echo "$as_me: failed program was:" >&5
  24330. sed 's/^/| /' conftest.$ac_ext >&5
  24331. ac_cv_have_decl_unsetenv=no
  24332. fi
  24333. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24334. fi
  24335. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_unsetenv" >&5
  24336. $as_echo "$ac_cv_have_decl_unsetenv" >&6; }
  24337. if test "x$ac_cv_have_decl_unsetenv" = x""yes; then
  24338. cat >>confdefs.h <<_ACEOF
  24339. #define HAVE_DECL_UNSETENV 1
  24340. _ACEOF
  24341. else
  24342. cat >>confdefs.h <<_ACEOF
  24343. #define HAVE_DECL_UNSETENV 0
  24344. _ACEOF
  24345. fi
  24346. { $as_echo "$as_me:$LINENO: checking whether hstrerror is declared" >&5
  24347. $as_echo_n "checking whether hstrerror is declared... " >&6; }
  24348. if test "${ac_cv_have_decl_hstrerror+set}" = set; then
  24349. $as_echo_n "(cached) " >&6
  24350. else
  24351. cat >conftest.$ac_ext <<_ACEOF
  24352. /* confdefs.h. */
  24353. _ACEOF
  24354. cat confdefs.h >>conftest.$ac_ext
  24355. cat >>conftest.$ac_ext <<_ACEOF
  24356. /* end confdefs.h. */
  24357. $ac_includes_default
  24358. int
  24359. main ()
  24360. {
  24361. #ifndef hstrerror
  24362. (void) hstrerror;
  24363. #endif
  24364. ;
  24365. return 0;
  24366. }
  24367. _ACEOF
  24368. rm -f conftest.$ac_objext
  24369. if { (ac_try="$ac_compile"
  24370. case "(($ac_try" in
  24371. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24372. *) ac_try_echo=$ac_try;;
  24373. esac
  24374. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24375. $as_echo "$ac_try_echo") >&5
  24376. (eval "$ac_compile") 2>conftest.er1
  24377. ac_status=$?
  24378. grep -v '^ *+' conftest.er1 >conftest.err
  24379. rm -f conftest.er1
  24380. cat conftest.err >&5
  24381. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24382. (exit $ac_status); } && {
  24383. test -z "$ac_c_werror_flag" ||
  24384. test ! -s conftest.err
  24385. } && test -s conftest.$ac_objext; then
  24386. ac_cv_have_decl_hstrerror=yes
  24387. else
  24388. $as_echo "$as_me: failed program was:" >&5
  24389. sed 's/^/| /' conftest.$ac_ext >&5
  24390. ac_cv_have_decl_hstrerror=no
  24391. fi
  24392. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24393. fi
  24394. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_hstrerror" >&5
  24395. $as_echo "$ac_cv_have_decl_hstrerror" >&6; }
  24396. if test "x$ac_cv_have_decl_hstrerror" = x""yes; then
  24397. cat >>confdefs.h <<_ACEOF
  24398. #define HAVE_DECL_HSTRERROR 1
  24399. _ACEOF
  24400. else
  24401. cat >>confdefs.h <<_ACEOF
  24402. #define HAVE_DECL_HSTRERROR 0
  24403. _ACEOF
  24404. fi
  24405. { $as_echo "$as_me:$LINENO: checking whether cuserid is declared" >&5
  24406. $as_echo_n "checking whether cuserid is declared... " >&6; }
  24407. if test "${ac_cv_have_decl_cuserid+set}" = set; then
  24408. $as_echo_n "(cached) " >&6
  24409. else
  24410. cat >conftest.$ac_ext <<_ACEOF
  24411. /* confdefs.h. */
  24412. _ACEOF
  24413. cat confdefs.h >>conftest.$ac_ext
  24414. cat >>conftest.$ac_ext <<_ACEOF
  24415. /* end confdefs.h. */
  24416. $ac_includes_default
  24417. int
  24418. main ()
  24419. {
  24420. #ifndef cuserid
  24421. (void) cuserid;
  24422. #endif
  24423. ;
  24424. return 0;
  24425. }
  24426. _ACEOF
  24427. rm -f conftest.$ac_objext
  24428. if { (ac_try="$ac_compile"
  24429. case "(($ac_try" in
  24430. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24431. *) ac_try_echo=$ac_try;;
  24432. esac
  24433. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24434. $as_echo "$ac_try_echo") >&5
  24435. (eval "$ac_compile") 2>conftest.er1
  24436. ac_status=$?
  24437. grep -v '^ *+' conftest.er1 >conftest.err
  24438. rm -f conftest.er1
  24439. cat conftest.err >&5
  24440. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24441. (exit $ac_status); } && {
  24442. test -z "$ac_c_werror_flag" ||
  24443. test ! -s conftest.err
  24444. } && test -s conftest.$ac_objext; then
  24445. ac_cv_have_decl_cuserid=yes
  24446. else
  24447. $as_echo "$as_me: failed program was:" >&5
  24448. sed 's/^/| /' conftest.$ac_ext >&5
  24449. ac_cv_have_decl_cuserid=no
  24450. fi
  24451. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24452. fi
  24453. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_cuserid" >&5
  24454. $as_echo "$ac_cv_have_decl_cuserid" >&6; }
  24455. if test "x$ac_cv_have_decl_cuserid" = x""yes; then
  24456. cat >>confdefs.h <<_ACEOF
  24457. #define HAVE_DECL_CUSERID 1
  24458. _ACEOF
  24459. else
  24460. cat >>confdefs.h <<_ACEOF
  24461. #define HAVE_DECL_CUSERID 0
  24462. _ACEOF
  24463. fi
  24464. { $as_echo "$as_me:$LINENO: checking whether flock is declared" >&5
  24465. $as_echo_n "checking whether flock is declared... " >&6; }
  24466. if test "${ac_cv_have_decl_flock+set}" = set; then
  24467. $as_echo_n "(cached) " >&6
  24468. else
  24469. cat >conftest.$ac_ext <<_ACEOF
  24470. /* confdefs.h. */
  24471. _ACEOF
  24472. cat confdefs.h >>conftest.$ac_ext
  24473. cat >>conftest.$ac_ext <<_ACEOF
  24474. /* end confdefs.h. */
  24475. $ac_includes_default
  24476. int
  24477. main ()
  24478. {
  24479. #ifndef flock
  24480. (void) flock;
  24481. #endif
  24482. ;
  24483. return 0;
  24484. }
  24485. _ACEOF
  24486. rm -f conftest.$ac_objext
  24487. if { (ac_try="$ac_compile"
  24488. case "(($ac_try" in
  24489. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24490. *) ac_try_echo=$ac_try;;
  24491. esac
  24492. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24493. $as_echo "$ac_try_echo") >&5
  24494. (eval "$ac_compile") 2>conftest.er1
  24495. ac_status=$?
  24496. grep -v '^ *+' conftest.er1 >conftest.err
  24497. rm -f conftest.er1
  24498. cat conftest.err >&5
  24499. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24500. (exit $ac_status); } && {
  24501. test -z "$ac_c_werror_flag" ||
  24502. test ! -s conftest.err
  24503. } && test -s conftest.$ac_objext; then
  24504. ac_cv_have_decl_flock=yes
  24505. else
  24506. $as_echo "$as_me: failed program was:" >&5
  24507. sed 's/^/| /' conftest.$ac_ext >&5
  24508. ac_cv_have_decl_flock=no
  24509. fi
  24510. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24511. fi
  24512. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_flock" >&5
  24513. $as_echo "$ac_cv_have_decl_flock" >&6; }
  24514. if test "x$ac_cv_have_decl_flock" = x""yes; then
  24515. cat >>confdefs.h <<_ACEOF
  24516. #define HAVE_DECL_FLOCK 1
  24517. _ACEOF
  24518. else
  24519. cat >>confdefs.h <<_ACEOF
  24520. #define HAVE_DECL_FLOCK 0
  24521. _ACEOF
  24522. fi
  24523. { $as_echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
  24524. $as_echo_n "checking whether vsnprintf is declared... " >&6; }
  24525. if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
  24526. $as_echo_n "(cached) " >&6
  24527. else
  24528. cat >conftest.$ac_ext <<_ACEOF
  24529. /* confdefs.h. */
  24530. _ACEOF
  24531. cat confdefs.h >>conftest.$ac_ext
  24532. cat >>conftest.$ac_ext <<_ACEOF
  24533. /* end confdefs.h. */
  24534. $ac_includes_default
  24535. int
  24536. main ()
  24537. {
  24538. #ifndef vsnprintf
  24539. (void) vsnprintf;
  24540. #endif
  24541. ;
  24542. return 0;
  24543. }
  24544. _ACEOF
  24545. rm -f conftest.$ac_objext
  24546. if { (ac_try="$ac_compile"
  24547. case "(($ac_try" in
  24548. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24549. *) ac_try_echo=$ac_try;;
  24550. esac
  24551. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24552. $as_echo "$ac_try_echo") >&5
  24553. (eval "$ac_compile") 2>conftest.er1
  24554. ac_status=$?
  24555. grep -v '^ *+' conftest.er1 >conftest.err
  24556. rm -f conftest.er1
  24557. cat conftest.err >&5
  24558. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24559. (exit $ac_status); } && {
  24560. test -z "$ac_c_werror_flag" ||
  24561. test ! -s conftest.err
  24562. } && test -s conftest.$ac_objext; then
  24563. ac_cv_have_decl_vsnprintf=yes
  24564. else
  24565. $as_echo "$as_me: failed program was:" >&5
  24566. sed 's/^/| /' conftest.$ac_ext >&5
  24567. ac_cv_have_decl_vsnprintf=no
  24568. fi
  24569. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24570. fi
  24571. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
  24572. $as_echo "$ac_cv_have_decl_vsnprintf" >&6; }
  24573. if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then
  24574. cat >>confdefs.h <<_ACEOF
  24575. #define HAVE_DECL_VSNPRINTF 1
  24576. _ACEOF
  24577. else
  24578. cat >>confdefs.h <<_ACEOF
  24579. #define HAVE_DECL_VSNPRINTF 0
  24580. _ACEOF
  24581. fi
  24582. # crypt() may or may not be available, for instance in some countries there
  24583. # are restrictions on cryptography.
  24584. #
  24585. # crypt() might be in libc (eg. OpenBSD), or it might be in a separate
  24586. # -lcrypt library (eg. Debian GNU/Linux).
  24587. #
  24588. # On HP-UX 11, crypt() is in libc and there's a dummy libcrypt.a. We must
  24589. # be careful to avoid -lcrypt in this case, since libtool will see there's
  24590. # only a static libcrypt and decide to build only a static libguile.
  24591. #
  24592. # AC_SEARCH_LIBS lets us add -lcrypt to LIBS only if crypt() is not in the
  24593. # libraries already in that list.
  24594. #
  24595. { $as_echo "$as_me:$LINENO: checking for library containing crypt" >&5
  24596. $as_echo_n "checking for library containing crypt... " >&6; }
  24597. if test "${ac_cv_search_crypt+set}" = set; then
  24598. $as_echo_n "(cached) " >&6
  24599. else
  24600. ac_func_search_save_LIBS=$LIBS
  24601. cat >conftest.$ac_ext <<_ACEOF
  24602. /* confdefs.h. */
  24603. _ACEOF
  24604. cat confdefs.h >>conftest.$ac_ext
  24605. cat >>conftest.$ac_ext <<_ACEOF
  24606. /* end confdefs.h. */
  24607. /* Override any GCC internal prototype to avoid an error.
  24608. Use char because int might match the return type of a GCC
  24609. builtin and then its argument prototype would still apply. */
  24610. #ifdef __cplusplus
  24611. extern "C"
  24612. #endif
  24613. char crypt ();
  24614. int
  24615. main ()
  24616. {
  24617. return crypt ();
  24618. ;
  24619. return 0;
  24620. }
  24621. _ACEOF
  24622. for ac_lib in '' crypt; do
  24623. if test -z "$ac_lib"; then
  24624. ac_res="none required"
  24625. else
  24626. ac_res=-l$ac_lib
  24627. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  24628. fi
  24629. rm -f conftest.$ac_objext conftest$ac_exeext
  24630. if { (ac_try="$ac_link"
  24631. case "(($ac_try" in
  24632. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24633. *) ac_try_echo=$ac_try;;
  24634. esac
  24635. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24636. $as_echo "$ac_try_echo") >&5
  24637. (eval "$ac_link") 2>conftest.er1
  24638. ac_status=$?
  24639. grep -v '^ *+' conftest.er1 >conftest.err
  24640. rm -f conftest.er1
  24641. cat conftest.err >&5
  24642. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24643. (exit $ac_status); } && {
  24644. test -z "$ac_c_werror_flag" ||
  24645. test ! -s conftest.err
  24646. } && test -s conftest$ac_exeext && {
  24647. test "$cross_compiling" = yes ||
  24648. $as_test_x conftest$ac_exeext
  24649. }; then
  24650. ac_cv_search_crypt=$ac_res
  24651. else
  24652. $as_echo "$as_me: failed program was:" >&5
  24653. sed 's/^/| /' conftest.$ac_ext >&5
  24654. fi
  24655. rm -rf conftest.dSYM
  24656. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  24657. conftest$ac_exeext
  24658. if test "${ac_cv_search_crypt+set}" = set; then
  24659. break
  24660. fi
  24661. done
  24662. if test "${ac_cv_search_crypt+set}" = set; then
  24663. :
  24664. else
  24665. ac_cv_search_crypt=no
  24666. fi
  24667. rm conftest.$ac_ext
  24668. LIBS=$ac_func_search_save_LIBS
  24669. fi
  24670. { $as_echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
  24671. $as_echo "$ac_cv_search_crypt" >&6; }
  24672. ac_res=$ac_cv_search_crypt
  24673. if test "$ac_res" != no; then
  24674. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  24675. cat >>confdefs.h <<\_ACEOF
  24676. #define HAVE_CRYPT 1
  24677. _ACEOF
  24678. fi
  24679. # When compiling with GCC on some OSs (Solaris, AIX), _Complex_I doesn't
  24680. # work; in the reported cases so far, 1.0fi works well instead. According
  24681. # to the C99 spec, the complex.h header must provide a working definition
  24682. # of _Complex_I, so we always try _Complex_I first. The 1.0fi fallback
  24683. # is a workaround for the failure of some systems to conform to C99.
  24684. if test "$ac_cv_type_complex_double" = yes; then
  24685. { $as_echo "$as_me:$LINENO: checking for i" >&5
  24686. $as_echo_n "checking for i... " >&6; }
  24687. cat >conftest.$ac_ext <<_ACEOF
  24688. /* confdefs.h. */
  24689. _ACEOF
  24690. cat confdefs.h >>conftest.$ac_ext
  24691. cat >>conftest.$ac_ext <<_ACEOF
  24692. /* end confdefs.h. */
  24693. #if HAVE_COMPLEX_H
  24694. #include <complex.h>
  24695. #endif
  24696. complex double z;
  24697. int
  24698. main ()
  24699. {
  24700. z = _Complex_I;
  24701. ;
  24702. return 0;
  24703. }
  24704. _ACEOF
  24705. rm -f conftest.$ac_objext
  24706. if { (ac_try="$ac_compile"
  24707. case "(($ac_try" in
  24708. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24709. *) ac_try_echo=$ac_try;;
  24710. esac
  24711. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24712. $as_echo "$ac_try_echo") >&5
  24713. (eval "$ac_compile") 2>conftest.er1
  24714. ac_status=$?
  24715. grep -v '^ *+' conftest.er1 >conftest.err
  24716. rm -f conftest.er1
  24717. cat conftest.err >&5
  24718. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24719. (exit $ac_status); } && {
  24720. test -z "$ac_c_werror_flag" ||
  24721. test ! -s conftest.err
  24722. } && test -s conftest.$ac_objext; then
  24723. cat >>confdefs.h <<\_ACEOF
  24724. #define GUILE_I _Complex_I
  24725. _ACEOF
  24726. { $as_echo "$as_me:$LINENO: result: _Complex_I" >&5
  24727. $as_echo "_Complex_I" >&6; }
  24728. else
  24729. $as_echo "$as_me: failed program was:" >&5
  24730. sed 's/^/| /' conftest.$ac_ext >&5
  24731. cat >conftest.$ac_ext <<_ACEOF
  24732. /* confdefs.h. */
  24733. _ACEOF
  24734. cat confdefs.h >>conftest.$ac_ext
  24735. cat >>conftest.$ac_ext <<_ACEOF
  24736. /* end confdefs.h. */
  24737. #if HAVE_COMPLEX_H
  24738. #include <complex.h>
  24739. #endif
  24740. complex double z;
  24741. int
  24742. main ()
  24743. {
  24744. z = 1.0fi;
  24745. ;
  24746. return 0;
  24747. }
  24748. _ACEOF
  24749. rm -f conftest.$ac_objext
  24750. if { (ac_try="$ac_compile"
  24751. case "(($ac_try" in
  24752. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24753. *) ac_try_echo=$ac_try;;
  24754. esac
  24755. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24756. $as_echo "$ac_try_echo") >&5
  24757. (eval "$ac_compile") 2>conftest.er1
  24758. ac_status=$?
  24759. grep -v '^ *+' conftest.er1 >conftest.err
  24760. rm -f conftest.er1
  24761. cat conftest.err >&5
  24762. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24763. (exit $ac_status); } && {
  24764. test -z "$ac_c_werror_flag" ||
  24765. test ! -s conftest.err
  24766. } && test -s conftest.$ac_objext; then
  24767. cat >>confdefs.h <<\_ACEOF
  24768. #define GUILE_I 1.0fi
  24769. _ACEOF
  24770. { $as_echo "$as_me:$LINENO: result: 1.0fi" >&5
  24771. $as_echo "1.0fi" >&6; }
  24772. else
  24773. $as_echo "$as_me: failed program was:" >&5
  24774. sed 's/^/| /' conftest.$ac_ext >&5
  24775. ac_cv_type_complex_double=no
  24776. { $as_echo "$as_me:$LINENO: result: not available" >&5
  24777. $as_echo "not available" >&6; }
  24778. fi
  24779. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24780. fi
  24781. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24782. fi
  24783. # glibc 2.3.6 (circa 2006) and various prior versions had a bug where
  24784. # csqrt(-i) returned a negative real part, when it should be positive
  24785. # for the principal root.
  24786. #
  24787. if test "$ac_cv_type_complex_double" = yes; then
  24788. { $as_echo "$as_me:$LINENO: checking whether csqrt is usable" >&5
  24789. $as_echo_n "checking whether csqrt is usable... " >&6; }
  24790. if test "${guile_cv_use_csqrt+set}" = set; then
  24791. $as_echo_n "(cached) " >&6
  24792. else
  24793. if test "$cross_compiling" = yes; then
  24794. guile_cv_use_csqrt="yes, hopefully (cross-compiling)"
  24795. else
  24796. cat >conftest.$ac_ext <<_ACEOF
  24797. /* confdefs.h. */
  24798. _ACEOF
  24799. cat confdefs.h >>conftest.$ac_ext
  24800. cat >>conftest.$ac_ext <<_ACEOF
  24801. /* end confdefs.h. */
  24802. #include <complex.h>
  24803. /* "volatile" is meant to prevent gcc from calculating the sqrt as a
  24804. constant, we want to test libc. */
  24805. volatile complex double z = - _Complex_I;
  24806. int
  24807. main (void)
  24808. {
  24809. z = csqrt (z);
  24810. if (creal (z) > 0.0)
  24811. return 0; /* good */
  24812. else
  24813. return 1; /* bad */
  24814. }
  24815. _ACEOF
  24816. rm -f conftest$ac_exeext
  24817. if { (ac_try="$ac_link"
  24818. case "(($ac_try" in
  24819. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24820. *) ac_try_echo=$ac_try;;
  24821. esac
  24822. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24823. $as_echo "$ac_try_echo") >&5
  24824. (eval "$ac_link") 2>&5
  24825. ac_status=$?
  24826. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24827. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  24828. { (case "(($ac_try" in
  24829. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24830. *) ac_try_echo=$ac_try;;
  24831. esac
  24832. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24833. $as_echo "$ac_try_echo") >&5
  24834. (eval "$ac_try") 2>&5
  24835. ac_status=$?
  24836. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24837. (exit $ac_status); }; }; then
  24838. guile_cv_use_csqrt=yes
  24839. else
  24840. $as_echo "$as_me: program exited with status $ac_status" >&5
  24841. $as_echo "$as_me: failed program was:" >&5
  24842. sed 's/^/| /' conftest.$ac_ext >&5
  24843. ( exit $ac_status )
  24844. guile_cv_use_csqrt="no, glibc 2.3 bug"
  24845. fi
  24846. rm -rf conftest.dSYM
  24847. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  24848. fi
  24849. fi
  24850. { $as_echo "$as_me:$LINENO: result: $guile_cv_use_csqrt" >&5
  24851. $as_echo "$guile_cv_use_csqrt" >&6; }
  24852. case $guile_cv_use_csqrt in
  24853. yes*)
  24854. cat >>confdefs.h <<\_ACEOF
  24855. #define HAVE_USABLE_CSQRT 1
  24856. _ACEOF
  24857. ;;
  24858. esac
  24859. fi
  24860. { $as_echo "$as_me:$LINENO: checking for __gmpz_init in -lgmp" >&5
  24861. $as_echo_n "checking for __gmpz_init in -lgmp... " >&6; }
  24862. if test "${ac_cv_lib_gmp___gmpz_init+set}" = set; then
  24863. $as_echo_n "(cached) " >&6
  24864. else
  24865. ac_check_lib_save_LIBS=$LIBS
  24866. LIBS="-lgmp $LIBS"
  24867. cat >conftest.$ac_ext <<_ACEOF
  24868. /* confdefs.h. */
  24869. _ACEOF
  24870. cat confdefs.h >>conftest.$ac_ext
  24871. cat >>conftest.$ac_ext <<_ACEOF
  24872. /* end confdefs.h. */
  24873. /* Override any GCC internal prototype to avoid an error.
  24874. Use char because int might match the return type of a GCC
  24875. builtin and then its argument prototype would still apply. */
  24876. #ifdef __cplusplus
  24877. extern "C"
  24878. #endif
  24879. char __gmpz_init ();
  24880. int
  24881. main ()
  24882. {
  24883. return __gmpz_init ();
  24884. ;
  24885. return 0;
  24886. }
  24887. _ACEOF
  24888. rm -f conftest.$ac_objext conftest$ac_exeext
  24889. if { (ac_try="$ac_link"
  24890. case "(($ac_try" in
  24891. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24892. *) ac_try_echo=$ac_try;;
  24893. esac
  24894. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24895. $as_echo "$ac_try_echo") >&5
  24896. (eval "$ac_link") 2>conftest.er1
  24897. ac_status=$?
  24898. grep -v '^ *+' conftest.er1 >conftest.err
  24899. rm -f conftest.er1
  24900. cat conftest.err >&5
  24901. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24902. (exit $ac_status); } && {
  24903. test -z "$ac_c_werror_flag" ||
  24904. test ! -s conftest.err
  24905. } && test -s conftest$ac_exeext && {
  24906. test "$cross_compiling" = yes ||
  24907. $as_test_x conftest$ac_exeext
  24908. }; then
  24909. ac_cv_lib_gmp___gmpz_init=yes
  24910. else
  24911. $as_echo "$as_me: failed program was:" >&5
  24912. sed 's/^/| /' conftest.$ac_ext >&5
  24913. ac_cv_lib_gmp___gmpz_init=no
  24914. fi
  24915. rm -rf conftest.dSYM
  24916. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  24917. conftest$ac_exeext conftest.$ac_ext
  24918. LIBS=$ac_check_lib_save_LIBS
  24919. fi
  24920. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_init" >&5
  24921. $as_echo "$ac_cv_lib_gmp___gmpz_init" >&6; }
  24922. if test "x$ac_cv_lib_gmp___gmpz_init" = x""yes; then
  24923. cat >>confdefs.h <<_ACEOF
  24924. #define HAVE_LIBGMP 1
  24925. _ACEOF
  24926. LIBS="-lgmp $LIBS"
  24927. else
  24928. { { $as_echo "$as_me:$LINENO: error: GNU MP not found, see README" >&5
  24929. $as_echo "$as_me: error: GNU MP not found, see README" >&2;}
  24930. { (exit 1); exit 1; }; }
  24931. fi
  24932. # mpz_import is a macro so we need to include <gmp.h>
  24933. cat >conftest.$ac_ext <<_ACEOF
  24934. /* confdefs.h. */
  24935. _ACEOF
  24936. cat confdefs.h >>conftest.$ac_ext
  24937. cat >>conftest.$ac_ext <<_ACEOF
  24938. /* end confdefs.h. */
  24939. #include <gmp.h>
  24940. int
  24941. main ()
  24942. {
  24943. mpz_import (0, 0, 0, 0, 0, 0, 0);
  24944. ;
  24945. return 0;
  24946. }
  24947. _ACEOF
  24948. rm -f conftest.$ac_objext conftest$ac_exeext
  24949. if { (ac_try="$ac_link"
  24950. case "(($ac_try" in
  24951. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24952. *) ac_try_echo=$ac_try;;
  24953. esac
  24954. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24955. $as_echo "$ac_try_echo") >&5
  24956. (eval "$ac_link") 2>conftest.er1
  24957. ac_status=$?
  24958. grep -v '^ *+' conftest.er1 >conftest.err
  24959. rm -f conftest.er1
  24960. cat conftest.err >&5
  24961. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24962. (exit $ac_status); } && {
  24963. test -z "$ac_c_werror_flag" ||
  24964. test ! -s conftest.err
  24965. } && test -s conftest$ac_exeext && {
  24966. test "$cross_compiling" = yes ||
  24967. $as_test_x conftest$ac_exeext
  24968. }; then
  24969. :
  24970. else
  24971. $as_echo "$as_me: failed program was:" >&5
  24972. sed 's/^/| /' conftest.$ac_ext >&5
  24973. { { $as_echo "$as_me:$LINENO: error: At least GNU MP 4.1 is required, see README" >&5
  24974. $as_echo "$as_me: error: At least GNU MP 4.1 is required, see README" >&2;}
  24975. { (exit 1); exit 1; }; }
  24976. fi
  24977. rm -rf conftest.dSYM
  24978. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  24979. conftest$ac_exeext conftest.$ac_ext
  24980. #AC_CHECK_HEADERS([libintl.h])
  24981. #AC_CHECK_FUNCS(gettext)
  24982. #if test $ac_cv_func_gettext = no; then
  24983. # AC_CHECK_LIB(intl, gettext)
  24984. #fi
  24985. #AC_CHECK_FUNCS([bindtextdomain textdomain])
  24986. { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  24987. $as_echo_n "checking whether NLS is requested... " >&6; }
  24988. # Check whether --enable-nls was given.
  24989. if test "${enable_nls+set}" = set; then
  24990. enableval=$enable_nls; USE_NLS=$enableval
  24991. else
  24992. USE_NLS=yes
  24993. fi
  24994. { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
  24995. $as_echo "$USE_NLS" >&6; }
  24996. GETTEXT_MACRO_VERSION=0.17
  24997. # Prepare PATH_SEPARATOR.
  24998. # The user is always right.
  24999. if test "${PATH_SEPARATOR+set}" != set; then
  25000. echo "#! /bin/sh" >conf$$.sh
  25001. echo "exit 0" >>conf$$.sh
  25002. chmod +x conf$$.sh
  25003. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  25004. PATH_SEPARATOR=';'
  25005. else
  25006. PATH_SEPARATOR=:
  25007. fi
  25008. rm -f conf$$.sh
  25009. fi
  25010. # Find out how to test for executable files. Don't use a zero-byte file,
  25011. # as systems may use methods other than mode bits to determine executability.
  25012. cat >conf$$.file <<_ASEOF
  25013. #! /bin/sh
  25014. exit 0
  25015. _ASEOF
  25016. chmod +x conf$$.file
  25017. if test -x conf$$.file >/dev/null 2>&1; then
  25018. ac_executable_p="test -x"
  25019. else
  25020. ac_executable_p="test -f"
  25021. fi
  25022. rm -f conf$$.file
  25023. # Extract the first word of "msgfmt", so it can be a program name with args.
  25024. set dummy msgfmt; ac_word=$2
  25025. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  25026. $as_echo_n "checking for $ac_word... " >&6; }
  25027. if test "${ac_cv_path_MSGFMT+set}" = set; then
  25028. $as_echo_n "(cached) " >&6
  25029. else
  25030. case "$MSGFMT" in
  25031. [\\/]* | ?:[\\/]*)
  25032. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  25033. ;;
  25034. *)
  25035. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  25036. for ac_dir in $PATH; do
  25037. IFS="$ac_save_IFS"
  25038. test -z "$ac_dir" && ac_dir=.
  25039. for ac_exec_ext in '' $ac_executable_extensions; do
  25040. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  25041. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  25042. if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
  25043. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  25044. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  25045. break 2
  25046. fi
  25047. fi
  25048. done
  25049. done
  25050. IFS="$ac_save_IFS"
  25051. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  25052. ;;
  25053. esac
  25054. fi
  25055. MSGFMT="$ac_cv_path_MSGFMT"
  25056. if test "$MSGFMT" != ":"; then
  25057. { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
  25058. $as_echo "$MSGFMT" >&6; }
  25059. else
  25060. { $as_echo "$as_me:$LINENO: result: no" >&5
  25061. $as_echo "no" >&6; }
  25062. fi
  25063. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  25064. set dummy gmsgfmt; ac_word=$2
  25065. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  25066. $as_echo_n "checking for $ac_word... " >&6; }
  25067. if test "${ac_cv_path_GMSGFMT+set}" = set; then
  25068. $as_echo_n "(cached) " >&6
  25069. else
  25070. case $GMSGFMT in
  25071. [\\/]* | ?:[\\/]*)
  25072. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  25073. ;;
  25074. *)
  25075. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25076. for as_dir in $PATH
  25077. do
  25078. IFS=$as_save_IFS
  25079. test -z "$as_dir" && as_dir=.
  25080. for ac_exec_ext in '' $ac_executable_extensions; do
  25081. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  25082. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  25083. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  25084. break 2
  25085. fi
  25086. done
  25087. done
  25088. IFS=$as_save_IFS
  25089. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  25090. ;;
  25091. esac
  25092. fi
  25093. GMSGFMT=$ac_cv_path_GMSGFMT
  25094. if test -n "$GMSGFMT"; then
  25095. { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
  25096. $as_echo "$GMSGFMT" >&6; }
  25097. else
  25098. { $as_echo "$as_me:$LINENO: result: no" >&5
  25099. $as_echo "no" >&6; }
  25100. fi
  25101. case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  25102. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
  25103. *) MSGFMT_015=$MSGFMT ;;
  25104. esac
  25105. case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  25106. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
  25107. *) GMSGFMT_015=$GMSGFMT ;;
  25108. esac
  25109. # Prepare PATH_SEPARATOR.
  25110. # The user is always right.
  25111. if test "${PATH_SEPARATOR+set}" != set; then
  25112. echo "#! /bin/sh" >conf$$.sh
  25113. echo "exit 0" >>conf$$.sh
  25114. chmod +x conf$$.sh
  25115. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  25116. PATH_SEPARATOR=';'
  25117. else
  25118. PATH_SEPARATOR=:
  25119. fi
  25120. rm -f conf$$.sh
  25121. fi
  25122. # Find out how to test for executable files. Don't use a zero-byte file,
  25123. # as systems may use methods other than mode bits to determine executability.
  25124. cat >conf$$.file <<_ASEOF
  25125. #! /bin/sh
  25126. exit 0
  25127. _ASEOF
  25128. chmod +x conf$$.file
  25129. if test -x conf$$.file >/dev/null 2>&1; then
  25130. ac_executable_p="test -x"
  25131. else
  25132. ac_executable_p="test -f"
  25133. fi
  25134. rm -f conf$$.file
  25135. # Extract the first word of "xgettext", so it can be a program name with args.
  25136. set dummy xgettext; ac_word=$2
  25137. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  25138. $as_echo_n "checking for $ac_word... " >&6; }
  25139. if test "${ac_cv_path_XGETTEXT+set}" = set; then
  25140. $as_echo_n "(cached) " >&6
  25141. else
  25142. case "$XGETTEXT" in
  25143. [\\/]* | ?:[\\/]*)
  25144. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  25145. ;;
  25146. *)
  25147. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  25148. for ac_dir in $PATH; do
  25149. IFS="$ac_save_IFS"
  25150. test -z "$ac_dir" && ac_dir=.
  25151. for ac_exec_ext in '' $ac_executable_extensions; do
  25152. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  25153. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  25154. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
  25155. (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  25156. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  25157. break 2
  25158. fi
  25159. fi
  25160. done
  25161. done
  25162. IFS="$ac_save_IFS"
  25163. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  25164. ;;
  25165. esac
  25166. fi
  25167. XGETTEXT="$ac_cv_path_XGETTEXT"
  25168. if test "$XGETTEXT" != ":"; then
  25169. { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
  25170. $as_echo "$XGETTEXT" >&6; }
  25171. else
  25172. { $as_echo "$as_me:$LINENO: result: no" >&5
  25173. $as_echo "no" >&6; }
  25174. fi
  25175. rm -f messages.po
  25176. case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  25177. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
  25178. *) XGETTEXT_015=$XGETTEXT ;;
  25179. esac
  25180. # Prepare PATH_SEPARATOR.
  25181. # The user is always right.
  25182. if test "${PATH_SEPARATOR+set}" != set; then
  25183. echo "#! /bin/sh" >conf$$.sh
  25184. echo "exit 0" >>conf$$.sh
  25185. chmod +x conf$$.sh
  25186. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  25187. PATH_SEPARATOR=';'
  25188. else
  25189. PATH_SEPARATOR=:
  25190. fi
  25191. rm -f conf$$.sh
  25192. fi
  25193. # Find out how to test for executable files. Don't use a zero-byte file,
  25194. # as systems may use methods other than mode bits to determine executability.
  25195. cat >conf$$.file <<_ASEOF
  25196. #! /bin/sh
  25197. exit 0
  25198. _ASEOF
  25199. chmod +x conf$$.file
  25200. if test -x conf$$.file >/dev/null 2>&1; then
  25201. ac_executable_p="test -x"
  25202. else
  25203. ac_executable_p="test -f"
  25204. fi
  25205. rm -f conf$$.file
  25206. # Extract the first word of "msgmerge", so it can be a program name with args.
  25207. set dummy msgmerge; ac_word=$2
  25208. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  25209. $as_echo_n "checking for $ac_word... " >&6; }
  25210. if test "${ac_cv_path_MSGMERGE+set}" = set; then
  25211. $as_echo_n "(cached) " >&6
  25212. else
  25213. case "$MSGMERGE" in
  25214. [\\/]* | ?:[\\/]*)
  25215. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  25216. ;;
  25217. *)
  25218. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  25219. for ac_dir in $PATH; do
  25220. IFS="$ac_save_IFS"
  25221. test -z "$ac_dir" && ac_dir=.
  25222. for ac_exec_ext in '' $ac_executable_extensions; do
  25223. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  25224. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  25225. if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
  25226. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  25227. break 2
  25228. fi
  25229. fi
  25230. done
  25231. done
  25232. IFS="$ac_save_IFS"
  25233. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  25234. ;;
  25235. esac
  25236. fi
  25237. MSGMERGE="$ac_cv_path_MSGMERGE"
  25238. if test "$MSGMERGE" != ":"; then
  25239. { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
  25240. $as_echo "$MSGMERGE" >&6; }
  25241. else
  25242. { $as_echo "$as_me:$LINENO: result: no" >&5
  25243. $as_echo "no" >&6; }
  25244. fi
  25245. test -n "$localedir" || localedir='${datadir}/locale'
  25246. test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
  25247. ac_config_commands="$ac_config_commands po-directories"
  25248. if test "X$prefix" = "XNONE"; then
  25249. acl_final_prefix="$ac_default_prefix"
  25250. else
  25251. acl_final_prefix="$prefix"
  25252. fi
  25253. if test "X$exec_prefix" = "XNONE"; then
  25254. acl_final_exec_prefix='${prefix}'
  25255. else
  25256. acl_final_exec_prefix="$exec_prefix"
  25257. fi
  25258. acl_save_prefix="$prefix"
  25259. prefix="$acl_final_prefix"
  25260. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  25261. prefix="$acl_save_prefix"
  25262. # Check whether --with-gnu-ld was given.
  25263. if test "${with_gnu_ld+set}" = set; then
  25264. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  25265. else
  25266. with_gnu_ld=no
  25267. fi
  25268. # Prepare PATH_SEPARATOR.
  25269. # The user is always right.
  25270. if test "${PATH_SEPARATOR+set}" != set; then
  25271. echo "#! /bin/sh" >conf$$.sh
  25272. echo "exit 0" >>conf$$.sh
  25273. chmod +x conf$$.sh
  25274. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  25275. PATH_SEPARATOR=';'
  25276. else
  25277. PATH_SEPARATOR=:
  25278. fi
  25279. rm -f conf$$.sh
  25280. fi
  25281. ac_prog=ld
  25282. if test "$GCC" = yes; then
  25283. # Check if gcc -print-prog-name=ld gives a path.
  25284. { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
  25285. $as_echo_n "checking for ld used by GCC... " >&6; }
  25286. case $host in
  25287. *-*-mingw*)
  25288. # gcc leaves a trailing carriage return which upsets mingw
  25289. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  25290. *)
  25291. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  25292. esac
  25293. case $ac_prog in
  25294. # Accept absolute paths.
  25295. [\\/]* | [A-Za-z]:[\\/]*)
  25296. re_direlt='/[^/][^/]*/\.\./'
  25297. # Canonicalize the path of ld
  25298. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  25299. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  25300. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  25301. done
  25302. test -z "$LD" && LD="$ac_prog"
  25303. ;;
  25304. "")
  25305. # If it fails, then pretend we aren't using GCC.
  25306. ac_prog=ld
  25307. ;;
  25308. *)
  25309. # If it is relative, then search for the first ld in PATH.
  25310. with_gnu_ld=unknown
  25311. ;;
  25312. esac
  25313. elif test "$with_gnu_ld" = yes; then
  25314. { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
  25315. $as_echo_n "checking for GNU ld... " >&6; }
  25316. else
  25317. { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  25318. $as_echo_n "checking for non-GNU ld... " >&6; }
  25319. fi
  25320. if test "${acl_cv_path_LD+set}" = set; then
  25321. $as_echo_n "(cached) " >&6
  25322. else
  25323. if test -z "$LD"; then
  25324. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  25325. for ac_dir in $PATH; do
  25326. test -z "$ac_dir" && ac_dir=.
  25327. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  25328. acl_cv_path_LD="$ac_dir/$ac_prog"
  25329. # Check to see if the program is GNU ld. I'd rather use --version,
  25330. # but apparently some GNU ld's only accept -v.
  25331. # Break only if it was the GNU/non-GNU ld that we prefer.
  25332. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  25333. *GNU* | *'with BFD'*)
  25334. test "$with_gnu_ld" != no && break ;;
  25335. *)
  25336. test "$with_gnu_ld" != yes && break ;;
  25337. esac
  25338. fi
  25339. done
  25340. IFS="$ac_save_ifs"
  25341. else
  25342. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  25343. fi
  25344. fi
  25345. LD="$acl_cv_path_LD"
  25346. if test -n "$LD"; then
  25347. { $as_echo "$as_me:$LINENO: result: $LD" >&5
  25348. $as_echo "$LD" >&6; }
  25349. else
  25350. { $as_echo "$as_me:$LINENO: result: no" >&5
  25351. $as_echo "no" >&6; }
  25352. fi
  25353. test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  25354. $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  25355. { (exit 1); exit 1; }; }
  25356. { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  25357. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  25358. if test "${acl_cv_prog_gnu_ld+set}" = set; then
  25359. $as_echo_n "(cached) " >&6
  25360. else
  25361. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  25362. case `$LD -v 2>&1 </dev/null` in
  25363. *GNU* | *'with BFD'*)
  25364. acl_cv_prog_gnu_ld=yes ;;
  25365. *)
  25366. acl_cv_prog_gnu_ld=no ;;
  25367. esac
  25368. fi
  25369. { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
  25370. $as_echo "$acl_cv_prog_gnu_ld" >&6; }
  25371. with_gnu_ld=$acl_cv_prog_gnu_ld
  25372. { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
  25373. $as_echo_n "checking for shared library run path origin... " >&6; }
  25374. if test "${acl_cv_rpath+set}" = set; then
  25375. $as_echo_n "(cached) " >&6
  25376. else
  25377. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  25378. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  25379. . ./conftest.sh
  25380. rm -f ./conftest.sh
  25381. acl_cv_rpath=done
  25382. fi
  25383. { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
  25384. $as_echo "$acl_cv_rpath" >&6; }
  25385. wl="$acl_cv_wl"
  25386. acl_libext="$acl_cv_libext"
  25387. acl_shlibext="$acl_cv_shlibext"
  25388. acl_libname_spec="$acl_cv_libname_spec"
  25389. acl_library_names_spec="$acl_cv_library_names_spec"
  25390. acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  25391. acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  25392. acl_hardcode_direct="$acl_cv_hardcode_direct"
  25393. acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
  25394. # Check whether --enable-rpath was given.
  25395. if test "${enable_rpath+set}" = set; then
  25396. enableval=$enable_rpath; :
  25397. else
  25398. enable_rpath=yes
  25399. fi
  25400. acl_libdirstem=lib
  25401. searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
  25402. if test -n "$searchpath"; then
  25403. acl_save_IFS="${IFS= }"; IFS=":"
  25404. for searchdir in $searchpath; do
  25405. if test -d "$searchdir"; then
  25406. case "$searchdir" in
  25407. */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
  25408. *) searchdir=`cd "$searchdir" && pwd`
  25409. case "$searchdir" in
  25410. */lib64 ) acl_libdirstem=lib64 ;;
  25411. esac ;;
  25412. esac
  25413. fi
  25414. done
  25415. IFS="$acl_save_IFS"
  25416. fi
  25417. use_additional=yes
  25418. acl_save_prefix="$prefix"
  25419. prefix="$acl_final_prefix"
  25420. acl_save_exec_prefix="$exec_prefix"
  25421. exec_prefix="$acl_final_exec_prefix"
  25422. eval additional_includedir=\"$includedir\"
  25423. eval additional_libdir=\"$libdir\"
  25424. exec_prefix="$acl_save_exec_prefix"
  25425. prefix="$acl_save_prefix"
  25426. # Check whether --with-libiconv-prefix was given.
  25427. if test "${with_libiconv_prefix+set}" = set; then
  25428. withval=$with_libiconv_prefix;
  25429. if test "X$withval" = "Xno"; then
  25430. use_additional=no
  25431. else
  25432. if test "X$withval" = "X"; then
  25433. acl_save_prefix="$prefix"
  25434. prefix="$acl_final_prefix"
  25435. acl_save_exec_prefix="$exec_prefix"
  25436. exec_prefix="$acl_final_exec_prefix"
  25437. eval additional_includedir=\"$includedir\"
  25438. eval additional_libdir=\"$libdir\"
  25439. exec_prefix="$acl_save_exec_prefix"
  25440. prefix="$acl_save_prefix"
  25441. else
  25442. additional_includedir="$withval/include"
  25443. additional_libdir="$withval/$acl_libdirstem"
  25444. fi
  25445. fi
  25446. fi
  25447. LIBICONV=
  25448. LTLIBICONV=
  25449. INCICONV=
  25450. LIBICONV_PREFIX=
  25451. rpathdirs=
  25452. ltrpathdirs=
  25453. names_already_handled=
  25454. names_next_round='iconv '
  25455. while test -n "$names_next_round"; do
  25456. names_this_round="$names_next_round"
  25457. names_next_round=
  25458. for name in $names_this_round; do
  25459. already_handled=
  25460. for n in $names_already_handled; do
  25461. if test "$n" = "$name"; then
  25462. already_handled=yes
  25463. break
  25464. fi
  25465. done
  25466. if test -z "$already_handled"; then
  25467. names_already_handled="$names_already_handled $name"
  25468. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  25469. eval value=\"\$HAVE_LIB$uppername\"
  25470. if test -n "$value"; then
  25471. if test "$value" = yes; then
  25472. eval value=\"\$LIB$uppername\"
  25473. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  25474. eval value=\"\$LTLIB$uppername\"
  25475. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  25476. else
  25477. :
  25478. fi
  25479. else
  25480. found_dir=
  25481. found_la=
  25482. found_so=
  25483. found_a=
  25484. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  25485. if test -n "$acl_shlibext"; then
  25486. shrext=".$acl_shlibext" # typically: shrext=.so
  25487. else
  25488. shrext=
  25489. fi
  25490. if test $use_additional = yes; then
  25491. dir="$additional_libdir"
  25492. if test -n "$acl_shlibext"; then
  25493. if test -f "$dir/$libname$shrext"; then
  25494. found_dir="$dir"
  25495. found_so="$dir/$libname$shrext"
  25496. else
  25497. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  25498. ver=`(cd "$dir" && \
  25499. for f in "$libname$shrext".*; do echo "$f"; done \
  25500. | sed -e "s,^$libname$shrext\\\\.,," \
  25501. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  25502. | sed 1q ) 2>/dev/null`
  25503. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  25504. found_dir="$dir"
  25505. found_so="$dir/$libname$shrext.$ver"
  25506. fi
  25507. else
  25508. eval library_names=\"$acl_library_names_spec\"
  25509. for f in $library_names; do
  25510. if test -f "$dir/$f"; then
  25511. found_dir="$dir"
  25512. found_so="$dir/$f"
  25513. break
  25514. fi
  25515. done
  25516. fi
  25517. fi
  25518. fi
  25519. if test "X$found_dir" = "X"; then
  25520. if test -f "$dir/$libname.$acl_libext"; then
  25521. found_dir="$dir"
  25522. found_a="$dir/$libname.$acl_libext"
  25523. fi
  25524. fi
  25525. if test "X$found_dir" != "X"; then
  25526. if test -f "$dir/$libname.la"; then
  25527. found_la="$dir/$libname.la"
  25528. fi
  25529. fi
  25530. fi
  25531. if test "X$found_dir" = "X"; then
  25532. for x in $LDFLAGS $LTLIBICONV; do
  25533. acl_save_prefix="$prefix"
  25534. prefix="$acl_final_prefix"
  25535. acl_save_exec_prefix="$exec_prefix"
  25536. exec_prefix="$acl_final_exec_prefix"
  25537. eval x=\"$x\"
  25538. exec_prefix="$acl_save_exec_prefix"
  25539. prefix="$acl_save_prefix"
  25540. case "$x" in
  25541. -L*)
  25542. dir=`echo "X$x" | sed -e 's/^X-L//'`
  25543. if test -n "$acl_shlibext"; then
  25544. if test -f "$dir/$libname$shrext"; then
  25545. found_dir="$dir"
  25546. found_so="$dir/$libname$shrext"
  25547. else
  25548. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  25549. ver=`(cd "$dir" && \
  25550. for f in "$libname$shrext".*; do echo "$f"; done \
  25551. | sed -e "s,^$libname$shrext\\\\.,," \
  25552. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  25553. | sed 1q ) 2>/dev/null`
  25554. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  25555. found_dir="$dir"
  25556. found_so="$dir/$libname$shrext.$ver"
  25557. fi
  25558. else
  25559. eval library_names=\"$acl_library_names_spec\"
  25560. for f in $library_names; do
  25561. if test -f "$dir/$f"; then
  25562. found_dir="$dir"
  25563. found_so="$dir/$f"
  25564. break
  25565. fi
  25566. done
  25567. fi
  25568. fi
  25569. fi
  25570. if test "X$found_dir" = "X"; then
  25571. if test -f "$dir/$libname.$acl_libext"; then
  25572. found_dir="$dir"
  25573. found_a="$dir/$libname.$acl_libext"
  25574. fi
  25575. fi
  25576. if test "X$found_dir" != "X"; then
  25577. if test -f "$dir/$libname.la"; then
  25578. found_la="$dir/$libname.la"
  25579. fi
  25580. fi
  25581. ;;
  25582. esac
  25583. if test "X$found_dir" != "X"; then
  25584. break
  25585. fi
  25586. done
  25587. fi
  25588. if test "X$found_dir" != "X"; then
  25589. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  25590. if test "X$found_so" != "X"; then
  25591. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  25592. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  25593. else
  25594. haveit=
  25595. for x in $ltrpathdirs; do
  25596. if test "X$x" = "X$found_dir"; then
  25597. haveit=yes
  25598. break
  25599. fi
  25600. done
  25601. if test -z "$haveit"; then
  25602. ltrpathdirs="$ltrpathdirs $found_dir"
  25603. fi
  25604. if test "$acl_hardcode_direct" = yes; then
  25605. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  25606. else
  25607. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  25608. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  25609. haveit=
  25610. for x in $rpathdirs; do
  25611. if test "X$x" = "X$found_dir"; then
  25612. haveit=yes
  25613. break
  25614. fi
  25615. done
  25616. if test -z "$haveit"; then
  25617. rpathdirs="$rpathdirs $found_dir"
  25618. fi
  25619. else
  25620. haveit=
  25621. for x in $LDFLAGS $LIBICONV; do
  25622. acl_save_prefix="$prefix"
  25623. prefix="$acl_final_prefix"
  25624. acl_save_exec_prefix="$exec_prefix"
  25625. exec_prefix="$acl_final_exec_prefix"
  25626. eval x=\"$x\"
  25627. exec_prefix="$acl_save_exec_prefix"
  25628. prefix="$acl_save_prefix"
  25629. if test "X$x" = "X-L$found_dir"; then
  25630. haveit=yes
  25631. break
  25632. fi
  25633. done
  25634. if test -z "$haveit"; then
  25635. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  25636. fi
  25637. if test "$acl_hardcode_minus_L" != no; then
  25638. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  25639. else
  25640. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  25641. fi
  25642. fi
  25643. fi
  25644. fi
  25645. else
  25646. if test "X$found_a" != "X"; then
  25647. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  25648. else
  25649. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  25650. fi
  25651. fi
  25652. additional_includedir=
  25653. case "$found_dir" in
  25654. */$acl_libdirstem | */$acl_libdirstem/)
  25655. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  25656. LIBICONV_PREFIX="$basedir"
  25657. additional_includedir="$basedir/include"
  25658. ;;
  25659. esac
  25660. if test "X$additional_includedir" != "X"; then
  25661. if test "X$additional_includedir" != "X/usr/include"; then
  25662. haveit=
  25663. if test "X$additional_includedir" = "X/usr/local/include"; then
  25664. if test -n "$GCC"; then
  25665. case $host_os in
  25666. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  25667. esac
  25668. fi
  25669. fi
  25670. if test -z "$haveit"; then
  25671. for x in $CPPFLAGS $INCICONV; do
  25672. acl_save_prefix="$prefix"
  25673. prefix="$acl_final_prefix"
  25674. acl_save_exec_prefix="$exec_prefix"
  25675. exec_prefix="$acl_final_exec_prefix"
  25676. eval x=\"$x\"
  25677. exec_prefix="$acl_save_exec_prefix"
  25678. prefix="$acl_save_prefix"
  25679. if test "X$x" = "X-I$additional_includedir"; then
  25680. haveit=yes
  25681. break
  25682. fi
  25683. done
  25684. if test -z "$haveit"; then
  25685. if test -d "$additional_includedir"; then
  25686. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  25687. fi
  25688. fi
  25689. fi
  25690. fi
  25691. fi
  25692. if test -n "$found_la"; then
  25693. save_libdir="$libdir"
  25694. case "$found_la" in
  25695. */* | *\\*) . "$found_la" ;;
  25696. *) . "./$found_la" ;;
  25697. esac
  25698. libdir="$save_libdir"
  25699. for dep in $dependency_libs; do
  25700. case "$dep" in
  25701. -L*)
  25702. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  25703. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  25704. haveit=
  25705. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  25706. if test -n "$GCC"; then
  25707. case $host_os in
  25708. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  25709. esac
  25710. fi
  25711. fi
  25712. if test -z "$haveit"; then
  25713. haveit=
  25714. for x in $LDFLAGS $LIBICONV; do
  25715. acl_save_prefix="$prefix"
  25716. prefix="$acl_final_prefix"
  25717. acl_save_exec_prefix="$exec_prefix"
  25718. exec_prefix="$acl_final_exec_prefix"
  25719. eval x=\"$x\"
  25720. exec_prefix="$acl_save_exec_prefix"
  25721. prefix="$acl_save_prefix"
  25722. if test "X$x" = "X-L$additional_libdir"; then
  25723. haveit=yes
  25724. break
  25725. fi
  25726. done
  25727. if test -z "$haveit"; then
  25728. if test -d "$additional_libdir"; then
  25729. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  25730. fi
  25731. fi
  25732. haveit=
  25733. for x in $LDFLAGS $LTLIBICONV; do
  25734. acl_save_prefix="$prefix"
  25735. prefix="$acl_final_prefix"
  25736. acl_save_exec_prefix="$exec_prefix"
  25737. exec_prefix="$acl_final_exec_prefix"
  25738. eval x=\"$x\"
  25739. exec_prefix="$acl_save_exec_prefix"
  25740. prefix="$acl_save_prefix"
  25741. if test "X$x" = "X-L$additional_libdir"; then
  25742. haveit=yes
  25743. break
  25744. fi
  25745. done
  25746. if test -z "$haveit"; then
  25747. if test -d "$additional_libdir"; then
  25748. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  25749. fi
  25750. fi
  25751. fi
  25752. fi
  25753. ;;
  25754. -R*)
  25755. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  25756. if test "$enable_rpath" != no; then
  25757. haveit=
  25758. for x in $rpathdirs; do
  25759. if test "X$x" = "X$dir"; then
  25760. haveit=yes
  25761. break
  25762. fi
  25763. done
  25764. if test -z "$haveit"; then
  25765. rpathdirs="$rpathdirs $dir"
  25766. fi
  25767. haveit=
  25768. for x in $ltrpathdirs; do
  25769. if test "X$x" = "X$dir"; then
  25770. haveit=yes
  25771. break
  25772. fi
  25773. done
  25774. if test -z "$haveit"; then
  25775. ltrpathdirs="$ltrpathdirs $dir"
  25776. fi
  25777. fi
  25778. ;;
  25779. -l*)
  25780. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  25781. ;;
  25782. *.la)
  25783. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  25784. ;;
  25785. *)
  25786. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  25787. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  25788. ;;
  25789. esac
  25790. done
  25791. fi
  25792. else
  25793. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  25794. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  25795. fi
  25796. fi
  25797. fi
  25798. done
  25799. done
  25800. if test "X$rpathdirs" != "X"; then
  25801. if test -n "$acl_hardcode_libdir_separator"; then
  25802. alldirs=
  25803. for found_dir in $rpathdirs; do
  25804. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  25805. done
  25806. acl_save_libdir="$libdir"
  25807. libdir="$alldirs"
  25808. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  25809. libdir="$acl_save_libdir"
  25810. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  25811. else
  25812. for found_dir in $rpathdirs; do
  25813. acl_save_libdir="$libdir"
  25814. libdir="$found_dir"
  25815. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  25816. libdir="$acl_save_libdir"
  25817. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  25818. done
  25819. fi
  25820. fi
  25821. if test "X$ltrpathdirs" != "X"; then
  25822. for found_dir in $ltrpathdirs; do
  25823. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  25824. done
  25825. fi
  25826. { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
  25827. $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
  25828. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
  25829. $as_echo_n "(cached) " >&6
  25830. else
  25831. gt_save_LIBS="$LIBS"
  25832. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  25833. cat >conftest.$ac_ext <<_ACEOF
  25834. /* confdefs.h. */
  25835. _ACEOF
  25836. cat confdefs.h >>conftest.$ac_ext
  25837. cat >>conftest.$ac_ext <<_ACEOF
  25838. /* end confdefs.h. */
  25839. #include <CoreFoundation/CFPreferences.h>
  25840. int
  25841. main ()
  25842. {
  25843. CFPreferencesCopyAppValue(NULL, NULL)
  25844. ;
  25845. return 0;
  25846. }
  25847. _ACEOF
  25848. rm -f conftest.$ac_objext conftest$ac_exeext
  25849. if { (ac_try="$ac_link"
  25850. case "(($ac_try" in
  25851. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25852. *) ac_try_echo=$ac_try;;
  25853. esac
  25854. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25855. $as_echo "$ac_try_echo") >&5
  25856. (eval "$ac_link") 2>conftest.er1
  25857. ac_status=$?
  25858. grep -v '^ *+' conftest.er1 >conftest.err
  25859. rm -f conftest.er1
  25860. cat conftest.err >&5
  25861. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25862. (exit $ac_status); } && {
  25863. test -z "$ac_c_werror_flag" ||
  25864. test ! -s conftest.err
  25865. } && test -s conftest$ac_exeext && {
  25866. test "$cross_compiling" = yes ||
  25867. $as_test_x conftest$ac_exeext
  25868. }; then
  25869. gt_cv_func_CFPreferencesCopyAppValue=yes
  25870. else
  25871. $as_echo "$as_me: failed program was:" >&5
  25872. sed 's/^/| /' conftest.$ac_ext >&5
  25873. gt_cv_func_CFPreferencesCopyAppValue=no
  25874. fi
  25875. rm -rf conftest.dSYM
  25876. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  25877. conftest$ac_exeext conftest.$ac_ext
  25878. LIBS="$gt_save_LIBS"
  25879. fi
  25880. { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  25881. $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  25882. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  25883. cat >>confdefs.h <<\_ACEOF
  25884. #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
  25885. _ACEOF
  25886. fi
  25887. { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
  25888. $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
  25889. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
  25890. $as_echo_n "(cached) " >&6
  25891. else
  25892. gt_save_LIBS="$LIBS"
  25893. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  25894. cat >conftest.$ac_ext <<_ACEOF
  25895. /* confdefs.h. */
  25896. _ACEOF
  25897. cat confdefs.h >>conftest.$ac_ext
  25898. cat >>conftest.$ac_ext <<_ACEOF
  25899. /* end confdefs.h. */
  25900. #include <CoreFoundation/CFLocale.h>
  25901. int
  25902. main ()
  25903. {
  25904. CFLocaleCopyCurrent();
  25905. ;
  25906. return 0;
  25907. }
  25908. _ACEOF
  25909. rm -f conftest.$ac_objext conftest$ac_exeext
  25910. if { (ac_try="$ac_link"
  25911. case "(($ac_try" in
  25912. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25913. *) ac_try_echo=$ac_try;;
  25914. esac
  25915. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25916. $as_echo "$ac_try_echo") >&5
  25917. (eval "$ac_link") 2>conftest.er1
  25918. ac_status=$?
  25919. grep -v '^ *+' conftest.er1 >conftest.err
  25920. rm -f conftest.er1
  25921. cat conftest.err >&5
  25922. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25923. (exit $ac_status); } && {
  25924. test -z "$ac_c_werror_flag" ||
  25925. test ! -s conftest.err
  25926. } && test -s conftest$ac_exeext && {
  25927. test "$cross_compiling" = yes ||
  25928. $as_test_x conftest$ac_exeext
  25929. }; then
  25930. gt_cv_func_CFLocaleCopyCurrent=yes
  25931. else
  25932. $as_echo "$as_me: failed program was:" >&5
  25933. sed 's/^/| /' conftest.$ac_ext >&5
  25934. gt_cv_func_CFLocaleCopyCurrent=no
  25935. fi
  25936. rm -rf conftest.dSYM
  25937. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  25938. conftest$ac_exeext conftest.$ac_ext
  25939. LIBS="$gt_save_LIBS"
  25940. fi
  25941. { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  25942. $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  25943. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  25944. cat >>confdefs.h <<\_ACEOF
  25945. #define HAVE_CFLOCALECOPYCURRENT 1
  25946. _ACEOF
  25947. fi
  25948. INTL_MACOSX_LIBS=
  25949. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  25950. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  25951. fi
  25952. LIBINTL=
  25953. LTLIBINTL=
  25954. POSUB=
  25955. case " $gt_needs " in
  25956. *" need-formatstring-macros "*) gt_api_version=3 ;;
  25957. *" need-ngettext "*) gt_api_version=2 ;;
  25958. *) gt_api_version=1 ;;
  25959. esac
  25960. gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
  25961. gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
  25962. if test "$USE_NLS" = "yes"; then
  25963. gt_use_preinstalled_gnugettext=no
  25964. if test $gt_api_version -ge 3; then
  25965. gt_revision_test_code='
  25966. #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  25967. #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
  25968. #endif
  25969. typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
  25970. '
  25971. else
  25972. gt_revision_test_code=
  25973. fi
  25974. if test $gt_api_version -ge 2; then
  25975. gt_expression_test_code=' + * ngettext ("", "", 0)'
  25976. else
  25977. gt_expression_test_code=
  25978. fi
  25979. { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
  25980. $as_echo_n "checking for GNU gettext in libc... " >&6; }
  25981. if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
  25982. $as_echo_n "(cached) " >&6
  25983. else
  25984. cat >conftest.$ac_ext <<_ACEOF
  25985. /* confdefs.h. */
  25986. _ACEOF
  25987. cat confdefs.h >>conftest.$ac_ext
  25988. cat >>conftest.$ac_ext <<_ACEOF
  25989. /* end confdefs.h. */
  25990. #include <libintl.h>
  25991. $gt_revision_test_code
  25992. extern int _nl_msg_cat_cntr;
  25993. extern int *_nl_domain_bindings;
  25994. int
  25995. main ()
  25996. {
  25997. bindtextdomain ("", "");
  25998. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
  25999. ;
  26000. return 0;
  26001. }
  26002. _ACEOF
  26003. rm -f conftest.$ac_objext conftest$ac_exeext
  26004. if { (ac_try="$ac_link"
  26005. case "(($ac_try" in
  26006. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26007. *) ac_try_echo=$ac_try;;
  26008. esac
  26009. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26010. $as_echo "$ac_try_echo") >&5
  26011. (eval "$ac_link") 2>conftest.er1
  26012. ac_status=$?
  26013. grep -v '^ *+' conftest.er1 >conftest.err
  26014. rm -f conftest.er1
  26015. cat conftest.err >&5
  26016. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26017. (exit $ac_status); } && {
  26018. test -z "$ac_c_werror_flag" ||
  26019. test ! -s conftest.err
  26020. } && test -s conftest$ac_exeext && {
  26021. test "$cross_compiling" = yes ||
  26022. $as_test_x conftest$ac_exeext
  26023. }; then
  26024. eval "$gt_func_gnugettext_libc=yes"
  26025. else
  26026. $as_echo "$as_me: failed program was:" >&5
  26027. sed 's/^/| /' conftest.$ac_ext >&5
  26028. eval "$gt_func_gnugettext_libc=no"
  26029. fi
  26030. rm -rf conftest.dSYM
  26031. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  26032. conftest$ac_exeext conftest.$ac_ext
  26033. fi
  26034. ac_res=`eval 'as_val=${'$gt_func_gnugettext_libc'}
  26035. $as_echo "$as_val"'`
  26036. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  26037. $as_echo "$ac_res" >&6; }
  26038. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
  26039. am_save_CPPFLAGS="$CPPFLAGS"
  26040. for element in $INCICONV; do
  26041. haveit=
  26042. for x in $CPPFLAGS; do
  26043. acl_save_prefix="$prefix"
  26044. prefix="$acl_final_prefix"
  26045. acl_save_exec_prefix="$exec_prefix"
  26046. exec_prefix="$acl_final_exec_prefix"
  26047. eval x=\"$x\"
  26048. exec_prefix="$acl_save_exec_prefix"
  26049. prefix="$acl_save_prefix"
  26050. if test "X$x" = "X$element"; then
  26051. haveit=yes
  26052. break
  26053. fi
  26054. done
  26055. if test -z "$haveit"; then
  26056. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  26057. fi
  26058. done
  26059. { $as_echo "$as_me:$LINENO: checking for iconv" >&5
  26060. $as_echo_n "checking for iconv... " >&6; }
  26061. if test "${am_cv_func_iconv+set}" = set; then
  26062. $as_echo_n "(cached) " >&6
  26063. else
  26064. am_cv_func_iconv="no, consider installing GNU libiconv"
  26065. am_cv_lib_iconv=no
  26066. cat >conftest.$ac_ext <<_ACEOF
  26067. /* confdefs.h. */
  26068. _ACEOF
  26069. cat confdefs.h >>conftest.$ac_ext
  26070. cat >>conftest.$ac_ext <<_ACEOF
  26071. /* end confdefs.h. */
  26072. #include <stdlib.h>
  26073. #include <iconv.h>
  26074. int
  26075. main ()
  26076. {
  26077. iconv_t cd = iconv_open("","");
  26078. iconv(cd,NULL,NULL,NULL,NULL);
  26079. iconv_close(cd);
  26080. ;
  26081. return 0;
  26082. }
  26083. _ACEOF
  26084. rm -f conftest.$ac_objext conftest$ac_exeext
  26085. if { (ac_try="$ac_link"
  26086. case "(($ac_try" in
  26087. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26088. *) ac_try_echo=$ac_try;;
  26089. esac
  26090. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26091. $as_echo "$ac_try_echo") >&5
  26092. (eval "$ac_link") 2>conftest.er1
  26093. ac_status=$?
  26094. grep -v '^ *+' conftest.er1 >conftest.err
  26095. rm -f conftest.er1
  26096. cat conftest.err >&5
  26097. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26098. (exit $ac_status); } && {
  26099. test -z "$ac_c_werror_flag" ||
  26100. test ! -s conftest.err
  26101. } && test -s conftest$ac_exeext && {
  26102. test "$cross_compiling" = yes ||
  26103. $as_test_x conftest$ac_exeext
  26104. }; then
  26105. am_cv_func_iconv=yes
  26106. else
  26107. $as_echo "$as_me: failed program was:" >&5
  26108. sed 's/^/| /' conftest.$ac_ext >&5
  26109. fi
  26110. rm -rf conftest.dSYM
  26111. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  26112. conftest$ac_exeext conftest.$ac_ext
  26113. if test "$am_cv_func_iconv" != yes; then
  26114. am_save_LIBS="$LIBS"
  26115. LIBS="$LIBS $LIBICONV"
  26116. cat >conftest.$ac_ext <<_ACEOF
  26117. /* confdefs.h. */
  26118. _ACEOF
  26119. cat confdefs.h >>conftest.$ac_ext
  26120. cat >>conftest.$ac_ext <<_ACEOF
  26121. /* end confdefs.h. */
  26122. #include <stdlib.h>
  26123. #include <iconv.h>
  26124. int
  26125. main ()
  26126. {
  26127. iconv_t cd = iconv_open("","");
  26128. iconv(cd,NULL,NULL,NULL,NULL);
  26129. iconv_close(cd);
  26130. ;
  26131. return 0;
  26132. }
  26133. _ACEOF
  26134. rm -f conftest.$ac_objext conftest$ac_exeext
  26135. if { (ac_try="$ac_link"
  26136. case "(($ac_try" in
  26137. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26138. *) ac_try_echo=$ac_try;;
  26139. esac
  26140. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26141. $as_echo "$ac_try_echo") >&5
  26142. (eval "$ac_link") 2>conftest.er1
  26143. ac_status=$?
  26144. grep -v '^ *+' conftest.er1 >conftest.err
  26145. rm -f conftest.er1
  26146. cat conftest.err >&5
  26147. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26148. (exit $ac_status); } && {
  26149. test -z "$ac_c_werror_flag" ||
  26150. test ! -s conftest.err
  26151. } && test -s conftest$ac_exeext && {
  26152. test "$cross_compiling" = yes ||
  26153. $as_test_x conftest$ac_exeext
  26154. }; then
  26155. am_cv_lib_iconv=yes
  26156. am_cv_func_iconv=yes
  26157. else
  26158. $as_echo "$as_me: failed program was:" >&5
  26159. sed 's/^/| /' conftest.$ac_ext >&5
  26160. fi
  26161. rm -rf conftest.dSYM
  26162. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  26163. conftest$ac_exeext conftest.$ac_ext
  26164. LIBS="$am_save_LIBS"
  26165. fi
  26166. fi
  26167. { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
  26168. $as_echo "$am_cv_func_iconv" >&6; }
  26169. if test "$am_cv_func_iconv" = yes; then
  26170. { $as_echo "$as_me:$LINENO: checking for working iconv" >&5
  26171. $as_echo_n "checking for working iconv... " >&6; }
  26172. if test "${am_cv_func_iconv_works+set}" = set; then
  26173. $as_echo_n "(cached) " >&6
  26174. else
  26175. am_save_LIBS="$LIBS"
  26176. if test $am_cv_lib_iconv = yes; then
  26177. LIBS="$LIBS $LIBICONV"
  26178. fi
  26179. if test "$cross_compiling" = yes; then
  26180. case "$host_os" in
  26181. aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
  26182. *) am_cv_func_iconv_works="guessing yes" ;;
  26183. esac
  26184. else
  26185. cat >conftest.$ac_ext <<_ACEOF
  26186. /* confdefs.h. */
  26187. _ACEOF
  26188. cat confdefs.h >>conftest.$ac_ext
  26189. cat >>conftest.$ac_ext <<_ACEOF
  26190. /* end confdefs.h. */
  26191. #include <iconv.h>
  26192. #include <string.h>
  26193. int main ()
  26194. {
  26195. /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
  26196. returns. */
  26197. {
  26198. iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
  26199. if (cd_utf8_to_88591 != (iconv_t)(-1))
  26200. {
  26201. static const char input[] = "\342\202\254"; /* EURO SIGN */
  26202. char buf[10];
  26203. const char *inptr = input;
  26204. size_t inbytesleft = strlen (input);
  26205. char *outptr = buf;
  26206. size_t outbytesleft = sizeof (buf);
  26207. size_t res = iconv (cd_utf8_to_88591,
  26208. (char **) &inptr, &inbytesleft,
  26209. &outptr, &outbytesleft);
  26210. if (res == 0)
  26211. return 1;
  26212. }
  26213. }
  26214. #if 0 /* This bug could be worked around by the caller. */
  26215. /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
  26216. {
  26217. iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
  26218. if (cd_88591_to_utf8 != (iconv_t)(-1))
  26219. {
  26220. static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
  26221. char buf[50];
  26222. const char *inptr = input;
  26223. size_t inbytesleft = strlen (input);
  26224. char *outptr = buf;
  26225. size_t outbytesleft = sizeof (buf);
  26226. size_t res = iconv (cd_88591_to_utf8,
  26227. (char **) &inptr, &inbytesleft,
  26228. &outptr, &outbytesleft);
  26229. if ((int)res > 0)
  26230. return 1;
  26231. }
  26232. }
  26233. #endif
  26234. /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
  26235. provided. */
  26236. if (/* Try standardized names. */
  26237. iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
  26238. /* Try IRIX, OSF/1 names. */
  26239. && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
  26240. /* Try AIX names. */
  26241. && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
  26242. /* Try HP-UX names. */
  26243. && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
  26244. return 1;
  26245. return 0;
  26246. }
  26247. _ACEOF
  26248. rm -f conftest$ac_exeext
  26249. if { (ac_try="$ac_link"
  26250. case "(($ac_try" in
  26251. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26252. *) ac_try_echo=$ac_try;;
  26253. esac
  26254. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26255. $as_echo "$ac_try_echo") >&5
  26256. (eval "$ac_link") 2>&5
  26257. ac_status=$?
  26258. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26259. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  26260. { (case "(($ac_try" in
  26261. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26262. *) ac_try_echo=$ac_try;;
  26263. esac
  26264. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26265. $as_echo "$ac_try_echo") >&5
  26266. (eval "$ac_try") 2>&5
  26267. ac_status=$?
  26268. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26269. (exit $ac_status); }; }; then
  26270. am_cv_func_iconv_works=yes
  26271. else
  26272. $as_echo "$as_me: program exited with status $ac_status" >&5
  26273. $as_echo "$as_me: failed program was:" >&5
  26274. sed 's/^/| /' conftest.$ac_ext >&5
  26275. ( exit $ac_status )
  26276. am_cv_func_iconv_works=no
  26277. fi
  26278. rm -rf conftest.dSYM
  26279. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  26280. fi
  26281. LIBS="$am_save_LIBS"
  26282. fi
  26283. { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
  26284. $as_echo "$am_cv_func_iconv_works" >&6; }
  26285. case "$am_cv_func_iconv_works" in
  26286. *no) am_func_iconv=no am_cv_lib_iconv=no ;;
  26287. *) am_func_iconv=yes ;;
  26288. esac
  26289. else
  26290. am_func_iconv=no am_cv_lib_iconv=no
  26291. fi
  26292. if test "$am_func_iconv" = yes; then
  26293. cat >>confdefs.h <<\_ACEOF
  26294. #define HAVE_ICONV 1
  26295. _ACEOF
  26296. fi
  26297. if test "$am_cv_lib_iconv" = yes; then
  26298. { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
  26299. $as_echo_n "checking how to link with libiconv... " >&6; }
  26300. { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
  26301. $as_echo "$LIBICONV" >&6; }
  26302. else
  26303. CPPFLAGS="$am_save_CPPFLAGS"
  26304. LIBICONV=
  26305. LTLIBICONV=
  26306. fi
  26307. use_additional=yes
  26308. acl_save_prefix="$prefix"
  26309. prefix="$acl_final_prefix"
  26310. acl_save_exec_prefix="$exec_prefix"
  26311. exec_prefix="$acl_final_exec_prefix"
  26312. eval additional_includedir=\"$includedir\"
  26313. eval additional_libdir=\"$libdir\"
  26314. exec_prefix="$acl_save_exec_prefix"
  26315. prefix="$acl_save_prefix"
  26316. # Check whether --with-libintl-prefix was given.
  26317. if test "${with_libintl_prefix+set}" = set; then
  26318. withval=$with_libintl_prefix;
  26319. if test "X$withval" = "Xno"; then
  26320. use_additional=no
  26321. else
  26322. if test "X$withval" = "X"; then
  26323. acl_save_prefix="$prefix"
  26324. prefix="$acl_final_prefix"
  26325. acl_save_exec_prefix="$exec_prefix"
  26326. exec_prefix="$acl_final_exec_prefix"
  26327. eval additional_includedir=\"$includedir\"
  26328. eval additional_libdir=\"$libdir\"
  26329. exec_prefix="$acl_save_exec_prefix"
  26330. prefix="$acl_save_prefix"
  26331. else
  26332. additional_includedir="$withval/include"
  26333. additional_libdir="$withval/$acl_libdirstem"
  26334. fi
  26335. fi
  26336. fi
  26337. LIBINTL=
  26338. LTLIBINTL=
  26339. INCINTL=
  26340. LIBINTL_PREFIX=
  26341. rpathdirs=
  26342. ltrpathdirs=
  26343. names_already_handled=
  26344. names_next_round='intl '
  26345. while test -n "$names_next_round"; do
  26346. names_this_round="$names_next_round"
  26347. names_next_round=
  26348. for name in $names_this_round; do
  26349. already_handled=
  26350. for n in $names_already_handled; do
  26351. if test "$n" = "$name"; then
  26352. already_handled=yes
  26353. break
  26354. fi
  26355. done
  26356. if test -z "$already_handled"; then
  26357. names_already_handled="$names_already_handled $name"
  26358. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  26359. eval value=\"\$HAVE_LIB$uppername\"
  26360. if test -n "$value"; then
  26361. if test "$value" = yes; then
  26362. eval value=\"\$LIB$uppername\"
  26363. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  26364. eval value=\"\$LTLIB$uppername\"
  26365. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  26366. else
  26367. :
  26368. fi
  26369. else
  26370. found_dir=
  26371. found_la=
  26372. found_so=
  26373. found_a=
  26374. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  26375. if test -n "$acl_shlibext"; then
  26376. shrext=".$acl_shlibext" # typically: shrext=.so
  26377. else
  26378. shrext=
  26379. fi
  26380. if test $use_additional = yes; then
  26381. dir="$additional_libdir"
  26382. if test -n "$acl_shlibext"; then
  26383. if test -f "$dir/$libname$shrext"; then
  26384. found_dir="$dir"
  26385. found_so="$dir/$libname$shrext"
  26386. else
  26387. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  26388. ver=`(cd "$dir" && \
  26389. for f in "$libname$shrext".*; do echo "$f"; done \
  26390. | sed -e "s,^$libname$shrext\\\\.,," \
  26391. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  26392. | sed 1q ) 2>/dev/null`
  26393. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  26394. found_dir="$dir"
  26395. found_so="$dir/$libname$shrext.$ver"
  26396. fi
  26397. else
  26398. eval library_names=\"$acl_library_names_spec\"
  26399. for f in $library_names; do
  26400. if test -f "$dir/$f"; then
  26401. found_dir="$dir"
  26402. found_so="$dir/$f"
  26403. break
  26404. fi
  26405. done
  26406. fi
  26407. fi
  26408. fi
  26409. if test "X$found_dir" = "X"; then
  26410. if test -f "$dir/$libname.$acl_libext"; then
  26411. found_dir="$dir"
  26412. found_a="$dir/$libname.$acl_libext"
  26413. fi
  26414. fi
  26415. if test "X$found_dir" != "X"; then
  26416. if test -f "$dir/$libname.la"; then
  26417. found_la="$dir/$libname.la"
  26418. fi
  26419. fi
  26420. fi
  26421. if test "X$found_dir" = "X"; then
  26422. for x in $LDFLAGS $LTLIBINTL; do
  26423. acl_save_prefix="$prefix"
  26424. prefix="$acl_final_prefix"
  26425. acl_save_exec_prefix="$exec_prefix"
  26426. exec_prefix="$acl_final_exec_prefix"
  26427. eval x=\"$x\"
  26428. exec_prefix="$acl_save_exec_prefix"
  26429. prefix="$acl_save_prefix"
  26430. case "$x" in
  26431. -L*)
  26432. dir=`echo "X$x" | sed -e 's/^X-L//'`
  26433. if test -n "$acl_shlibext"; then
  26434. if test -f "$dir/$libname$shrext"; then
  26435. found_dir="$dir"
  26436. found_so="$dir/$libname$shrext"
  26437. else
  26438. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  26439. ver=`(cd "$dir" && \
  26440. for f in "$libname$shrext".*; do echo "$f"; done \
  26441. | sed -e "s,^$libname$shrext\\\\.,," \
  26442. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  26443. | sed 1q ) 2>/dev/null`
  26444. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  26445. found_dir="$dir"
  26446. found_so="$dir/$libname$shrext.$ver"
  26447. fi
  26448. else
  26449. eval library_names=\"$acl_library_names_spec\"
  26450. for f in $library_names; do
  26451. if test -f "$dir/$f"; then
  26452. found_dir="$dir"
  26453. found_so="$dir/$f"
  26454. break
  26455. fi
  26456. done
  26457. fi
  26458. fi
  26459. fi
  26460. if test "X$found_dir" = "X"; then
  26461. if test -f "$dir/$libname.$acl_libext"; then
  26462. found_dir="$dir"
  26463. found_a="$dir/$libname.$acl_libext"
  26464. fi
  26465. fi
  26466. if test "X$found_dir" != "X"; then
  26467. if test -f "$dir/$libname.la"; then
  26468. found_la="$dir/$libname.la"
  26469. fi
  26470. fi
  26471. ;;
  26472. esac
  26473. if test "X$found_dir" != "X"; then
  26474. break
  26475. fi
  26476. done
  26477. fi
  26478. if test "X$found_dir" != "X"; then
  26479. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  26480. if test "X$found_so" != "X"; then
  26481. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  26482. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  26483. else
  26484. haveit=
  26485. for x in $ltrpathdirs; do
  26486. if test "X$x" = "X$found_dir"; then
  26487. haveit=yes
  26488. break
  26489. fi
  26490. done
  26491. if test -z "$haveit"; then
  26492. ltrpathdirs="$ltrpathdirs $found_dir"
  26493. fi
  26494. if test "$acl_hardcode_direct" = yes; then
  26495. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  26496. else
  26497. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  26498. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  26499. haveit=
  26500. for x in $rpathdirs; do
  26501. if test "X$x" = "X$found_dir"; then
  26502. haveit=yes
  26503. break
  26504. fi
  26505. done
  26506. if test -z "$haveit"; then
  26507. rpathdirs="$rpathdirs $found_dir"
  26508. fi
  26509. else
  26510. haveit=
  26511. for x in $LDFLAGS $LIBINTL; do
  26512. acl_save_prefix="$prefix"
  26513. prefix="$acl_final_prefix"
  26514. acl_save_exec_prefix="$exec_prefix"
  26515. exec_prefix="$acl_final_exec_prefix"
  26516. eval x=\"$x\"
  26517. exec_prefix="$acl_save_exec_prefix"
  26518. prefix="$acl_save_prefix"
  26519. if test "X$x" = "X-L$found_dir"; then
  26520. haveit=yes
  26521. break
  26522. fi
  26523. done
  26524. if test -z "$haveit"; then
  26525. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  26526. fi
  26527. if test "$acl_hardcode_minus_L" != no; then
  26528. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  26529. else
  26530. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  26531. fi
  26532. fi
  26533. fi
  26534. fi
  26535. else
  26536. if test "X$found_a" != "X"; then
  26537. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  26538. else
  26539. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  26540. fi
  26541. fi
  26542. additional_includedir=
  26543. case "$found_dir" in
  26544. */$acl_libdirstem | */$acl_libdirstem/)
  26545. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  26546. LIBINTL_PREFIX="$basedir"
  26547. additional_includedir="$basedir/include"
  26548. ;;
  26549. esac
  26550. if test "X$additional_includedir" != "X"; then
  26551. if test "X$additional_includedir" != "X/usr/include"; then
  26552. haveit=
  26553. if test "X$additional_includedir" = "X/usr/local/include"; then
  26554. if test -n "$GCC"; then
  26555. case $host_os in
  26556. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  26557. esac
  26558. fi
  26559. fi
  26560. if test -z "$haveit"; then
  26561. for x in $CPPFLAGS $INCINTL; do
  26562. acl_save_prefix="$prefix"
  26563. prefix="$acl_final_prefix"
  26564. acl_save_exec_prefix="$exec_prefix"
  26565. exec_prefix="$acl_final_exec_prefix"
  26566. eval x=\"$x\"
  26567. exec_prefix="$acl_save_exec_prefix"
  26568. prefix="$acl_save_prefix"
  26569. if test "X$x" = "X-I$additional_includedir"; then
  26570. haveit=yes
  26571. break
  26572. fi
  26573. done
  26574. if test -z "$haveit"; then
  26575. if test -d "$additional_includedir"; then
  26576. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  26577. fi
  26578. fi
  26579. fi
  26580. fi
  26581. fi
  26582. if test -n "$found_la"; then
  26583. save_libdir="$libdir"
  26584. case "$found_la" in
  26585. */* | *\\*) . "$found_la" ;;
  26586. *) . "./$found_la" ;;
  26587. esac
  26588. libdir="$save_libdir"
  26589. for dep in $dependency_libs; do
  26590. case "$dep" in
  26591. -L*)
  26592. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  26593. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  26594. haveit=
  26595. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  26596. if test -n "$GCC"; then
  26597. case $host_os in
  26598. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  26599. esac
  26600. fi
  26601. fi
  26602. if test -z "$haveit"; then
  26603. haveit=
  26604. for x in $LDFLAGS $LIBINTL; do
  26605. acl_save_prefix="$prefix"
  26606. prefix="$acl_final_prefix"
  26607. acl_save_exec_prefix="$exec_prefix"
  26608. exec_prefix="$acl_final_exec_prefix"
  26609. eval x=\"$x\"
  26610. exec_prefix="$acl_save_exec_prefix"
  26611. prefix="$acl_save_prefix"
  26612. if test "X$x" = "X-L$additional_libdir"; then
  26613. haveit=yes
  26614. break
  26615. fi
  26616. done
  26617. if test -z "$haveit"; then
  26618. if test -d "$additional_libdir"; then
  26619. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  26620. fi
  26621. fi
  26622. haveit=
  26623. for x in $LDFLAGS $LTLIBINTL; do
  26624. acl_save_prefix="$prefix"
  26625. prefix="$acl_final_prefix"
  26626. acl_save_exec_prefix="$exec_prefix"
  26627. exec_prefix="$acl_final_exec_prefix"
  26628. eval x=\"$x\"
  26629. exec_prefix="$acl_save_exec_prefix"
  26630. prefix="$acl_save_prefix"
  26631. if test "X$x" = "X-L$additional_libdir"; then
  26632. haveit=yes
  26633. break
  26634. fi
  26635. done
  26636. if test -z "$haveit"; then
  26637. if test -d "$additional_libdir"; then
  26638. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  26639. fi
  26640. fi
  26641. fi
  26642. fi
  26643. ;;
  26644. -R*)
  26645. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  26646. if test "$enable_rpath" != no; then
  26647. haveit=
  26648. for x in $rpathdirs; do
  26649. if test "X$x" = "X$dir"; then
  26650. haveit=yes
  26651. break
  26652. fi
  26653. done
  26654. if test -z "$haveit"; then
  26655. rpathdirs="$rpathdirs $dir"
  26656. fi
  26657. haveit=
  26658. for x in $ltrpathdirs; do
  26659. if test "X$x" = "X$dir"; then
  26660. haveit=yes
  26661. break
  26662. fi
  26663. done
  26664. if test -z "$haveit"; then
  26665. ltrpathdirs="$ltrpathdirs $dir"
  26666. fi
  26667. fi
  26668. ;;
  26669. -l*)
  26670. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  26671. ;;
  26672. *.la)
  26673. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  26674. ;;
  26675. *)
  26676. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  26677. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  26678. ;;
  26679. esac
  26680. done
  26681. fi
  26682. else
  26683. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  26684. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  26685. fi
  26686. fi
  26687. fi
  26688. done
  26689. done
  26690. if test "X$rpathdirs" != "X"; then
  26691. if test -n "$acl_hardcode_libdir_separator"; then
  26692. alldirs=
  26693. for found_dir in $rpathdirs; do
  26694. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  26695. done
  26696. acl_save_libdir="$libdir"
  26697. libdir="$alldirs"
  26698. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  26699. libdir="$acl_save_libdir"
  26700. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  26701. else
  26702. for found_dir in $rpathdirs; do
  26703. acl_save_libdir="$libdir"
  26704. libdir="$found_dir"
  26705. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  26706. libdir="$acl_save_libdir"
  26707. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  26708. done
  26709. fi
  26710. fi
  26711. if test "X$ltrpathdirs" != "X"; then
  26712. for found_dir in $ltrpathdirs; do
  26713. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  26714. done
  26715. fi
  26716. { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
  26717. $as_echo_n "checking for GNU gettext in libintl... " >&6; }
  26718. if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
  26719. $as_echo_n "(cached) " >&6
  26720. else
  26721. gt_save_CPPFLAGS="$CPPFLAGS"
  26722. CPPFLAGS="$CPPFLAGS $INCINTL"
  26723. gt_save_LIBS="$LIBS"
  26724. LIBS="$LIBS $LIBINTL"
  26725. cat >conftest.$ac_ext <<_ACEOF
  26726. /* confdefs.h. */
  26727. _ACEOF
  26728. cat confdefs.h >>conftest.$ac_ext
  26729. cat >>conftest.$ac_ext <<_ACEOF
  26730. /* end confdefs.h. */
  26731. #include <libintl.h>
  26732. $gt_revision_test_code
  26733. extern int _nl_msg_cat_cntr;
  26734. extern
  26735. #ifdef __cplusplus
  26736. "C"
  26737. #endif
  26738. const char *_nl_expand_alias (const char *);
  26739. int
  26740. main ()
  26741. {
  26742. bindtextdomain ("", "");
  26743. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  26744. ;
  26745. return 0;
  26746. }
  26747. _ACEOF
  26748. rm -f conftest.$ac_objext conftest$ac_exeext
  26749. if { (ac_try="$ac_link"
  26750. case "(($ac_try" in
  26751. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26752. *) ac_try_echo=$ac_try;;
  26753. esac
  26754. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26755. $as_echo "$ac_try_echo") >&5
  26756. (eval "$ac_link") 2>conftest.er1
  26757. ac_status=$?
  26758. grep -v '^ *+' conftest.er1 >conftest.err
  26759. rm -f conftest.er1
  26760. cat conftest.err >&5
  26761. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26762. (exit $ac_status); } && {
  26763. test -z "$ac_c_werror_flag" ||
  26764. test ! -s conftest.err
  26765. } && test -s conftest$ac_exeext && {
  26766. test "$cross_compiling" = yes ||
  26767. $as_test_x conftest$ac_exeext
  26768. }; then
  26769. eval "$gt_func_gnugettext_libintl=yes"
  26770. else
  26771. $as_echo "$as_me: failed program was:" >&5
  26772. sed 's/^/| /' conftest.$ac_ext >&5
  26773. eval "$gt_func_gnugettext_libintl=no"
  26774. fi
  26775. rm -rf conftest.dSYM
  26776. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  26777. conftest$ac_exeext conftest.$ac_ext
  26778. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
  26779. LIBS="$LIBS $LIBICONV"
  26780. cat >conftest.$ac_ext <<_ACEOF
  26781. /* confdefs.h. */
  26782. _ACEOF
  26783. cat confdefs.h >>conftest.$ac_ext
  26784. cat >>conftest.$ac_ext <<_ACEOF
  26785. /* end confdefs.h. */
  26786. #include <libintl.h>
  26787. $gt_revision_test_code
  26788. extern int _nl_msg_cat_cntr;
  26789. extern
  26790. #ifdef __cplusplus
  26791. "C"
  26792. #endif
  26793. const char *_nl_expand_alias (const char *);
  26794. int
  26795. main ()
  26796. {
  26797. bindtextdomain ("", "");
  26798. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  26799. ;
  26800. return 0;
  26801. }
  26802. _ACEOF
  26803. rm -f conftest.$ac_objext conftest$ac_exeext
  26804. if { (ac_try="$ac_link"
  26805. case "(($ac_try" in
  26806. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26807. *) ac_try_echo=$ac_try;;
  26808. esac
  26809. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26810. $as_echo "$ac_try_echo") >&5
  26811. (eval "$ac_link") 2>conftest.er1
  26812. ac_status=$?
  26813. grep -v '^ *+' conftest.er1 >conftest.err
  26814. rm -f conftest.er1
  26815. cat conftest.err >&5
  26816. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26817. (exit $ac_status); } && {
  26818. test -z "$ac_c_werror_flag" ||
  26819. test ! -s conftest.err
  26820. } && test -s conftest$ac_exeext && {
  26821. test "$cross_compiling" = yes ||
  26822. $as_test_x conftest$ac_exeext
  26823. }; then
  26824. LIBINTL="$LIBINTL $LIBICONV"
  26825. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  26826. eval "$gt_func_gnugettext_libintl=yes"
  26827. else
  26828. $as_echo "$as_me: failed program was:" >&5
  26829. sed 's/^/| /' conftest.$ac_ext >&5
  26830. fi
  26831. rm -rf conftest.dSYM
  26832. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  26833. conftest$ac_exeext conftest.$ac_ext
  26834. fi
  26835. CPPFLAGS="$gt_save_CPPFLAGS"
  26836. LIBS="$gt_save_LIBS"
  26837. fi
  26838. ac_res=`eval 'as_val=${'$gt_func_gnugettext_libintl'}
  26839. $as_echo "$as_val"'`
  26840. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  26841. $as_echo "$ac_res" >&6; }
  26842. fi
  26843. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
  26844. || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
  26845. && test "$PACKAGE" != gettext-runtime \
  26846. && test "$PACKAGE" != gettext-tools; }; then
  26847. gt_use_preinstalled_gnugettext=yes
  26848. else
  26849. LIBINTL=
  26850. LTLIBINTL=
  26851. INCINTL=
  26852. fi
  26853. if test -n "$INTL_MACOSX_LIBS"; then
  26854. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  26855. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  26856. LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
  26857. LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
  26858. fi
  26859. fi
  26860. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  26861. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  26862. cat >>confdefs.h <<\_ACEOF
  26863. #define ENABLE_NLS 1
  26864. _ACEOF
  26865. else
  26866. USE_NLS=no
  26867. fi
  26868. fi
  26869. { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
  26870. $as_echo_n "checking whether to use NLS... " >&6; }
  26871. { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
  26872. $as_echo "$USE_NLS" >&6; }
  26873. if test "$USE_NLS" = "yes"; then
  26874. { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
  26875. $as_echo_n "checking where the gettext function comes from... " >&6; }
  26876. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  26877. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  26878. gt_source="external libintl"
  26879. else
  26880. gt_source="libc"
  26881. fi
  26882. else
  26883. gt_source="included intl directory"
  26884. fi
  26885. { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
  26886. $as_echo "$gt_source" >&6; }
  26887. fi
  26888. if test "$USE_NLS" = "yes"; then
  26889. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  26890. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  26891. { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
  26892. $as_echo_n "checking how to link with libintl... " >&6; }
  26893. { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
  26894. $as_echo "$LIBINTL" >&6; }
  26895. for element in $INCINTL; do
  26896. haveit=
  26897. for x in $CPPFLAGS; do
  26898. acl_save_prefix="$prefix"
  26899. prefix="$acl_final_prefix"
  26900. acl_save_exec_prefix="$exec_prefix"
  26901. exec_prefix="$acl_final_exec_prefix"
  26902. eval x=\"$x\"
  26903. exec_prefix="$acl_save_exec_prefix"
  26904. prefix="$acl_save_prefix"
  26905. if test "X$x" = "X$element"; then
  26906. haveit=yes
  26907. break
  26908. fi
  26909. done
  26910. if test -z "$haveit"; then
  26911. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  26912. fi
  26913. done
  26914. fi
  26915. cat >>confdefs.h <<\_ACEOF
  26916. #define HAVE_GETTEXT 1
  26917. _ACEOF
  26918. cat >>confdefs.h <<\_ACEOF
  26919. #define HAVE_DCGETTEXT 1
  26920. _ACEOF
  26921. fi
  26922. POSUB=po
  26923. fi
  26924. INTLLIBS="$LIBINTL"
  26925. ### Some systems don't declare some functions. On such systems, we
  26926. ### need to at least provide our own K&R-style declarations.
  26927. ### GUILE_FUNC_DECLARED(function, headerfile)
  26928. ### Check for a declaration of FUNCTION in HEADERFILE; if it is
  26929. ### not there, #define MISSING_FUNCTION_DECL.
  26930. { $as_echo "$as_me:$LINENO: checking for sleep declaration" >&5
  26931. $as_echo_n "checking for sleep declaration... " >&6; }
  26932. if test "${guile_cv_func_sleep_declared+set}" = set; then
  26933. $as_echo_n "(cached) " >&6
  26934. else
  26935. cat >conftest.$ac_ext <<_ACEOF
  26936. /* confdefs.h. */
  26937. _ACEOF
  26938. cat confdefs.h >>conftest.$ac_ext
  26939. cat >>conftest.$ac_ext <<_ACEOF
  26940. /* end confdefs.h. */
  26941. #include <unistd.h>
  26942. _ACEOF
  26943. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  26944. $EGREP "sleep" >/dev/null 2>&1; then
  26945. guile_cv_func_sleep_declared=yes
  26946. else
  26947. guile_cv_func_sleep_declared=no
  26948. fi
  26949. rm -f conftest*
  26950. fi
  26951. { $as_echo "$as_me:$LINENO: result: $guile_cv_func_sleep_declared" >&5
  26952. $as_echo "$guile_cv_func_sleep_declared" >&6; }
  26953. if test x$guile_cv_func_sleep_declared = xno; then
  26954. cat >>confdefs.h <<\_ACEOF
  26955. #define MISSING_SLEEP_DECL 1
  26956. _ACEOF
  26957. fi
  26958. { $as_echo "$as_me:$LINENO: checking for usleep declaration" >&5
  26959. $as_echo_n "checking for usleep declaration... " >&6; }
  26960. if test "${guile_cv_func_usleep_declared+set}" = set; then
  26961. $as_echo_n "(cached) " >&6
  26962. else
  26963. cat >conftest.$ac_ext <<_ACEOF
  26964. /* confdefs.h. */
  26965. _ACEOF
  26966. cat confdefs.h >>conftest.$ac_ext
  26967. cat >>conftest.$ac_ext <<_ACEOF
  26968. /* end confdefs.h. */
  26969. #include <unistd.h>
  26970. _ACEOF
  26971. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  26972. $EGREP "usleep" >/dev/null 2>&1; then
  26973. guile_cv_func_usleep_declared=yes
  26974. else
  26975. guile_cv_func_usleep_declared=no
  26976. fi
  26977. rm -f conftest*
  26978. fi
  26979. { $as_echo "$as_me:$LINENO: result: $guile_cv_func_usleep_declared" >&5
  26980. $as_echo "$guile_cv_func_usleep_declared" >&6; }
  26981. if test x$guile_cv_func_usleep_declared = xno; then
  26982. cat >>confdefs.h <<\_ACEOF
  26983. #define MISSING_USLEEP_DECL 1
  26984. _ACEOF
  26985. fi
  26986. { $as_echo "$as_me:$LINENO: checking whether strptime is declared" >&5
  26987. $as_echo_n "checking whether strptime is declared... " >&6; }
  26988. if test "${ac_cv_have_decl_strptime+set}" = set; then
  26989. $as_echo_n "(cached) " >&6
  26990. else
  26991. cat >conftest.$ac_ext <<_ACEOF
  26992. /* confdefs.h. */
  26993. _ACEOF
  26994. cat confdefs.h >>conftest.$ac_ext
  26995. cat >>conftest.$ac_ext <<_ACEOF
  26996. /* end confdefs.h. */
  26997. #define _GNU_SOURCE /* ask glibc to give strptime prototype */
  26998. #include <time.h>
  26999. int
  27000. main ()
  27001. {
  27002. #ifndef strptime
  27003. (void) strptime;
  27004. #endif
  27005. ;
  27006. return 0;
  27007. }
  27008. _ACEOF
  27009. rm -f conftest.$ac_objext
  27010. if { (ac_try="$ac_compile"
  27011. case "(($ac_try" in
  27012. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27013. *) ac_try_echo=$ac_try;;
  27014. esac
  27015. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27016. $as_echo "$ac_try_echo") >&5
  27017. (eval "$ac_compile") 2>conftest.er1
  27018. ac_status=$?
  27019. grep -v '^ *+' conftest.er1 >conftest.err
  27020. rm -f conftest.er1
  27021. cat conftest.err >&5
  27022. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27023. (exit $ac_status); } && {
  27024. test -z "$ac_c_werror_flag" ||
  27025. test ! -s conftest.err
  27026. } && test -s conftest.$ac_objext; then
  27027. ac_cv_have_decl_strptime=yes
  27028. else
  27029. $as_echo "$as_me: failed program was:" >&5
  27030. sed 's/^/| /' conftest.$ac_ext >&5
  27031. ac_cv_have_decl_strptime=no
  27032. fi
  27033. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27034. fi
  27035. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strptime" >&5
  27036. $as_echo "$ac_cv_have_decl_strptime" >&6; }
  27037. if test "x$ac_cv_have_decl_strptime" = x""yes; then
  27038. cat >>confdefs.h <<_ACEOF
  27039. #define HAVE_DECL_STRPTIME 1
  27040. _ACEOF
  27041. else
  27042. cat >>confdefs.h <<_ACEOF
  27043. #define HAVE_DECL_STRPTIME 0
  27044. _ACEOF
  27045. fi
  27046. ### On some systems usleep has no return value. If it does have one,
  27047. ### we'd like to return it; otherwise, we'll fake it.
  27048. { $as_echo "$as_me:$LINENO: checking return type of usleep" >&5
  27049. $as_echo_n "checking return type of usleep... " >&6; }
  27050. if test "${guile_cv_func_usleep_return_type+set}" = set; then
  27051. $as_echo_n "(cached) " >&6
  27052. else
  27053. cat >conftest.$ac_ext <<_ACEOF
  27054. /* confdefs.h. */
  27055. _ACEOF
  27056. cat confdefs.h >>conftest.$ac_ext
  27057. cat >>conftest.$ac_ext <<_ACEOF
  27058. /* end confdefs.h. */
  27059. #include <unistd.h>
  27060. _ACEOF
  27061. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  27062. $EGREP "void[ ]+usleep" >/dev/null 2>&1; then
  27063. guile_cv_func_usleep_return_type=void
  27064. else
  27065. guile_cv_func_usleep_return_type=int
  27066. fi
  27067. rm -f conftest*
  27068. fi
  27069. { $as_echo "$as_me:$LINENO: result: $guile_cv_func_usleep_return_type" >&5
  27070. $as_echo "$guile_cv_func_usleep_return_type" >&6; }
  27071. case "$guile_cv_func_usleep_return_type" in
  27072. "void" )
  27073. cat >>confdefs.h <<\_ACEOF
  27074. #define USLEEP_RETURNS_VOID 1
  27075. _ACEOF
  27076. ;;
  27077. esac
  27078. if test "${ac_cv_header_sys_un_h+set}" = set; then
  27079. { $as_echo "$as_me:$LINENO: checking for sys/un.h" >&5
  27080. $as_echo_n "checking for sys/un.h... " >&6; }
  27081. if test "${ac_cv_header_sys_un_h+set}" = set; then
  27082. $as_echo_n "(cached) " >&6
  27083. fi
  27084. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_un_h" >&5
  27085. $as_echo "$ac_cv_header_sys_un_h" >&6; }
  27086. else
  27087. # Is the header compilable?
  27088. { $as_echo "$as_me:$LINENO: checking sys/un.h usability" >&5
  27089. $as_echo_n "checking sys/un.h usability... " >&6; }
  27090. cat >conftest.$ac_ext <<_ACEOF
  27091. /* confdefs.h. */
  27092. _ACEOF
  27093. cat confdefs.h >>conftest.$ac_ext
  27094. cat >>conftest.$ac_ext <<_ACEOF
  27095. /* end confdefs.h. */
  27096. $ac_includes_default
  27097. #include <sys/un.h>
  27098. _ACEOF
  27099. rm -f conftest.$ac_objext
  27100. if { (ac_try="$ac_compile"
  27101. case "(($ac_try" in
  27102. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27103. *) ac_try_echo=$ac_try;;
  27104. esac
  27105. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27106. $as_echo "$ac_try_echo") >&5
  27107. (eval "$ac_compile") 2>conftest.er1
  27108. ac_status=$?
  27109. grep -v '^ *+' conftest.er1 >conftest.err
  27110. rm -f conftest.er1
  27111. cat conftest.err >&5
  27112. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27113. (exit $ac_status); } && {
  27114. test -z "$ac_c_werror_flag" ||
  27115. test ! -s conftest.err
  27116. } && test -s conftest.$ac_objext; then
  27117. ac_header_compiler=yes
  27118. else
  27119. $as_echo "$as_me: failed program was:" >&5
  27120. sed 's/^/| /' conftest.$ac_ext >&5
  27121. ac_header_compiler=no
  27122. fi
  27123. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27124. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  27125. $as_echo "$ac_header_compiler" >&6; }
  27126. # Is the header present?
  27127. { $as_echo "$as_me:$LINENO: checking sys/un.h presence" >&5
  27128. $as_echo_n "checking sys/un.h presence... " >&6; }
  27129. cat >conftest.$ac_ext <<_ACEOF
  27130. /* confdefs.h. */
  27131. _ACEOF
  27132. cat confdefs.h >>conftest.$ac_ext
  27133. cat >>conftest.$ac_ext <<_ACEOF
  27134. /* end confdefs.h. */
  27135. #include <sys/un.h>
  27136. _ACEOF
  27137. if { (ac_try="$ac_cpp conftest.$ac_ext"
  27138. case "(($ac_try" in
  27139. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27140. *) ac_try_echo=$ac_try;;
  27141. esac
  27142. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27143. $as_echo "$ac_try_echo") >&5
  27144. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  27145. ac_status=$?
  27146. grep -v '^ *+' conftest.er1 >conftest.err
  27147. rm -f conftest.er1
  27148. cat conftest.err >&5
  27149. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27150. (exit $ac_status); } >/dev/null && {
  27151. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  27152. test ! -s conftest.err
  27153. }; then
  27154. ac_header_preproc=yes
  27155. else
  27156. $as_echo "$as_me: failed program was:" >&5
  27157. sed 's/^/| /' conftest.$ac_ext >&5
  27158. ac_header_preproc=no
  27159. fi
  27160. rm -f conftest.err conftest.$ac_ext
  27161. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  27162. $as_echo "$ac_header_preproc" >&6; }
  27163. # So? What about this header?
  27164. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  27165. yes:no: )
  27166. { $as_echo "$as_me:$LINENO: WARNING: sys/un.h: accepted by the compiler, rejected by the preprocessor!" >&5
  27167. $as_echo "$as_me: WARNING: sys/un.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  27168. { $as_echo "$as_me:$LINENO: WARNING: sys/un.h: proceeding with the compiler's result" >&5
  27169. $as_echo "$as_me: WARNING: sys/un.h: proceeding with the compiler's result" >&2;}
  27170. ac_header_preproc=yes
  27171. ;;
  27172. no:yes:* )
  27173. { $as_echo "$as_me:$LINENO: WARNING: sys/un.h: present but cannot be compiled" >&5
  27174. $as_echo "$as_me: WARNING: sys/un.h: present but cannot be compiled" >&2;}
  27175. { $as_echo "$as_me:$LINENO: WARNING: sys/un.h: check for missing prerequisite headers?" >&5
  27176. $as_echo "$as_me: WARNING: sys/un.h: check for missing prerequisite headers?" >&2;}
  27177. { $as_echo "$as_me:$LINENO: WARNING: sys/un.h: see the Autoconf documentation" >&5
  27178. $as_echo "$as_me: WARNING: sys/un.h: see the Autoconf documentation" >&2;}
  27179. { $as_echo "$as_me:$LINENO: WARNING: sys/un.h: section \"Present But Cannot Be Compiled\"" >&5
  27180. $as_echo "$as_me: WARNING: sys/un.h: section \"Present But Cannot Be Compiled\"" >&2;}
  27181. { $as_echo "$as_me:$LINENO: WARNING: sys/un.h: proceeding with the preprocessor's result" >&5
  27182. $as_echo "$as_me: WARNING: sys/un.h: proceeding with the preprocessor's result" >&2;}
  27183. { $as_echo "$as_me:$LINENO: WARNING: sys/un.h: in the future, the compiler will take precedence" >&5
  27184. $as_echo "$as_me: WARNING: sys/un.h: in the future, the compiler will take precedence" >&2;}
  27185. ( cat <<\_ASBOX
  27186. ## -------------------------------- ##
  27187. ## Report this to bug-guile@gnu.org ##
  27188. ## -------------------------------- ##
  27189. _ASBOX
  27190. ) | sed "s/^/$as_me: WARNING: /" >&2
  27191. ;;
  27192. esac
  27193. { $as_echo "$as_me:$LINENO: checking for sys/un.h" >&5
  27194. $as_echo_n "checking for sys/un.h... " >&6; }
  27195. if test "${ac_cv_header_sys_un_h+set}" = set; then
  27196. $as_echo_n "(cached) " >&6
  27197. else
  27198. ac_cv_header_sys_un_h=$ac_header_preproc
  27199. fi
  27200. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_un_h" >&5
  27201. $as_echo "$ac_cv_header_sys_un_h" >&6; }
  27202. fi
  27203. if test "x$ac_cv_header_sys_un_h" = x""yes; then
  27204. have_sys_un_h=1
  27205. fi
  27206. if test -n "$have_sys_un_h" ; then
  27207. cat >>confdefs.h <<\_ACEOF
  27208. #define HAVE_UNIX_DOMAIN_SOCKETS 1
  27209. _ACEOF
  27210. fi
  27211. for ac_func in socketpair getgroups setgroups setpwent pause tzset
  27212. do
  27213. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  27214. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  27215. $as_echo_n "checking for $ac_func... " >&6; }
  27216. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  27217. $as_echo_n "(cached) " >&6
  27218. else
  27219. cat >conftest.$ac_ext <<_ACEOF
  27220. /* confdefs.h. */
  27221. _ACEOF
  27222. cat confdefs.h >>conftest.$ac_ext
  27223. cat >>conftest.$ac_ext <<_ACEOF
  27224. /* end confdefs.h. */
  27225. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  27226. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  27227. #define $ac_func innocuous_$ac_func
  27228. /* System header to define __stub macros and hopefully few prototypes,
  27229. which can conflict with char $ac_func (); below.
  27230. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  27231. <limits.h> exists even on freestanding compilers. */
  27232. #ifdef __STDC__
  27233. # include <limits.h>
  27234. #else
  27235. # include <assert.h>
  27236. #endif
  27237. #undef $ac_func
  27238. /* Override any GCC internal prototype to avoid an error.
  27239. Use char because int might match the return type of a GCC
  27240. builtin and then its argument prototype would still apply. */
  27241. #ifdef __cplusplus
  27242. extern "C"
  27243. #endif
  27244. char $ac_func ();
  27245. /* The GNU C library defines this for functions which it implements
  27246. to always fail with ENOSYS. Some functions are actually named
  27247. something starting with __ and the normal name is an alias. */
  27248. #if defined __stub_$ac_func || defined __stub___$ac_func
  27249. choke me
  27250. #endif
  27251. int
  27252. main ()
  27253. {
  27254. return $ac_func ();
  27255. ;
  27256. return 0;
  27257. }
  27258. _ACEOF
  27259. rm -f conftest.$ac_objext conftest$ac_exeext
  27260. if { (ac_try="$ac_link"
  27261. case "(($ac_try" in
  27262. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27263. *) ac_try_echo=$ac_try;;
  27264. esac
  27265. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27266. $as_echo "$ac_try_echo") >&5
  27267. (eval "$ac_link") 2>conftest.er1
  27268. ac_status=$?
  27269. grep -v '^ *+' conftest.er1 >conftest.err
  27270. rm -f conftest.er1
  27271. cat conftest.err >&5
  27272. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27273. (exit $ac_status); } && {
  27274. test -z "$ac_c_werror_flag" ||
  27275. test ! -s conftest.err
  27276. } && test -s conftest$ac_exeext && {
  27277. test "$cross_compiling" = yes ||
  27278. $as_test_x conftest$ac_exeext
  27279. }; then
  27280. eval "$as_ac_var=yes"
  27281. else
  27282. $as_echo "$as_me: failed program was:" >&5
  27283. sed 's/^/| /' conftest.$ac_ext >&5
  27284. eval "$as_ac_var=no"
  27285. fi
  27286. rm -rf conftest.dSYM
  27287. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  27288. conftest$ac_exeext conftest.$ac_ext
  27289. fi
  27290. ac_res=`eval 'as_val=${'$as_ac_var'}
  27291. $as_echo "$as_val"'`
  27292. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  27293. $as_echo "$ac_res" >&6; }
  27294. as_val=`eval 'as_val=${'$as_ac_var'}
  27295. $as_echo "$as_val"'`
  27296. if test "x$as_val" = x""yes; then
  27297. cat >>confdefs.h <<_ACEOF
  27298. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  27299. _ACEOF
  27300. fi
  27301. done
  27302. for ac_func in sethostent gethostent endhostent setnetent getnetent endnetent setprotoent getprotoent endprotoent setservent getservent endservent getnetbyaddr getnetbyname inet_lnaof inet_makeaddr inet_netof hstrerror inet_pton inet_ntop
  27303. do
  27304. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  27305. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  27306. $as_echo_n "checking for $ac_func... " >&6; }
  27307. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  27308. $as_echo_n "(cached) " >&6
  27309. else
  27310. cat >conftest.$ac_ext <<_ACEOF
  27311. /* confdefs.h. */
  27312. _ACEOF
  27313. cat confdefs.h >>conftest.$ac_ext
  27314. cat >>conftest.$ac_ext <<_ACEOF
  27315. /* end confdefs.h. */
  27316. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  27317. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  27318. #define $ac_func innocuous_$ac_func
  27319. /* System header to define __stub macros and hopefully few prototypes,
  27320. which can conflict with char $ac_func (); below.
  27321. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  27322. <limits.h> exists even on freestanding compilers. */
  27323. #ifdef __STDC__
  27324. # include <limits.h>
  27325. #else
  27326. # include <assert.h>
  27327. #endif
  27328. #undef $ac_func
  27329. /* Override any GCC internal prototype to avoid an error.
  27330. Use char because int might match the return type of a GCC
  27331. builtin and then its argument prototype would still apply. */
  27332. #ifdef __cplusplus
  27333. extern "C"
  27334. #endif
  27335. char $ac_func ();
  27336. /* The GNU C library defines this for functions which it implements
  27337. to always fail with ENOSYS. Some functions are actually named
  27338. something starting with __ and the normal name is an alias. */
  27339. #if defined __stub_$ac_func || defined __stub___$ac_func
  27340. choke me
  27341. #endif
  27342. int
  27343. main ()
  27344. {
  27345. return $ac_func ();
  27346. ;
  27347. return 0;
  27348. }
  27349. _ACEOF
  27350. rm -f conftest.$ac_objext conftest$ac_exeext
  27351. if { (ac_try="$ac_link"
  27352. case "(($ac_try" in
  27353. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27354. *) ac_try_echo=$ac_try;;
  27355. esac
  27356. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27357. $as_echo "$ac_try_echo") >&5
  27358. (eval "$ac_link") 2>conftest.er1
  27359. ac_status=$?
  27360. grep -v '^ *+' conftest.er1 >conftest.err
  27361. rm -f conftest.er1
  27362. cat conftest.err >&5
  27363. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27364. (exit $ac_status); } && {
  27365. test -z "$ac_c_werror_flag" ||
  27366. test ! -s conftest.err
  27367. } && test -s conftest$ac_exeext && {
  27368. test "$cross_compiling" = yes ||
  27369. $as_test_x conftest$ac_exeext
  27370. }; then
  27371. eval "$as_ac_var=yes"
  27372. else
  27373. $as_echo "$as_me: failed program was:" >&5
  27374. sed 's/^/| /' conftest.$ac_ext >&5
  27375. eval "$as_ac_var=no"
  27376. fi
  27377. rm -rf conftest.dSYM
  27378. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  27379. conftest$ac_exeext conftest.$ac_ext
  27380. fi
  27381. ac_res=`eval 'as_val=${'$as_ac_var'}
  27382. $as_echo "$as_val"'`
  27383. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  27384. $as_echo "$ac_res" >&6; }
  27385. as_val=`eval 'as_val=${'$as_ac_var'}
  27386. $as_echo "$as_val"'`
  27387. if test "x$as_val" = x""yes; then
  27388. cat >>confdefs.h <<_ACEOF
  27389. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  27390. _ACEOF
  27391. fi
  27392. done
  27393. # struct sockaddr field sin_len is only present on BSD systems.
  27394. # On 4.4BSD apparently a #define SIN_LEN exists, but on other BSD systems
  27395. # (eg. FreeBSD 4.9) it doesn't and we must use this configure check
  27396. { $as_echo "$as_me:$LINENO: checking for struct sockaddr.sin_len" >&5
  27397. $as_echo_n "checking for struct sockaddr.sin_len... " >&6; }
  27398. if test "${ac_cv_member_struct_sockaddr_sin_len+set}" = set; then
  27399. $as_echo_n "(cached) " >&6
  27400. else
  27401. cat >conftest.$ac_ext <<_ACEOF
  27402. /* confdefs.h. */
  27403. _ACEOF
  27404. cat confdefs.h >>conftest.$ac_ext
  27405. cat >>conftest.$ac_ext <<_ACEOF
  27406. /* end confdefs.h. */
  27407. #ifdef HAVE_SYS_TYPES_H
  27408. #include <sys/types.h>
  27409. #endif
  27410. #include <netinet/in.h>
  27411. int
  27412. main ()
  27413. {
  27414. static struct sockaddr ac_aggr;
  27415. if (ac_aggr.sin_len)
  27416. return 0;
  27417. ;
  27418. return 0;
  27419. }
  27420. _ACEOF
  27421. rm -f conftest.$ac_objext
  27422. if { (ac_try="$ac_compile"
  27423. case "(($ac_try" in
  27424. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27425. *) ac_try_echo=$ac_try;;
  27426. esac
  27427. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27428. $as_echo "$ac_try_echo") >&5
  27429. (eval "$ac_compile") 2>conftest.er1
  27430. ac_status=$?
  27431. grep -v '^ *+' conftest.er1 >conftest.err
  27432. rm -f conftest.er1
  27433. cat conftest.err >&5
  27434. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27435. (exit $ac_status); } && {
  27436. test -z "$ac_c_werror_flag" ||
  27437. test ! -s conftest.err
  27438. } && test -s conftest.$ac_objext; then
  27439. ac_cv_member_struct_sockaddr_sin_len=yes
  27440. else
  27441. $as_echo "$as_me: failed program was:" >&5
  27442. sed 's/^/| /' conftest.$ac_ext >&5
  27443. cat >conftest.$ac_ext <<_ACEOF
  27444. /* confdefs.h. */
  27445. _ACEOF
  27446. cat confdefs.h >>conftest.$ac_ext
  27447. cat >>conftest.$ac_ext <<_ACEOF
  27448. /* end confdefs.h. */
  27449. #ifdef HAVE_SYS_TYPES_H
  27450. #include <sys/types.h>
  27451. #endif
  27452. #include <netinet/in.h>
  27453. int
  27454. main ()
  27455. {
  27456. static struct sockaddr ac_aggr;
  27457. if (sizeof ac_aggr.sin_len)
  27458. return 0;
  27459. ;
  27460. return 0;
  27461. }
  27462. _ACEOF
  27463. rm -f conftest.$ac_objext
  27464. if { (ac_try="$ac_compile"
  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_compile") 2>conftest.er1
  27472. ac_status=$?
  27473. grep -v '^ *+' conftest.er1 >conftest.err
  27474. rm -f conftest.er1
  27475. cat conftest.err >&5
  27476. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27477. (exit $ac_status); } && {
  27478. test -z "$ac_c_werror_flag" ||
  27479. test ! -s conftest.err
  27480. } && test -s conftest.$ac_objext; then
  27481. ac_cv_member_struct_sockaddr_sin_len=yes
  27482. else
  27483. $as_echo "$as_me: failed program was:" >&5
  27484. sed 's/^/| /' conftest.$ac_ext >&5
  27485. ac_cv_member_struct_sockaddr_sin_len=no
  27486. fi
  27487. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27488. fi
  27489. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27490. fi
  27491. { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sin_len" >&5
  27492. $as_echo "$ac_cv_member_struct_sockaddr_sin_len" >&6; }
  27493. if test "x$ac_cv_member_struct_sockaddr_sin_len" = x""yes; then
  27494. cat >>confdefs.h <<_ACEOF
  27495. #define HAVE_STRUCT_SOCKADDR_SIN_LEN 1
  27496. _ACEOF
  27497. fi
  27498. { $as_echo "$as_me:$LINENO: checking for __libc_stack_end" >&5
  27499. $as_echo_n "checking for __libc_stack_end... " >&6; }
  27500. if test "${guile_cv_have_libc_stack_end+set}" = set; then
  27501. $as_echo_n "(cached) " >&6
  27502. else
  27503. cat >conftest.$ac_ext <<_ACEOF
  27504. /* confdefs.h. */
  27505. _ACEOF
  27506. cat confdefs.h >>conftest.$ac_ext
  27507. cat >>conftest.$ac_ext <<_ACEOF
  27508. /* end confdefs.h. */
  27509. #include <stdio.h>
  27510. extern char *__libc_stack_end;
  27511. int
  27512. main ()
  27513. {
  27514. printf("%p", (char*) __libc_stack_end);
  27515. ;
  27516. return 0;
  27517. }
  27518. _ACEOF
  27519. rm -f conftest.$ac_objext conftest$ac_exeext
  27520. if { (ac_try="$ac_link"
  27521. case "(($ac_try" in
  27522. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27523. *) ac_try_echo=$ac_try;;
  27524. esac
  27525. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27526. $as_echo "$ac_try_echo") >&5
  27527. (eval "$ac_link") 2>conftest.er1
  27528. ac_status=$?
  27529. grep -v '^ *+' conftest.er1 >conftest.err
  27530. rm -f conftest.er1
  27531. cat conftest.err >&5
  27532. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27533. (exit $ac_status); } && {
  27534. test -z "$ac_c_werror_flag" ||
  27535. test ! -s conftest.err
  27536. } && test -s conftest$ac_exeext && {
  27537. test "$cross_compiling" = yes ||
  27538. $as_test_x conftest$ac_exeext
  27539. }; then
  27540. guile_cv_have_libc_stack_end=yes
  27541. else
  27542. $as_echo "$as_me: failed program was:" >&5
  27543. sed 's/^/| /' conftest.$ac_ext >&5
  27544. guile_cv_have_libc_stack_end=no
  27545. fi
  27546. rm -rf conftest.dSYM
  27547. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  27548. conftest$ac_exeext conftest.$ac_ext
  27549. fi
  27550. { $as_echo "$as_me:$LINENO: result: $guile_cv_have_libc_stack_end" >&5
  27551. $as_echo "$guile_cv_have_libc_stack_end" >&6; }
  27552. if test $guile_cv_have_libc_stack_end = yes; then
  27553. cat >>confdefs.h <<\_ACEOF
  27554. #define HAVE_LIBC_STACK_END 1
  27555. _ACEOF
  27556. fi
  27557. { $as_echo "$as_me:$LINENO: checking whether netdb.h declares h_errno" >&5
  27558. $as_echo_n "checking whether netdb.h declares h_errno... " >&6; }
  27559. if test "${guile_cv_have_h_errno+set}" = set; then
  27560. $as_echo_n "(cached) " >&6
  27561. else
  27562. cat >conftest.$ac_ext <<_ACEOF
  27563. /* confdefs.h. */
  27564. _ACEOF
  27565. cat confdefs.h >>conftest.$ac_ext
  27566. cat >>conftest.$ac_ext <<_ACEOF
  27567. /* end confdefs.h. */
  27568. #include <netdb.h>
  27569. int
  27570. main ()
  27571. {
  27572. int a = h_errno;
  27573. ;
  27574. return 0;
  27575. }
  27576. _ACEOF
  27577. rm -f conftest.$ac_objext
  27578. if { (ac_try="$ac_compile"
  27579. case "(($ac_try" in
  27580. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27581. *) ac_try_echo=$ac_try;;
  27582. esac
  27583. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27584. $as_echo "$ac_try_echo") >&5
  27585. (eval "$ac_compile") 2>conftest.er1
  27586. ac_status=$?
  27587. grep -v '^ *+' conftest.er1 >conftest.err
  27588. rm -f conftest.er1
  27589. cat conftest.err >&5
  27590. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27591. (exit $ac_status); } && {
  27592. test -z "$ac_c_werror_flag" ||
  27593. test ! -s conftest.err
  27594. } && test -s conftest.$ac_objext; then
  27595. guile_cv_have_h_errno=yes
  27596. else
  27597. $as_echo "$as_me: failed program was:" >&5
  27598. sed 's/^/| /' conftest.$ac_ext >&5
  27599. guile_cv_have_h_errno=no
  27600. fi
  27601. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27602. fi
  27603. { $as_echo "$as_me:$LINENO: result: $guile_cv_have_h_errno" >&5
  27604. $as_echo "$guile_cv_have_h_errno" >&6; }
  27605. if test $guile_cv_have_h_errno = yes; then
  27606. cat >>confdefs.h <<\_ACEOF
  27607. #define HAVE_H_ERRNO 1
  27608. _ACEOF
  27609. fi
  27610. { $as_echo "$as_me:$LINENO: checking whether uint32_t is defined" >&5
  27611. $as_echo_n "checking whether uint32_t is defined... " >&6; }
  27612. if test "${guile_cv_have_uint32_t+set}" = set; then
  27613. $as_echo_n "(cached) " >&6
  27614. else
  27615. cat >conftest.$ac_ext <<_ACEOF
  27616. /* confdefs.h. */
  27617. _ACEOF
  27618. cat confdefs.h >>conftest.$ac_ext
  27619. cat >>conftest.$ac_ext <<_ACEOF
  27620. /* end confdefs.h. */
  27621. #include <sys/types.h>
  27622. #if HAVE_STDINT_H
  27623. #include <stdint.h>
  27624. #endif
  27625. #ifndef HAVE_NETDB_H
  27626. #include <netdb.h>
  27627. #endif
  27628. int
  27629. main ()
  27630. {
  27631. uint32_t a;
  27632. ;
  27633. return 0;
  27634. }
  27635. _ACEOF
  27636. rm -f conftest.$ac_objext
  27637. if { (ac_try="$ac_compile"
  27638. case "(($ac_try" in
  27639. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27640. *) ac_try_echo=$ac_try;;
  27641. esac
  27642. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27643. $as_echo "$ac_try_echo") >&5
  27644. (eval "$ac_compile") 2>conftest.er1
  27645. ac_status=$?
  27646. grep -v '^ *+' conftest.er1 >conftest.err
  27647. rm -f conftest.er1
  27648. cat conftest.err >&5
  27649. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27650. (exit $ac_status); } && {
  27651. test -z "$ac_c_werror_flag" ||
  27652. test ! -s conftest.err
  27653. } && test -s conftest.$ac_objext; then
  27654. guile_cv_have_uint32_t=yes
  27655. else
  27656. $as_echo "$as_me: failed program was:" >&5
  27657. sed 's/^/| /' conftest.$ac_ext >&5
  27658. guile_cv_have_uint32_t=no
  27659. fi
  27660. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27661. fi
  27662. { $as_echo "$as_me:$LINENO: result: $guile_cv_have_uint32_t" >&5
  27663. $as_echo "$guile_cv_have_uint32_t" >&6; }
  27664. if test $guile_cv_have_uint32_t = yes; then
  27665. cat >>confdefs.h <<\_ACEOF
  27666. #define HAVE_UINT32_T 1
  27667. _ACEOF
  27668. fi
  27669. { $as_echo "$as_me:$LINENO: checking for working IPv6 support" >&5
  27670. $as_echo_n "checking for working IPv6 support... " >&6; }
  27671. if test "${guile_cv_have_ipv6+set}" = set; then
  27672. $as_echo_n "(cached) " >&6
  27673. else
  27674. cat >conftest.$ac_ext <<_ACEOF
  27675. /* confdefs.h. */
  27676. _ACEOF
  27677. cat confdefs.h >>conftest.$ac_ext
  27678. cat >>conftest.$ac_ext <<_ACEOF
  27679. /* end confdefs.h. */
  27680. #ifdef HAVE_SYS_TYPES_H
  27681. #include <sys/types.h>
  27682. #endif
  27683. #include <netinet/in.h>
  27684. #include <sys/socket.h>
  27685. int
  27686. main ()
  27687. {
  27688. struct sockaddr_in6 a; a.sin6_family = AF_INET6;
  27689. ;
  27690. return 0;
  27691. }
  27692. _ACEOF
  27693. rm -f conftest.$ac_objext
  27694. if { (ac_try="$ac_compile"
  27695. case "(($ac_try" in
  27696. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27697. *) ac_try_echo=$ac_try;;
  27698. esac
  27699. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27700. $as_echo "$ac_try_echo") >&5
  27701. (eval "$ac_compile") 2>conftest.er1
  27702. ac_status=$?
  27703. grep -v '^ *+' conftest.er1 >conftest.err
  27704. rm -f conftest.er1
  27705. cat conftest.err >&5
  27706. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27707. (exit $ac_status); } && {
  27708. test -z "$ac_c_werror_flag" ||
  27709. test ! -s conftest.err
  27710. } && test -s conftest.$ac_objext; then
  27711. guile_cv_have_ipv6=yes
  27712. else
  27713. $as_echo "$as_me: failed program was:" >&5
  27714. sed 's/^/| /' conftest.$ac_ext >&5
  27715. guile_cv_have_ipv6=no
  27716. fi
  27717. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27718. fi
  27719. { $as_echo "$as_me:$LINENO: result: $guile_cv_have_ipv6" >&5
  27720. $as_echo "$guile_cv_have_ipv6" >&6; }
  27721. if test $guile_cv_have_ipv6 = yes; then
  27722. cat >>confdefs.h <<\_ACEOF
  27723. #define HAVE_IPV6 1
  27724. _ACEOF
  27725. fi
  27726. # included in rfc2553 but not in older implementations, e.g., glibc 2.1.3.
  27727. { $as_echo "$as_me:$LINENO: checking whether sockaddr_in6 has sin6_scope_id" >&5
  27728. $as_echo_n "checking whether sockaddr_in6 has sin6_scope_id... " >&6; }
  27729. if test "${guile_cv_have_sin6_scope_id+set}" = set; then
  27730. $as_echo_n "(cached) " >&6
  27731. else
  27732. cat >conftest.$ac_ext <<_ACEOF
  27733. /* confdefs.h. */
  27734. _ACEOF
  27735. cat confdefs.h >>conftest.$ac_ext
  27736. cat >>conftest.$ac_ext <<_ACEOF
  27737. /* end confdefs.h. */
  27738. #ifdef HAVE_SYS_TYPES_H
  27739. #include <sys/types.h>
  27740. #endif
  27741. #include <netinet/in.h>
  27742. int
  27743. main ()
  27744. {
  27745. struct sockaddr_in6 sok; sok.sin6_scope_id = 0;
  27746. ;
  27747. return 0;
  27748. }
  27749. _ACEOF
  27750. rm -f conftest.$ac_objext
  27751. if { (ac_try="$ac_compile"
  27752. case "(($ac_try" in
  27753. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27754. *) ac_try_echo=$ac_try;;
  27755. esac
  27756. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27757. $as_echo "$ac_try_echo") >&5
  27758. (eval "$ac_compile") 2>conftest.er1
  27759. ac_status=$?
  27760. grep -v '^ *+' conftest.er1 >conftest.err
  27761. rm -f conftest.er1
  27762. cat conftest.err >&5
  27763. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27764. (exit $ac_status); } && {
  27765. test -z "$ac_c_werror_flag" ||
  27766. test ! -s conftest.err
  27767. } && test -s conftest.$ac_objext; then
  27768. guile_cv_have_sin6_scope_id=yes
  27769. else
  27770. $as_echo "$as_me: failed program was:" >&5
  27771. sed 's/^/| /' conftest.$ac_ext >&5
  27772. guile_cv_have_sin6_scope_id=no
  27773. fi
  27774. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27775. fi
  27776. { $as_echo "$as_me:$LINENO: result: $guile_cv_have_sin6_scope_id" >&5
  27777. $as_echo "$guile_cv_have_sin6_scope_id" >&6; }
  27778. if test $guile_cv_have_sin6_scope_id = yes; then
  27779. cat >>confdefs.h <<\_ACEOF
  27780. #define HAVE_SIN6_SCOPE_ID 1
  27781. _ACEOF
  27782. fi
  27783. # struct sockaddr_in6 field sin_len is only present on BSD systems
  27784. { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6.sin6_len" >&5
  27785. $as_echo_n "checking for struct sockaddr_in6.sin6_len... " >&6; }
  27786. if test "${ac_cv_member_struct_sockaddr_in6_sin6_len+set}" = set; then
  27787. $as_echo_n "(cached) " >&6
  27788. else
  27789. cat >conftest.$ac_ext <<_ACEOF
  27790. /* confdefs.h. */
  27791. _ACEOF
  27792. cat confdefs.h >>conftest.$ac_ext
  27793. cat >>conftest.$ac_ext <<_ACEOF
  27794. /* end confdefs.h. */
  27795. #ifdef HAVE_SYS_TYPES_H
  27796. #include <sys/types.h>
  27797. #endif
  27798. #include <netinet/in.h>
  27799. int
  27800. main ()
  27801. {
  27802. static struct sockaddr_in6 ac_aggr;
  27803. if (ac_aggr.sin6_len)
  27804. return 0;
  27805. ;
  27806. return 0;
  27807. }
  27808. _ACEOF
  27809. rm -f conftest.$ac_objext
  27810. if { (ac_try="$ac_compile"
  27811. case "(($ac_try" in
  27812. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27813. *) ac_try_echo=$ac_try;;
  27814. esac
  27815. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27816. $as_echo "$ac_try_echo") >&5
  27817. (eval "$ac_compile") 2>conftest.er1
  27818. ac_status=$?
  27819. grep -v '^ *+' conftest.er1 >conftest.err
  27820. rm -f conftest.er1
  27821. cat conftest.err >&5
  27822. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27823. (exit $ac_status); } && {
  27824. test -z "$ac_c_werror_flag" ||
  27825. test ! -s conftest.err
  27826. } && test -s conftest.$ac_objext; then
  27827. ac_cv_member_struct_sockaddr_in6_sin6_len=yes
  27828. else
  27829. $as_echo "$as_me: failed program was:" >&5
  27830. sed 's/^/| /' conftest.$ac_ext >&5
  27831. cat >conftest.$ac_ext <<_ACEOF
  27832. /* confdefs.h. */
  27833. _ACEOF
  27834. cat confdefs.h >>conftest.$ac_ext
  27835. cat >>conftest.$ac_ext <<_ACEOF
  27836. /* end confdefs.h. */
  27837. #ifdef HAVE_SYS_TYPES_H
  27838. #include <sys/types.h>
  27839. #endif
  27840. #include <netinet/in.h>
  27841. int
  27842. main ()
  27843. {
  27844. static struct sockaddr_in6 ac_aggr;
  27845. if (sizeof ac_aggr.sin6_len)
  27846. return 0;
  27847. ;
  27848. return 0;
  27849. }
  27850. _ACEOF
  27851. rm -f conftest.$ac_objext
  27852. if { (ac_try="$ac_compile"
  27853. case "(($ac_try" in
  27854. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27855. *) ac_try_echo=$ac_try;;
  27856. esac
  27857. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27858. $as_echo "$ac_try_echo") >&5
  27859. (eval "$ac_compile") 2>conftest.er1
  27860. ac_status=$?
  27861. grep -v '^ *+' conftest.er1 >conftest.err
  27862. rm -f conftest.er1
  27863. cat conftest.err >&5
  27864. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27865. (exit $ac_status); } && {
  27866. test -z "$ac_c_werror_flag" ||
  27867. test ! -s conftest.err
  27868. } && test -s conftest.$ac_objext; then
  27869. ac_cv_member_struct_sockaddr_in6_sin6_len=yes
  27870. else
  27871. $as_echo "$as_me: failed program was:" >&5
  27872. sed 's/^/| /' conftest.$ac_ext >&5
  27873. ac_cv_member_struct_sockaddr_in6_sin6_len=no
  27874. fi
  27875. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27876. fi
  27877. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27878. fi
  27879. { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in6_sin6_len" >&5
  27880. $as_echo "$ac_cv_member_struct_sockaddr_in6_sin6_len" >&6; }
  27881. if test "x$ac_cv_member_struct_sockaddr_in6_sin6_len" = x""yes; then
  27882. cat >>confdefs.h <<_ACEOF
  27883. #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_LEN 1
  27884. _ACEOF
  27885. fi
  27886. { $as_echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
  27887. $as_echo_n "checking whether localtime caches TZ... " >&6; }
  27888. if test "${guile_cv_localtime_cache+set}" = set; then
  27889. $as_echo_n "(cached) " >&6
  27890. else
  27891. if test x$ac_cv_func_tzset = xyes; then
  27892. if test "$cross_compiling" = yes; then
  27893. # If we have tzset, assume the worst when cross-compiling.
  27894. guile_cv_localtime_cache=yes
  27895. else
  27896. cat >conftest.$ac_ext <<_ACEOF
  27897. /* confdefs.h. */
  27898. _ACEOF
  27899. cat confdefs.h >>conftest.$ac_ext
  27900. cat >>conftest.$ac_ext <<_ACEOF
  27901. /* end confdefs.h. */
  27902. #include <time.h>
  27903. #if STDC_HEADERS
  27904. # include <stdlib.h>
  27905. #endif
  27906. extern char **environ;
  27907. unset_TZ ()
  27908. {
  27909. char **from, **to;
  27910. for (to = from = environ; (*to = *from); from++)
  27911. if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
  27912. to++;
  27913. }
  27914. char TZ_GMT0[] = "TZ=GMT0";
  27915. char TZ_PST8[] = "TZ=PST8";
  27916. main()
  27917. {
  27918. time_t now = time ((time_t *) 0);
  27919. int hour_GMT0, hour_unset;
  27920. if (putenv (TZ_GMT0) != 0)
  27921. exit (1);
  27922. hour_GMT0 = localtime (&now)->tm_hour;
  27923. unset_TZ ();
  27924. hour_unset = localtime (&now)->tm_hour;
  27925. if (putenv (TZ_PST8) != 0)
  27926. exit (1);
  27927. if (localtime (&now)->tm_hour == hour_GMT0)
  27928. exit (1);
  27929. unset_TZ ();
  27930. if (localtime (&now)->tm_hour != hour_unset)
  27931. exit (1);
  27932. exit (0);
  27933. }
  27934. _ACEOF
  27935. rm -f conftest$ac_exeext
  27936. if { (ac_try="$ac_link"
  27937. case "(($ac_try" in
  27938. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27939. *) ac_try_echo=$ac_try;;
  27940. esac
  27941. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27942. $as_echo "$ac_try_echo") >&5
  27943. (eval "$ac_link") 2>&5
  27944. ac_status=$?
  27945. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27946. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  27947. { (case "(($ac_try" in
  27948. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27949. *) ac_try_echo=$ac_try;;
  27950. esac
  27951. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27952. $as_echo "$ac_try_echo") >&5
  27953. (eval "$ac_try") 2>&5
  27954. ac_status=$?
  27955. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27956. (exit $ac_status); }; }; then
  27957. guile_cv_localtime_cache=no
  27958. else
  27959. $as_echo "$as_me: program exited with status $ac_status" >&5
  27960. $as_echo "$as_me: failed program was:" >&5
  27961. sed 's/^/| /' conftest.$ac_ext >&5
  27962. ( exit $ac_status )
  27963. guile_cv_localtime_cache=yes
  27964. fi
  27965. rm -rf conftest.dSYM
  27966. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  27967. fi
  27968. else
  27969. # If we lack tzset, report that localtime does not cache TZ,
  27970. # since we can't invalidate the cache if we don't have tzset.
  27971. guile_cv_localtime_cache=no
  27972. fi
  27973. fi
  27974. { $as_echo "$as_me:$LINENO: result: $guile_cv_localtime_cache" >&5
  27975. $as_echo "$guile_cv_localtime_cache" >&6; }
  27976. if test $guile_cv_localtime_cache = yes; then
  27977. cat >>confdefs.h <<\_ACEOF
  27978. #define LOCALTIME_CACHE 1
  27979. _ACEOF
  27980. fi
  27981. if test "$enable_regex" = yes; then
  27982. if test "$ac_cv_header_regex_h" = yes ||
  27983. test "$ac_cv_header_rxposix_h" = yes ||
  27984. test "$ac_cv_header_rx_rxposix_h" = yes; then
  27985. { $as_echo "$as_me:$LINENO: checking for regcomp" >&5
  27986. $as_echo_n "checking for regcomp... " >&6; }
  27987. if test "${ac_cv_func_regcomp_norx+set}" = set; then
  27988. $as_echo_n "(cached) " >&6
  27989. else
  27990. cat >conftest.$ac_ext <<_ACEOF
  27991. /* confdefs.h. */
  27992. _ACEOF
  27993. cat confdefs.h >>conftest.$ac_ext
  27994. cat >>conftest.$ac_ext <<_ACEOF
  27995. /* end confdefs.h. */
  27996. /* System header to define __stub macros and hopefully few prototypes,
  27997. which can conflict with char regcomp(); below. */
  27998. #include <assert.h>
  27999. /* Override any gcc2 internal prototype to avoid an error. */
  28000. #ifdef __cplusplus
  28001. extern "C"
  28002. #endif
  28003. /* We use char because int might match the return type of a gcc2
  28004. builtin and then its argument prototype would still apply. */
  28005. char regcomp();
  28006. int
  28007. main ()
  28008. {
  28009. /* The GNU C library defines this for functions which it implements
  28010. to always fail with ENOSYS. Some functions are actually named
  28011. something starting with __ and the normal name is an alias. */
  28012. #if defined (__stub_regcomp) || defined (__stub___regcomp)
  28013. choke me
  28014. #else
  28015. regcomp();
  28016. #endif
  28017. ;
  28018. return 0;
  28019. }
  28020. _ACEOF
  28021. rm -f conftest.$ac_objext conftest$ac_exeext
  28022. if { (ac_try="$ac_link"
  28023. case "(($ac_try" in
  28024. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28025. *) ac_try_echo=$ac_try;;
  28026. esac
  28027. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28028. $as_echo "$ac_try_echo") >&5
  28029. (eval "$ac_link") 2>conftest.er1
  28030. ac_status=$?
  28031. grep -v '^ *+' conftest.er1 >conftest.err
  28032. rm -f conftest.er1
  28033. cat conftest.err >&5
  28034. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28035. (exit $ac_status); } && {
  28036. test -z "$ac_c_werror_flag" ||
  28037. test ! -s conftest.err
  28038. } && test -s conftest$ac_exeext && {
  28039. test "$cross_compiling" = yes ||
  28040. $as_test_x conftest$ac_exeext
  28041. }; then
  28042. eval "ac_cv_func_regcomp_norx=yes"
  28043. else
  28044. $as_echo "$as_me: failed program was:" >&5
  28045. sed 's/^/| /' conftest.$ac_ext >&5
  28046. eval "ac_cv_func_regcomp_norx=no"
  28047. fi
  28048. rm -rf conftest.dSYM
  28049. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  28050. conftest$ac_exeext conftest.$ac_ext
  28051. fi
  28052. if eval "test \"`echo '$ac_cv_func_'regcomp'_'norx`\" = yes"; then
  28053. { $as_echo "$as_me:$LINENO: result: yes" >&5
  28054. $as_echo "yes" >&6; }
  28055. case " $LIBOBJS " in
  28056. *" regex-posix.$ac_objext "* ) ;;
  28057. *) LIBOBJS="$LIBOBJS regex-posix.$ac_objext"
  28058. ;;
  28059. esac
  28060. else
  28061. { $as_echo "$as_me:$LINENO: result: no" >&5
  28062. $as_echo "no" >&6; }
  28063. { $as_echo "$as_me:$LINENO: checking for main in -lrx" >&5
  28064. $as_echo_n "checking for main in -lrx... " >&6; }
  28065. if test "${ac_cv_lib_rx_main+set}" = set; then
  28066. $as_echo_n "(cached) " >&6
  28067. else
  28068. ac_check_lib_save_LIBS=$LIBS
  28069. LIBS="-lrx $LIBS"
  28070. cat >conftest.$ac_ext <<_ACEOF
  28071. /* confdefs.h. */
  28072. _ACEOF
  28073. cat confdefs.h >>conftest.$ac_ext
  28074. cat >>conftest.$ac_ext <<_ACEOF
  28075. /* end confdefs.h. */
  28076. int
  28077. main ()
  28078. {
  28079. return main ();
  28080. ;
  28081. return 0;
  28082. }
  28083. _ACEOF
  28084. rm -f conftest.$ac_objext conftest$ac_exeext
  28085. if { (ac_try="$ac_link"
  28086. case "(($ac_try" in
  28087. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28088. *) ac_try_echo=$ac_try;;
  28089. esac
  28090. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28091. $as_echo "$ac_try_echo") >&5
  28092. (eval "$ac_link") 2>conftest.er1
  28093. ac_status=$?
  28094. grep -v '^ *+' conftest.er1 >conftest.err
  28095. rm -f conftest.er1
  28096. cat conftest.err >&5
  28097. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28098. (exit $ac_status); } && {
  28099. test -z "$ac_c_werror_flag" ||
  28100. test ! -s conftest.err
  28101. } && test -s conftest$ac_exeext && {
  28102. test "$cross_compiling" = yes ||
  28103. $as_test_x conftest$ac_exeext
  28104. }; then
  28105. ac_cv_lib_rx_main=yes
  28106. else
  28107. $as_echo "$as_me: failed program was:" >&5
  28108. sed 's/^/| /' conftest.$ac_ext >&5
  28109. ac_cv_lib_rx_main=no
  28110. fi
  28111. rm -rf conftest.dSYM
  28112. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  28113. conftest$ac_exeext conftest.$ac_ext
  28114. LIBS=$ac_check_lib_save_LIBS
  28115. fi
  28116. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rx_main" >&5
  28117. $as_echo "$ac_cv_lib_rx_main" >&6; }
  28118. if test "x$ac_cv_lib_rx_main" = x""yes; then
  28119. cat >>confdefs.h <<_ACEOF
  28120. #define HAVE_LIBRX 1
  28121. _ACEOF
  28122. LIBS="-lrx $LIBS"
  28123. fi
  28124. { $as_echo "$as_me:$LINENO: checking for regcomp" >&5
  28125. $as_echo_n "checking for regcomp... " >&6; }
  28126. if test "${ac_cv_func_regcomp_rx+set}" = set; then
  28127. $as_echo_n "(cached) " >&6
  28128. else
  28129. cat >conftest.$ac_ext <<_ACEOF
  28130. /* confdefs.h. */
  28131. _ACEOF
  28132. cat confdefs.h >>conftest.$ac_ext
  28133. cat >>conftest.$ac_ext <<_ACEOF
  28134. /* end confdefs.h. */
  28135. /* System header to define __stub macros and hopefully few prototypes,
  28136. which can conflict with char regcomp(); below. */
  28137. #include <assert.h>
  28138. /* Override any gcc2 internal prototype to avoid an error. */
  28139. #ifdef __cplusplus
  28140. extern "C"
  28141. #endif
  28142. /* We use char because int might match the return type of a gcc2
  28143. builtin and then its argument prototype would still apply. */
  28144. char regcomp();
  28145. int
  28146. main ()
  28147. {
  28148. /* The GNU C library defines this for functions which it implements
  28149. to always fail with ENOSYS. Some functions are actually named
  28150. something starting with __ and the normal name is an alias. */
  28151. #if defined (__stub_regcomp) || defined (__stub___regcomp)
  28152. choke me
  28153. #else
  28154. regcomp();
  28155. #endif
  28156. ;
  28157. return 0;
  28158. }
  28159. _ACEOF
  28160. rm -f conftest.$ac_objext conftest$ac_exeext
  28161. if { (ac_try="$ac_link"
  28162. case "(($ac_try" in
  28163. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28164. *) ac_try_echo=$ac_try;;
  28165. esac
  28166. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28167. $as_echo "$ac_try_echo") >&5
  28168. (eval "$ac_link") 2>conftest.er1
  28169. ac_status=$?
  28170. grep -v '^ *+' conftest.er1 >conftest.err
  28171. rm -f conftest.er1
  28172. cat conftest.err >&5
  28173. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28174. (exit $ac_status); } && {
  28175. test -z "$ac_c_werror_flag" ||
  28176. test ! -s conftest.err
  28177. } && test -s conftest$ac_exeext && {
  28178. test "$cross_compiling" = yes ||
  28179. $as_test_x conftest$ac_exeext
  28180. }; then
  28181. eval "ac_cv_func_regcomp_rx=yes"
  28182. else
  28183. $as_echo "$as_me: failed program was:" >&5
  28184. sed 's/^/| /' conftest.$ac_ext >&5
  28185. eval "ac_cv_func_regcomp_rx=no"
  28186. fi
  28187. rm -rf conftest.dSYM
  28188. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  28189. conftest$ac_exeext conftest.$ac_ext
  28190. fi
  28191. if eval "test \"`echo '$ac_cv_func_'regcomp'_'rx`\" = yes"; then
  28192. { $as_echo "$as_me:$LINENO: result: yes" >&5
  28193. $as_echo "yes" >&6; }
  28194. case " $LIBOBJS " in
  28195. *" regex-posix.$ac_objext "* ) ;;
  28196. *) LIBOBJS="$LIBOBJS regex-posix.$ac_objext"
  28197. ;;
  28198. esac
  28199. else
  28200. { $as_echo "$as_me:$LINENO: result: no" >&5
  28201. $as_echo "no" >&6; }
  28202. { $as_echo "$as_me:$LINENO: checking for main in -lregex" >&5
  28203. $as_echo_n "checking for main in -lregex... " >&6; }
  28204. if test "${ac_cv_lib_regex_main+set}" = set; then
  28205. $as_echo_n "(cached) " >&6
  28206. else
  28207. ac_check_lib_save_LIBS=$LIBS
  28208. LIBS="-lregex $LIBS"
  28209. cat >conftest.$ac_ext <<_ACEOF
  28210. /* confdefs.h. */
  28211. _ACEOF
  28212. cat confdefs.h >>conftest.$ac_ext
  28213. cat >>conftest.$ac_ext <<_ACEOF
  28214. /* end confdefs.h. */
  28215. int
  28216. main ()
  28217. {
  28218. return main ();
  28219. ;
  28220. return 0;
  28221. }
  28222. _ACEOF
  28223. rm -f conftest.$ac_objext conftest$ac_exeext
  28224. if { (ac_try="$ac_link"
  28225. case "(($ac_try" in
  28226. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28227. *) ac_try_echo=$ac_try;;
  28228. esac
  28229. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28230. $as_echo "$ac_try_echo") >&5
  28231. (eval "$ac_link") 2>conftest.er1
  28232. ac_status=$?
  28233. grep -v '^ *+' conftest.er1 >conftest.err
  28234. rm -f conftest.er1
  28235. cat conftest.err >&5
  28236. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28237. (exit $ac_status); } && {
  28238. test -z "$ac_c_werror_flag" ||
  28239. test ! -s conftest.err
  28240. } && test -s conftest$ac_exeext && {
  28241. test "$cross_compiling" = yes ||
  28242. $as_test_x conftest$ac_exeext
  28243. }; then
  28244. ac_cv_lib_regex_main=yes
  28245. else
  28246. $as_echo "$as_me: failed program was:" >&5
  28247. sed 's/^/| /' conftest.$ac_ext >&5
  28248. ac_cv_lib_regex_main=no
  28249. fi
  28250. rm -rf conftest.dSYM
  28251. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  28252. conftest$ac_exeext conftest.$ac_ext
  28253. LIBS=$ac_check_lib_save_LIBS
  28254. fi
  28255. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_regex_main" >&5
  28256. $as_echo "$ac_cv_lib_regex_main" >&6; }
  28257. if test "x$ac_cv_lib_regex_main" = x""yes; then
  28258. cat >>confdefs.h <<_ACEOF
  28259. #define HAVE_LIBREGEX 1
  28260. _ACEOF
  28261. LIBS="-lregex $LIBS"
  28262. fi
  28263. { $as_echo "$as_me:$LINENO: checking for regcomp" >&5
  28264. $as_echo_n "checking for regcomp... " >&6; }
  28265. if test "${ac_cv_func_regcomp_regex+set}" = set; then
  28266. $as_echo_n "(cached) " >&6
  28267. else
  28268. cat >conftest.$ac_ext <<_ACEOF
  28269. /* confdefs.h. */
  28270. _ACEOF
  28271. cat confdefs.h >>conftest.$ac_ext
  28272. cat >>conftest.$ac_ext <<_ACEOF
  28273. /* end confdefs.h. */
  28274. /* System header to define __stub macros and hopefully few prototypes,
  28275. which can conflict with char regcomp(); below. */
  28276. #include <assert.h>
  28277. /* Override any gcc2 internal prototype to avoid an error. */
  28278. #ifdef __cplusplus
  28279. extern "C"
  28280. #endif
  28281. /* We use char because int might match the return type of a gcc2
  28282. builtin and then its argument prototype would still apply. */
  28283. char regcomp();
  28284. int
  28285. main ()
  28286. {
  28287. /* The GNU C library defines this for functions which it implements
  28288. to always fail with ENOSYS. Some functions are actually named
  28289. something starting with __ and the normal name is an alias. */
  28290. #if defined (__stub_regcomp) || defined (__stub___regcomp)
  28291. choke me
  28292. #else
  28293. regcomp();
  28294. #endif
  28295. ;
  28296. return 0;
  28297. }
  28298. _ACEOF
  28299. rm -f conftest.$ac_objext conftest$ac_exeext
  28300. if { (ac_try="$ac_link"
  28301. case "(($ac_try" in
  28302. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28303. *) ac_try_echo=$ac_try;;
  28304. esac
  28305. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28306. $as_echo "$ac_try_echo") >&5
  28307. (eval "$ac_link") 2>conftest.er1
  28308. ac_status=$?
  28309. grep -v '^ *+' conftest.er1 >conftest.err
  28310. rm -f conftest.er1
  28311. cat conftest.err >&5
  28312. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28313. (exit $ac_status); } && {
  28314. test -z "$ac_c_werror_flag" ||
  28315. test ! -s conftest.err
  28316. } && test -s conftest$ac_exeext && {
  28317. test "$cross_compiling" = yes ||
  28318. $as_test_x conftest$ac_exeext
  28319. }; then
  28320. eval "ac_cv_func_regcomp_regex=yes"
  28321. else
  28322. $as_echo "$as_me: failed program was:" >&5
  28323. sed 's/^/| /' conftest.$ac_ext >&5
  28324. eval "ac_cv_func_regcomp_regex=no"
  28325. fi
  28326. rm -rf conftest.dSYM
  28327. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  28328. conftest$ac_exeext conftest.$ac_ext
  28329. fi
  28330. if eval "test \"`echo '$ac_cv_func_'regcomp'_'regex`\" = yes"; then
  28331. { $as_echo "$as_me:$LINENO: result: yes" >&5
  28332. $as_echo "yes" >&6; }
  28333. case " $LIBOBJS " in
  28334. *" regex-posix.$ac_objext "* ) ;;
  28335. *) LIBOBJS="$LIBOBJS regex-posix.$ac_objext"
  28336. ;;
  28337. esac
  28338. else
  28339. { $as_echo "$as_me:$LINENO: result: no" >&5
  28340. $as_echo "no" >&6; }
  28341. fi
  28342. fi
  28343. fi
  28344. if test "$ac_cv_func_regcomp_norx" = yes ||
  28345. test "$ac_cv_func_regcomp_regex" = yes ||
  28346. test "$ac_cv_func_regcomp_rx" = yes; then
  28347. cat >>confdefs.h <<\_ACEOF
  28348. #define HAVE_REGCOMP 1
  28349. _ACEOF
  28350. fi
  28351. fi
  28352. fi
  28353. for ac_func in inet_aton putenv strerror memmove mkstemp
  28354. do
  28355. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  28356. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  28357. $as_echo_n "checking for $ac_func... " >&6; }
  28358. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  28359. $as_echo_n "(cached) " >&6
  28360. else
  28361. cat >conftest.$ac_ext <<_ACEOF
  28362. /* confdefs.h. */
  28363. _ACEOF
  28364. cat confdefs.h >>conftest.$ac_ext
  28365. cat >>conftest.$ac_ext <<_ACEOF
  28366. /* end confdefs.h. */
  28367. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  28368. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  28369. #define $ac_func innocuous_$ac_func
  28370. /* System header to define __stub macros and hopefully few prototypes,
  28371. which can conflict with char $ac_func (); below.
  28372. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  28373. <limits.h> exists even on freestanding compilers. */
  28374. #ifdef __STDC__
  28375. # include <limits.h>
  28376. #else
  28377. # include <assert.h>
  28378. #endif
  28379. #undef $ac_func
  28380. /* Override any GCC internal prototype to avoid an error.
  28381. Use char because int might match the return type of a GCC
  28382. builtin and then its argument prototype would still apply. */
  28383. #ifdef __cplusplus
  28384. extern "C"
  28385. #endif
  28386. char $ac_func ();
  28387. /* The GNU C library defines this for functions which it implements
  28388. to always fail with ENOSYS. Some functions are actually named
  28389. something starting with __ and the normal name is an alias. */
  28390. #if defined __stub_$ac_func || defined __stub___$ac_func
  28391. choke me
  28392. #endif
  28393. int
  28394. main ()
  28395. {
  28396. return $ac_func ();
  28397. ;
  28398. return 0;
  28399. }
  28400. _ACEOF
  28401. rm -f conftest.$ac_objext conftest$ac_exeext
  28402. if { (ac_try="$ac_link"
  28403. case "(($ac_try" in
  28404. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28405. *) ac_try_echo=$ac_try;;
  28406. esac
  28407. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28408. $as_echo "$ac_try_echo") >&5
  28409. (eval "$ac_link") 2>conftest.er1
  28410. ac_status=$?
  28411. grep -v '^ *+' conftest.er1 >conftest.err
  28412. rm -f conftest.er1
  28413. cat conftest.err >&5
  28414. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28415. (exit $ac_status); } && {
  28416. test -z "$ac_c_werror_flag" ||
  28417. test ! -s conftest.err
  28418. } && test -s conftest$ac_exeext && {
  28419. test "$cross_compiling" = yes ||
  28420. $as_test_x conftest$ac_exeext
  28421. }; then
  28422. eval "$as_ac_var=yes"
  28423. else
  28424. $as_echo "$as_me: failed program was:" >&5
  28425. sed 's/^/| /' conftest.$ac_ext >&5
  28426. eval "$as_ac_var=no"
  28427. fi
  28428. rm -rf conftest.dSYM
  28429. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  28430. conftest$ac_exeext conftest.$ac_ext
  28431. fi
  28432. ac_res=`eval 'as_val=${'$as_ac_var'}
  28433. $as_echo "$as_val"'`
  28434. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  28435. $as_echo "$ac_res" >&6; }
  28436. as_val=`eval 'as_val=${'$as_ac_var'}
  28437. $as_echo "$as_val"'`
  28438. if test "x$as_val" = x""yes; then
  28439. cat >>confdefs.h <<_ACEOF
  28440. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  28441. _ACEOF
  28442. else
  28443. case " $LIBOBJS " in
  28444. *" $ac_func.$ac_objext "* ) ;;
  28445. *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
  28446. ;;
  28447. esac
  28448. fi
  28449. done
  28450. for ac_header in floatingpoint.h ieeefp.h nan.h
  28451. do
  28452. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  28453. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  28454. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  28455. $as_echo_n "checking for $ac_header... " >&6; }
  28456. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  28457. $as_echo_n "(cached) " >&6
  28458. fi
  28459. ac_res=`eval 'as_val=${'$as_ac_Header'}
  28460. $as_echo "$as_val"'`
  28461. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  28462. $as_echo "$ac_res" >&6; }
  28463. else
  28464. # Is the header compilable?
  28465. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  28466. $as_echo_n "checking $ac_header usability... " >&6; }
  28467. cat >conftest.$ac_ext <<_ACEOF
  28468. /* confdefs.h. */
  28469. _ACEOF
  28470. cat confdefs.h >>conftest.$ac_ext
  28471. cat >>conftest.$ac_ext <<_ACEOF
  28472. /* end confdefs.h. */
  28473. $ac_includes_default
  28474. #include <$ac_header>
  28475. _ACEOF
  28476. rm -f conftest.$ac_objext
  28477. if { (ac_try="$ac_compile"
  28478. case "(($ac_try" in
  28479. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28480. *) ac_try_echo=$ac_try;;
  28481. esac
  28482. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28483. $as_echo "$ac_try_echo") >&5
  28484. (eval "$ac_compile") 2>conftest.er1
  28485. ac_status=$?
  28486. grep -v '^ *+' conftest.er1 >conftest.err
  28487. rm -f conftest.er1
  28488. cat conftest.err >&5
  28489. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28490. (exit $ac_status); } && {
  28491. test -z "$ac_c_werror_flag" ||
  28492. test ! -s conftest.err
  28493. } && test -s conftest.$ac_objext; then
  28494. ac_header_compiler=yes
  28495. else
  28496. $as_echo "$as_me: failed program was:" >&5
  28497. sed 's/^/| /' conftest.$ac_ext >&5
  28498. ac_header_compiler=no
  28499. fi
  28500. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28501. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  28502. $as_echo "$ac_header_compiler" >&6; }
  28503. # Is the header present?
  28504. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  28505. $as_echo_n "checking $ac_header presence... " >&6; }
  28506. cat >conftest.$ac_ext <<_ACEOF
  28507. /* confdefs.h. */
  28508. _ACEOF
  28509. cat confdefs.h >>conftest.$ac_ext
  28510. cat >>conftest.$ac_ext <<_ACEOF
  28511. /* end confdefs.h. */
  28512. #include <$ac_header>
  28513. _ACEOF
  28514. if { (ac_try="$ac_cpp conftest.$ac_ext"
  28515. case "(($ac_try" in
  28516. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28517. *) ac_try_echo=$ac_try;;
  28518. esac
  28519. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28520. $as_echo "$ac_try_echo") >&5
  28521. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  28522. ac_status=$?
  28523. grep -v '^ *+' conftest.er1 >conftest.err
  28524. rm -f conftest.er1
  28525. cat conftest.err >&5
  28526. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28527. (exit $ac_status); } >/dev/null && {
  28528. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  28529. test ! -s conftest.err
  28530. }; then
  28531. ac_header_preproc=yes
  28532. else
  28533. $as_echo "$as_me: failed program was:" >&5
  28534. sed 's/^/| /' conftest.$ac_ext >&5
  28535. ac_header_preproc=no
  28536. fi
  28537. rm -f conftest.err conftest.$ac_ext
  28538. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  28539. $as_echo "$ac_header_preproc" >&6; }
  28540. # So? What about this header?
  28541. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  28542. yes:no: )
  28543. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  28544. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  28545. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  28546. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  28547. ac_header_preproc=yes
  28548. ;;
  28549. no:yes:* )
  28550. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  28551. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  28552. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  28553. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  28554. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  28555. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  28556. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  28557. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  28558. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  28559. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  28560. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  28561. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  28562. ( cat <<\_ASBOX
  28563. ## -------------------------------- ##
  28564. ## Report this to bug-guile@gnu.org ##
  28565. ## -------------------------------- ##
  28566. _ASBOX
  28567. ) | sed "s/^/$as_me: WARNING: /" >&2
  28568. ;;
  28569. esac
  28570. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  28571. $as_echo_n "checking for $ac_header... " >&6; }
  28572. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  28573. $as_echo_n "(cached) " >&6
  28574. else
  28575. eval "$as_ac_Header=\$ac_header_preproc"
  28576. fi
  28577. ac_res=`eval 'as_val=${'$as_ac_Header'}
  28578. $as_echo "$as_val"'`
  28579. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  28580. $as_echo "$ac_res" >&6; }
  28581. fi
  28582. as_val=`eval 'as_val=${'$as_ac_Header'}
  28583. $as_echo "$as_val"'`
  28584. if test "x$as_val" = x""yes; then
  28585. cat >>confdefs.h <<_ACEOF
  28586. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  28587. _ACEOF
  28588. fi
  28589. done
  28590. # Reasons for testing:
  28591. # asinh, acosh, atanh, trunc - C99 standard, generally not available on
  28592. # older systems
  28593. # sincos - GLIBC extension
  28594. #
  28595. for ac_func in asinh acosh atanh copysign finite sincos trunc
  28596. do
  28597. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  28598. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  28599. $as_echo_n "checking for $ac_func... " >&6; }
  28600. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  28601. $as_echo_n "(cached) " >&6
  28602. else
  28603. cat >conftest.$ac_ext <<_ACEOF
  28604. /* confdefs.h. */
  28605. _ACEOF
  28606. cat confdefs.h >>conftest.$ac_ext
  28607. cat >>conftest.$ac_ext <<_ACEOF
  28608. /* end confdefs.h. */
  28609. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  28610. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  28611. #define $ac_func innocuous_$ac_func
  28612. /* System header to define __stub macros and hopefully few prototypes,
  28613. which can conflict with char $ac_func (); below.
  28614. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  28615. <limits.h> exists even on freestanding compilers. */
  28616. #ifdef __STDC__
  28617. # include <limits.h>
  28618. #else
  28619. # include <assert.h>
  28620. #endif
  28621. #undef $ac_func
  28622. /* Override any GCC internal prototype to avoid an error.
  28623. Use char because int might match the return type of a GCC
  28624. builtin and then its argument prototype would still apply. */
  28625. #ifdef __cplusplus
  28626. extern "C"
  28627. #endif
  28628. char $ac_func ();
  28629. /* The GNU C library defines this for functions which it implements
  28630. to always fail with ENOSYS. Some functions are actually named
  28631. something starting with __ and the normal name is an alias. */
  28632. #if defined __stub_$ac_func || defined __stub___$ac_func
  28633. choke me
  28634. #endif
  28635. int
  28636. main ()
  28637. {
  28638. return $ac_func ();
  28639. ;
  28640. return 0;
  28641. }
  28642. _ACEOF
  28643. rm -f conftest.$ac_objext conftest$ac_exeext
  28644. if { (ac_try="$ac_link"
  28645. case "(($ac_try" in
  28646. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28647. *) ac_try_echo=$ac_try;;
  28648. esac
  28649. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28650. $as_echo "$ac_try_echo") >&5
  28651. (eval "$ac_link") 2>conftest.er1
  28652. ac_status=$?
  28653. grep -v '^ *+' conftest.er1 >conftest.err
  28654. rm -f conftest.er1
  28655. cat conftest.err >&5
  28656. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28657. (exit $ac_status); } && {
  28658. test -z "$ac_c_werror_flag" ||
  28659. test ! -s conftest.err
  28660. } && test -s conftest$ac_exeext && {
  28661. test "$cross_compiling" = yes ||
  28662. $as_test_x conftest$ac_exeext
  28663. }; then
  28664. eval "$as_ac_var=yes"
  28665. else
  28666. $as_echo "$as_me: failed program was:" >&5
  28667. sed 's/^/| /' conftest.$ac_ext >&5
  28668. eval "$as_ac_var=no"
  28669. fi
  28670. rm -rf conftest.dSYM
  28671. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  28672. conftest$ac_exeext conftest.$ac_ext
  28673. fi
  28674. ac_res=`eval 'as_val=${'$as_ac_var'}
  28675. $as_echo "$as_val"'`
  28676. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  28677. $as_echo "$ac_res" >&6; }
  28678. as_val=`eval 'as_val=${'$as_ac_var'}
  28679. $as_echo "$as_val"'`
  28680. if test "x$as_val" = x""yes; then
  28681. cat >>confdefs.h <<_ACEOF
  28682. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  28683. _ACEOF
  28684. fi
  28685. done
  28686. # C99 specifies isinf and isnan as macros.
  28687. # HP-UX provides only macros, no functions.
  28688. # glibc 2.3.2 provides both macros and functions.
  28689. # IRIX 6.5 and Solaris 8 only provide functions.
  28690. #
  28691. # The following tests detect isinf and isnan either as functions or as
  28692. # macros from <math.h>. Plain AC_CHECK_FUNCS is insufficient, it doesn't
  28693. # use <math.h> so doesn't detect on macro-only systems like HP-UX.
  28694. #
  28695. { $as_echo "$as_me:$LINENO: checking for isinf" >&5
  28696. $as_echo_n "checking for isinf... " >&6; }
  28697. cat >conftest.$ac_ext <<_ACEOF
  28698. /* confdefs.h. */
  28699. _ACEOF
  28700. cat confdefs.h >>conftest.$ac_ext
  28701. cat >>conftest.$ac_ext <<_ACEOF
  28702. /* end confdefs.h. */
  28703. #include <math.h>
  28704. volatile double x = 0.0;
  28705. int main () { return (isinf(x) != 0); }
  28706. _ACEOF
  28707. rm -f conftest.$ac_objext conftest$ac_exeext
  28708. if { (ac_try="$ac_link"
  28709. case "(($ac_try" in
  28710. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28711. *) ac_try_echo=$ac_try;;
  28712. esac
  28713. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28714. $as_echo "$ac_try_echo") >&5
  28715. (eval "$ac_link") 2>conftest.er1
  28716. ac_status=$?
  28717. grep -v '^ *+' conftest.er1 >conftest.err
  28718. rm -f conftest.er1
  28719. cat conftest.err >&5
  28720. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28721. (exit $ac_status); } && {
  28722. test -z "$ac_c_werror_flag" ||
  28723. test ! -s conftest.err
  28724. } && test -s conftest$ac_exeext && {
  28725. test "$cross_compiling" = yes ||
  28726. $as_test_x conftest$ac_exeext
  28727. }; then
  28728. { $as_echo "$as_me:$LINENO: result: yes" >&5
  28729. $as_echo "yes" >&6; }
  28730. cat >>confdefs.h <<\_ACEOF
  28731. #define HAVE_ISINF 1
  28732. _ACEOF
  28733. else
  28734. $as_echo "$as_me: failed program was:" >&5
  28735. sed 's/^/| /' conftest.$ac_ext >&5
  28736. { $as_echo "$as_me:$LINENO: result: no" >&5
  28737. $as_echo "no" >&6; }
  28738. fi
  28739. rm -rf conftest.dSYM
  28740. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  28741. conftest$ac_exeext conftest.$ac_ext
  28742. { $as_echo "$as_me:$LINENO: checking for isnan" >&5
  28743. $as_echo_n "checking for isnan... " >&6; }
  28744. cat >conftest.$ac_ext <<_ACEOF
  28745. /* confdefs.h. */
  28746. _ACEOF
  28747. cat confdefs.h >>conftest.$ac_ext
  28748. cat >>conftest.$ac_ext <<_ACEOF
  28749. /* end confdefs.h. */
  28750. #include <math.h>
  28751. volatile double x = 0.0;
  28752. int main () { return (isnan(x) != 0); }
  28753. _ACEOF
  28754. rm -f conftest.$ac_objext conftest$ac_exeext
  28755. if { (ac_try="$ac_link"
  28756. case "(($ac_try" in
  28757. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28758. *) ac_try_echo=$ac_try;;
  28759. esac
  28760. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28761. $as_echo "$ac_try_echo") >&5
  28762. (eval "$ac_link") 2>conftest.er1
  28763. ac_status=$?
  28764. grep -v '^ *+' conftest.er1 >conftest.err
  28765. rm -f conftest.er1
  28766. cat conftest.err >&5
  28767. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28768. (exit $ac_status); } && {
  28769. test -z "$ac_c_werror_flag" ||
  28770. test ! -s conftest.err
  28771. } && test -s conftest$ac_exeext && {
  28772. test "$cross_compiling" = yes ||
  28773. $as_test_x conftest$ac_exeext
  28774. }; then
  28775. { $as_echo "$as_me:$LINENO: result: yes" >&5
  28776. $as_echo "yes" >&6; }
  28777. cat >>confdefs.h <<\_ACEOF
  28778. #define HAVE_ISNAN 1
  28779. _ACEOF
  28780. else
  28781. $as_echo "$as_me: failed program was:" >&5
  28782. sed 's/^/| /' conftest.$ac_ext >&5
  28783. { $as_echo "$as_me:$LINENO: result: no" >&5
  28784. $as_echo "no" >&6; }
  28785. fi
  28786. rm -rf conftest.dSYM
  28787. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  28788. conftest$ac_exeext conftest.$ac_ext
  28789. # We must have a proper stack-using alloca in order for stack-copying
  28790. # continuations to work properly. If we don't find a native one,
  28791. # abort.
  28792. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  28793. # for constant arguments. Useless!
  28794. { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
  28795. $as_echo_n "checking for working alloca.h... " >&6; }
  28796. if test "${ac_cv_working_alloca_h+set}" = set; then
  28797. $as_echo_n "(cached) " >&6
  28798. else
  28799. cat >conftest.$ac_ext <<_ACEOF
  28800. /* confdefs.h. */
  28801. _ACEOF
  28802. cat confdefs.h >>conftest.$ac_ext
  28803. cat >>conftest.$ac_ext <<_ACEOF
  28804. /* end confdefs.h. */
  28805. #include <alloca.h>
  28806. int
  28807. main ()
  28808. {
  28809. char *p = (char *) alloca (2 * sizeof (int));
  28810. if (p) return 0;
  28811. ;
  28812. return 0;
  28813. }
  28814. _ACEOF
  28815. rm -f conftest.$ac_objext conftest$ac_exeext
  28816. if { (ac_try="$ac_link"
  28817. case "(($ac_try" in
  28818. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28819. *) ac_try_echo=$ac_try;;
  28820. esac
  28821. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28822. $as_echo "$ac_try_echo") >&5
  28823. (eval "$ac_link") 2>conftest.er1
  28824. ac_status=$?
  28825. grep -v '^ *+' conftest.er1 >conftest.err
  28826. rm -f conftest.er1
  28827. cat conftest.err >&5
  28828. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28829. (exit $ac_status); } && {
  28830. test -z "$ac_c_werror_flag" ||
  28831. test ! -s conftest.err
  28832. } && test -s conftest$ac_exeext && {
  28833. test "$cross_compiling" = yes ||
  28834. $as_test_x conftest$ac_exeext
  28835. }; then
  28836. ac_cv_working_alloca_h=yes
  28837. else
  28838. $as_echo "$as_me: failed program was:" >&5
  28839. sed 's/^/| /' conftest.$ac_ext >&5
  28840. ac_cv_working_alloca_h=no
  28841. fi
  28842. rm -rf conftest.dSYM
  28843. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  28844. conftest$ac_exeext conftest.$ac_ext
  28845. fi
  28846. { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
  28847. $as_echo "$ac_cv_working_alloca_h" >&6; }
  28848. if test $ac_cv_working_alloca_h = yes; then
  28849. cat >>confdefs.h <<\_ACEOF
  28850. #define HAVE_ALLOCA_H 1
  28851. _ACEOF
  28852. fi
  28853. { $as_echo "$as_me:$LINENO: checking for alloca" >&5
  28854. $as_echo_n "checking for alloca... " >&6; }
  28855. if test "${ac_cv_func_alloca_works+set}" = set; then
  28856. $as_echo_n "(cached) " >&6
  28857. else
  28858. cat >conftest.$ac_ext <<_ACEOF
  28859. /* confdefs.h. */
  28860. _ACEOF
  28861. cat confdefs.h >>conftest.$ac_ext
  28862. cat >>conftest.$ac_ext <<_ACEOF
  28863. /* end confdefs.h. */
  28864. #ifdef __GNUC__
  28865. # define alloca __builtin_alloca
  28866. #else
  28867. # ifdef _MSC_VER
  28868. # include <malloc.h>
  28869. # define alloca _alloca
  28870. # else
  28871. # ifdef HAVE_ALLOCA_H
  28872. # include <alloca.h>
  28873. # else
  28874. # ifdef _AIX
  28875. #pragma alloca
  28876. # else
  28877. # ifndef alloca /* predefined by HP cc +Olibcalls */
  28878. char *alloca ();
  28879. # endif
  28880. # endif
  28881. # endif
  28882. # endif
  28883. #endif
  28884. int
  28885. main ()
  28886. {
  28887. char *p = (char *) alloca (1);
  28888. if (p) return 0;
  28889. ;
  28890. return 0;
  28891. }
  28892. _ACEOF
  28893. rm -f conftest.$ac_objext conftest$ac_exeext
  28894. if { (ac_try="$ac_link"
  28895. case "(($ac_try" in
  28896. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28897. *) ac_try_echo=$ac_try;;
  28898. esac
  28899. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28900. $as_echo "$ac_try_echo") >&5
  28901. (eval "$ac_link") 2>conftest.er1
  28902. ac_status=$?
  28903. grep -v '^ *+' conftest.er1 >conftest.err
  28904. rm -f conftest.er1
  28905. cat conftest.err >&5
  28906. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28907. (exit $ac_status); } && {
  28908. test -z "$ac_c_werror_flag" ||
  28909. test ! -s conftest.err
  28910. } && test -s conftest$ac_exeext && {
  28911. test "$cross_compiling" = yes ||
  28912. $as_test_x conftest$ac_exeext
  28913. }; then
  28914. ac_cv_func_alloca_works=yes
  28915. else
  28916. $as_echo "$as_me: failed program was:" >&5
  28917. sed 's/^/| /' conftest.$ac_ext >&5
  28918. ac_cv_func_alloca_works=no
  28919. fi
  28920. rm -rf conftest.dSYM
  28921. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  28922. conftest$ac_exeext conftest.$ac_ext
  28923. fi
  28924. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
  28925. $as_echo "$ac_cv_func_alloca_works" >&6; }
  28926. if test $ac_cv_func_alloca_works = yes; then
  28927. cat >>confdefs.h <<\_ACEOF
  28928. #define HAVE_ALLOCA 1
  28929. _ACEOF
  28930. else
  28931. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  28932. # that cause trouble. Some versions do not even contain alloca or
  28933. # contain a buggy version. If you still want to use their alloca,
  28934. # use ar to extract alloca.o from them instead of compiling alloca.c.
  28935. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  28936. cat >>confdefs.h <<\_ACEOF
  28937. #define C_ALLOCA 1
  28938. _ACEOF
  28939. { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
  28940. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  28941. if test "${ac_cv_os_cray+set}" = set; then
  28942. $as_echo_n "(cached) " >&6
  28943. else
  28944. cat >conftest.$ac_ext <<_ACEOF
  28945. /* confdefs.h. */
  28946. _ACEOF
  28947. cat confdefs.h >>conftest.$ac_ext
  28948. cat >>conftest.$ac_ext <<_ACEOF
  28949. /* end confdefs.h. */
  28950. #if defined CRAY && ! defined CRAY2
  28951. webecray
  28952. #else
  28953. wenotbecray
  28954. #endif
  28955. _ACEOF
  28956. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  28957. $EGREP "webecray" >/dev/null 2>&1; then
  28958. ac_cv_os_cray=yes
  28959. else
  28960. ac_cv_os_cray=no
  28961. fi
  28962. rm -f conftest*
  28963. fi
  28964. { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
  28965. $as_echo "$ac_cv_os_cray" >&6; }
  28966. if test $ac_cv_os_cray = yes; then
  28967. for ac_func in _getb67 GETB67 getb67; do
  28968. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  28969. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  28970. $as_echo_n "checking for $ac_func... " >&6; }
  28971. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  28972. $as_echo_n "(cached) " >&6
  28973. else
  28974. cat >conftest.$ac_ext <<_ACEOF
  28975. /* confdefs.h. */
  28976. _ACEOF
  28977. cat confdefs.h >>conftest.$ac_ext
  28978. cat >>conftest.$ac_ext <<_ACEOF
  28979. /* end confdefs.h. */
  28980. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  28981. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  28982. #define $ac_func innocuous_$ac_func
  28983. /* System header to define __stub macros and hopefully few prototypes,
  28984. which can conflict with char $ac_func (); below.
  28985. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  28986. <limits.h> exists even on freestanding compilers. */
  28987. #ifdef __STDC__
  28988. # include <limits.h>
  28989. #else
  28990. # include <assert.h>
  28991. #endif
  28992. #undef $ac_func
  28993. /* Override any GCC internal prototype to avoid an error.
  28994. Use char because int might match the return type of a GCC
  28995. builtin and then its argument prototype would still apply. */
  28996. #ifdef __cplusplus
  28997. extern "C"
  28998. #endif
  28999. char $ac_func ();
  29000. /* The GNU C library defines this for functions which it implements
  29001. to always fail with ENOSYS. Some functions are actually named
  29002. something starting with __ and the normal name is an alias. */
  29003. #if defined __stub_$ac_func || defined __stub___$ac_func
  29004. choke me
  29005. #endif
  29006. int
  29007. main ()
  29008. {
  29009. return $ac_func ();
  29010. ;
  29011. return 0;
  29012. }
  29013. _ACEOF
  29014. rm -f conftest.$ac_objext conftest$ac_exeext
  29015. if { (ac_try="$ac_link"
  29016. case "(($ac_try" in
  29017. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29018. *) ac_try_echo=$ac_try;;
  29019. esac
  29020. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  29021. $as_echo "$ac_try_echo") >&5
  29022. (eval "$ac_link") 2>conftest.er1
  29023. ac_status=$?
  29024. grep -v '^ *+' conftest.er1 >conftest.err
  29025. rm -f conftest.er1
  29026. cat conftest.err >&5
  29027. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29028. (exit $ac_status); } && {
  29029. test -z "$ac_c_werror_flag" ||
  29030. test ! -s conftest.err
  29031. } && test -s conftest$ac_exeext && {
  29032. test "$cross_compiling" = yes ||
  29033. $as_test_x conftest$ac_exeext
  29034. }; then
  29035. eval "$as_ac_var=yes"
  29036. else
  29037. $as_echo "$as_me: failed program was:" >&5
  29038. sed 's/^/| /' conftest.$ac_ext >&5
  29039. eval "$as_ac_var=no"
  29040. fi
  29041. rm -rf conftest.dSYM
  29042. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  29043. conftest$ac_exeext conftest.$ac_ext
  29044. fi
  29045. ac_res=`eval 'as_val=${'$as_ac_var'}
  29046. $as_echo "$as_val"'`
  29047. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  29048. $as_echo "$ac_res" >&6; }
  29049. as_val=`eval 'as_val=${'$as_ac_var'}
  29050. $as_echo "$as_val"'`
  29051. if test "x$as_val" = x""yes; then
  29052. cat >>confdefs.h <<_ACEOF
  29053. #define CRAY_STACKSEG_END $ac_func
  29054. _ACEOF
  29055. break
  29056. fi
  29057. done
  29058. fi
  29059. { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
  29060. $as_echo_n "checking stack direction for C alloca... " >&6; }
  29061. if test "${ac_cv_c_stack_direction+set}" = set; then
  29062. $as_echo_n "(cached) " >&6
  29063. else
  29064. if test "$cross_compiling" = yes; then
  29065. ac_cv_c_stack_direction=0
  29066. else
  29067. cat >conftest.$ac_ext <<_ACEOF
  29068. /* confdefs.h. */
  29069. _ACEOF
  29070. cat confdefs.h >>conftest.$ac_ext
  29071. cat >>conftest.$ac_ext <<_ACEOF
  29072. /* end confdefs.h. */
  29073. $ac_includes_default
  29074. int
  29075. find_stack_direction ()
  29076. {
  29077. static char *addr = 0;
  29078. auto char dummy;
  29079. if (addr == 0)
  29080. {
  29081. addr = &dummy;
  29082. return find_stack_direction ();
  29083. }
  29084. else
  29085. return (&dummy > addr) ? 1 : -1;
  29086. }
  29087. int
  29088. main ()
  29089. {
  29090. return find_stack_direction () < 0;
  29091. }
  29092. _ACEOF
  29093. rm -f conftest$ac_exeext
  29094. if { (ac_try="$ac_link"
  29095. case "(($ac_try" in
  29096. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29097. *) ac_try_echo=$ac_try;;
  29098. esac
  29099. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  29100. $as_echo "$ac_try_echo") >&5
  29101. (eval "$ac_link") 2>&5
  29102. ac_status=$?
  29103. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29104. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  29105. { (case "(($ac_try" in
  29106. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29107. *) ac_try_echo=$ac_try;;
  29108. esac
  29109. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  29110. $as_echo "$ac_try_echo") >&5
  29111. (eval "$ac_try") 2>&5
  29112. ac_status=$?
  29113. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29114. (exit $ac_status); }; }; then
  29115. ac_cv_c_stack_direction=1
  29116. else
  29117. $as_echo "$as_me: program exited with status $ac_status" >&5
  29118. $as_echo "$as_me: failed program was:" >&5
  29119. sed 's/^/| /' conftest.$ac_ext >&5
  29120. ( exit $ac_status )
  29121. ac_cv_c_stack_direction=-1
  29122. fi
  29123. rm -rf conftest.dSYM
  29124. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  29125. fi
  29126. fi
  29127. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
  29128. $as_echo "$ac_cv_c_stack_direction" >&6; }
  29129. cat >>confdefs.h <<_ACEOF
  29130. #define STACK_DIRECTION $ac_cv_c_stack_direction
  29131. _ACEOF
  29132. fi
  29133. if test "$ALLOCA" = "alloca.o"
  29134. then
  29135. { { $as_echo "$as_me:$LINENO: error: No native alloca found." >&5
  29136. $as_echo "$as_me: error: No native alloca found." >&2;}
  29137. { (exit 1); exit 1; }; }
  29138. fi
  29139. # Reasons for checking:
  29140. #
  29141. # st_rdev
  29142. # st_blksize
  29143. # st_blocks not in mingw
  29144. # tm_gmtoff BSD+GNU, not in C99
  29145. #
  29146. # Note AC_STRUCT_ST_BLOCKS is not used here because we don't want the
  29147. # AC_LIBOBJ(fileblocks) replacement which that macro gives.
  29148. #
  29149. { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
  29150. $as_echo_n "checking for struct stat.st_rdev... " >&6; }
  29151. if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
  29152. $as_echo_n "(cached) " >&6
  29153. else
  29154. cat >conftest.$ac_ext <<_ACEOF
  29155. /* confdefs.h. */
  29156. _ACEOF
  29157. cat confdefs.h >>conftest.$ac_ext
  29158. cat >>conftest.$ac_ext <<_ACEOF
  29159. /* end confdefs.h. */
  29160. $ac_includes_default
  29161. int
  29162. main ()
  29163. {
  29164. static struct stat ac_aggr;
  29165. if (ac_aggr.st_rdev)
  29166. return 0;
  29167. ;
  29168. return 0;
  29169. }
  29170. _ACEOF
  29171. rm -f conftest.$ac_objext
  29172. if { (ac_try="$ac_compile"
  29173. case "(($ac_try" in
  29174. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29175. *) ac_try_echo=$ac_try;;
  29176. esac
  29177. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  29178. $as_echo "$ac_try_echo") >&5
  29179. (eval "$ac_compile") 2>conftest.er1
  29180. ac_status=$?
  29181. grep -v '^ *+' conftest.er1 >conftest.err
  29182. rm -f conftest.er1
  29183. cat conftest.err >&5
  29184. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29185. (exit $ac_status); } && {
  29186. test -z "$ac_c_werror_flag" ||
  29187. test ! -s conftest.err
  29188. } && test -s conftest.$ac_objext; then
  29189. ac_cv_member_struct_stat_st_rdev=yes
  29190. else
  29191. $as_echo "$as_me: failed program was:" >&5
  29192. sed 's/^/| /' conftest.$ac_ext >&5
  29193. cat >conftest.$ac_ext <<_ACEOF
  29194. /* confdefs.h. */
  29195. _ACEOF
  29196. cat confdefs.h >>conftest.$ac_ext
  29197. cat >>conftest.$ac_ext <<_ACEOF
  29198. /* end confdefs.h. */
  29199. $ac_includes_default
  29200. int
  29201. main ()
  29202. {
  29203. static struct stat ac_aggr;
  29204. if (sizeof ac_aggr.st_rdev)
  29205. return 0;
  29206. ;
  29207. return 0;
  29208. }
  29209. _ACEOF
  29210. rm -f conftest.$ac_objext
  29211. if { (ac_try="$ac_compile"
  29212. case "(($ac_try" in
  29213. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29214. *) ac_try_echo=$ac_try;;
  29215. esac
  29216. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  29217. $as_echo "$ac_try_echo") >&5
  29218. (eval "$ac_compile") 2>conftest.er1
  29219. ac_status=$?
  29220. grep -v '^ *+' conftest.er1 >conftest.err
  29221. rm -f conftest.er1
  29222. cat conftest.err >&5
  29223. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29224. (exit $ac_status); } && {
  29225. test -z "$ac_c_werror_flag" ||
  29226. test ! -s conftest.err
  29227. } && test -s conftest.$ac_objext; then
  29228. ac_cv_member_struct_stat_st_rdev=yes
  29229. else
  29230. $as_echo "$as_me: failed program was:" >&5
  29231. sed 's/^/| /' conftest.$ac_ext >&5
  29232. ac_cv_member_struct_stat_st_rdev=no
  29233. fi
  29234. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29235. fi
  29236. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29237. fi
  29238. { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
  29239. $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
  29240. if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
  29241. cat >>confdefs.h <<_ACEOF
  29242. #define HAVE_STRUCT_STAT_ST_RDEV 1
  29243. _ACEOF
  29244. fi
  29245. { $as_echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
  29246. $as_echo_n "checking for struct stat.st_blksize... " >&6; }
  29247. if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
  29248. $as_echo_n "(cached) " >&6
  29249. else
  29250. cat >conftest.$ac_ext <<_ACEOF
  29251. /* confdefs.h. */
  29252. _ACEOF
  29253. cat confdefs.h >>conftest.$ac_ext
  29254. cat >>conftest.$ac_ext <<_ACEOF
  29255. /* end confdefs.h. */
  29256. $ac_includes_default
  29257. int
  29258. main ()
  29259. {
  29260. static struct stat ac_aggr;
  29261. if (ac_aggr.st_blksize)
  29262. return 0;
  29263. ;
  29264. return 0;
  29265. }
  29266. _ACEOF
  29267. rm -f conftest.$ac_objext
  29268. if { (ac_try="$ac_compile"
  29269. case "(($ac_try" in
  29270. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29271. *) ac_try_echo=$ac_try;;
  29272. esac
  29273. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  29274. $as_echo "$ac_try_echo") >&5
  29275. (eval "$ac_compile") 2>conftest.er1
  29276. ac_status=$?
  29277. grep -v '^ *+' conftest.er1 >conftest.err
  29278. rm -f conftest.er1
  29279. cat conftest.err >&5
  29280. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29281. (exit $ac_status); } && {
  29282. test -z "$ac_c_werror_flag" ||
  29283. test ! -s conftest.err
  29284. } && test -s conftest.$ac_objext; then
  29285. ac_cv_member_struct_stat_st_blksize=yes
  29286. else
  29287. $as_echo "$as_me: failed program was:" >&5
  29288. sed 's/^/| /' conftest.$ac_ext >&5
  29289. cat >conftest.$ac_ext <<_ACEOF
  29290. /* confdefs.h. */
  29291. _ACEOF
  29292. cat confdefs.h >>conftest.$ac_ext
  29293. cat >>conftest.$ac_ext <<_ACEOF
  29294. /* end confdefs.h. */
  29295. $ac_includes_default
  29296. int
  29297. main ()
  29298. {
  29299. static struct stat ac_aggr;
  29300. if (sizeof ac_aggr.st_blksize)
  29301. return 0;
  29302. ;
  29303. return 0;
  29304. }
  29305. _ACEOF
  29306. rm -f conftest.$ac_objext
  29307. if { (ac_try="$ac_compile"
  29308. case "(($ac_try" in
  29309. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29310. *) ac_try_echo=$ac_try;;
  29311. esac
  29312. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  29313. $as_echo "$ac_try_echo") >&5
  29314. (eval "$ac_compile") 2>conftest.er1
  29315. ac_status=$?
  29316. grep -v '^ *+' conftest.er1 >conftest.err
  29317. rm -f conftest.er1
  29318. cat conftest.err >&5
  29319. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29320. (exit $ac_status); } && {
  29321. test -z "$ac_c_werror_flag" ||
  29322. test ! -s conftest.err
  29323. } && test -s conftest.$ac_objext; then
  29324. ac_cv_member_struct_stat_st_blksize=yes
  29325. else
  29326. $as_echo "$as_me: failed program was:" >&5
  29327. sed 's/^/| /' conftest.$ac_ext >&5
  29328. ac_cv_member_struct_stat_st_blksize=no
  29329. fi
  29330. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29331. fi
  29332. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29333. fi
  29334. { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
  29335. $as_echo "$ac_cv_member_struct_stat_st_blksize" >&6; }
  29336. if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then
  29337. cat >>confdefs.h <<_ACEOF
  29338. #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
  29339. _ACEOF
  29340. fi
  29341. { $as_echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
  29342. $as_echo_n "checking for struct stat.st_blocks... " >&6; }
  29343. if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
  29344. $as_echo_n "(cached) " >&6
  29345. else
  29346. cat >conftest.$ac_ext <<_ACEOF
  29347. /* confdefs.h. */
  29348. _ACEOF
  29349. cat confdefs.h >>conftest.$ac_ext
  29350. cat >>conftest.$ac_ext <<_ACEOF
  29351. /* end confdefs.h. */
  29352. $ac_includes_default
  29353. int
  29354. main ()
  29355. {
  29356. static struct stat ac_aggr;
  29357. if (ac_aggr.st_blocks)
  29358. return 0;
  29359. ;
  29360. return 0;
  29361. }
  29362. _ACEOF
  29363. rm -f conftest.$ac_objext
  29364. if { (ac_try="$ac_compile"
  29365. case "(($ac_try" in
  29366. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29367. *) ac_try_echo=$ac_try;;
  29368. esac
  29369. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  29370. $as_echo "$ac_try_echo") >&5
  29371. (eval "$ac_compile") 2>conftest.er1
  29372. ac_status=$?
  29373. grep -v '^ *+' conftest.er1 >conftest.err
  29374. rm -f conftest.er1
  29375. cat conftest.err >&5
  29376. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29377. (exit $ac_status); } && {
  29378. test -z "$ac_c_werror_flag" ||
  29379. test ! -s conftest.err
  29380. } && test -s conftest.$ac_objext; then
  29381. ac_cv_member_struct_stat_st_blocks=yes
  29382. else
  29383. $as_echo "$as_me: failed program was:" >&5
  29384. sed 's/^/| /' conftest.$ac_ext >&5
  29385. cat >conftest.$ac_ext <<_ACEOF
  29386. /* confdefs.h. */
  29387. _ACEOF
  29388. cat confdefs.h >>conftest.$ac_ext
  29389. cat >>conftest.$ac_ext <<_ACEOF
  29390. /* end confdefs.h. */
  29391. $ac_includes_default
  29392. int
  29393. main ()
  29394. {
  29395. static struct stat ac_aggr;
  29396. if (sizeof ac_aggr.st_blocks)
  29397. return 0;
  29398. ;
  29399. return 0;
  29400. }
  29401. _ACEOF
  29402. rm -f conftest.$ac_objext
  29403. if { (ac_try="$ac_compile"
  29404. case "(($ac_try" in
  29405. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29406. *) ac_try_echo=$ac_try;;
  29407. esac
  29408. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  29409. $as_echo "$ac_try_echo") >&5
  29410. (eval "$ac_compile") 2>conftest.er1
  29411. ac_status=$?
  29412. grep -v '^ *+' conftest.er1 >conftest.err
  29413. rm -f conftest.er1
  29414. cat conftest.err >&5
  29415. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29416. (exit $ac_status); } && {
  29417. test -z "$ac_c_werror_flag" ||
  29418. test ! -s conftest.err
  29419. } && test -s conftest.$ac_objext; then
  29420. ac_cv_member_struct_stat_st_blocks=yes
  29421. else
  29422. $as_echo "$as_me: failed program was:" >&5
  29423. sed 's/^/| /' conftest.$ac_ext >&5
  29424. ac_cv_member_struct_stat_st_blocks=no
  29425. fi
  29426. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29427. fi
  29428. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29429. fi
  29430. { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
  29431. $as_echo "$ac_cv_member_struct_stat_st_blocks" >&6; }
  29432. if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then
  29433. cat >>confdefs.h <<_ACEOF
  29434. #define HAVE_STRUCT_STAT_ST_BLOCKS 1
  29435. _ACEOF
  29436. fi
  29437. { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  29438. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  29439. if test "${ac_cv_struct_tm+set}" = set; then
  29440. $as_echo_n "(cached) " >&6
  29441. else
  29442. cat >conftest.$ac_ext <<_ACEOF
  29443. /* confdefs.h. */
  29444. _ACEOF
  29445. cat confdefs.h >>conftest.$ac_ext
  29446. cat >>conftest.$ac_ext <<_ACEOF
  29447. /* end confdefs.h. */
  29448. #include <sys/types.h>
  29449. #include <time.h>
  29450. int
  29451. main ()
  29452. {
  29453. struct tm tm;
  29454. int *p = &tm.tm_sec;
  29455. return !p;
  29456. ;
  29457. return 0;
  29458. }
  29459. _ACEOF
  29460. rm -f conftest.$ac_objext
  29461. if { (ac_try="$ac_compile"
  29462. case "(($ac_try" in
  29463. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29464. *) ac_try_echo=$ac_try;;
  29465. esac
  29466. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  29467. $as_echo "$ac_try_echo") >&5
  29468. (eval "$ac_compile") 2>conftest.er1
  29469. ac_status=$?
  29470. grep -v '^ *+' conftest.er1 >conftest.err
  29471. rm -f conftest.er1
  29472. cat conftest.err >&5
  29473. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29474. (exit $ac_status); } && {
  29475. test -z "$ac_c_werror_flag" ||
  29476. test ! -s conftest.err
  29477. } && test -s conftest.$ac_objext; then
  29478. ac_cv_struct_tm=time.h
  29479. else
  29480. $as_echo "$as_me: failed program was:" >&5
  29481. sed 's/^/| /' conftest.$ac_ext >&5
  29482. ac_cv_struct_tm=sys/time.h
  29483. fi
  29484. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29485. fi
  29486. { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  29487. $as_echo "$ac_cv_struct_tm" >&6; }
  29488. if test $ac_cv_struct_tm = sys/time.h; then
  29489. cat >>confdefs.h <<\_ACEOF
  29490. #define TM_IN_SYS_TIME 1
  29491. _ACEOF
  29492. fi
  29493. { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
  29494. $as_echo_n "checking for struct tm.tm_zone... " >&6; }
  29495. if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
  29496. $as_echo_n "(cached) " >&6
  29497. else
  29498. cat >conftest.$ac_ext <<_ACEOF
  29499. /* confdefs.h. */
  29500. _ACEOF
  29501. cat confdefs.h >>conftest.$ac_ext
  29502. cat >>conftest.$ac_ext <<_ACEOF
  29503. /* end confdefs.h. */
  29504. #include <sys/types.h>
  29505. #include <$ac_cv_struct_tm>
  29506. int
  29507. main ()
  29508. {
  29509. static struct tm ac_aggr;
  29510. if (ac_aggr.tm_zone)
  29511. return 0;
  29512. ;
  29513. return 0;
  29514. }
  29515. _ACEOF
  29516. rm -f conftest.$ac_objext
  29517. if { (ac_try="$ac_compile"
  29518. case "(($ac_try" in
  29519. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29520. *) ac_try_echo=$ac_try;;
  29521. esac
  29522. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  29523. $as_echo "$ac_try_echo") >&5
  29524. (eval "$ac_compile") 2>conftest.er1
  29525. ac_status=$?
  29526. grep -v '^ *+' conftest.er1 >conftest.err
  29527. rm -f conftest.er1
  29528. cat conftest.err >&5
  29529. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29530. (exit $ac_status); } && {
  29531. test -z "$ac_c_werror_flag" ||
  29532. test ! -s conftest.err
  29533. } && test -s conftest.$ac_objext; then
  29534. ac_cv_member_struct_tm_tm_zone=yes
  29535. else
  29536. $as_echo "$as_me: failed program was:" >&5
  29537. sed 's/^/| /' conftest.$ac_ext >&5
  29538. cat >conftest.$ac_ext <<_ACEOF
  29539. /* confdefs.h. */
  29540. _ACEOF
  29541. cat confdefs.h >>conftest.$ac_ext
  29542. cat >>conftest.$ac_ext <<_ACEOF
  29543. /* end confdefs.h. */
  29544. #include <sys/types.h>
  29545. #include <$ac_cv_struct_tm>
  29546. int
  29547. main ()
  29548. {
  29549. static struct tm ac_aggr;
  29550. if (sizeof ac_aggr.tm_zone)
  29551. return 0;
  29552. ;
  29553. return 0;
  29554. }
  29555. _ACEOF
  29556. rm -f conftest.$ac_objext
  29557. if { (ac_try="$ac_compile"
  29558. case "(($ac_try" in
  29559. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29560. *) ac_try_echo=$ac_try;;
  29561. esac
  29562. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  29563. $as_echo "$ac_try_echo") >&5
  29564. (eval "$ac_compile") 2>conftest.er1
  29565. ac_status=$?
  29566. grep -v '^ *+' conftest.er1 >conftest.err
  29567. rm -f conftest.er1
  29568. cat conftest.err >&5
  29569. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29570. (exit $ac_status); } && {
  29571. test -z "$ac_c_werror_flag" ||
  29572. test ! -s conftest.err
  29573. } && test -s conftest.$ac_objext; then
  29574. ac_cv_member_struct_tm_tm_zone=yes
  29575. else
  29576. $as_echo "$as_me: failed program was:" >&5
  29577. sed 's/^/| /' conftest.$ac_ext >&5
  29578. ac_cv_member_struct_tm_tm_zone=no
  29579. fi
  29580. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29581. fi
  29582. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29583. fi
  29584. { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
  29585. $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
  29586. if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
  29587. cat >>confdefs.h <<_ACEOF
  29588. #define HAVE_STRUCT_TM_TM_ZONE 1
  29589. _ACEOF
  29590. fi
  29591. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  29592. cat >>confdefs.h <<\_ACEOF
  29593. #define HAVE_TM_ZONE 1
  29594. _ACEOF
  29595. else
  29596. { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
  29597. $as_echo_n "checking whether tzname is declared... " >&6; }
  29598. if test "${ac_cv_have_decl_tzname+set}" = set; then
  29599. $as_echo_n "(cached) " >&6
  29600. else
  29601. cat >conftest.$ac_ext <<_ACEOF
  29602. /* confdefs.h. */
  29603. _ACEOF
  29604. cat confdefs.h >>conftest.$ac_ext
  29605. cat >>conftest.$ac_ext <<_ACEOF
  29606. /* end confdefs.h. */
  29607. #include <time.h>
  29608. int
  29609. main ()
  29610. {
  29611. #ifndef tzname
  29612. (void) tzname;
  29613. #endif
  29614. ;
  29615. return 0;
  29616. }
  29617. _ACEOF
  29618. rm -f conftest.$ac_objext
  29619. if { (ac_try="$ac_compile"
  29620. case "(($ac_try" in
  29621. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29622. *) ac_try_echo=$ac_try;;
  29623. esac
  29624. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  29625. $as_echo "$ac_try_echo") >&5
  29626. (eval "$ac_compile") 2>conftest.er1
  29627. ac_status=$?
  29628. grep -v '^ *+' conftest.er1 >conftest.err
  29629. rm -f conftest.er1
  29630. cat conftest.err >&5
  29631. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29632. (exit $ac_status); } && {
  29633. test -z "$ac_c_werror_flag" ||
  29634. test ! -s conftest.err
  29635. } && test -s conftest.$ac_objext; then
  29636. ac_cv_have_decl_tzname=yes
  29637. else
  29638. $as_echo "$as_me: failed program was:" >&5
  29639. sed 's/^/| /' conftest.$ac_ext >&5
  29640. ac_cv_have_decl_tzname=no
  29641. fi
  29642. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29643. fi
  29644. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
  29645. $as_echo "$ac_cv_have_decl_tzname" >&6; }
  29646. if test "x$ac_cv_have_decl_tzname" = x""yes; then
  29647. cat >>confdefs.h <<_ACEOF
  29648. #define HAVE_DECL_TZNAME 1
  29649. _ACEOF
  29650. else
  29651. cat >>confdefs.h <<_ACEOF
  29652. #define HAVE_DECL_TZNAME 0
  29653. _ACEOF
  29654. fi
  29655. { $as_echo "$as_me:$LINENO: checking for tzname" >&5
  29656. $as_echo_n "checking for tzname... " >&6; }
  29657. if test "${ac_cv_var_tzname+set}" = set; then
  29658. $as_echo_n "(cached) " >&6
  29659. else
  29660. cat >conftest.$ac_ext <<_ACEOF
  29661. /* confdefs.h. */
  29662. _ACEOF
  29663. cat confdefs.h >>conftest.$ac_ext
  29664. cat >>conftest.$ac_ext <<_ACEOF
  29665. /* end confdefs.h. */
  29666. #include <time.h>
  29667. #if !HAVE_DECL_TZNAME
  29668. extern char *tzname[];
  29669. #endif
  29670. int
  29671. main ()
  29672. {
  29673. return tzname[0][0];
  29674. ;
  29675. return 0;
  29676. }
  29677. _ACEOF
  29678. rm -f conftest.$ac_objext conftest$ac_exeext
  29679. if { (ac_try="$ac_link"
  29680. case "(($ac_try" in
  29681. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29682. *) ac_try_echo=$ac_try;;
  29683. esac
  29684. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  29685. $as_echo "$ac_try_echo") >&5
  29686. (eval "$ac_link") 2>conftest.er1
  29687. ac_status=$?
  29688. grep -v '^ *+' conftest.er1 >conftest.err
  29689. rm -f conftest.er1
  29690. cat conftest.err >&5
  29691. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29692. (exit $ac_status); } && {
  29693. test -z "$ac_c_werror_flag" ||
  29694. test ! -s conftest.err
  29695. } && test -s conftest$ac_exeext && {
  29696. test "$cross_compiling" = yes ||
  29697. $as_test_x conftest$ac_exeext
  29698. }; then
  29699. ac_cv_var_tzname=yes
  29700. else
  29701. $as_echo "$as_me: failed program was:" >&5
  29702. sed 's/^/| /' conftest.$ac_ext >&5
  29703. ac_cv_var_tzname=no
  29704. fi
  29705. rm -rf conftest.dSYM
  29706. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  29707. conftest$ac_exeext conftest.$ac_ext
  29708. fi
  29709. { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
  29710. $as_echo "$ac_cv_var_tzname" >&6; }
  29711. if test $ac_cv_var_tzname = yes; then
  29712. cat >>confdefs.h <<\_ACEOF
  29713. #define HAVE_TZNAME 1
  29714. _ACEOF
  29715. fi
  29716. fi
  29717. { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
  29718. $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
  29719. if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
  29720. $as_echo_n "(cached) " >&6
  29721. else
  29722. cat >conftest.$ac_ext <<_ACEOF
  29723. /* confdefs.h. */
  29724. _ACEOF
  29725. cat confdefs.h >>conftest.$ac_ext
  29726. cat >>conftest.$ac_ext <<_ACEOF
  29727. /* end confdefs.h. */
  29728. #include <time.h>
  29729. #ifdef TIME_WITH_SYS_TIME
  29730. # include <sys/time.h>
  29731. # include <time.h>
  29732. #else
  29733. # if HAVE_SYS_TIME_H
  29734. # include <sys/time.h>
  29735. # else
  29736. # include <time.h>
  29737. # endif
  29738. #endif
  29739. int
  29740. main ()
  29741. {
  29742. static struct tm ac_aggr;
  29743. if (ac_aggr.tm_gmtoff)
  29744. return 0;
  29745. ;
  29746. return 0;
  29747. }
  29748. _ACEOF
  29749. rm -f conftest.$ac_objext
  29750. if { (ac_try="$ac_compile"
  29751. case "(($ac_try" in
  29752. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29753. *) ac_try_echo=$ac_try;;
  29754. esac
  29755. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  29756. $as_echo "$ac_try_echo") >&5
  29757. (eval "$ac_compile") 2>conftest.er1
  29758. ac_status=$?
  29759. grep -v '^ *+' conftest.er1 >conftest.err
  29760. rm -f conftest.er1
  29761. cat conftest.err >&5
  29762. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29763. (exit $ac_status); } && {
  29764. test -z "$ac_c_werror_flag" ||
  29765. test ! -s conftest.err
  29766. } && test -s conftest.$ac_objext; then
  29767. ac_cv_member_struct_tm_tm_gmtoff=yes
  29768. else
  29769. $as_echo "$as_me: failed program was:" >&5
  29770. sed 's/^/| /' conftest.$ac_ext >&5
  29771. cat >conftest.$ac_ext <<_ACEOF
  29772. /* confdefs.h. */
  29773. _ACEOF
  29774. cat confdefs.h >>conftest.$ac_ext
  29775. cat >>conftest.$ac_ext <<_ACEOF
  29776. /* end confdefs.h. */
  29777. #include <time.h>
  29778. #ifdef TIME_WITH_SYS_TIME
  29779. # include <sys/time.h>
  29780. # include <time.h>
  29781. #else
  29782. # if HAVE_SYS_TIME_H
  29783. # include <sys/time.h>
  29784. # else
  29785. # include <time.h>
  29786. # endif
  29787. #endif
  29788. int
  29789. main ()
  29790. {
  29791. static struct tm ac_aggr;
  29792. if (sizeof ac_aggr.tm_gmtoff)
  29793. return 0;
  29794. ;
  29795. return 0;
  29796. }
  29797. _ACEOF
  29798. rm -f conftest.$ac_objext
  29799. if { (ac_try="$ac_compile"
  29800. case "(($ac_try" in
  29801. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29802. *) ac_try_echo=$ac_try;;
  29803. esac
  29804. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  29805. $as_echo "$ac_try_echo") >&5
  29806. (eval "$ac_compile") 2>conftest.er1
  29807. ac_status=$?
  29808. grep -v '^ *+' conftest.er1 >conftest.err
  29809. rm -f conftest.er1
  29810. cat conftest.err >&5
  29811. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29812. (exit $ac_status); } && {
  29813. test -z "$ac_c_werror_flag" ||
  29814. test ! -s conftest.err
  29815. } && test -s conftest.$ac_objext; then
  29816. ac_cv_member_struct_tm_tm_gmtoff=yes
  29817. else
  29818. $as_echo "$as_me: failed program was:" >&5
  29819. sed 's/^/| /' conftest.$ac_ext >&5
  29820. ac_cv_member_struct_tm_tm_gmtoff=no
  29821. fi
  29822. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29823. fi
  29824. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29825. fi
  29826. { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
  29827. $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
  29828. if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then
  29829. cat >>confdefs.h <<_ACEOF
  29830. #define HAVE_STRUCT_TM_TM_GMTOFF 1
  29831. _ACEOF
  29832. fi
  29833. { $as_echo "$as_me:$LINENO: checking whether we need POSIX to get struct utimbuf" >&5
  29834. $as_echo_n "checking whether we need POSIX to get struct utimbuf... " >&6; }
  29835. if test "${guile_cv_struct_utimbuf_needs_posix+set}" = set; then
  29836. $as_echo_n "(cached) " >&6
  29837. else
  29838. cat >conftest.$ac_ext <<_ACEOF
  29839. /* confdefs.h. */
  29840. _ACEOF
  29841. cat confdefs.h >>conftest.$ac_ext
  29842. cat >>conftest.$ac_ext <<_ACEOF
  29843. /* end confdefs.h. */
  29844. #ifdef __EMX__
  29845. #include <sys/utime.h>
  29846. #else
  29847. #include <utime.h>
  29848. #endif
  29849. struct utime blah;
  29850. _ACEOF
  29851. if { (ac_try="$ac_cpp conftest.$ac_ext"
  29852. case "(($ac_try" in
  29853. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29854. *) ac_try_echo=$ac_try;;
  29855. esac
  29856. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  29857. $as_echo "$ac_try_echo") >&5
  29858. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  29859. ac_status=$?
  29860. grep -v '^ *+' conftest.er1 >conftest.err
  29861. rm -f conftest.er1
  29862. cat conftest.err >&5
  29863. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29864. (exit $ac_status); } >/dev/null && {
  29865. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  29866. test ! -s conftest.err
  29867. }; then
  29868. guile_cv_struct_utimbuf_needs_posix=no
  29869. else
  29870. $as_echo "$as_me: failed program was:" >&5
  29871. sed 's/^/| /' conftest.$ac_ext >&5
  29872. guile_cv_struct_utimbuf_needs_posix=yes
  29873. fi
  29874. rm -f conftest.err conftest.$ac_ext
  29875. fi
  29876. { $as_echo "$as_me:$LINENO: result: $guile_cv_struct_utimbuf_needs_posix" >&5
  29877. $as_echo "$guile_cv_struct_utimbuf_needs_posix" >&6; }
  29878. if test "$guile_cv_struct_utimbuf_needs_posix" = yes; then
  29879. cat >>confdefs.h <<\_ACEOF
  29880. #define UTIMBUF_NEEDS_POSIX 1
  29881. _ACEOF
  29882. fi
  29883. #--------------------------------------------------------------------
  29884. #
  29885. # Which way does the stack grow?
  29886. #
  29887. # Following code comes from Autoconf 2.61's internal _AC_LIBOBJ_ALLOCA
  29888. # macro (/usr/share/autoconf/autoconf/functions.m4). Gnulib has
  29889. # very similar code, so in future we could look at using that.
  29890. #
  29891. # An important detail is that the code involves find_stack_direction
  29892. # calling _itself_ - which means that find_stack_direction (or at
  29893. # least the second find_stack_direction() call) cannot be inlined.
  29894. # If the code could be inlined, that might cause the test to give
  29895. # an incorrect answer.
  29896. #--------------------------------------------------------------------
  29897. SCM_I_GSC_STACK_GROWS_UP=0
  29898. if test "$cross_compiling" = yes; then
  29899. { $as_echo "$as_me:$LINENO: WARNING: Guessing that stack grows down -- see scmconfig.h" >&5
  29900. $as_echo "$as_me: WARNING: Guessing that stack grows down -- see scmconfig.h" >&2;}
  29901. else
  29902. cat >conftest.$ac_ext <<_ACEOF
  29903. /* confdefs.h. */
  29904. _ACEOF
  29905. cat confdefs.h >>conftest.$ac_ext
  29906. cat >>conftest.$ac_ext <<_ACEOF
  29907. /* end confdefs.h. */
  29908. $ac_includes_default
  29909. int
  29910. find_stack_direction ()
  29911. {
  29912. static char *addr = 0;
  29913. auto char dummy;
  29914. if (addr == 0)
  29915. {
  29916. addr = &dummy;
  29917. return find_stack_direction ();
  29918. }
  29919. else
  29920. return (&dummy > addr) ? 1 : -1;
  29921. }
  29922. int
  29923. main ()
  29924. {
  29925. return find_stack_direction () < 0;
  29926. }
  29927. _ACEOF
  29928. rm -f conftest$ac_exeext
  29929. if { (ac_try="$ac_link"
  29930. case "(($ac_try" in
  29931. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29932. *) ac_try_echo=$ac_try;;
  29933. esac
  29934. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  29935. $as_echo "$ac_try_echo") >&5
  29936. (eval "$ac_link") 2>&5
  29937. ac_status=$?
  29938. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29939. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  29940. { (case "(($ac_try" in
  29941. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29942. *) ac_try_echo=$ac_try;;
  29943. esac
  29944. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  29945. $as_echo "$ac_try_echo") >&5
  29946. (eval "$ac_try") 2>&5
  29947. ac_status=$?
  29948. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29949. (exit $ac_status); }; }; then
  29950. SCM_I_GSC_STACK_GROWS_UP=1
  29951. else
  29952. $as_echo "$as_me: program exited with status $ac_status" >&5
  29953. $as_echo "$as_me: failed program was:" >&5
  29954. sed 's/^/| /' conftest.$ac_ext >&5
  29955. fi
  29956. rm -rf conftest.dSYM
  29957. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  29958. fi
  29959. # The cast to long int works around a bug in the HP C Compiler
  29960. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  29961. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  29962. # This bug is HP SR number 8606223364.
  29963. { $as_echo "$as_me:$LINENO: checking size of float" >&5
  29964. $as_echo_n "checking size of float... " >&6; }
  29965. if test "${ac_cv_sizeof_float+set}" = set; then
  29966. $as_echo_n "(cached) " >&6
  29967. else
  29968. if test "$cross_compiling" = yes; then
  29969. # Depending upon the size, compute the lo and hi bounds.
  29970. cat >conftest.$ac_ext <<_ACEOF
  29971. /* confdefs.h. */
  29972. _ACEOF
  29973. cat confdefs.h >>conftest.$ac_ext
  29974. cat >>conftest.$ac_ext <<_ACEOF
  29975. /* end confdefs.h. */
  29976. $ac_includes_default
  29977. int
  29978. main ()
  29979. {
  29980. static int test_array [1 - 2 * !(((long int) (sizeof (float))) >= 0)];
  29981. test_array [0] = 0
  29982. ;
  29983. return 0;
  29984. }
  29985. _ACEOF
  29986. rm -f conftest.$ac_objext
  29987. if { (ac_try="$ac_compile"
  29988. case "(($ac_try" in
  29989. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29990. *) ac_try_echo=$ac_try;;
  29991. esac
  29992. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  29993. $as_echo "$ac_try_echo") >&5
  29994. (eval "$ac_compile") 2>conftest.er1
  29995. ac_status=$?
  29996. grep -v '^ *+' conftest.er1 >conftest.err
  29997. rm -f conftest.er1
  29998. cat conftest.err >&5
  29999. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30000. (exit $ac_status); } && {
  30001. test -z "$ac_c_werror_flag" ||
  30002. test ! -s conftest.err
  30003. } && test -s conftest.$ac_objext; then
  30004. ac_lo=0 ac_mid=0
  30005. while :; do
  30006. cat >conftest.$ac_ext <<_ACEOF
  30007. /* confdefs.h. */
  30008. _ACEOF
  30009. cat confdefs.h >>conftest.$ac_ext
  30010. cat >>conftest.$ac_ext <<_ACEOF
  30011. /* end confdefs.h. */
  30012. $ac_includes_default
  30013. int
  30014. main ()
  30015. {
  30016. static int test_array [1 - 2 * !(((long int) (sizeof (float))) <= $ac_mid)];
  30017. test_array [0] = 0
  30018. ;
  30019. return 0;
  30020. }
  30021. _ACEOF
  30022. rm -f conftest.$ac_objext
  30023. if { (ac_try="$ac_compile"
  30024. case "(($ac_try" in
  30025. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30026. *) ac_try_echo=$ac_try;;
  30027. esac
  30028. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30029. $as_echo "$ac_try_echo") >&5
  30030. (eval "$ac_compile") 2>conftest.er1
  30031. ac_status=$?
  30032. grep -v '^ *+' conftest.er1 >conftest.err
  30033. rm -f conftest.er1
  30034. cat conftest.err >&5
  30035. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30036. (exit $ac_status); } && {
  30037. test -z "$ac_c_werror_flag" ||
  30038. test ! -s conftest.err
  30039. } && test -s conftest.$ac_objext; then
  30040. ac_hi=$ac_mid; break
  30041. else
  30042. $as_echo "$as_me: failed program was:" >&5
  30043. sed 's/^/| /' conftest.$ac_ext >&5
  30044. ac_lo=`expr $ac_mid + 1`
  30045. if test $ac_lo -le $ac_mid; then
  30046. ac_lo= ac_hi=
  30047. break
  30048. fi
  30049. ac_mid=`expr 2 '*' $ac_mid + 1`
  30050. fi
  30051. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30052. done
  30053. else
  30054. $as_echo "$as_me: failed program was:" >&5
  30055. sed 's/^/| /' conftest.$ac_ext >&5
  30056. cat >conftest.$ac_ext <<_ACEOF
  30057. /* confdefs.h. */
  30058. _ACEOF
  30059. cat confdefs.h >>conftest.$ac_ext
  30060. cat >>conftest.$ac_ext <<_ACEOF
  30061. /* end confdefs.h. */
  30062. $ac_includes_default
  30063. int
  30064. main ()
  30065. {
  30066. static int test_array [1 - 2 * !(((long int) (sizeof (float))) < 0)];
  30067. test_array [0] = 0
  30068. ;
  30069. return 0;
  30070. }
  30071. _ACEOF
  30072. rm -f conftest.$ac_objext
  30073. if { (ac_try="$ac_compile"
  30074. case "(($ac_try" in
  30075. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30076. *) ac_try_echo=$ac_try;;
  30077. esac
  30078. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30079. $as_echo "$ac_try_echo") >&5
  30080. (eval "$ac_compile") 2>conftest.er1
  30081. ac_status=$?
  30082. grep -v '^ *+' conftest.er1 >conftest.err
  30083. rm -f conftest.er1
  30084. cat conftest.err >&5
  30085. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30086. (exit $ac_status); } && {
  30087. test -z "$ac_c_werror_flag" ||
  30088. test ! -s conftest.err
  30089. } && test -s conftest.$ac_objext; then
  30090. ac_hi=-1 ac_mid=-1
  30091. while :; do
  30092. cat >conftest.$ac_ext <<_ACEOF
  30093. /* confdefs.h. */
  30094. _ACEOF
  30095. cat confdefs.h >>conftest.$ac_ext
  30096. cat >>conftest.$ac_ext <<_ACEOF
  30097. /* end confdefs.h. */
  30098. $ac_includes_default
  30099. int
  30100. main ()
  30101. {
  30102. static int test_array [1 - 2 * !(((long int) (sizeof (float))) >= $ac_mid)];
  30103. test_array [0] = 0
  30104. ;
  30105. return 0;
  30106. }
  30107. _ACEOF
  30108. rm -f conftest.$ac_objext
  30109. if { (ac_try="$ac_compile"
  30110. case "(($ac_try" in
  30111. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30112. *) ac_try_echo=$ac_try;;
  30113. esac
  30114. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30115. $as_echo "$ac_try_echo") >&5
  30116. (eval "$ac_compile") 2>conftest.er1
  30117. ac_status=$?
  30118. grep -v '^ *+' conftest.er1 >conftest.err
  30119. rm -f conftest.er1
  30120. cat conftest.err >&5
  30121. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30122. (exit $ac_status); } && {
  30123. test -z "$ac_c_werror_flag" ||
  30124. test ! -s conftest.err
  30125. } && test -s conftest.$ac_objext; then
  30126. ac_lo=$ac_mid; break
  30127. else
  30128. $as_echo "$as_me: failed program was:" >&5
  30129. sed 's/^/| /' conftest.$ac_ext >&5
  30130. ac_hi=`expr '(' $ac_mid ')' - 1`
  30131. if test $ac_mid -le $ac_hi; then
  30132. ac_lo= ac_hi=
  30133. break
  30134. fi
  30135. ac_mid=`expr 2 '*' $ac_mid`
  30136. fi
  30137. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30138. done
  30139. else
  30140. $as_echo "$as_me: failed program was:" >&5
  30141. sed 's/^/| /' conftest.$ac_ext >&5
  30142. ac_lo= ac_hi=
  30143. fi
  30144. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30145. fi
  30146. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30147. # Binary search between lo and hi bounds.
  30148. while test "x$ac_lo" != "x$ac_hi"; do
  30149. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  30150. cat >conftest.$ac_ext <<_ACEOF
  30151. /* confdefs.h. */
  30152. _ACEOF
  30153. cat confdefs.h >>conftest.$ac_ext
  30154. cat >>conftest.$ac_ext <<_ACEOF
  30155. /* end confdefs.h. */
  30156. $ac_includes_default
  30157. int
  30158. main ()
  30159. {
  30160. static int test_array [1 - 2 * !(((long int) (sizeof (float))) <= $ac_mid)];
  30161. test_array [0] = 0
  30162. ;
  30163. return 0;
  30164. }
  30165. _ACEOF
  30166. rm -f conftest.$ac_objext
  30167. if { (ac_try="$ac_compile"
  30168. case "(($ac_try" in
  30169. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30170. *) ac_try_echo=$ac_try;;
  30171. esac
  30172. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30173. $as_echo "$ac_try_echo") >&5
  30174. (eval "$ac_compile") 2>conftest.er1
  30175. ac_status=$?
  30176. grep -v '^ *+' conftest.er1 >conftest.err
  30177. rm -f conftest.er1
  30178. cat conftest.err >&5
  30179. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30180. (exit $ac_status); } && {
  30181. test -z "$ac_c_werror_flag" ||
  30182. test ! -s conftest.err
  30183. } && test -s conftest.$ac_objext; then
  30184. ac_hi=$ac_mid
  30185. else
  30186. $as_echo "$as_me: failed program was:" >&5
  30187. sed 's/^/| /' conftest.$ac_ext >&5
  30188. ac_lo=`expr '(' $ac_mid ')' + 1`
  30189. fi
  30190. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30191. done
  30192. case $ac_lo in
  30193. ?*) ac_cv_sizeof_float=$ac_lo;;
  30194. '') if test "$ac_cv_type_float" = yes; then
  30195. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  30196. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  30197. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (float)
  30198. See \`config.log' for more details." >&5
  30199. $as_echo "$as_me: error: cannot compute sizeof (float)
  30200. See \`config.log' for more details." >&2;}
  30201. { (exit 77); exit 77; }; }; }
  30202. else
  30203. ac_cv_sizeof_float=0
  30204. fi ;;
  30205. esac
  30206. else
  30207. cat >conftest.$ac_ext <<_ACEOF
  30208. /* confdefs.h. */
  30209. _ACEOF
  30210. cat confdefs.h >>conftest.$ac_ext
  30211. cat >>conftest.$ac_ext <<_ACEOF
  30212. /* end confdefs.h. */
  30213. $ac_includes_default
  30214. static long int longval () { return (long int) (sizeof (float)); }
  30215. static unsigned long int ulongval () { return (long int) (sizeof (float)); }
  30216. #include <stdio.h>
  30217. #include <stdlib.h>
  30218. int
  30219. main ()
  30220. {
  30221. FILE *f = fopen ("conftest.val", "w");
  30222. if (! f)
  30223. return 1;
  30224. if (((long int) (sizeof (float))) < 0)
  30225. {
  30226. long int i = longval ();
  30227. if (i != ((long int) (sizeof (float))))
  30228. return 1;
  30229. fprintf (f, "%ld", i);
  30230. }
  30231. else
  30232. {
  30233. unsigned long int i = ulongval ();
  30234. if (i != ((long int) (sizeof (float))))
  30235. return 1;
  30236. fprintf (f, "%lu", i);
  30237. }
  30238. /* Do not output a trailing newline, as this causes \r\n confusion
  30239. on some platforms. */
  30240. return ferror (f) || fclose (f) != 0;
  30241. ;
  30242. return 0;
  30243. }
  30244. _ACEOF
  30245. rm -f conftest$ac_exeext
  30246. if { (ac_try="$ac_link"
  30247. case "(($ac_try" in
  30248. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30249. *) ac_try_echo=$ac_try;;
  30250. esac
  30251. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30252. $as_echo "$ac_try_echo") >&5
  30253. (eval "$ac_link") 2>&5
  30254. ac_status=$?
  30255. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30256. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  30257. { (case "(($ac_try" in
  30258. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30259. *) ac_try_echo=$ac_try;;
  30260. esac
  30261. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30262. $as_echo "$ac_try_echo") >&5
  30263. (eval "$ac_try") 2>&5
  30264. ac_status=$?
  30265. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30266. (exit $ac_status); }; }; then
  30267. ac_cv_sizeof_float=`cat conftest.val`
  30268. else
  30269. $as_echo "$as_me: program exited with status $ac_status" >&5
  30270. $as_echo "$as_me: failed program was:" >&5
  30271. sed 's/^/| /' conftest.$ac_ext >&5
  30272. ( exit $ac_status )
  30273. if test "$ac_cv_type_float" = yes; then
  30274. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  30275. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  30276. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (float)
  30277. See \`config.log' for more details." >&5
  30278. $as_echo "$as_me: error: cannot compute sizeof (float)
  30279. See \`config.log' for more details." >&2;}
  30280. { (exit 77); exit 77; }; }; }
  30281. else
  30282. ac_cv_sizeof_float=0
  30283. fi
  30284. fi
  30285. rm -rf conftest.dSYM
  30286. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  30287. fi
  30288. rm -f conftest.val
  30289. fi
  30290. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
  30291. $as_echo "$ac_cv_sizeof_float" >&6; }
  30292. cat >>confdefs.h <<_ACEOF
  30293. #define SIZEOF_FLOAT $ac_cv_sizeof_float
  30294. _ACEOF
  30295. if test "$ac_cv_sizeof_float" -le "$ac_cv_sizeof_long"; then
  30296. cat >>confdefs.h <<\_ACEOF
  30297. #define SCM_SINGLES 1
  30298. _ACEOF
  30299. fi
  30300. { $as_echo "$as_me:$LINENO: checking for struct linger" >&5
  30301. $as_echo_n "checking for struct linger... " >&6; }
  30302. if test "${scm_cv_struct_linger+set}" = set; then
  30303. $as_echo_n "(cached) " >&6
  30304. else
  30305. cat >conftest.$ac_ext <<_ACEOF
  30306. /* confdefs.h. */
  30307. _ACEOF
  30308. cat confdefs.h >>conftest.$ac_ext
  30309. cat >>conftest.$ac_ext <<_ACEOF
  30310. /* end confdefs.h. */
  30311. #include <sys/types.h>
  30312. #include <sys/socket.h>
  30313. int
  30314. main ()
  30315. {
  30316. struct linger lgr; lgr.l_linger = 100
  30317. ;
  30318. return 0;
  30319. }
  30320. _ACEOF
  30321. rm -f conftest.$ac_objext
  30322. if { (ac_try="$ac_compile"
  30323. case "(($ac_try" in
  30324. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30325. *) ac_try_echo=$ac_try;;
  30326. esac
  30327. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30328. $as_echo "$ac_try_echo") >&5
  30329. (eval "$ac_compile") 2>conftest.er1
  30330. ac_status=$?
  30331. grep -v '^ *+' conftest.er1 >conftest.err
  30332. rm -f conftest.er1
  30333. cat conftest.err >&5
  30334. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30335. (exit $ac_status); } && {
  30336. test -z "$ac_c_werror_flag" ||
  30337. test ! -s conftest.err
  30338. } && test -s conftest.$ac_objext; then
  30339. scm_cv_struct_linger="yes"
  30340. else
  30341. $as_echo "$as_me: failed program was:" >&5
  30342. sed 's/^/| /' conftest.$ac_ext >&5
  30343. scm_cv_struct_linger="no"
  30344. fi
  30345. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30346. fi
  30347. { $as_echo "$as_me:$LINENO: result: $scm_cv_struct_linger" >&5
  30348. $as_echo "$scm_cv_struct_linger" >&6; }
  30349. if test $scm_cv_struct_linger = yes; then
  30350. cat >>confdefs.h <<\_ACEOF
  30351. #define HAVE_STRUCT_LINGER 1
  30352. _ACEOF
  30353. fi
  30354. # On mingw, struct timespec is in <pthread.h>.
  30355. #
  30356. { $as_echo "$as_me:$LINENO: checking for struct timespec" >&5
  30357. $as_echo_n "checking for struct timespec... " >&6; }
  30358. if test "${scm_cv_struct_timespec+set}" = set; then
  30359. $as_echo_n "(cached) " >&6
  30360. else
  30361. cat >conftest.$ac_ext <<_ACEOF
  30362. /* confdefs.h. */
  30363. _ACEOF
  30364. cat confdefs.h >>conftest.$ac_ext
  30365. cat >>conftest.$ac_ext <<_ACEOF
  30366. /* end confdefs.h. */
  30367. #include <time.h>
  30368. #if HAVE_PTHREAD_H
  30369. #include <pthread.h>
  30370. #endif
  30371. int
  30372. main ()
  30373. {
  30374. struct timespec t; t.tv_nsec = 100
  30375. ;
  30376. return 0;
  30377. }
  30378. _ACEOF
  30379. rm -f conftest.$ac_objext
  30380. if { (ac_try="$ac_compile"
  30381. case "(($ac_try" in
  30382. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30383. *) ac_try_echo=$ac_try;;
  30384. esac
  30385. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30386. $as_echo "$ac_try_echo") >&5
  30387. (eval "$ac_compile") 2>conftest.er1
  30388. ac_status=$?
  30389. grep -v '^ *+' conftest.er1 >conftest.err
  30390. rm -f conftest.er1
  30391. cat conftest.err >&5
  30392. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30393. (exit $ac_status); } && {
  30394. test -z "$ac_c_werror_flag" ||
  30395. test ! -s conftest.err
  30396. } && test -s conftest.$ac_objext; then
  30397. scm_cv_struct_timespec="yes"
  30398. else
  30399. $as_echo "$as_me: failed program was:" >&5
  30400. sed 's/^/| /' conftest.$ac_ext >&5
  30401. scm_cv_struct_timespec="no"
  30402. fi
  30403. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30404. fi
  30405. { $as_echo "$as_me:$LINENO: result: $scm_cv_struct_timespec" >&5
  30406. $as_echo "$scm_cv_struct_timespec" >&6; }
  30407. if test $scm_cv_struct_timespec = yes; then
  30408. cat >>confdefs.h <<\_ACEOF
  30409. #define HAVE_STRUCT_TIMESPEC 1
  30410. _ACEOF
  30411. fi
  30412. #--------------------------------------------------------------------
  30413. #
  30414. # Flags for thread support
  30415. #
  30416. #--------------------------------------------------------------------
  30417. SCM_I_GSC_USE_PTHREAD_THREADS=0
  30418. SCM_I_GSC_USE_NULL_THREADS=0
  30419. ### What thread package has the user asked for?
  30420. # Check whether --with-threads was given.
  30421. if test "${with_threads+set}" = set; then
  30422. withval=$with_threads;
  30423. else
  30424. with_threads=yes
  30425. fi
  30426. SCM_I_GSC_NEED_BRACES_ON_PTHREAD_ONCE_INIT=0
  30427. SCM_I_GSC_NEED_BRACES_ON_PTHREAD_MUTEX_INITIALIZER=0
  30428. case "$with_threads" in
  30429. "yes" | "pthread" | "pthreads" | "pthread-threads" | "")
  30430. build_pthread_support="yes"
  30431. ac_ext=c
  30432. ac_cpp='$CPP $CPPFLAGS'
  30433. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  30434. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30435. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  30436. acx_pthread_ok=no
  30437. # We used to check for pthread.h first, but this fails if pthread.h
  30438. # requires special compiler flags (e.g. on True64 or Sequent).
  30439. # It gets checked for in the link test anyway.
  30440. # First of all, check if the user has set any of the PTHREAD_LIBS,
  30441. # etcetera environment variables, and if threads linking works using
  30442. # them:
  30443. if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
  30444. save_CFLAGS="$CFLAGS"
  30445. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  30446. save_LIBS="$LIBS"
  30447. LIBS="$PTHREAD_LIBS $LIBS"
  30448. { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
  30449. $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
  30450. cat >conftest.$ac_ext <<_ACEOF
  30451. /* confdefs.h. */
  30452. _ACEOF
  30453. cat confdefs.h >>conftest.$ac_ext
  30454. cat >>conftest.$ac_ext <<_ACEOF
  30455. /* end confdefs.h. */
  30456. /* Override any GCC internal prototype to avoid an error.
  30457. Use char because int might match the return type of a GCC
  30458. builtin and then its argument prototype would still apply. */
  30459. #ifdef __cplusplus
  30460. extern "C"
  30461. #endif
  30462. char pthread_join ();
  30463. int
  30464. main ()
  30465. {
  30466. return pthread_join ();
  30467. ;
  30468. return 0;
  30469. }
  30470. _ACEOF
  30471. rm -f conftest.$ac_objext conftest$ac_exeext
  30472. if { (ac_try="$ac_link"
  30473. case "(($ac_try" in
  30474. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30475. *) ac_try_echo=$ac_try;;
  30476. esac
  30477. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30478. $as_echo "$ac_try_echo") >&5
  30479. (eval "$ac_link") 2>conftest.er1
  30480. ac_status=$?
  30481. grep -v '^ *+' conftest.er1 >conftest.err
  30482. rm -f conftest.er1
  30483. cat conftest.err >&5
  30484. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30485. (exit $ac_status); } && {
  30486. test -z "$ac_c_werror_flag" ||
  30487. test ! -s conftest.err
  30488. } && test -s conftest$ac_exeext && {
  30489. test "$cross_compiling" = yes ||
  30490. $as_test_x conftest$ac_exeext
  30491. }; then
  30492. acx_pthread_ok=yes
  30493. else
  30494. $as_echo "$as_me: failed program was:" >&5
  30495. sed 's/^/| /' conftest.$ac_ext >&5
  30496. fi
  30497. rm -rf conftest.dSYM
  30498. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  30499. conftest$ac_exeext conftest.$ac_ext
  30500. { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
  30501. $as_echo "$acx_pthread_ok" >&6; }
  30502. if test x"$acx_pthread_ok" = xno; then
  30503. PTHREAD_LIBS=""
  30504. PTHREAD_CFLAGS=""
  30505. fi
  30506. LIBS="$save_LIBS"
  30507. CFLAGS="$save_CFLAGS"
  30508. fi
  30509. # We must check for the threads library under a number of different
  30510. # names; the ordering is very important because some systems
  30511. # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
  30512. # libraries is broken (non-POSIX).
  30513. # Create a list of thread flags to try. Items starting with a "-" are
  30514. # C compiler flags, and other items are library names, except for "none"
  30515. # which indicates that we try without any flags at all, and "pthread-config"
  30516. # which is a program returning the flags for the Pth emulation library.
  30517. acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
  30518. # The ordering *is* (sometimes) important. Some notes on the
  30519. # individual items follow:
  30520. # pthreads: AIX (must check this before -lpthread)
  30521. # none: in case threads are in libc; should be tried before -Kthread and
  30522. # other compiler flags to prevent continual compiler warnings
  30523. # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
  30524. # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
  30525. # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
  30526. # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
  30527. # -pthreads: Solaris/gcc
  30528. # -mthreads: Mingw32/gcc, Lynx/gcc
  30529. # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
  30530. # doesn't hurt to check since this sometimes defines pthreads too;
  30531. # also defines -D_REENTRANT)
  30532. # ... -mt is also the pthreads flag for HP/aCC
  30533. # pthread: Linux, etcetera
  30534. # --thread-safe: KAI C++
  30535. # pthread-config: use pthread-config program (for GNU Pth library)
  30536. case "${host_cpu}-${host_os}" in
  30537. *solaris*)
  30538. # On Solaris (at least, for some versions), libc contains stubbed
  30539. # (non-functional) versions of the pthreads routines, so link-based
  30540. # tests will erroneously succeed. (We need to link with -pthreads/-mt/
  30541. # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
  30542. # a function called by this macro, so we could check for that, but
  30543. # who knows whether they'll stub that too in a future libc.) So,
  30544. # we'll just look for -pthreads and -lpthread first:
  30545. acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
  30546. ;;
  30547. esac
  30548. if test x"$acx_pthread_ok" = xno; then
  30549. for flag in $acx_pthread_flags; do
  30550. case $flag in
  30551. none)
  30552. { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
  30553. $as_echo_n "checking whether pthreads work without any flags... " >&6; }
  30554. ;;
  30555. -*)
  30556. { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
  30557. $as_echo_n "checking whether pthreads work with $flag... " >&6; }
  30558. PTHREAD_CFLAGS="$flag"
  30559. ;;
  30560. pthread-config)
  30561. # Extract the first word of "pthread-config", so it can be a program name with args.
  30562. set dummy pthread-config; ac_word=$2
  30563. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  30564. $as_echo_n "checking for $ac_word... " >&6; }
  30565. if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
  30566. $as_echo_n "(cached) " >&6
  30567. else
  30568. if test -n "$acx_pthread_config"; then
  30569. ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
  30570. else
  30571. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  30572. for as_dir in $PATH
  30573. do
  30574. IFS=$as_save_IFS
  30575. test -z "$as_dir" && as_dir=.
  30576. for ac_exec_ext in '' $ac_executable_extensions; do
  30577. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  30578. ac_cv_prog_acx_pthread_config="yes"
  30579. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  30580. break 2
  30581. fi
  30582. done
  30583. done
  30584. IFS=$as_save_IFS
  30585. test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
  30586. fi
  30587. fi
  30588. acx_pthread_config=$ac_cv_prog_acx_pthread_config
  30589. if test -n "$acx_pthread_config"; then
  30590. { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
  30591. $as_echo "$acx_pthread_config" >&6; }
  30592. else
  30593. { $as_echo "$as_me:$LINENO: result: no" >&5
  30594. $as_echo "no" >&6; }
  30595. fi
  30596. if test x"$acx_pthread_config" = xno; then continue; fi
  30597. PTHREAD_CFLAGS="`pthread-config --cflags`"
  30598. PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
  30599. ;;
  30600. *)
  30601. { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
  30602. $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
  30603. PTHREAD_LIBS="-l$flag"
  30604. ;;
  30605. esac
  30606. save_LIBS="$LIBS"
  30607. save_CFLAGS="$CFLAGS"
  30608. LIBS="$PTHREAD_LIBS $LIBS"
  30609. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  30610. # Check for various functions. We must include pthread.h,
  30611. # since some functions may be macros. (On the Sequent, we
  30612. # need a special flag -Kthread to make this header compile.)
  30613. # We check for pthread_join because it is in -lpthread on IRIX
  30614. # while pthread_create is in libc. We check for pthread_attr_init
  30615. # due to DEC craziness with -lpthreads. We check for
  30616. # pthread_cleanup_push because it is one of the few pthread
  30617. # functions on Solaris that doesn't have a non-functional libc stub.
  30618. # We try pthread_create on general principles.
  30619. cat >conftest.$ac_ext <<_ACEOF
  30620. /* confdefs.h. */
  30621. _ACEOF
  30622. cat confdefs.h >>conftest.$ac_ext
  30623. cat >>conftest.$ac_ext <<_ACEOF
  30624. /* end confdefs.h. */
  30625. #include <pthread.h>
  30626. int
  30627. main ()
  30628. {
  30629. pthread_t th; pthread_join(th, 0);
  30630. pthread_attr_init(0); pthread_cleanup_push(0, 0);
  30631. pthread_create(0,0,0,0); pthread_cleanup_pop(0);
  30632. ;
  30633. return 0;
  30634. }
  30635. _ACEOF
  30636. rm -f conftest.$ac_objext conftest$ac_exeext
  30637. if { (ac_try="$ac_link"
  30638. case "(($ac_try" in
  30639. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30640. *) ac_try_echo=$ac_try;;
  30641. esac
  30642. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30643. $as_echo "$ac_try_echo") >&5
  30644. (eval "$ac_link") 2>conftest.er1
  30645. ac_status=$?
  30646. grep -v '^ *+' conftest.er1 >conftest.err
  30647. rm -f conftest.er1
  30648. cat conftest.err >&5
  30649. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30650. (exit $ac_status); } && {
  30651. test -z "$ac_c_werror_flag" ||
  30652. test ! -s conftest.err
  30653. } && test -s conftest$ac_exeext && {
  30654. test "$cross_compiling" = yes ||
  30655. $as_test_x conftest$ac_exeext
  30656. }; then
  30657. acx_pthread_ok=yes
  30658. else
  30659. $as_echo "$as_me: failed program was:" >&5
  30660. sed 's/^/| /' conftest.$ac_ext >&5
  30661. fi
  30662. rm -rf conftest.dSYM
  30663. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  30664. conftest$ac_exeext conftest.$ac_ext
  30665. LIBS="$save_LIBS"
  30666. CFLAGS="$save_CFLAGS"
  30667. { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
  30668. $as_echo "$acx_pthread_ok" >&6; }
  30669. if test "x$acx_pthread_ok" = xyes; then
  30670. break;
  30671. fi
  30672. PTHREAD_LIBS=""
  30673. PTHREAD_CFLAGS=""
  30674. done
  30675. fi
  30676. # Various other checks:
  30677. if test "x$acx_pthread_ok" = xyes; then
  30678. save_LIBS="$LIBS"
  30679. LIBS="$PTHREAD_LIBS $LIBS"
  30680. save_CFLAGS="$CFLAGS"
  30681. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  30682. # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
  30683. { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
  30684. $as_echo_n "checking for joinable pthread attribute... " >&6; }
  30685. attr_name=unknown
  30686. for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
  30687. cat >conftest.$ac_ext <<_ACEOF
  30688. /* confdefs.h. */
  30689. _ACEOF
  30690. cat confdefs.h >>conftest.$ac_ext
  30691. cat >>conftest.$ac_ext <<_ACEOF
  30692. /* end confdefs.h. */
  30693. #include <pthread.h>
  30694. int
  30695. main ()
  30696. {
  30697. int attr=$attr; return attr;
  30698. ;
  30699. return 0;
  30700. }
  30701. _ACEOF
  30702. rm -f conftest.$ac_objext conftest$ac_exeext
  30703. if { (ac_try="$ac_link"
  30704. case "(($ac_try" in
  30705. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30706. *) ac_try_echo=$ac_try;;
  30707. esac
  30708. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30709. $as_echo "$ac_try_echo") >&5
  30710. (eval "$ac_link") 2>conftest.er1
  30711. ac_status=$?
  30712. grep -v '^ *+' conftest.er1 >conftest.err
  30713. rm -f conftest.er1
  30714. cat conftest.err >&5
  30715. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30716. (exit $ac_status); } && {
  30717. test -z "$ac_c_werror_flag" ||
  30718. test ! -s conftest.err
  30719. } && test -s conftest$ac_exeext && {
  30720. test "$cross_compiling" = yes ||
  30721. $as_test_x conftest$ac_exeext
  30722. }; then
  30723. attr_name=$attr; break
  30724. else
  30725. $as_echo "$as_me: failed program was:" >&5
  30726. sed 's/^/| /' conftest.$ac_ext >&5
  30727. fi
  30728. rm -rf conftest.dSYM
  30729. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  30730. conftest$ac_exeext conftest.$ac_ext
  30731. done
  30732. { $as_echo "$as_me:$LINENO: result: $attr_name" >&5
  30733. $as_echo "$attr_name" >&6; }
  30734. if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
  30735. cat >>confdefs.h <<_ACEOF
  30736. #define PTHREAD_CREATE_JOINABLE $attr_name
  30737. _ACEOF
  30738. fi
  30739. { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
  30740. $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
  30741. flag=no
  30742. case "${host_cpu}-${host_os}" in
  30743. *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
  30744. *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
  30745. esac
  30746. { $as_echo "$as_me:$LINENO: result: ${flag}" >&5
  30747. $as_echo "${flag}" >&6; }
  30748. if test "x$flag" != xno; then
  30749. PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
  30750. fi
  30751. LIBS="$save_LIBS"
  30752. CFLAGS="$save_CFLAGS"
  30753. # More AIX lossage: must compile with xlc_r or cc_r
  30754. if test x"$GCC" != xyes; then
  30755. for ac_prog in xlc_r cc_r
  30756. do
  30757. # Extract the first word of "$ac_prog", so it can be a program name with args.
  30758. set dummy $ac_prog; ac_word=$2
  30759. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  30760. $as_echo_n "checking for $ac_word... " >&6; }
  30761. if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
  30762. $as_echo_n "(cached) " >&6
  30763. else
  30764. if test -n "$PTHREAD_CC"; then
  30765. ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
  30766. else
  30767. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  30768. for as_dir in $PATH
  30769. do
  30770. IFS=$as_save_IFS
  30771. test -z "$as_dir" && as_dir=.
  30772. for ac_exec_ext in '' $ac_executable_extensions; do
  30773. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  30774. ac_cv_prog_PTHREAD_CC="$ac_prog"
  30775. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  30776. break 2
  30777. fi
  30778. done
  30779. done
  30780. IFS=$as_save_IFS
  30781. fi
  30782. fi
  30783. PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
  30784. if test -n "$PTHREAD_CC"; then
  30785. { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
  30786. $as_echo "$PTHREAD_CC" >&6; }
  30787. else
  30788. { $as_echo "$as_me:$LINENO: result: no" >&5
  30789. $as_echo "no" >&6; }
  30790. fi
  30791. test -n "$PTHREAD_CC" && break
  30792. done
  30793. test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
  30794. else
  30795. PTHREAD_CC=$CC
  30796. fi
  30797. else
  30798. PTHREAD_CC="$CC"
  30799. fi
  30800. # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
  30801. if test x"$acx_pthread_ok" = xyes; then
  30802. CC="$PTHREAD_CC"
  30803. LIBS="$PTHREAD_LIBS $LIBS"
  30804. SCM_I_GSC_USE_PTHREAD_THREADS=1
  30805. with_threads="pthreads"
  30806. :
  30807. else
  30808. acx_pthread_ok=no
  30809. with_threads="null"
  30810. build_pthread_support="no"
  30811. fi
  30812. ac_ext=c
  30813. ac_cpp='$CPP $CPPFLAGS'
  30814. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  30815. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30816. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  30817. old_CFLAGS="$CFLAGS"
  30818. CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
  30819. # Reasons for testing:
  30820. # pthread_getattr_np - "np" meaning "non portable" says it
  30821. # all; not present on MacOS X or Solaris 10
  30822. # pthread_get_stackaddr_np - "np" meaning "non portable" says it
  30823. # all; specific to MacOS X
  30824. # pthread_sigmask - not available on mingw
  30825. #
  30826. for ac_func in pthread_attr_getstack pthread_getattr_np pthread_get_stackaddr_np pthread_sigmask
  30827. do
  30828. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  30829. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  30830. $as_echo_n "checking for $ac_func... " >&6; }
  30831. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  30832. $as_echo_n "(cached) " >&6
  30833. else
  30834. cat >conftest.$ac_ext <<_ACEOF
  30835. /* confdefs.h. */
  30836. _ACEOF
  30837. cat confdefs.h >>conftest.$ac_ext
  30838. cat >>conftest.$ac_ext <<_ACEOF
  30839. /* end confdefs.h. */
  30840. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  30841. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  30842. #define $ac_func innocuous_$ac_func
  30843. /* System header to define __stub macros and hopefully few prototypes,
  30844. which can conflict with char $ac_func (); below.
  30845. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  30846. <limits.h> exists even on freestanding compilers. */
  30847. #ifdef __STDC__
  30848. # include <limits.h>
  30849. #else
  30850. # include <assert.h>
  30851. #endif
  30852. #undef $ac_func
  30853. /* Override any GCC internal prototype to avoid an error.
  30854. Use char because int might match the return type of a GCC
  30855. builtin and then its argument prototype would still apply. */
  30856. #ifdef __cplusplus
  30857. extern "C"
  30858. #endif
  30859. char $ac_func ();
  30860. /* The GNU C library defines this for functions which it implements
  30861. to always fail with ENOSYS. Some functions are actually named
  30862. something starting with __ and the normal name is an alias. */
  30863. #if defined __stub_$ac_func || defined __stub___$ac_func
  30864. choke me
  30865. #endif
  30866. int
  30867. main ()
  30868. {
  30869. return $ac_func ();
  30870. ;
  30871. return 0;
  30872. }
  30873. _ACEOF
  30874. rm -f conftest.$ac_objext conftest$ac_exeext
  30875. if { (ac_try="$ac_link"
  30876. case "(($ac_try" in
  30877. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30878. *) ac_try_echo=$ac_try;;
  30879. esac
  30880. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30881. $as_echo "$ac_try_echo") >&5
  30882. (eval "$ac_link") 2>conftest.er1
  30883. ac_status=$?
  30884. grep -v '^ *+' conftest.er1 >conftest.err
  30885. rm -f conftest.er1
  30886. cat conftest.err >&5
  30887. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30888. (exit $ac_status); } && {
  30889. test -z "$ac_c_werror_flag" ||
  30890. test ! -s conftest.err
  30891. } && test -s conftest$ac_exeext && {
  30892. test "$cross_compiling" = yes ||
  30893. $as_test_x conftest$ac_exeext
  30894. }; then
  30895. eval "$as_ac_var=yes"
  30896. else
  30897. $as_echo "$as_me: failed program was:" >&5
  30898. sed 's/^/| /' conftest.$ac_ext >&5
  30899. eval "$as_ac_var=no"
  30900. fi
  30901. rm -rf conftest.dSYM
  30902. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  30903. conftest$ac_exeext conftest.$ac_ext
  30904. fi
  30905. ac_res=`eval 'as_val=${'$as_ac_var'}
  30906. $as_echo "$as_val"'`
  30907. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  30908. $as_echo "$ac_res" >&6; }
  30909. as_val=`eval 'as_val=${'$as_ac_var'}
  30910. $as_echo "$as_val"'`
  30911. if test "x$as_val" = x""yes; then
  30912. cat >>confdefs.h <<_ACEOF
  30913. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  30914. _ACEOF
  30915. fi
  30916. done
  30917. # On past versions of Solaris, believe 8 through 10 at least, you
  30918. # had to write "pthread_once_t foo = { PTHREAD_ONCE_INIT };".
  30919. # This is contrary to POSIX:
  30920. # http://www.opengroup.org/onlinepubs/000095399/functions/pthread_once.html
  30921. # Check here if this style is required.
  30922. #
  30923. # glibc (2.3.6 at least) works both with or without braces, so the
  30924. # test checks whether it works without.
  30925. #
  30926. if test "$GCC" = "yes"; then
  30927. # Since GCC only issues a warning for missing braces, so we need
  30928. # `-Werror' to catch it.
  30929. CFLAGS="-Werror -Wmissing-braces $CFLAGS"
  30930. fi
  30931. { $as_echo "$as_me:$LINENO: checking whether PTHREAD_ONCE_INIT needs braces" >&5
  30932. $as_echo_n "checking whether PTHREAD_ONCE_INIT needs braces... " >&6; }
  30933. if test "${guile_cv_need_braces_on_pthread_once_init+set}" = set; then
  30934. $as_echo_n "(cached) " >&6
  30935. else
  30936. cat >conftest.$ac_ext <<_ACEOF
  30937. #include <pthread.h>
  30938. pthread_once_t foo = PTHREAD_ONCE_INIT;
  30939. _ACEOF
  30940. rm -f conftest.$ac_objext
  30941. if { (ac_try="$ac_compile"
  30942. case "(($ac_try" in
  30943. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30944. *) ac_try_echo=$ac_try;;
  30945. esac
  30946. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30947. $as_echo "$ac_try_echo") >&5
  30948. (eval "$ac_compile") 2>conftest.er1
  30949. ac_status=$?
  30950. grep -v '^ *+' conftest.er1 >conftest.err
  30951. rm -f conftest.er1
  30952. cat conftest.err >&5
  30953. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30954. (exit $ac_status); } && {
  30955. test -z "$ac_c_werror_flag" ||
  30956. test ! -s conftest.err
  30957. } && test -s conftest.$ac_objext; then
  30958. guile_cv_need_braces_on_pthread_once_init=no
  30959. else
  30960. $as_echo "$as_me: failed program was:" >&5
  30961. sed 's/^/| /' conftest.$ac_ext >&5
  30962. guile_cv_need_braces_on_pthread_once_init=yes
  30963. fi
  30964. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30965. fi
  30966. { $as_echo "$as_me:$LINENO: result: $guile_cv_need_braces_on_pthread_once_init" >&5
  30967. $as_echo "$guile_cv_need_braces_on_pthread_once_init" >&6; }
  30968. if test "$guile_cv_need_braces_on_pthread_once_init" = yes; then
  30969. SCM_I_GSC_NEED_BRACES_ON_PTHREAD_ONCE_INIT=1
  30970. fi
  30971. # Same problem with `PTHREAD_MUTEX_INITIALIZER', e.g., on IRIX
  30972. # 6.5.30m with GCC 3.3.
  30973. { $as_echo "$as_me:$LINENO: checking whether PTHREAD_MUTEX_INITIALIZER needs braces" >&5
  30974. $as_echo_n "checking whether PTHREAD_MUTEX_INITIALIZER needs braces... " >&6; }
  30975. if test "${guile_cv_need_braces_on_pthread_mutex_initializer+set}" = set; then
  30976. $as_echo_n "(cached) " >&6
  30977. else
  30978. cat >conftest.$ac_ext <<_ACEOF
  30979. #include <pthread.h>
  30980. pthread_mutex_t foo = PTHREAD_MUTEX_INITIALIZER;
  30981. _ACEOF
  30982. rm -f conftest.$ac_objext
  30983. if { (ac_try="$ac_compile"
  30984. case "(($ac_try" in
  30985. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30986. *) ac_try_echo=$ac_try;;
  30987. esac
  30988. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30989. $as_echo "$ac_try_echo") >&5
  30990. (eval "$ac_compile") 2>conftest.er1
  30991. ac_status=$?
  30992. grep -v '^ *+' conftest.er1 >conftest.err
  30993. rm -f conftest.er1
  30994. cat conftest.err >&5
  30995. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30996. (exit $ac_status); } && {
  30997. test -z "$ac_c_werror_flag" ||
  30998. test ! -s conftest.err
  30999. } && test -s conftest.$ac_objext; then
  31000. guile_cv_need_braces_on_pthread_mutex_initializer=no
  31001. else
  31002. $as_echo "$as_me: failed program was:" >&5
  31003. sed 's/^/| /' conftest.$ac_ext >&5
  31004. guile_cv_need_braces_on_pthread_mutex_initializer=yes
  31005. fi
  31006. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31007. fi
  31008. { $as_echo "$as_me:$LINENO: result: $guile_cv_need_braces_on_pthread_mutex_initializer" >&5
  31009. $as_echo "$guile_cv_need_braces_on_pthread_mutex_initializer" >&6; }
  31010. if test "$guile_cv_need_braces_on_pthread_mutex_initializer" = yes; then
  31011. SCM_I_GSC_NEED_BRACES_ON_PTHREAD_MUTEX_INITIALIZER=1
  31012. fi
  31013. CFLAGS="$old_CFLAGS"
  31014. # On Solaris, sched_yield lives in -lrt.
  31015. { $as_echo "$as_me:$LINENO: checking for library containing sched_yield" >&5
  31016. $as_echo_n "checking for library containing sched_yield... " >&6; }
  31017. if test "${ac_cv_search_sched_yield+set}" = set; then
  31018. $as_echo_n "(cached) " >&6
  31019. else
  31020. ac_func_search_save_LIBS=$LIBS
  31021. cat >conftest.$ac_ext <<_ACEOF
  31022. /* confdefs.h. */
  31023. _ACEOF
  31024. cat confdefs.h >>conftest.$ac_ext
  31025. cat >>conftest.$ac_ext <<_ACEOF
  31026. /* end confdefs.h. */
  31027. /* Override any GCC internal prototype to avoid an error.
  31028. Use char because int might match the return type of a GCC
  31029. builtin and then its argument prototype would still apply. */
  31030. #ifdef __cplusplus
  31031. extern "C"
  31032. #endif
  31033. char sched_yield ();
  31034. int
  31035. main ()
  31036. {
  31037. return sched_yield ();
  31038. ;
  31039. return 0;
  31040. }
  31041. _ACEOF
  31042. for ac_lib in '' rt; do
  31043. if test -z "$ac_lib"; then
  31044. ac_res="none required"
  31045. else
  31046. ac_res=-l$ac_lib
  31047. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  31048. fi
  31049. rm -f conftest.$ac_objext conftest$ac_exeext
  31050. if { (ac_try="$ac_link"
  31051. case "(($ac_try" in
  31052. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31053. *) ac_try_echo=$ac_try;;
  31054. esac
  31055. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  31056. $as_echo "$ac_try_echo") >&5
  31057. (eval "$ac_link") 2>conftest.er1
  31058. ac_status=$?
  31059. grep -v '^ *+' conftest.er1 >conftest.err
  31060. rm -f conftest.er1
  31061. cat conftest.err >&5
  31062. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31063. (exit $ac_status); } && {
  31064. test -z "$ac_c_werror_flag" ||
  31065. test ! -s conftest.err
  31066. } && test -s conftest$ac_exeext && {
  31067. test "$cross_compiling" = yes ||
  31068. $as_test_x conftest$ac_exeext
  31069. }; then
  31070. ac_cv_search_sched_yield=$ac_res
  31071. else
  31072. $as_echo "$as_me: failed program was:" >&5
  31073. sed 's/^/| /' conftest.$ac_ext >&5
  31074. fi
  31075. rm -rf conftest.dSYM
  31076. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  31077. conftest$ac_exeext
  31078. if test "${ac_cv_search_sched_yield+set}" = set; then
  31079. break
  31080. fi
  31081. done
  31082. if test "${ac_cv_search_sched_yield+set}" = set; then
  31083. :
  31084. else
  31085. ac_cv_search_sched_yield=no
  31086. fi
  31087. rm conftest.$ac_ext
  31088. LIBS=$ac_func_search_save_LIBS
  31089. fi
  31090. { $as_echo "$as_me:$LINENO: result: $ac_cv_search_sched_yield" >&5
  31091. $as_echo "$ac_cv_search_sched_yield" >&6; }
  31092. ac_res=$ac_cv_search_sched_yield
  31093. if test "$ac_res" != no; then
  31094. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  31095. fi
  31096. ;;
  31097. esac
  31098. case "$with_threads" in
  31099. "pthreads")
  31100. ;;
  31101. "no" | "null")
  31102. SCM_I_GSC_USE_NULL_THREADS=1
  31103. with_threads="null-threads"
  31104. ;;
  31105. * )
  31106. { { $as_echo "$as_me:$LINENO: error: invalid value for --with-threads: $with_threads" >&5
  31107. $as_echo "$as_me: error: invalid value for --with-threads: $with_threads" >&2;}
  31108. { (exit 1); exit 1; }; }
  31109. ;;
  31110. esac
  31111. { $as_echo "$as_me:$LINENO: checking what kind of threads to support" >&5
  31112. $as_echo_n "checking what kind of threads to support... " >&6; }
  31113. { $as_echo "$as_me:$LINENO: result: $with_threads" >&5
  31114. $as_echo "$with_threads" >&6; }
  31115. if test "x$build_pthread_support" = "xyes"; then
  31116. BUILD_PTHREAD_SUPPORT_TRUE=
  31117. BUILD_PTHREAD_SUPPORT_FALSE='#'
  31118. else
  31119. BUILD_PTHREAD_SUPPORT_TRUE='#'
  31120. BUILD_PTHREAD_SUPPORT_FALSE=
  31121. fi
  31122. ## Check whether pthread_attr_getstack works for the main thread
  31123. if test "$with_threads" = pthreads; then
  31124. { $as_echo "$as_me:$LINENO: checking whether pthread_attr_getstack works for the main thread" >&5
  31125. $as_echo_n "checking whether pthread_attr_getstack works for the main thread... " >&6; }
  31126. old_CFLAGS="$CFLAGS"
  31127. CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
  31128. if test "$cross_compiling" = yes; then
  31129. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  31130. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  31131. { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  31132. See \`config.log' for more details." >&5
  31133. $as_echo "$as_me: error: cannot run test program while cross compiling
  31134. See \`config.log' for more details." >&2;}
  31135. { (exit 1); exit 1; }; }; }
  31136. else
  31137. cat >conftest.$ac_ext <<_ACEOF
  31138. /* confdefs.h. */
  31139. _ACEOF
  31140. cat confdefs.h >>conftest.$ac_ext
  31141. cat >>conftest.$ac_ext <<_ACEOF
  31142. /* end confdefs.h. */
  31143. #if HAVE_PTHREAD_ATTR_GETSTACK
  31144. #include <pthread.h>
  31145. int main ()
  31146. {
  31147. pthread_attr_t attr;
  31148. void *start, *end;
  31149. size_t size;
  31150. pthread_getattr_np (pthread_self (), &attr);
  31151. pthread_attr_getstack (&attr, &start, &size);
  31152. end = (char *)start + size;
  31153. if ((void *)&attr < start || (void *)&attr >= end)
  31154. return 1;
  31155. else
  31156. return 0;
  31157. }
  31158. #else
  31159. int main ()
  31160. {
  31161. return 1;
  31162. }
  31163. #endif
  31164. _ACEOF
  31165. rm -f conftest$ac_exeext
  31166. if { (ac_try="$ac_link"
  31167. case "(($ac_try" in
  31168. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31169. *) ac_try_echo=$ac_try;;
  31170. esac
  31171. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  31172. $as_echo "$ac_try_echo") >&5
  31173. (eval "$ac_link") 2>&5
  31174. ac_status=$?
  31175. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31176. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  31177. { (case "(($ac_try" in
  31178. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31179. *) ac_try_echo=$ac_try;;
  31180. esac
  31181. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  31182. $as_echo "$ac_try_echo") >&5
  31183. (eval "$ac_try") 2>&5
  31184. ac_status=$?
  31185. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31186. (exit $ac_status); }; }; then
  31187. works=yes
  31188. cat >>confdefs.h <<\_ACEOF
  31189. #define PTHREAD_ATTR_GETSTACK_WORKS 1
  31190. _ACEOF
  31191. else
  31192. $as_echo "$as_me: program exited with status $ac_status" >&5
  31193. $as_echo "$as_me: failed program was:" >&5
  31194. sed 's/^/| /' conftest.$ac_ext >&5
  31195. ( exit $ac_status )
  31196. works=no
  31197. fi
  31198. rm -rf conftest.dSYM
  31199. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  31200. fi
  31201. CFLAGS="$old_CFLAGS"
  31202. { $as_echo "$as_me:$LINENO: result: $works" >&5
  31203. $as_echo "$works" >&6; }
  31204. fi # with_threads=pthreads
  31205. ## Cross building
  31206. if test "$cross_compiling" = "yes"; then
  31207. { $as_echo "$as_me:$LINENO: checking cc for build" >&5
  31208. $as_echo_n "checking cc for build... " >&6; }
  31209. ## /usr/bin/cc still uses wrong assembler
  31210. ## CC_FOR_BUILD="${CC_FOR_BUILD-/usr/bincc}"
  31211. CC_FOR_BUILD="${CC_FOR_BUILD-PATH=/usr/bin:$PATH cc}"
  31212. else
  31213. CC_FOR_BUILD="${CC_FOR_BUILD-$CC}"
  31214. fi
  31215. ## AC_MSG_CHECKING("if we are cross compiling")
  31216. ## AC_MSG_RESULT($cross_compiling)
  31217. if test "$cross_compiling" = "yes"; then
  31218. { $as_echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
  31219. $as_echo "$CC_FOR_BUILD" >&6; }
  31220. fi
  31221. ## No need as yet to be more elaborate
  31222. CCLD_FOR_BUILD="$CC_FOR_BUILD"
  31223. ## libtool erroneously calls CC_FOR_BUILD HOST_CC;
  31224. ## --HOST is the platform that PACKAGE is compiled for.
  31225. HOST_CC="$CC_FOR_BUILD"
  31226. if test "$cross_compiling" = "yes"; then
  31227. { $as_echo "$as_me:$LINENO: checking guile for build" >&5
  31228. $as_echo_n "checking guile for build... " >&6; }
  31229. GUILE_FOR_BUILD="${GUILE_FOR_BUILD-guile}"
  31230. else
  31231. GUILE_FOR_BUILD='$(preinstguile)'
  31232. fi
  31233. ## AC_MSG_CHECKING("if we are cross compiling")
  31234. ## AC_MSG_RESULT($cross_compiling)
  31235. if test "$cross_compiling" = "yes"; then
  31236. { $as_echo "$as_me:$LINENO: result: $GUILE_FOR_BUILD" >&5
  31237. $as_echo "$GUILE_FOR_BUILD" >&6; }
  31238. fi
  31239. ## If we're using GCC, ask for aggressive warnings.
  31240. case "$GCC" in
  31241. yes )
  31242. ## We had -Wstrict-prototypes in here for a bit, but Guile does too
  31243. ## much stuff with generic function pointers for that to really be
  31244. ## less than exasperating.
  31245. ## -Wpointer-arith was here too, but something changed in gcc/glibc
  31246. ## and it became equally exasperating (gcc 2.95 and/or glibc 2.1.2).
  31247. CFLAGS="$CFLAGS -Wall -Wmissing-prototypes"
  31248. # Do this here so we don't screw up any of the tests above that might
  31249. # not be "warning free"
  31250. if test "${GUILE_ERROR_ON_WARNING}" = yes
  31251. then
  31252. CFLAGS="${CFLAGS} -Werror"
  31253. enable_compile_warnings=no
  31254. fi
  31255. ;;
  31256. esac
  31257. ## If we're creating a shared library (using libtool!), then we'll
  31258. ## need to generate a list of .lo files corresponding to the .o files
  31259. ## given in LIBOBJS. We'll call it LIBLOBJS.
  31260. LIBLOBJS="`echo ${LIBOBJS} | sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`"
  31261. ## We also need to create corresponding .doc and .x files
  31262. EXTRA_DOT_DOC_FILES="`echo ${LIBOBJS} | sed 's,\.[^.]* ,.doc ,g;s,\.[^.]*$,.doc,'`"
  31263. EXTRA_DOT_X_FILES="`echo ${LIBOBJS} | sed 's,\.[^.]* ,.x ,g;s,\.[^.]*$,.x,'`"
  31264. #######################################################################
  31265. # library versioning
  31266. #######################################################################
  31267. GUILE_LIBS="$LDFLAGS $LIBS"
  31268. GUILE_CFLAGS="$CPPFLAGS $PTHREAD_CFLAGS"
  31269. top_builddir_absolute=`pwd`
  31270. top_srcdir_absolute=`(cd $srcdir && pwd)`
  31271. pkgdatadir="$datadir/guile"
  31272. sitedir="$pkgdatadir/site"
  31273. # Additional SCM_I_GSC definitions are above.
  31274. ac_config_files="$ac_config_files libguile/gen-scmconfig.h"
  31275. ac_config_files="$ac_config_files Makefile am/Makefile benchmark-suite/Makefile doc/Makefile doc/goops/Makefile doc/r5rs/Makefile doc/ref/Makefile doc/tutorial/Makefile emacs/Makefile examples/Makefile guile-config/Makefile ice-9/Makefile lang/Makefile libguile/Makefile oop/Makefile oop/goops/Makefile scripts/Makefile srfi/Makefile test-suite/Makefile test-suite/standalone/Makefile"
  31276. ac_config_files="$ac_config_files guile-1.8.pc"
  31277. ac_config_files="$ac_config_files check-guile"
  31278. ac_config_files="$ac_config_files benchmark-guile"
  31279. ac_config_files="$ac_config_files guile-tools"
  31280. ac_config_files="$ac_config_files pre-inst-guile"
  31281. ac_config_files="$ac_config_files pre-inst-guile-env"
  31282. ac_config_files="$ac_config_files libguile/guile-snarf"
  31283. ac_config_files="$ac_config_files libguile/guile-doc-snarf"
  31284. ac_config_files="$ac_config_files libguile/guile-func-name-check"
  31285. ac_config_files="$ac_config_files libguile/guile-snarf-docs"
  31286. ac_config_files="$ac_config_files test-suite/standalone/test-use-srfi"
  31287. ac_config_files="$ac_config_files test-suite/standalone/test-fast-slot-ref"
  31288. cat >confcache <<\_ACEOF
  31289. # This file is a shell script that caches the results of configure
  31290. # tests run on this system so they can be shared between configure
  31291. # scripts and configure runs, see configure's option --config-cache.
  31292. # It is not useful on other systems. If it contains results you don't
  31293. # want to keep, you may remove or edit it.
  31294. #
  31295. # config.status only pays attention to the cache file if you give it
  31296. # the --recheck option to rerun configure.
  31297. #
  31298. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  31299. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  31300. # following values.
  31301. _ACEOF
  31302. # The following way of writing the cache mishandles newlines in values,
  31303. # but we know of no workaround that is simple, portable, and efficient.
  31304. # So, we kill variables containing newlines.
  31305. # Ultrix sh set writes to stderr and can't be redirected directly,
  31306. # and sets the high bit in the cache file unless we assign to the vars.
  31307. (
  31308. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  31309. eval ac_val=\$$ac_var
  31310. case $ac_val in #(
  31311. *${as_nl}*)
  31312. case $ac_var in #(
  31313. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  31314. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  31315. esac
  31316. case $ac_var in #(
  31317. _ | IFS | as_nl) ;; #(
  31318. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  31319. *) $as_unset $ac_var ;;
  31320. esac ;;
  31321. esac
  31322. done
  31323. (set) 2>&1 |
  31324. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  31325. *${as_nl}ac_space=\ *)
  31326. # `set' does not quote correctly, so add quotes (double-quote
  31327. # substitution turns \\\\ into \\, and sed turns \\ into \).
  31328. sed -n \
  31329. "s/'/'\\\\''/g;
  31330. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  31331. ;; #(
  31332. *)
  31333. # `set' quotes correctly as required by POSIX, so do not add quotes.
  31334. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  31335. ;;
  31336. esac |
  31337. sort
  31338. ) |
  31339. sed '
  31340. /^ac_cv_env_/b end
  31341. t clear
  31342. :clear
  31343. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  31344. t end
  31345. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  31346. :end' >>confcache
  31347. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  31348. if test -w "$cache_file"; then
  31349. test "x$cache_file" != "x/dev/null" &&
  31350. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  31351. $as_echo "$as_me: updating cache $cache_file" >&6;}
  31352. cat confcache >$cache_file
  31353. else
  31354. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  31355. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  31356. fi
  31357. fi
  31358. rm -f confcache
  31359. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  31360. # Let make expand exec_prefix.
  31361. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  31362. DEFS=-DHAVE_CONFIG_H
  31363. ac_libobjs=
  31364. ac_ltlibobjs=
  31365. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  31366. # 1. Remove the extension, and $U if already installed.
  31367. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  31368. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  31369. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  31370. # will be set to the directory where LIBOBJS objects are built.
  31371. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  31372. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  31373. done
  31374. LIBOBJS=$ac_libobjs
  31375. LTLIBOBJS=$ac_ltlibobjs
  31376. if test -n "$EXEEXT"; then
  31377. am__EXEEXT_TRUE=
  31378. am__EXEEXT_FALSE='#'
  31379. else
  31380. am__EXEEXT_TRUE='#'
  31381. am__EXEEXT_FALSE=
  31382. fi
  31383. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  31384. { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  31385. Usually this means the macro was only invoked conditionally." >&5
  31386. $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
  31387. Usually this means the macro was only invoked conditionally." >&2;}
  31388. { (exit 1); exit 1; }; }
  31389. fi
  31390. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  31391. { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  31392. Usually this means the macro was only invoked conditionally." >&5
  31393. $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  31394. Usually this means the macro was only invoked conditionally." >&2;}
  31395. { (exit 1); exit 1; }; }
  31396. fi
  31397. if test -z "${HAVE_MAKEINFO_TRUE}" && test -z "${HAVE_MAKEINFO_FALSE}"; then
  31398. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_MAKEINFO\" was never defined.
  31399. Usually this means the macro was only invoked conditionally." >&5
  31400. $as_echo "$as_me: error: conditional \"HAVE_MAKEINFO\" was never defined.
  31401. Usually this means the macro was only invoked conditionally." >&2;}
  31402. { (exit 1); exit 1; }; }
  31403. fi
  31404. if test -z "${BUILD_PTHREAD_SUPPORT_TRUE}" && test -z "${BUILD_PTHREAD_SUPPORT_FALSE}"; then
  31405. { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_PTHREAD_SUPPORT\" was never defined.
  31406. Usually this means the macro was only invoked conditionally." >&5
  31407. $as_echo "$as_me: error: conditional \"BUILD_PTHREAD_SUPPORT\" was never defined.
  31408. Usually this means the macro was only invoked conditionally." >&2;}
  31409. { (exit 1); exit 1; }; }
  31410. fi
  31411. : ${CONFIG_STATUS=./config.status}
  31412. ac_write_fail=0
  31413. ac_clean_files_save=$ac_clean_files
  31414. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  31415. { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  31416. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  31417. cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  31418. #! $SHELL
  31419. # Generated by $as_me.
  31420. # Run this file to recreate the current configuration.
  31421. # Compiler output produced by configure, useful for debugging
  31422. # configure, is in config.log if it exists.
  31423. debug=false
  31424. ac_cs_recheck=false
  31425. ac_cs_silent=false
  31426. SHELL=\${CONFIG_SHELL-$SHELL}
  31427. _ACEOF
  31428. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  31429. ## --------------------- ##
  31430. ## M4sh Initialization. ##
  31431. ## --------------------- ##
  31432. # Be more Bourne compatible
  31433. DUALCASE=1; export DUALCASE # for MKS sh
  31434. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  31435. emulate sh
  31436. NULLCMD=:
  31437. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  31438. # is contrary to our usage. Disable this feature.
  31439. alias -g '${1+"$@"}'='"$@"'
  31440. setopt NO_GLOB_SUBST
  31441. else
  31442. case `(set -o) 2>/dev/null` in
  31443. *posix*) set -o posix ;;
  31444. esac
  31445. fi
  31446. # PATH needs CR
  31447. # Avoid depending upon Character Ranges.
  31448. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  31449. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  31450. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  31451. as_cr_digits='0123456789'
  31452. as_cr_alnum=$as_cr_Letters$as_cr_digits
  31453. as_nl='
  31454. '
  31455. export as_nl
  31456. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  31457. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  31458. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  31459. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  31460. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  31461. as_echo='printf %s\n'
  31462. as_echo_n='printf %s'
  31463. else
  31464. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  31465. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  31466. as_echo_n='/usr/ucb/echo -n'
  31467. else
  31468. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  31469. as_echo_n_body='eval
  31470. arg=$1;
  31471. case $arg in
  31472. *"$as_nl"*)
  31473. expr "X$arg" : "X\\(.*\\)$as_nl";
  31474. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  31475. esac;
  31476. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  31477. '
  31478. export as_echo_n_body
  31479. as_echo_n='sh -c $as_echo_n_body as_echo'
  31480. fi
  31481. export as_echo_body
  31482. as_echo='sh -c $as_echo_body as_echo'
  31483. fi
  31484. # The user is always right.
  31485. if test "${PATH_SEPARATOR+set}" != set; then
  31486. PATH_SEPARATOR=:
  31487. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  31488. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  31489. PATH_SEPARATOR=';'
  31490. }
  31491. fi
  31492. # Support unset when possible.
  31493. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  31494. as_unset=unset
  31495. else
  31496. as_unset=false
  31497. fi
  31498. # IFS
  31499. # We need space, tab and new line, in precisely that order. Quoting is
  31500. # there to prevent editors from complaining about space-tab.
  31501. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  31502. # splitting by setting IFS to empty value.)
  31503. IFS=" "" $as_nl"
  31504. # Find who we are. Look in the path if we contain no directory separator.
  31505. case $0 in
  31506. *[\\/]* ) as_myself=$0 ;;
  31507. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  31508. for as_dir in $PATH
  31509. do
  31510. IFS=$as_save_IFS
  31511. test -z "$as_dir" && as_dir=.
  31512. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  31513. done
  31514. IFS=$as_save_IFS
  31515. ;;
  31516. esac
  31517. # We did not find ourselves, most probably we were run as `sh COMMAND'
  31518. # in which case we are not to be found in the path.
  31519. if test "x$as_myself" = x; then
  31520. as_myself=$0
  31521. fi
  31522. if test ! -f "$as_myself"; then
  31523. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  31524. { (exit 1); exit 1; }
  31525. fi
  31526. # Work around bugs in pre-3.0 UWIN ksh.
  31527. for as_var in ENV MAIL MAILPATH
  31528. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  31529. done
  31530. PS1='$ '
  31531. PS2='> '
  31532. PS4='+ '
  31533. # NLS nuisances.
  31534. LC_ALL=C
  31535. export LC_ALL
  31536. LANGUAGE=C
  31537. export LANGUAGE
  31538. # Required to use basename.
  31539. if expr a : '\(a\)' >/dev/null 2>&1 &&
  31540. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  31541. as_expr=expr
  31542. else
  31543. as_expr=false
  31544. fi
  31545. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  31546. as_basename=basename
  31547. else
  31548. as_basename=false
  31549. fi
  31550. # Name of the executable.
  31551. as_me=`$as_basename -- "$0" ||
  31552. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  31553. X"$0" : 'X\(//\)$' \| \
  31554. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  31555. $as_echo X/"$0" |
  31556. sed '/^.*\/\([^/][^/]*\)\/*$/{
  31557. s//\1/
  31558. q
  31559. }
  31560. /^X\/\(\/\/\)$/{
  31561. s//\1/
  31562. q
  31563. }
  31564. /^X\/\(\/\).*/{
  31565. s//\1/
  31566. q
  31567. }
  31568. s/.*/./; q'`
  31569. # CDPATH.
  31570. $as_unset CDPATH
  31571. as_lineno_1=$LINENO
  31572. as_lineno_2=$LINENO
  31573. test "x$as_lineno_1" != "x$as_lineno_2" &&
  31574. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  31575. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  31576. # uniformly replaced by the line number. The first 'sed' inserts a
  31577. # line-number line after each line using $LINENO; the second 'sed'
  31578. # does the real work. The second script uses 'N' to pair each
  31579. # line-number line with the line containing $LINENO, and appends
  31580. # trailing '-' during substitution so that $LINENO is not a special
  31581. # case at line end.
  31582. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  31583. # scripts with optimization help from Paolo Bonzini. Blame Lee
  31584. # E. McMahon (1931-1989) for sed's syntax. :-)
  31585. sed -n '
  31586. p
  31587. /[$]LINENO/=
  31588. ' <$as_myself |
  31589. sed '
  31590. s/[$]LINENO.*/&-/
  31591. t lineno
  31592. b
  31593. :lineno
  31594. N
  31595. :loop
  31596. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  31597. t loop
  31598. s/-\n.*//
  31599. ' >$as_me.lineno &&
  31600. chmod +x "$as_me.lineno" ||
  31601. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  31602. { (exit 1); exit 1; }; }
  31603. # Don't try to exec as it changes $[0], causing all sort of problems
  31604. # (the dirname of $[0] is not the place where we might find the
  31605. # original and so on. Autoconf is especially sensitive to this).
  31606. . "./$as_me.lineno"
  31607. # Exit status is that of the last command.
  31608. exit
  31609. }
  31610. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  31611. as_dirname=dirname
  31612. else
  31613. as_dirname=false
  31614. fi
  31615. ECHO_C= ECHO_N= ECHO_T=
  31616. case `echo -n x` in
  31617. -n*)
  31618. case `echo 'x\c'` in
  31619. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  31620. *) ECHO_C='\c';;
  31621. esac;;
  31622. *)
  31623. ECHO_N='-n';;
  31624. esac
  31625. if expr a : '\(a\)' >/dev/null 2>&1 &&
  31626. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  31627. as_expr=expr
  31628. else
  31629. as_expr=false
  31630. fi
  31631. rm -f conf$$ conf$$.exe conf$$.file
  31632. if test -d conf$$.dir; then
  31633. rm -f conf$$.dir/conf$$.file
  31634. else
  31635. rm -f conf$$.dir
  31636. mkdir conf$$.dir 2>/dev/null
  31637. fi
  31638. if (echo >conf$$.file) 2>/dev/null; then
  31639. if ln -s conf$$.file conf$$ 2>/dev/null; then
  31640. as_ln_s='ln -s'
  31641. # ... but there are two gotchas:
  31642. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  31643. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  31644. # In both cases, we have to default to `cp -p'.
  31645. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  31646. as_ln_s='cp -p'
  31647. elif ln conf$$.file conf$$ 2>/dev/null; then
  31648. as_ln_s=ln
  31649. else
  31650. as_ln_s='cp -p'
  31651. fi
  31652. else
  31653. as_ln_s='cp -p'
  31654. fi
  31655. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  31656. rmdir conf$$.dir 2>/dev/null
  31657. if mkdir -p . 2>/dev/null; then
  31658. as_mkdir_p=:
  31659. else
  31660. test -d ./-p && rmdir ./-p
  31661. as_mkdir_p=false
  31662. fi
  31663. if test -x / >/dev/null 2>&1; then
  31664. as_test_x='test -x'
  31665. else
  31666. if ls -dL / >/dev/null 2>&1; then
  31667. as_ls_L_option=L
  31668. else
  31669. as_ls_L_option=
  31670. fi
  31671. as_test_x='
  31672. eval sh -c '\''
  31673. if test -d "$1"; then
  31674. test -d "$1/.";
  31675. else
  31676. case $1 in
  31677. -*)set "./$1";;
  31678. esac;
  31679. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  31680. ???[sx]*):;;*)false;;esac;fi
  31681. '\'' sh
  31682. '
  31683. fi
  31684. as_executable_p=$as_test_x
  31685. # Sed expression to map a string onto a valid CPP name.
  31686. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  31687. # Sed expression to map a string onto a valid variable name.
  31688. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  31689. exec 6>&1
  31690. # Save the log message, to keep $[0] and so on meaningful, and to
  31691. # report actual input values of CONFIG_FILES etc. instead of their
  31692. # values after options handling.
  31693. ac_log="
  31694. This file was extended by guile $as_me 1.8.7, which was
  31695. generated by GNU Autoconf 2.63. Invocation command line was
  31696. CONFIG_FILES = $CONFIG_FILES
  31697. CONFIG_HEADERS = $CONFIG_HEADERS
  31698. CONFIG_LINKS = $CONFIG_LINKS
  31699. CONFIG_COMMANDS = $CONFIG_COMMANDS
  31700. $ $0 $@
  31701. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  31702. "
  31703. _ACEOF
  31704. case $ac_config_files in *"
  31705. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  31706. esac
  31707. case $ac_config_headers in *"
  31708. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  31709. esac
  31710. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  31711. # Files that config.status was made for.
  31712. config_files="$ac_config_files"
  31713. config_headers="$ac_config_headers"
  31714. config_commands="$ac_config_commands"
  31715. _ACEOF
  31716. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  31717. ac_cs_usage="\
  31718. \`$as_me' instantiates files from templates according to the
  31719. current configuration.
  31720. Usage: $0 [OPTION]... [FILE]...
  31721. -h, --help print this help, then exit
  31722. -V, --version print version number and configuration settings, then exit
  31723. -q, --quiet, --silent
  31724. do not print progress messages
  31725. -d, --debug don't remove temporary files
  31726. --recheck update $as_me by reconfiguring in the same conditions
  31727. --file=FILE[:TEMPLATE]
  31728. instantiate the configuration file FILE
  31729. --header=FILE[:TEMPLATE]
  31730. instantiate the configuration header FILE
  31731. Configuration files:
  31732. $config_files
  31733. Configuration headers:
  31734. $config_headers
  31735. Configuration commands:
  31736. $config_commands
  31737. Report bugs to <bug-autoconf@gnu.org>."
  31738. _ACEOF
  31739. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  31740. ac_cs_version="\\
  31741. guile config.status 1.8.7
  31742. configured by $0, generated by GNU Autoconf 2.63,
  31743. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  31744. Copyright (C) 2008 Free Software Foundation, Inc.
  31745. This config.status script is free software; the Free Software Foundation
  31746. gives unlimited permission to copy, distribute and modify it."
  31747. ac_pwd='$ac_pwd'
  31748. srcdir='$srcdir'
  31749. INSTALL='$INSTALL'
  31750. MKDIR_P='$MKDIR_P'
  31751. AWK='$AWK'
  31752. test -n "\$AWK" || AWK=awk
  31753. _ACEOF
  31754. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  31755. # The default lists apply if the user does not specify any file.
  31756. ac_need_defaults=:
  31757. while test $# != 0
  31758. do
  31759. case $1 in
  31760. --*=*)
  31761. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  31762. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  31763. ac_shift=:
  31764. ;;
  31765. *)
  31766. ac_option=$1
  31767. ac_optarg=$2
  31768. ac_shift=shift
  31769. ;;
  31770. esac
  31771. case $ac_option in
  31772. # Handling of the options.
  31773. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  31774. ac_cs_recheck=: ;;
  31775. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  31776. $as_echo "$ac_cs_version"; exit ;;
  31777. --debug | --debu | --deb | --de | --d | -d )
  31778. debug=: ;;
  31779. --file | --fil | --fi | --f )
  31780. $ac_shift
  31781. case $ac_optarg in
  31782. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  31783. esac
  31784. CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
  31785. ac_need_defaults=false;;
  31786. --header | --heade | --head | --hea )
  31787. $ac_shift
  31788. case $ac_optarg in
  31789. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  31790. esac
  31791. CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
  31792. ac_need_defaults=false;;
  31793. --he | --h)
  31794. # Conflict between --help and --header
  31795. { $as_echo "$as_me: error: ambiguous option: $1
  31796. Try \`$0 --help' for more information." >&2
  31797. { (exit 1); exit 1; }; };;
  31798. --help | --hel | -h )
  31799. $as_echo "$ac_cs_usage"; exit ;;
  31800. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  31801. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  31802. ac_cs_silent=: ;;
  31803. # This is an error.
  31804. -*) { $as_echo "$as_me: error: unrecognized option: $1
  31805. Try \`$0 --help' for more information." >&2
  31806. { (exit 1); exit 1; }; } ;;
  31807. *) ac_config_targets="$ac_config_targets $1"
  31808. ac_need_defaults=false ;;
  31809. esac
  31810. shift
  31811. done
  31812. ac_configure_extra_args=
  31813. if $ac_cs_silent; then
  31814. exec 6>/dev/null
  31815. ac_configure_extra_args="$ac_configure_extra_args --silent"
  31816. fi
  31817. _ACEOF
  31818. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  31819. if \$ac_cs_recheck; then
  31820. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  31821. shift
  31822. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  31823. CONFIG_SHELL='$SHELL'
  31824. export CONFIG_SHELL
  31825. exec "\$@"
  31826. fi
  31827. _ACEOF
  31828. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  31829. exec 5>>config.log
  31830. {
  31831. echo
  31832. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  31833. ## Running $as_me. ##
  31834. _ASBOX
  31835. $as_echo "$ac_log"
  31836. } >&5
  31837. _ACEOF
  31838. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  31839. #
  31840. # INIT-COMMANDS
  31841. #
  31842. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  31843. # The HP-UX ksh and POSIX shell print the target directory to stdout
  31844. # if CDPATH is set.
  31845. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  31846. sed_quote_subst='$sed_quote_subst'
  31847. double_quote_subst='$double_quote_subst'
  31848. delay_variable_subst='$delay_variable_subst'
  31849. AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
  31850. DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  31851. OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  31852. macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  31853. macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  31854. enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  31855. enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  31856. pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  31857. enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  31858. host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  31859. host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  31860. host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  31861. build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  31862. build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  31863. build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  31864. SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  31865. Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  31866. GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  31867. EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  31868. FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  31869. LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  31870. NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  31871. LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  31872. max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  31873. ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  31874. exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  31875. lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  31876. lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  31877. lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  31878. reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  31879. reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  31880. deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  31881. file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  31882. AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  31883. AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  31884. STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  31885. RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  31886. old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  31887. old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  31888. old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  31889. CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  31890. CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  31891. compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  31892. GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  31893. lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  31894. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  31895. 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"`'
  31896. 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"`'
  31897. objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  31898. SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  31899. ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  31900. MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  31901. lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  31902. lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  31903. lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  31904. lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  31905. lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  31906. need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  31907. DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  31908. NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  31909. LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  31910. OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  31911. OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  31912. libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  31913. shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  31914. extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  31915. archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  31916. enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  31917. export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  31918. whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  31919. compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  31920. old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  31921. old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  31922. archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  31923. archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  31924. module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  31925. module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  31926. with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  31927. allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  31928. no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  31929. hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  31930. hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  31931. hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  31932. hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  31933. hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  31934. hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  31935. hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  31936. hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  31937. inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  31938. link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  31939. fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  31940. always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  31941. export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  31942. exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  31943. include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  31944. prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  31945. file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  31946. variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  31947. need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  31948. need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  31949. version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  31950. runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  31951. shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  31952. shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  31953. libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  31954. library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  31955. soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  31956. postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  31957. postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  31958. finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  31959. finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  31960. hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  31961. sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  31962. sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  31963. hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  31964. enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  31965. enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  31966. enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  31967. old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  31968. striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  31969. LTCC='$LTCC'
  31970. LTCFLAGS='$LTCFLAGS'
  31971. compiler='$compiler_DEFAULT'
  31972. # Quote evaled strings.
  31973. for var in SED \
  31974. GREP \
  31975. EGREP \
  31976. FGREP \
  31977. LD \
  31978. NM \
  31979. LN_S \
  31980. lt_SP2NL \
  31981. lt_NL2SP \
  31982. reload_flag \
  31983. deplibs_check_method \
  31984. file_magic_cmd \
  31985. AR \
  31986. AR_FLAGS \
  31987. STRIP \
  31988. RANLIB \
  31989. CC \
  31990. CFLAGS \
  31991. compiler \
  31992. lt_cv_sys_global_symbol_pipe \
  31993. lt_cv_sys_global_symbol_to_cdecl \
  31994. lt_cv_sys_global_symbol_to_c_name_address \
  31995. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  31996. SHELL \
  31997. ECHO \
  31998. lt_prog_compiler_no_builtin_flag \
  31999. lt_prog_compiler_wl \
  32000. lt_prog_compiler_pic \
  32001. lt_prog_compiler_static \
  32002. lt_cv_prog_compiler_c_o \
  32003. need_locks \
  32004. DSYMUTIL \
  32005. NMEDIT \
  32006. LIPO \
  32007. OTOOL \
  32008. OTOOL64 \
  32009. shrext_cmds \
  32010. export_dynamic_flag_spec \
  32011. whole_archive_flag_spec \
  32012. compiler_needs_object \
  32013. with_gnu_ld \
  32014. allow_undefined_flag \
  32015. no_undefined_flag \
  32016. hardcode_libdir_flag_spec \
  32017. hardcode_libdir_flag_spec_ld \
  32018. hardcode_libdir_separator \
  32019. fix_srcfile_path \
  32020. exclude_expsyms \
  32021. include_expsyms \
  32022. file_list_spec \
  32023. variables_saved_for_relink \
  32024. libname_spec \
  32025. library_names_spec \
  32026. soname_spec \
  32027. finish_eval \
  32028. old_striplib \
  32029. striplib; do
  32030. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  32031. *[\\\\\\\`\\"\\\$]*)
  32032. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  32033. ;;
  32034. *)
  32035. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  32036. ;;
  32037. esac
  32038. done
  32039. # Double-quote double-evaled strings.
  32040. for var in reload_cmds \
  32041. old_postinstall_cmds \
  32042. old_postuninstall_cmds \
  32043. old_archive_cmds \
  32044. extract_expsyms_cmds \
  32045. old_archive_from_new_cmds \
  32046. old_archive_from_expsyms_cmds \
  32047. archive_cmds \
  32048. archive_expsym_cmds \
  32049. module_cmds \
  32050. module_expsym_cmds \
  32051. export_symbols_cmds \
  32052. prelink_cmds \
  32053. postinstall_cmds \
  32054. postuninstall_cmds \
  32055. finish_cmds \
  32056. sys_lib_search_path_spec \
  32057. sys_lib_dlsearch_path_spec; do
  32058. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  32059. *[\\\\\\\`\\"\\\$]*)
  32060. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  32061. ;;
  32062. *)
  32063. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  32064. ;;
  32065. esac
  32066. done
  32067. # Fix-up fallback echo if it was mangled by the above quoting rules.
  32068. case \$lt_ECHO in
  32069. *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  32070. ;;
  32071. esac
  32072. ac_aux_dir='$ac_aux_dir'
  32073. xsi_shell='$xsi_shell'
  32074. lt_shell_append='$lt_shell_append'
  32075. # See if we are running on zsh, and set the options which allow our
  32076. # commands through without removal of \ escapes INIT.
  32077. if test -n "\${ZSH_VERSION+set}" ; then
  32078. setopt NO_GLOB_SUBST
  32079. fi
  32080. PACKAGE='$PACKAGE'
  32081. VERSION='$VERSION'
  32082. TIMESTAMP='$TIMESTAMP'
  32083. RM='$RM'
  32084. ofile='$ofile'
  32085. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  32086. # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
  32087. # from automake < 1.5.
  32088. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  32089. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  32090. LINGUAS="${LINGUAS-%UNSET%}"
  32091. _ACEOF
  32092. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  32093. # Handling of arguments.
  32094. for ac_config_target in $ac_config_targets
  32095. do
  32096. case $ac_config_target in
  32097. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  32098. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  32099. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  32100. "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
  32101. "libguile/gen-scmconfig.h") CONFIG_FILES="$CONFIG_FILES libguile/gen-scmconfig.h" ;;
  32102. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  32103. "am/Makefile") CONFIG_FILES="$CONFIG_FILES am/Makefile" ;;
  32104. "benchmark-suite/Makefile") CONFIG_FILES="$CONFIG_FILES benchmark-suite/Makefile" ;;
  32105. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  32106. "doc/goops/Makefile") CONFIG_FILES="$CONFIG_FILES doc/goops/Makefile" ;;
  32107. "doc/r5rs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/r5rs/Makefile" ;;
  32108. "doc/ref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/ref/Makefile" ;;
  32109. "doc/tutorial/Makefile") CONFIG_FILES="$CONFIG_FILES doc/tutorial/Makefile" ;;
  32110. "emacs/Makefile") CONFIG_FILES="$CONFIG_FILES emacs/Makefile" ;;
  32111. "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
  32112. "guile-config/Makefile") CONFIG_FILES="$CONFIG_FILES guile-config/Makefile" ;;
  32113. "ice-9/Makefile") CONFIG_FILES="$CONFIG_FILES ice-9/Makefile" ;;
  32114. "lang/Makefile") CONFIG_FILES="$CONFIG_FILES lang/Makefile" ;;
  32115. "libguile/Makefile") CONFIG_FILES="$CONFIG_FILES libguile/Makefile" ;;
  32116. "oop/Makefile") CONFIG_FILES="$CONFIG_FILES oop/Makefile" ;;
  32117. "oop/goops/Makefile") CONFIG_FILES="$CONFIG_FILES oop/goops/Makefile" ;;
  32118. "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
  32119. "srfi/Makefile") CONFIG_FILES="$CONFIG_FILES srfi/Makefile" ;;
  32120. "test-suite/Makefile") CONFIG_FILES="$CONFIG_FILES test-suite/Makefile" ;;
  32121. "test-suite/standalone/Makefile") CONFIG_FILES="$CONFIG_FILES test-suite/standalone/Makefile" ;;
  32122. "guile-1.8.pc") CONFIG_FILES="$CONFIG_FILES guile-1.8.pc" ;;
  32123. "check-guile") CONFIG_FILES="$CONFIG_FILES check-guile" ;;
  32124. "benchmark-guile") CONFIG_FILES="$CONFIG_FILES benchmark-guile" ;;
  32125. "guile-tools") CONFIG_FILES="$CONFIG_FILES guile-tools" ;;
  32126. "pre-inst-guile") CONFIG_FILES="$CONFIG_FILES pre-inst-guile" ;;
  32127. "pre-inst-guile-env") CONFIG_FILES="$CONFIG_FILES pre-inst-guile-env" ;;
  32128. "libguile/guile-snarf") CONFIG_FILES="$CONFIG_FILES libguile/guile-snarf" ;;
  32129. "libguile/guile-doc-snarf") CONFIG_FILES="$CONFIG_FILES libguile/guile-doc-snarf" ;;
  32130. "libguile/guile-func-name-check") CONFIG_FILES="$CONFIG_FILES libguile/guile-func-name-check" ;;
  32131. "libguile/guile-snarf-docs") CONFIG_FILES="$CONFIG_FILES libguile/guile-snarf-docs" ;;
  32132. "test-suite/standalone/test-use-srfi") CONFIG_FILES="$CONFIG_FILES test-suite/standalone/test-use-srfi" ;;
  32133. "test-suite/standalone/test-fast-slot-ref") CONFIG_FILES="$CONFIG_FILES test-suite/standalone/test-fast-slot-ref" ;;
  32134. *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  32135. $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  32136. { (exit 1); exit 1; }; };;
  32137. esac
  32138. done
  32139. # If the user did not use the arguments to specify the items to instantiate,
  32140. # then the envvar interface is used. Set only those that are not.
  32141. # We use the long form for the default assignment because of an extremely
  32142. # bizarre bug on SunOS 4.1.3.
  32143. if $ac_need_defaults; then
  32144. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  32145. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  32146. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  32147. fi
  32148. # Have a temporary directory for convenience. Make it in the build tree
  32149. # simply because there is no reason against having it here, and in addition,
  32150. # creating and moving files from /tmp can sometimes cause problems.
  32151. # Hook for its removal unless debugging.
  32152. # Note that there is a small window in which the directory will not be cleaned:
  32153. # after its creation but before its name has been assigned to `$tmp'.
  32154. $debug ||
  32155. {
  32156. tmp=
  32157. trap 'exit_status=$?
  32158. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  32159. ' 0
  32160. trap '{ (exit 1); exit 1; }' 1 2 13 15
  32161. }
  32162. # Create a (secure) tmp directory for tmp files.
  32163. {
  32164. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  32165. test -n "$tmp" && test -d "$tmp"
  32166. } ||
  32167. {
  32168. tmp=./conf$$-$RANDOM
  32169. (umask 077 && mkdir "$tmp")
  32170. } ||
  32171. {
  32172. $as_echo "$as_me: cannot create a temporary directory in ." >&2
  32173. { (exit 1); exit 1; }
  32174. }
  32175. # Set up the scripts for CONFIG_FILES section.
  32176. # No need to generate them if there are no CONFIG_FILES.
  32177. # This happens for instance with `./config.status config.h'.
  32178. if test -n "$CONFIG_FILES"; then
  32179. ac_cr=' '
  32180. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  32181. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  32182. ac_cs_awk_cr='\\r'
  32183. else
  32184. ac_cs_awk_cr=$ac_cr
  32185. fi
  32186. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  32187. _ACEOF
  32188. {
  32189. echo "cat >conf$$subs.awk <<_ACEOF" &&
  32190. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  32191. echo "_ACEOF"
  32192. } >conf$$subs.sh ||
  32193. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  32194. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  32195. { (exit 1); exit 1; }; }
  32196. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  32197. ac_delim='%!_!# '
  32198. for ac_last_try in false false false false false :; do
  32199. . ./conf$$subs.sh ||
  32200. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  32201. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  32202. { (exit 1); exit 1; }; }
  32203. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  32204. if test $ac_delim_n = $ac_delim_num; then
  32205. break
  32206. elif $ac_last_try; then
  32207. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  32208. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  32209. { (exit 1); exit 1; }; }
  32210. else
  32211. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  32212. fi
  32213. done
  32214. rm -f conf$$subs.sh
  32215. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  32216. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  32217. _ACEOF
  32218. sed -n '
  32219. h
  32220. s/^/S["/; s/!.*/"]=/
  32221. p
  32222. g
  32223. s/^[^!]*!//
  32224. :repl
  32225. t repl
  32226. s/'"$ac_delim"'$//
  32227. t delim
  32228. :nl
  32229. h
  32230. s/\(.\{148\}\).*/\1/
  32231. t more1
  32232. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  32233. p
  32234. n
  32235. b repl
  32236. :more1
  32237. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  32238. p
  32239. g
  32240. s/.\{148\}//
  32241. t nl
  32242. :delim
  32243. h
  32244. s/\(.\{148\}\).*/\1/
  32245. t more2
  32246. s/["\\]/\\&/g; s/^/"/; s/$/"/
  32247. p
  32248. b
  32249. :more2
  32250. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  32251. p
  32252. g
  32253. s/.\{148\}//
  32254. t delim
  32255. ' <conf$$subs.awk | sed '
  32256. /^[^""]/{
  32257. N
  32258. s/\n//
  32259. }
  32260. ' >>$CONFIG_STATUS || ac_write_fail=1
  32261. rm -f conf$$subs.awk
  32262. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  32263. _ACAWK
  32264. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  32265. for (key in S) S_is_set[key] = 1
  32266. FS = ""
  32267. }
  32268. {
  32269. line = $ 0
  32270. nfields = split(line, field, "@")
  32271. substed = 0
  32272. len = length(field[1])
  32273. for (i = 2; i < nfields; i++) {
  32274. key = field[i]
  32275. keylen = length(key)
  32276. if (S_is_set[key]) {
  32277. value = S[key]
  32278. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  32279. len += length(value) + length(field[++i])
  32280. substed = 1
  32281. } else
  32282. len += 1 + keylen
  32283. }
  32284. print line
  32285. }
  32286. _ACAWK
  32287. _ACEOF
  32288. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  32289. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  32290. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  32291. else
  32292. cat
  32293. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  32294. || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
  32295. $as_echo "$as_me: error: could not setup config files machinery" >&2;}
  32296. { (exit 1); exit 1; }; }
  32297. _ACEOF
  32298. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  32299. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  32300. # trailing colons and then remove the whole line if VPATH becomes empty
  32301. # (actually we leave an empty line to preserve line numbers).
  32302. if test "x$srcdir" = x.; then
  32303. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  32304. s/:*\$(srcdir):*/:/
  32305. s/:*\${srcdir}:*/:/
  32306. s/:*@srcdir@:*/:/
  32307. s/^\([^=]*=[ ]*\):*/\1/
  32308. s/:*$//
  32309. s/^[^=]*=[ ]*$//
  32310. }'
  32311. fi
  32312. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  32313. fi # test -n "$CONFIG_FILES"
  32314. # Set up the scripts for CONFIG_HEADERS section.
  32315. # No need to generate them if there are no CONFIG_HEADERS.
  32316. # This happens for instance with `./config.status Makefile'.
  32317. if test -n "$CONFIG_HEADERS"; then
  32318. cat >"$tmp/defines.awk" <<\_ACAWK ||
  32319. BEGIN {
  32320. _ACEOF
  32321. # Transform confdefs.h into an awk script `defines.awk', embedded as
  32322. # here-document in config.status, that substitutes the proper values into
  32323. # config.h.in to produce config.h.
  32324. # Create a delimiter string that does not exist in confdefs.h, to ease
  32325. # handling of long lines.
  32326. ac_delim='%!_!# '
  32327. for ac_last_try in false false :; do
  32328. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  32329. if test -z "$ac_t"; then
  32330. break
  32331. elif $ac_last_try; then
  32332. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
  32333. $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
  32334. { (exit 1); exit 1; }; }
  32335. else
  32336. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  32337. fi
  32338. done
  32339. # For the awk script, D is an array of macro values keyed by name,
  32340. # likewise P contains macro parameters if any. Preserve backslash
  32341. # newline sequences.
  32342. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  32343. sed -n '
  32344. s/.\{148\}/&'"$ac_delim"'/g
  32345. t rset
  32346. :rset
  32347. s/^[ ]*#[ ]*define[ ][ ]*/ /
  32348. t def
  32349. d
  32350. :def
  32351. s/\\$//
  32352. t bsnl
  32353. s/["\\]/\\&/g
  32354. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  32355. D["\1"]=" \3"/p
  32356. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  32357. d
  32358. :bsnl
  32359. s/["\\]/\\&/g
  32360. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  32361. D["\1"]=" \3\\\\\\n"\\/p
  32362. t cont
  32363. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  32364. t cont
  32365. d
  32366. :cont
  32367. n
  32368. s/.\{148\}/&'"$ac_delim"'/g
  32369. t clear
  32370. :clear
  32371. s/\\$//
  32372. t bsnlc
  32373. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  32374. d
  32375. :bsnlc
  32376. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  32377. b cont
  32378. ' <confdefs.h | sed '
  32379. s/'"$ac_delim"'/"\\\
  32380. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  32381. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  32382. for (key in D) D_is_set[key] = 1
  32383. FS = ""
  32384. }
  32385. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  32386. line = \$ 0
  32387. split(line, arg, " ")
  32388. if (arg[1] == "#") {
  32389. defundef = arg[2]
  32390. mac1 = arg[3]
  32391. } else {
  32392. defundef = substr(arg[1], 2)
  32393. mac1 = arg[2]
  32394. }
  32395. split(mac1, mac2, "(") #)
  32396. macro = mac2[1]
  32397. prefix = substr(line, 1, index(line, defundef) - 1)
  32398. if (D_is_set[macro]) {
  32399. # Preserve the white space surrounding the "#".
  32400. print prefix "define", macro P[macro] D[macro]
  32401. next
  32402. } else {
  32403. # Replace #undef with comments. This is necessary, for example,
  32404. # in the case of _POSIX_SOURCE, which is predefined and required
  32405. # on some systems where configure will not decide to define it.
  32406. if (defundef == "undef") {
  32407. print "/*", prefix defundef, macro, "*/"
  32408. next
  32409. }
  32410. }
  32411. }
  32412. { print }
  32413. _ACAWK
  32414. _ACEOF
  32415. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  32416. { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
  32417. $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
  32418. { (exit 1); exit 1; }; }
  32419. fi # test -n "$CONFIG_HEADERS"
  32420. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  32421. shift
  32422. for ac_tag
  32423. do
  32424. case $ac_tag in
  32425. :[FHLC]) ac_mode=$ac_tag; continue;;
  32426. esac
  32427. case $ac_mode$ac_tag in
  32428. :[FHL]*:*);;
  32429. :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
  32430. $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
  32431. { (exit 1); exit 1; }; };;
  32432. :[FH]-) ac_tag=-:-;;
  32433. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  32434. esac
  32435. ac_save_IFS=$IFS
  32436. IFS=:
  32437. set x $ac_tag
  32438. IFS=$ac_save_IFS
  32439. shift
  32440. ac_file=$1
  32441. shift
  32442. case $ac_mode in
  32443. :L) ac_source=$1;;
  32444. :[FH])
  32445. ac_file_inputs=
  32446. for ac_f
  32447. do
  32448. case $ac_f in
  32449. -) ac_f="$tmp/stdin";;
  32450. *) # Look for the file first in the build tree, then in the source tree
  32451. # (if the path is not absolute). The absolute path cannot be DOS-style,
  32452. # because $ac_f cannot contain `:'.
  32453. test -f "$ac_f" ||
  32454. case $ac_f in
  32455. [\\/$]*) false;;
  32456. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  32457. esac ||
  32458. { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  32459. $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  32460. { (exit 1); exit 1; }; };;
  32461. esac
  32462. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  32463. ac_file_inputs="$ac_file_inputs '$ac_f'"
  32464. done
  32465. # Let's still pretend it is `configure' which instantiates (i.e., don't
  32466. # use $as_me), people would be surprised to read:
  32467. # /* config.h. Generated by config.status. */
  32468. configure_input='Generated from '`
  32469. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  32470. `' by configure.'
  32471. if test x"$ac_file" != x-; then
  32472. configure_input="$ac_file. $configure_input"
  32473. { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
  32474. $as_echo "$as_me: creating $ac_file" >&6;}
  32475. fi
  32476. # Neutralize special characters interpreted by sed in replacement strings.
  32477. case $configure_input in #(
  32478. *\&* | *\|* | *\\* )
  32479. ac_sed_conf_input=`$as_echo "$configure_input" |
  32480. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  32481. *) ac_sed_conf_input=$configure_input;;
  32482. esac
  32483. case $ac_tag in
  32484. *:-:* | *:-) cat >"$tmp/stdin" \
  32485. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  32486. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  32487. { (exit 1); exit 1; }; } ;;
  32488. esac
  32489. ;;
  32490. esac
  32491. ac_dir=`$as_dirname -- "$ac_file" ||
  32492. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  32493. X"$ac_file" : 'X\(//\)[^/]' \| \
  32494. X"$ac_file" : 'X\(//\)$' \| \
  32495. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  32496. $as_echo X"$ac_file" |
  32497. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  32498. s//\1/
  32499. q
  32500. }
  32501. /^X\(\/\/\)[^/].*/{
  32502. s//\1/
  32503. q
  32504. }
  32505. /^X\(\/\/\)$/{
  32506. s//\1/
  32507. q
  32508. }
  32509. /^X\(\/\).*/{
  32510. s//\1/
  32511. q
  32512. }
  32513. s/.*/./; q'`
  32514. { as_dir="$ac_dir"
  32515. case $as_dir in #(
  32516. -*) as_dir=./$as_dir;;
  32517. esac
  32518. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  32519. as_dirs=
  32520. while :; do
  32521. case $as_dir in #(
  32522. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  32523. *) as_qdir=$as_dir;;
  32524. esac
  32525. as_dirs="'$as_qdir' $as_dirs"
  32526. as_dir=`$as_dirname -- "$as_dir" ||
  32527. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  32528. X"$as_dir" : 'X\(//\)[^/]' \| \
  32529. X"$as_dir" : 'X\(//\)$' \| \
  32530. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  32531. $as_echo X"$as_dir" |
  32532. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  32533. s//\1/
  32534. q
  32535. }
  32536. /^X\(\/\/\)[^/].*/{
  32537. s//\1/
  32538. q
  32539. }
  32540. /^X\(\/\/\)$/{
  32541. s//\1/
  32542. q
  32543. }
  32544. /^X\(\/\).*/{
  32545. s//\1/
  32546. q
  32547. }
  32548. s/.*/./; q'`
  32549. test -d "$as_dir" && break
  32550. done
  32551. test -z "$as_dirs" || eval "mkdir $as_dirs"
  32552. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  32553. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  32554. { (exit 1); exit 1; }; }; }
  32555. ac_builddir=.
  32556. case "$ac_dir" in
  32557. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  32558. *)
  32559. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  32560. # A ".." for each directory in $ac_dir_suffix.
  32561. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  32562. case $ac_top_builddir_sub in
  32563. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  32564. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  32565. esac ;;
  32566. esac
  32567. ac_abs_top_builddir=$ac_pwd
  32568. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  32569. # for backward compatibility:
  32570. ac_top_builddir=$ac_top_build_prefix
  32571. case $srcdir in
  32572. .) # We are building in place.
  32573. ac_srcdir=.
  32574. ac_top_srcdir=$ac_top_builddir_sub
  32575. ac_abs_top_srcdir=$ac_pwd ;;
  32576. [\\/]* | ?:[\\/]* ) # Absolute name.
  32577. ac_srcdir=$srcdir$ac_dir_suffix;
  32578. ac_top_srcdir=$srcdir
  32579. ac_abs_top_srcdir=$srcdir ;;
  32580. *) # Relative name.
  32581. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  32582. ac_top_srcdir=$ac_top_build_prefix$srcdir
  32583. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  32584. esac
  32585. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  32586. case $ac_mode in
  32587. :F)
  32588. #
  32589. # CONFIG_FILE
  32590. #
  32591. case $INSTALL in
  32592. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  32593. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  32594. esac
  32595. ac_MKDIR_P=$MKDIR_P
  32596. case $MKDIR_P in
  32597. [\\/$]* | ?:[\\/]* ) ;;
  32598. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  32599. esac
  32600. _ACEOF
  32601. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  32602. # If the template does not know about datarootdir, expand it.
  32603. # FIXME: This hack should be removed a few years after 2.60.
  32604. ac_datarootdir_hack=; ac_datarootdir_seen=
  32605. ac_sed_dataroot='
  32606. /datarootdir/ {
  32607. p
  32608. q
  32609. }
  32610. /@datadir@/p
  32611. /@docdir@/p
  32612. /@infodir@/p
  32613. /@localedir@/p
  32614. /@mandir@/p
  32615. '
  32616. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  32617. *datarootdir*) ac_datarootdir_seen=yes;;
  32618. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  32619. { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  32620. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  32621. _ACEOF
  32622. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  32623. ac_datarootdir_hack='
  32624. s&@datadir@&$datadir&g
  32625. s&@docdir@&$docdir&g
  32626. s&@infodir@&$infodir&g
  32627. s&@localedir@&$localedir&g
  32628. s&@mandir@&$mandir&g
  32629. s&\\\${datarootdir}&$datarootdir&g' ;;
  32630. esac
  32631. _ACEOF
  32632. # Neutralize VPATH when `$srcdir' = `.'.
  32633. # Shell code in configure.ac might set extrasub.
  32634. # FIXME: do we really want to maintain this feature?
  32635. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  32636. ac_sed_extra="$ac_vpsub
  32637. $extrasub
  32638. _ACEOF
  32639. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  32640. :t
  32641. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  32642. s|@configure_input@|$ac_sed_conf_input|;t t
  32643. s&@top_builddir@&$ac_top_builddir_sub&;t t
  32644. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  32645. s&@srcdir@&$ac_srcdir&;t t
  32646. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  32647. s&@top_srcdir@&$ac_top_srcdir&;t t
  32648. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  32649. s&@builddir@&$ac_builddir&;t t
  32650. s&@abs_builddir@&$ac_abs_builddir&;t t
  32651. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  32652. s&@INSTALL@&$ac_INSTALL&;t t
  32653. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  32654. $ac_datarootdir_hack
  32655. "
  32656. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  32657. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  32658. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  32659. { (exit 1); exit 1; }; }
  32660. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  32661. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  32662. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  32663. { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  32664. which seems to be undefined. Please make sure it is defined." >&5
  32665. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  32666. which seems to be undefined. Please make sure it is defined." >&2;}
  32667. rm -f "$tmp/stdin"
  32668. case $ac_file in
  32669. -) cat "$tmp/out" && rm -f "$tmp/out";;
  32670. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  32671. esac \
  32672. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  32673. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  32674. { (exit 1); exit 1; }; }
  32675. ;;
  32676. :H)
  32677. #
  32678. # CONFIG_HEADER
  32679. #
  32680. if test x"$ac_file" != x-; then
  32681. {
  32682. $as_echo "/* $configure_input */" \
  32683. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  32684. } >"$tmp/config.h" \
  32685. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  32686. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  32687. { (exit 1); exit 1; }; }
  32688. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  32689. { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  32690. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  32691. else
  32692. rm -f "$ac_file"
  32693. mv "$tmp/config.h" "$ac_file" \
  32694. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  32695. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  32696. { (exit 1); exit 1; }; }
  32697. fi
  32698. else
  32699. $as_echo "/* $configure_input */" \
  32700. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  32701. || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
  32702. $as_echo "$as_me: error: could not create -" >&2;}
  32703. { (exit 1); exit 1; }; }
  32704. fi
  32705. # Compute "$ac_file"'s index in $config_headers.
  32706. _am_arg="$ac_file"
  32707. _am_stamp_count=1
  32708. for _am_header in $config_headers :; do
  32709. case $_am_header in
  32710. $_am_arg | $_am_arg:* )
  32711. break ;;
  32712. * )
  32713. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  32714. esac
  32715. done
  32716. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  32717. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  32718. X"$_am_arg" : 'X\(//\)[^/]' \| \
  32719. X"$_am_arg" : 'X\(//\)$' \| \
  32720. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  32721. $as_echo X"$_am_arg" |
  32722. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  32723. s//\1/
  32724. q
  32725. }
  32726. /^X\(\/\/\)[^/].*/{
  32727. s//\1/
  32728. q
  32729. }
  32730. /^X\(\/\/\)$/{
  32731. s//\1/
  32732. q
  32733. }
  32734. /^X\(\/\).*/{
  32735. s//\1/
  32736. q
  32737. }
  32738. s/.*/./; q'`/stamp-h$_am_stamp_count
  32739. ;;
  32740. :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
  32741. $as_echo "$as_me: executing $ac_file commands" >&6;}
  32742. ;;
  32743. esac
  32744. case $ac_file$ac_mode in
  32745. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  32746. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  32747. # are listed without --file. Let's play safe and only enable the eval
  32748. # if we detect the quoting.
  32749. case $CONFIG_FILES in
  32750. *\'*) eval set x "$CONFIG_FILES" ;;
  32751. *) set x $CONFIG_FILES ;;
  32752. esac
  32753. shift
  32754. for mf
  32755. do
  32756. # Strip MF so we end up with the name of the file.
  32757. mf=`echo "$mf" | sed -e 's/:.*$//'`
  32758. # Check whether this is an Automake generated Makefile or not.
  32759. # We used to match only the files named `Makefile.in', but
  32760. # some people rename them; so instead we look at the file content.
  32761. # Grep'ing the first line is not enough: some people post-process
  32762. # each Makefile.in and add a new line on top of each file to say so.
  32763. # Grep'ing the whole file is not good either: AIX grep has a line
  32764. # limit of 2048, but all sed's we know have understand at least 4000.
  32765. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  32766. dirpart=`$as_dirname -- "$mf" ||
  32767. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  32768. X"$mf" : 'X\(//\)[^/]' \| \
  32769. X"$mf" : 'X\(//\)$' \| \
  32770. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  32771. $as_echo X"$mf" |
  32772. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  32773. s//\1/
  32774. q
  32775. }
  32776. /^X\(\/\/\)[^/].*/{
  32777. s//\1/
  32778. q
  32779. }
  32780. /^X\(\/\/\)$/{
  32781. s//\1/
  32782. q
  32783. }
  32784. /^X\(\/\).*/{
  32785. s//\1/
  32786. q
  32787. }
  32788. s/.*/./; q'`
  32789. else
  32790. continue
  32791. fi
  32792. # Extract the definition of DEPDIR, am__include, and am__quote
  32793. # from the Makefile without running `make'.
  32794. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  32795. test -z "$DEPDIR" && continue
  32796. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  32797. test -z "am__include" && continue
  32798. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  32799. # When using ansi2knr, U may be empty or an underscore; expand it
  32800. U=`sed -n 's/^U = //p' < "$mf"`
  32801. # Find all dependency output files, they are included files with
  32802. # $(DEPDIR) in their names. We invoke sed twice because it is the
  32803. # simplest approach to changing $(DEPDIR) to its actual value in the
  32804. # expansion.
  32805. for file in `sed -n "
  32806. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  32807. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  32808. # Make sure the directory exists.
  32809. test -f "$dirpart/$file" && continue
  32810. fdir=`$as_dirname -- "$file" ||
  32811. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  32812. X"$file" : 'X\(//\)[^/]' \| \
  32813. X"$file" : 'X\(//\)$' \| \
  32814. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  32815. $as_echo X"$file" |
  32816. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  32817. s//\1/
  32818. q
  32819. }
  32820. /^X\(\/\/\)[^/].*/{
  32821. s//\1/
  32822. q
  32823. }
  32824. /^X\(\/\/\)$/{
  32825. s//\1/
  32826. q
  32827. }
  32828. /^X\(\/\).*/{
  32829. s//\1/
  32830. q
  32831. }
  32832. s/.*/./; q'`
  32833. { as_dir=$dirpart/$fdir
  32834. case $as_dir in #(
  32835. -*) as_dir=./$as_dir;;
  32836. esac
  32837. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  32838. as_dirs=
  32839. while :; do
  32840. case $as_dir in #(
  32841. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  32842. *) as_qdir=$as_dir;;
  32843. esac
  32844. as_dirs="'$as_qdir' $as_dirs"
  32845. as_dir=`$as_dirname -- "$as_dir" ||
  32846. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  32847. X"$as_dir" : 'X\(//\)[^/]' \| \
  32848. X"$as_dir" : 'X\(//\)$' \| \
  32849. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  32850. $as_echo X"$as_dir" |
  32851. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  32852. s//\1/
  32853. q
  32854. }
  32855. /^X\(\/\/\)[^/].*/{
  32856. s//\1/
  32857. q
  32858. }
  32859. /^X\(\/\/\)$/{
  32860. s//\1/
  32861. q
  32862. }
  32863. /^X\(\/\).*/{
  32864. s//\1/
  32865. q
  32866. }
  32867. s/.*/./; q'`
  32868. test -d "$as_dir" && break
  32869. done
  32870. test -z "$as_dirs" || eval "mkdir $as_dirs"
  32871. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  32872. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  32873. { (exit 1); exit 1; }; }; }
  32874. # echo "creating $dirpart/$file"
  32875. echo '# dummy' > "$dirpart/$file"
  32876. done
  32877. done
  32878. }
  32879. ;;
  32880. "libtool":C)
  32881. # See if we are running on zsh, and set the options which allow our
  32882. # commands through without removal of \ escapes.
  32883. if test -n "${ZSH_VERSION+set}" ; then
  32884. setopt NO_GLOB_SUBST
  32885. fi
  32886. cfgfile="${ofile}T"
  32887. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  32888. $RM "$cfgfile"
  32889. cat <<_LT_EOF >> "$cfgfile"
  32890. #! $SHELL
  32891. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  32892. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  32893. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  32894. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  32895. #
  32896. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  32897. # 2006, 2007, 2008 Free Software Foundation, Inc.
  32898. # Written by Gordon Matzigkeit, 1996
  32899. #
  32900. # This file is part of GNU Libtool.
  32901. #
  32902. # GNU Libtool is free software; you can redistribute it and/or
  32903. # modify it under the terms of the GNU General Public License as
  32904. # published by the Free Software Foundation; either version 2 of
  32905. # the License, or (at your option) any later version.
  32906. #
  32907. # As a special exception to the GNU General Public License,
  32908. # if you distribute this file as part of a program or library that
  32909. # is built using GNU Libtool, you may include this file under the
  32910. # same distribution terms that you use for the rest of that program.
  32911. #
  32912. # GNU Libtool is distributed in the hope that it will be useful,
  32913. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  32914. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  32915. # GNU General Public License for more details.
  32916. #
  32917. # You should have received a copy of the GNU General Public License
  32918. # along with GNU Libtool; see the file COPYING. If not, a copy
  32919. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  32920. # obtained by writing to the Free Software Foundation, Inc.,
  32921. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  32922. # The names of the tagged configurations supported by this script.
  32923. available_tags=""
  32924. # ### BEGIN LIBTOOL CONFIG
  32925. # Assembler program.
  32926. AS=$AS
  32927. # DLL creation program.
  32928. DLLTOOL=$DLLTOOL
  32929. # Object dumper program.
  32930. OBJDUMP=$OBJDUMP
  32931. # Which release of libtool.m4 was used?
  32932. macro_version=$macro_version
  32933. macro_revision=$macro_revision
  32934. # Whether or not to build shared libraries.
  32935. build_libtool_libs=$enable_shared
  32936. # Whether or not to build static libraries.
  32937. build_old_libs=$enable_static
  32938. # What type of objects to build.
  32939. pic_mode=$pic_mode
  32940. # Whether or not to optimize for fast installation.
  32941. fast_install=$enable_fast_install
  32942. # The host system.
  32943. host_alias=$host_alias
  32944. host=$host
  32945. host_os=$host_os
  32946. # The build system.
  32947. build_alias=$build_alias
  32948. build=$build
  32949. build_os=$build_os
  32950. # A sed program that does not truncate output.
  32951. SED=$lt_SED
  32952. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  32953. Xsed="\$SED -e 1s/^X//"
  32954. # A grep program that handles long lines.
  32955. GREP=$lt_GREP
  32956. # An ERE matcher.
  32957. EGREP=$lt_EGREP
  32958. # A literal string matcher.
  32959. FGREP=$lt_FGREP
  32960. # A BSD- or MS-compatible name lister.
  32961. NM=$lt_NM
  32962. # Whether we need soft or hard links.
  32963. LN_S=$lt_LN_S
  32964. # What is the maximum length of a command?
  32965. max_cmd_len=$max_cmd_len
  32966. # Object file suffix (normally "o").
  32967. objext=$ac_objext
  32968. # Executable file suffix (normally "").
  32969. exeext=$exeext
  32970. # whether the shell understands "unset".
  32971. lt_unset=$lt_unset
  32972. # turn spaces into newlines.
  32973. SP2NL=$lt_lt_SP2NL
  32974. # turn newlines into spaces.
  32975. NL2SP=$lt_lt_NL2SP
  32976. # How to create reloadable object files.
  32977. reload_flag=$lt_reload_flag
  32978. reload_cmds=$lt_reload_cmds
  32979. # Method to check whether dependent libraries are shared objects.
  32980. deplibs_check_method=$lt_deplibs_check_method
  32981. # Command to use when deplibs_check_method == "file_magic".
  32982. file_magic_cmd=$lt_file_magic_cmd
  32983. # The archiver.
  32984. AR=$lt_AR
  32985. AR_FLAGS=$lt_AR_FLAGS
  32986. # A symbol stripping program.
  32987. STRIP=$lt_STRIP
  32988. # Commands used to install an old-style archive.
  32989. RANLIB=$lt_RANLIB
  32990. old_postinstall_cmds=$lt_old_postinstall_cmds
  32991. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  32992. # A C compiler.
  32993. LTCC=$lt_CC
  32994. # LTCC compiler flags.
  32995. LTCFLAGS=$lt_CFLAGS
  32996. # Take the output of nm and produce a listing of raw symbols and C names.
  32997. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  32998. # Transform the output of nm in a proper C declaration.
  32999. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  33000. # Transform the output of nm in a C name address pair.
  33001. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  33002. # Transform the output of nm in a C name address pair when lib prefix is needed.
  33003. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  33004. # The name of the directory that contains temporary libtool files.
  33005. objdir=$objdir
  33006. # Shell to use when invoking shell scripts.
  33007. SHELL=$lt_SHELL
  33008. # An echo program that does not interpret backslashes.
  33009. ECHO=$lt_ECHO
  33010. # Used to examine libraries when file_magic_cmd begins with "file".
  33011. MAGIC_CMD=$MAGIC_CMD
  33012. # Must we lock files when doing compilation?
  33013. need_locks=$lt_need_locks
  33014. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  33015. DSYMUTIL=$lt_DSYMUTIL
  33016. # Tool to change global to local symbols on Mac OS X.
  33017. NMEDIT=$lt_NMEDIT
  33018. # Tool to manipulate fat objects and archives on Mac OS X.
  33019. LIPO=$lt_LIPO
  33020. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  33021. OTOOL=$lt_OTOOL
  33022. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  33023. OTOOL64=$lt_OTOOL64
  33024. # Old archive suffix (normally "a").
  33025. libext=$libext
  33026. # Shared library suffix (normally ".so").
  33027. shrext_cmds=$lt_shrext_cmds
  33028. # The commands to extract the exported symbol list from a shared archive.
  33029. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  33030. # Variables whose values should be saved in libtool wrapper scripts and
  33031. # restored at link time.
  33032. variables_saved_for_relink=$lt_variables_saved_for_relink
  33033. # Do we need the "lib" prefix for modules?
  33034. need_lib_prefix=$need_lib_prefix
  33035. # Do we need a version for libraries?
  33036. need_version=$need_version
  33037. # Library versioning type.
  33038. version_type=$version_type
  33039. # Shared library runtime path variable.
  33040. runpath_var=$runpath_var
  33041. # Shared library path variable.
  33042. shlibpath_var=$shlibpath_var
  33043. # Is shlibpath searched before the hard-coded library search path?
  33044. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  33045. # Format of library name prefix.
  33046. libname_spec=$lt_libname_spec
  33047. # List of archive names. First name is the real one, the rest are links.
  33048. # The last name is the one that the linker finds with -lNAME
  33049. library_names_spec=$lt_library_names_spec
  33050. # The coded name of the library, if different from the real name.
  33051. soname_spec=$lt_soname_spec
  33052. # Command to use after installation of a shared archive.
  33053. postinstall_cmds=$lt_postinstall_cmds
  33054. # Command to use after uninstallation of a shared archive.
  33055. postuninstall_cmds=$lt_postuninstall_cmds
  33056. # Commands used to finish a libtool library installation in a directory.
  33057. finish_cmds=$lt_finish_cmds
  33058. # As "finish_cmds", except a single script fragment to be evaled but
  33059. # not shown.
  33060. finish_eval=$lt_finish_eval
  33061. # Whether we should hardcode library paths into libraries.
  33062. hardcode_into_libs=$hardcode_into_libs
  33063. # Compile-time system search path for libraries.
  33064. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  33065. # Run-time system search path for libraries.
  33066. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  33067. # Whether dlopen is supported.
  33068. dlopen_support=$enable_dlopen
  33069. # Whether dlopen of programs is supported.
  33070. dlopen_self=$enable_dlopen_self
  33071. # Whether dlopen of statically linked programs is supported.
  33072. dlopen_self_static=$enable_dlopen_self_static
  33073. # Commands to strip libraries.
  33074. old_striplib=$lt_old_striplib
  33075. striplib=$lt_striplib
  33076. # The linker used to build libraries.
  33077. LD=$lt_LD
  33078. # Commands used to build an old-style archive.
  33079. old_archive_cmds=$lt_old_archive_cmds
  33080. # A language specific compiler.
  33081. CC=$lt_compiler
  33082. # Is the compiler the GNU compiler?
  33083. with_gcc=$GCC
  33084. # Compiler flag to turn off builtin functions.
  33085. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  33086. # How to pass a linker flag through the compiler.
  33087. wl=$lt_lt_prog_compiler_wl
  33088. # Additional compiler flags for building library objects.
  33089. pic_flag=$lt_lt_prog_compiler_pic
  33090. # Compiler flag to prevent dynamic linking.
  33091. link_static_flag=$lt_lt_prog_compiler_static
  33092. # Does compiler simultaneously support -c and -o options?
  33093. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  33094. # Whether or not to add -lc for building shared libraries.
  33095. build_libtool_need_lc=$archive_cmds_need_lc
  33096. # Whether or not to disallow shared libs when runtime libs are static.
  33097. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  33098. # Compiler flag to allow reflexive dlopens.
  33099. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  33100. # Compiler flag to generate shared objects directly from archives.
  33101. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  33102. # Whether the compiler copes with passing no objects directly.
  33103. compiler_needs_object=$lt_compiler_needs_object
  33104. # Create an old-style archive from a shared archive.
  33105. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  33106. # Create a temporary old-style archive to link instead of a shared archive.
  33107. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  33108. # Commands used to build a shared archive.
  33109. archive_cmds=$lt_archive_cmds
  33110. archive_expsym_cmds=$lt_archive_expsym_cmds
  33111. # Commands used to build a loadable module if different from building
  33112. # a shared archive.
  33113. module_cmds=$lt_module_cmds
  33114. module_expsym_cmds=$lt_module_expsym_cmds
  33115. # Whether we are building with GNU ld or not.
  33116. with_gnu_ld=$lt_with_gnu_ld
  33117. # Flag that allows shared libraries with undefined symbols to be built.
  33118. allow_undefined_flag=$lt_allow_undefined_flag
  33119. # Flag that enforces no undefined symbols.
  33120. no_undefined_flag=$lt_no_undefined_flag
  33121. # Flag to hardcode \$libdir into a binary during linking.
  33122. # This must work even if \$libdir does not exist
  33123. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  33124. # If ld is used when linking, flag to hardcode \$libdir into a binary
  33125. # during linking. This must work even if \$libdir does not exist.
  33126. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  33127. # Whether we need a single "-rpath" flag with a separated argument.
  33128. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  33129. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  33130. # DIR into the resulting binary.
  33131. hardcode_direct=$hardcode_direct
  33132. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  33133. # DIR into the resulting binary and the resulting library dependency is
  33134. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  33135. # library is relocated.
  33136. hardcode_direct_absolute=$hardcode_direct_absolute
  33137. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  33138. # into the resulting binary.
  33139. hardcode_minus_L=$hardcode_minus_L
  33140. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  33141. # into the resulting binary.
  33142. hardcode_shlibpath_var=$hardcode_shlibpath_var
  33143. # Set to "yes" if building a shared library automatically hardcodes DIR
  33144. # into the library and all subsequent libraries and executables linked
  33145. # against it.
  33146. hardcode_automatic=$hardcode_automatic
  33147. # Set to yes if linker adds runtime paths of dependent libraries
  33148. # to runtime path list.
  33149. inherit_rpath=$inherit_rpath
  33150. # Whether libtool must link a program against all its dependency libraries.
  33151. link_all_deplibs=$link_all_deplibs
  33152. # Fix the shell variable \$srcfile for the compiler.
  33153. fix_srcfile_path=$lt_fix_srcfile_path
  33154. # Set to "yes" if exported symbols are required.
  33155. always_export_symbols=$always_export_symbols
  33156. # The commands to list exported symbols.
  33157. export_symbols_cmds=$lt_export_symbols_cmds
  33158. # Symbols that should not be listed in the preloaded symbols.
  33159. exclude_expsyms=$lt_exclude_expsyms
  33160. # Symbols that must always be exported.
  33161. include_expsyms=$lt_include_expsyms
  33162. # Commands necessary for linking programs (against libraries) with templates.
  33163. prelink_cmds=$lt_prelink_cmds
  33164. # Specify filename containing input files.
  33165. file_list_spec=$lt_file_list_spec
  33166. # How to hardcode a shared library path into an executable.
  33167. hardcode_action=$hardcode_action
  33168. # ### END LIBTOOL CONFIG
  33169. _LT_EOF
  33170. case $host_os in
  33171. aix3*)
  33172. cat <<\_LT_EOF >> "$cfgfile"
  33173. # AIX sometimes has problems with the GCC collect2 program. For some
  33174. # reason, if we set the COLLECT_NAMES environment variable, the problems
  33175. # vanish in a puff of smoke.
  33176. if test "X${COLLECT_NAMES+set}" != Xset; then
  33177. COLLECT_NAMES=
  33178. export COLLECT_NAMES
  33179. fi
  33180. _LT_EOF
  33181. ;;
  33182. esac
  33183. ltmain="$ac_aux_dir/ltmain.sh"
  33184. # We use sed instead of cat because bash on DJGPP gets confused if
  33185. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  33186. # text mode, it properly converts lines to CR/LF. This bash problem
  33187. # is reportedly fixed, but why not run on old versions too?
  33188. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  33189. || (rm -f "$cfgfile"; exit 1)
  33190. case $xsi_shell in
  33191. yes)
  33192. cat << \_LT_EOF >> "$cfgfile"
  33193. # func_dirname file append nondir_replacement
  33194. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  33195. # otherwise set result to NONDIR_REPLACEMENT.
  33196. func_dirname ()
  33197. {
  33198. case ${1} in
  33199. */*) func_dirname_result="${1%/*}${2}" ;;
  33200. * ) func_dirname_result="${3}" ;;
  33201. esac
  33202. }
  33203. # func_basename file
  33204. func_basename ()
  33205. {
  33206. func_basename_result="${1##*/}"
  33207. }
  33208. # func_dirname_and_basename file append nondir_replacement
  33209. # perform func_basename and func_dirname in a single function
  33210. # call:
  33211. # dirname: Compute the dirname of FILE. If nonempty,
  33212. # add APPEND to the result, otherwise set result
  33213. # to NONDIR_REPLACEMENT.
  33214. # value returned in "$func_dirname_result"
  33215. # basename: Compute filename of FILE.
  33216. # value retuned in "$func_basename_result"
  33217. # Implementation must be kept synchronized with func_dirname
  33218. # and func_basename. For efficiency, we do not delegate to
  33219. # those functions but instead duplicate the functionality here.
  33220. func_dirname_and_basename ()
  33221. {
  33222. case ${1} in
  33223. */*) func_dirname_result="${1%/*}${2}" ;;
  33224. * ) func_dirname_result="${3}" ;;
  33225. esac
  33226. func_basename_result="${1##*/}"
  33227. }
  33228. # func_stripname prefix suffix name
  33229. # strip PREFIX and SUFFIX off of NAME.
  33230. # PREFIX and SUFFIX must not contain globbing or regex special
  33231. # characters, hashes, percent signs, but SUFFIX may contain a leading
  33232. # dot (in which case that matches only a dot).
  33233. func_stripname ()
  33234. {
  33235. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  33236. # positional parameters, so assign one to ordinary parameter first.
  33237. func_stripname_result=${3}
  33238. func_stripname_result=${func_stripname_result#"${1}"}
  33239. func_stripname_result=${func_stripname_result%"${2}"}
  33240. }
  33241. # func_opt_split
  33242. func_opt_split ()
  33243. {
  33244. func_opt_split_opt=${1%%=*}
  33245. func_opt_split_arg=${1#*=}
  33246. }
  33247. # func_lo2o object
  33248. func_lo2o ()
  33249. {
  33250. case ${1} in
  33251. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  33252. *) func_lo2o_result=${1} ;;
  33253. esac
  33254. }
  33255. # func_xform libobj-or-source
  33256. func_xform ()
  33257. {
  33258. func_xform_result=${1%.*}.lo
  33259. }
  33260. # func_arith arithmetic-term...
  33261. func_arith ()
  33262. {
  33263. func_arith_result=$(( $* ))
  33264. }
  33265. # func_len string
  33266. # STRING may not start with a hyphen.
  33267. func_len ()
  33268. {
  33269. func_len_result=${#1}
  33270. }
  33271. _LT_EOF
  33272. ;;
  33273. *) # Bourne compatible functions.
  33274. cat << \_LT_EOF >> "$cfgfile"
  33275. # func_dirname file append nondir_replacement
  33276. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  33277. # otherwise set result to NONDIR_REPLACEMENT.
  33278. func_dirname ()
  33279. {
  33280. # Extract subdirectory from the argument.
  33281. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  33282. if test "X$func_dirname_result" = "X${1}"; then
  33283. func_dirname_result="${3}"
  33284. else
  33285. func_dirname_result="$func_dirname_result${2}"
  33286. fi
  33287. }
  33288. # func_basename file
  33289. func_basename ()
  33290. {
  33291. func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  33292. }
  33293. # func_stripname prefix suffix name
  33294. # strip PREFIX and SUFFIX off of NAME.
  33295. # PREFIX and SUFFIX must not contain globbing or regex special
  33296. # characters, hashes, percent signs, but SUFFIX may contain a leading
  33297. # dot (in which case that matches only a dot).
  33298. # func_strip_suffix prefix name
  33299. func_stripname ()
  33300. {
  33301. case ${2} in
  33302. .*) func_stripname_result=`$ECHO "X${3}" \
  33303. | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  33304. *) func_stripname_result=`$ECHO "X${3}" \
  33305. | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  33306. esac
  33307. }
  33308. # sed scripts:
  33309. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  33310. my_sed_long_arg='1s/^-[^=]*=//'
  33311. # func_opt_split
  33312. func_opt_split ()
  33313. {
  33314. func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  33315. func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  33316. }
  33317. # func_lo2o object
  33318. func_lo2o ()
  33319. {
  33320. func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  33321. }
  33322. # func_xform libobj-or-source
  33323. func_xform ()
  33324. {
  33325. func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  33326. }
  33327. # func_arith arithmetic-term...
  33328. func_arith ()
  33329. {
  33330. func_arith_result=`expr "$@"`
  33331. }
  33332. # func_len string
  33333. # STRING may not start with a hyphen.
  33334. func_len ()
  33335. {
  33336. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  33337. }
  33338. _LT_EOF
  33339. esac
  33340. case $lt_shell_append in
  33341. yes)
  33342. cat << \_LT_EOF >> "$cfgfile"
  33343. # func_append var value
  33344. # Append VALUE to the end of shell variable VAR.
  33345. func_append ()
  33346. {
  33347. eval "$1+=\$2"
  33348. }
  33349. _LT_EOF
  33350. ;;
  33351. *)
  33352. cat << \_LT_EOF >> "$cfgfile"
  33353. # func_append var value
  33354. # Append VALUE to the end of shell variable VAR.
  33355. func_append ()
  33356. {
  33357. eval "$1=\$$1\$2"
  33358. }
  33359. _LT_EOF
  33360. ;;
  33361. esac
  33362. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  33363. || (rm -f "$cfgfile"; exit 1)
  33364. mv -f "$cfgfile" "$ofile" ||
  33365. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  33366. chmod +x "$ofile"
  33367. ;;
  33368. "po-directories":C)
  33369. for ac_file in $CONFIG_FILES; do
  33370. # Support "outfile[:infile[:infile...]]"
  33371. case "$ac_file" in
  33372. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  33373. esac
  33374. # PO directories have a Makefile.in generated from Makefile.in.in.
  33375. case "$ac_file" in */Makefile.in)
  33376. # Adjust a relative srcdir.
  33377. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  33378. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  33379. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  33380. # In autoconf-2.13 it is called $ac_given_srcdir.
  33381. # In autoconf-2.50 it is called $srcdir.
  33382. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  33383. case "$ac_given_srcdir" in
  33384. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  33385. /*) top_srcdir="$ac_given_srcdir" ;;
  33386. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  33387. esac
  33388. # Treat a directory as a PO directory if and only if it has a
  33389. # POTFILES.in file. This allows packages to have multiple PO
  33390. # directories under different names or in different locations.
  33391. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  33392. rm -f "$ac_dir/POTFILES"
  33393. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  33394. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  33395. POMAKEFILEDEPS="POTFILES.in"
  33396. # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
  33397. # on $ac_dir but don't depend on user-specified configuration
  33398. # parameters.
  33399. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  33400. # The LINGUAS file contains the set of available languages.
  33401. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  33402. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  33403. fi
  33404. ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  33405. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  33406. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  33407. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  33408. else
  33409. # The set of available languages was given in configure.in.
  33410. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  33411. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  33412. fi
  33413. # Compute POFILES
  33414. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
  33415. # Compute UPDATEPOFILES
  33416. # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
  33417. # Compute DUMMYPOFILES
  33418. # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
  33419. # Compute GMOFILES
  33420. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
  33421. case "$ac_given_srcdir" in
  33422. .) srcdirpre= ;;
  33423. *) srcdirpre='$(srcdir)/' ;;
  33424. esac
  33425. POFILES=
  33426. UPDATEPOFILES=
  33427. DUMMYPOFILES=
  33428. GMOFILES=
  33429. for lang in $ALL_LINGUAS; do
  33430. POFILES="$POFILES $srcdirpre$lang.po"
  33431. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  33432. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  33433. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  33434. done
  33435. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  33436. # environment variable.
  33437. INST_LINGUAS=
  33438. if test -n "$ALL_LINGUAS"; then
  33439. for presentlang in $ALL_LINGUAS; do
  33440. useit=no
  33441. if test "%UNSET%" != "$LINGUAS"; then
  33442. desiredlanguages="$LINGUAS"
  33443. else
  33444. desiredlanguages="$ALL_LINGUAS"
  33445. fi
  33446. for desiredlang in $desiredlanguages; do
  33447. # Use the presentlang catalog if desiredlang is
  33448. # a. equal to presentlang, or
  33449. # b. a variant of presentlang (because in this case,
  33450. # presentlang can be used as a fallback for messages
  33451. # which are not translated in the desiredlang catalog).
  33452. case "$desiredlang" in
  33453. "$presentlang"*) useit=yes;;
  33454. esac
  33455. done
  33456. if test $useit = yes; then
  33457. INST_LINGUAS="$INST_LINGUAS $presentlang"
  33458. fi
  33459. done
  33460. fi
  33461. CATALOGS=
  33462. if test -n "$INST_LINGUAS"; then
  33463. for lang in $INST_LINGUAS; do
  33464. CATALOGS="$CATALOGS $lang.gmo"
  33465. done
  33466. fi
  33467. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  33468. sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
  33469. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  33470. if test -f "$f"; then
  33471. case "$f" in
  33472. *.orig | *.bak | *~) ;;
  33473. *) cat "$f" >> "$ac_dir/Makefile" ;;
  33474. esac
  33475. fi
  33476. done
  33477. fi
  33478. ;;
  33479. esac
  33480. done ;;
  33481. "check-guile":F) chmod +x check-guile ;;
  33482. "benchmark-guile":F) chmod +x benchmark-guile ;;
  33483. "guile-tools":F) chmod +x guile-tools ;;
  33484. "pre-inst-guile":F) chmod +x pre-inst-guile ;;
  33485. "pre-inst-guile-env":F) chmod +x pre-inst-guile-env ;;
  33486. "libguile/guile-snarf":F) chmod +x libguile/guile-snarf ;;
  33487. "libguile/guile-doc-snarf":F) chmod +x libguile/guile-doc-snarf ;;
  33488. "libguile/guile-func-name-check":F) chmod +x libguile/guile-func-name-check ;;
  33489. "libguile/guile-snarf-docs":F) chmod +x libguile/guile-snarf-docs ;;
  33490. "test-suite/standalone/test-use-srfi":F) chmod +x test-suite/standalone/test-use-srfi ;;
  33491. "test-suite/standalone/test-fast-slot-ref":F) chmod +x test-suite/standalone/test-fast-slot-ref ;;
  33492. esac
  33493. done # for ac_tag
  33494. { (exit 0); exit 0; }
  33495. _ACEOF
  33496. chmod +x $CONFIG_STATUS
  33497. ac_clean_files=$ac_clean_files_save
  33498. test $ac_write_fail = 0 ||
  33499. { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
  33500. $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
  33501. { (exit 1); exit 1; }; }
  33502. # configure is writing to config.log, and then calls config.status.
  33503. # config.status does its own redirection, appending to config.log.
  33504. # Unfortunately, on DOS this fails, as config.log is still kept open
  33505. # by configure, so config.status won't be able to write to it; its
  33506. # output is simply discarded. So we exec the FD to /dev/null,
  33507. # effectively closing config.log, so it can be properly (re)opened and
  33508. # appended to by config.status. When coming back to configure, we
  33509. # need to make the FD available again.
  33510. if test "$no_create" != yes; then
  33511. ac_cs_success=:
  33512. ac_config_status_args=
  33513. test "$silent" = yes &&
  33514. ac_config_status_args="$ac_config_status_args --quiet"
  33515. exec 5>/dev/null
  33516. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  33517. exec 5>>config.log
  33518. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  33519. # would make configure fail if this is the last instruction.
  33520. $ac_cs_success || { (exit 1); exit 1; }
  33521. fi
  33522. #
  33523. # CONFIG_SUBDIRS section.
  33524. #
  33525. if test "$no_recursion" != yes; then
  33526. # Remove --cache-file, --srcdir, and --disable-option-checking arguments
  33527. # so they do not pile up.
  33528. ac_sub_configure_args=
  33529. ac_prev=
  33530. eval "set x $ac_configure_args"
  33531. shift
  33532. for ac_arg
  33533. do
  33534. if test -n "$ac_prev"; then
  33535. ac_prev=
  33536. continue
  33537. fi
  33538. case $ac_arg in
  33539. -cache-file | --cache-file | --cache-fil | --cache-fi \
  33540. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  33541. ac_prev=cache_file ;;
  33542. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  33543. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  33544. | --c=*)
  33545. ;;
  33546. --config-cache | -C)
  33547. ;;
  33548. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  33549. ac_prev=srcdir ;;
  33550. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  33551. ;;
  33552. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  33553. ac_prev=prefix ;;
  33554. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  33555. ;;
  33556. --disable-option-checking)
  33557. ;;
  33558. *)
  33559. case $ac_arg in
  33560. *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  33561. esac
  33562. ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
  33563. esac
  33564. done
  33565. # Always prepend --prefix to ensure using the same prefix
  33566. # in subdir configurations.
  33567. ac_arg="--prefix=$prefix"
  33568. case $ac_arg in
  33569. *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  33570. esac
  33571. ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
  33572. # Pass --silent
  33573. if test "$silent" = yes; then
  33574. ac_sub_configure_args="--silent $ac_sub_configure_args"
  33575. fi
  33576. # Always prepend --disable-option-checking to silence warnings, since
  33577. # different subdirs can have different --enable and --with options.
  33578. ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
  33579. ac_popdir=`pwd`
  33580. for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
  33581. # Do not complain, so a configure script can configure whichever
  33582. # parts of a large source tree are present.
  33583. test -d "$srcdir/$ac_dir" || continue
  33584. ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
  33585. $as_echo "$as_me:$LINENO: $ac_msg" >&5
  33586. $as_echo "$ac_msg" >&6
  33587. { as_dir="$ac_dir"
  33588. case $as_dir in #(
  33589. -*) as_dir=./$as_dir;;
  33590. esac
  33591. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  33592. as_dirs=
  33593. while :; do
  33594. case $as_dir in #(
  33595. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  33596. *) as_qdir=$as_dir;;
  33597. esac
  33598. as_dirs="'$as_qdir' $as_dirs"
  33599. as_dir=`$as_dirname -- "$as_dir" ||
  33600. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  33601. X"$as_dir" : 'X\(//\)[^/]' \| \
  33602. X"$as_dir" : 'X\(//\)$' \| \
  33603. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  33604. $as_echo X"$as_dir" |
  33605. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  33606. s//\1/
  33607. q
  33608. }
  33609. /^X\(\/\/\)[^/].*/{
  33610. s//\1/
  33611. q
  33612. }
  33613. /^X\(\/\/\)$/{
  33614. s//\1/
  33615. q
  33616. }
  33617. /^X\(\/\).*/{
  33618. s//\1/
  33619. q
  33620. }
  33621. s/.*/./; q'`
  33622. test -d "$as_dir" && break
  33623. done
  33624. test -z "$as_dirs" || eval "mkdir $as_dirs"
  33625. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  33626. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  33627. { (exit 1); exit 1; }; }; }
  33628. ac_builddir=.
  33629. case "$ac_dir" in
  33630. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  33631. *)
  33632. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  33633. # A ".." for each directory in $ac_dir_suffix.
  33634. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  33635. case $ac_top_builddir_sub in
  33636. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  33637. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  33638. esac ;;
  33639. esac
  33640. ac_abs_top_builddir=$ac_pwd
  33641. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  33642. # for backward compatibility:
  33643. ac_top_builddir=$ac_top_build_prefix
  33644. case $srcdir in
  33645. .) # We are building in place.
  33646. ac_srcdir=.
  33647. ac_top_srcdir=$ac_top_builddir_sub
  33648. ac_abs_top_srcdir=$ac_pwd ;;
  33649. [\\/]* | ?:[\\/]* ) # Absolute name.
  33650. ac_srcdir=$srcdir$ac_dir_suffix;
  33651. ac_top_srcdir=$srcdir
  33652. ac_abs_top_srcdir=$srcdir ;;
  33653. *) # Relative name.
  33654. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  33655. ac_top_srcdir=$ac_top_build_prefix$srcdir
  33656. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  33657. esac
  33658. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  33659. cd "$ac_dir"
  33660. # Check for guested configure; otherwise get Cygnus style configure.
  33661. if test -f "$ac_srcdir/configure.gnu"; then
  33662. ac_sub_configure=$ac_srcdir/configure.gnu
  33663. elif test -f "$ac_srcdir/configure"; then
  33664. ac_sub_configure=$ac_srcdir/configure
  33665. elif test -f "$ac_srcdir/configure.in"; then
  33666. # This should be Cygnus configure.
  33667. ac_sub_configure=$ac_aux_dir/configure
  33668. else
  33669. { $as_echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
  33670. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
  33671. ac_sub_configure=
  33672. fi
  33673. # The recursion is here.
  33674. if test -n "$ac_sub_configure"; then
  33675. # Make the cache file name correct relative to the subdirectory.
  33676. case $cache_file in
  33677. [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
  33678. *) # Relative name.
  33679. ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
  33680. esac
  33681. { $as_echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
  33682. $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
  33683. # The eval makes quoting arguments work.
  33684. eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
  33685. --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
  33686. { { $as_echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
  33687. $as_echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
  33688. { (exit 1); exit 1; }; }
  33689. fi
  33690. cd "$ac_popdir"
  33691. done
  33692. fi
  33693. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  33694. { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  33695. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  33696. fi