configure.sh 459 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.61.
  4. #
  5. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  6. # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9. ## --------------------- ##
  10. ## M4sh Initialization. ##
  11. ## --------------------- ##
  12. # Be more Bourne compatible
  13. DUALCASE=1; export DUALCASE # for MKS sh
  14. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  15. emulate sh
  16. NULLCMD=:
  17. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  18. # is contrary to our usage. Disable this feature.
  19. alias -g '${1+"$@"}'='"$@"'
  20. setopt NO_GLOB_SUBST
  21. else
  22. case `(set -o) 2>/dev/null` in
  23. *posix*) set -o posix ;;
  24. esac
  25. fi
  26. # PATH needs CR
  27. # Avoid depending upon Character Ranges.
  28. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  29. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  30. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  31. as_cr_digits='0123456789'
  32. as_cr_alnum=$as_cr_Letters$as_cr_digits
  33. # The user is always right.
  34. if test "${PATH_SEPARATOR+set}" != set; then
  35. echo "#! /bin/sh" >conf$$.sh
  36. echo "exit 0" >>conf$$.sh
  37. chmod +x conf$$.sh
  38. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  39. PATH_SEPARATOR=';'
  40. else
  41. PATH_SEPARATOR=:
  42. fi
  43. rm -f conf$$.sh
  44. fi
  45. # Support unset when possible.
  46. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  47. as_unset=unset
  48. else
  49. as_unset=false
  50. fi
  51. # IFS
  52. # We need space, tab and new line, in precisely that order. Quoting is
  53. # there to prevent editors from complaining about space-tab.
  54. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  55. # splitting by setting IFS to empty value.)
  56. as_nl='
  57. '
  58. IFS=" "" $as_nl"
  59. # Find who we are. Look in the path if we contain no directory separator.
  60. case $0 in
  61. *[\\/]* ) as_myself=$0 ;;
  62. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  63. for as_dir in $PATH
  64. do
  65. IFS=$as_save_IFS
  66. test -z "$as_dir" && as_dir=.
  67. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  68. done
  69. IFS=$as_save_IFS
  70. ;;
  71. esac
  72. # We did not find ourselves, most probably we were run as `sh COMMAND'
  73. # in which case we are not to be found in the path.
  74. if test "x$as_myself" = x; then
  75. as_myself=$0
  76. fi
  77. if test ! -f "$as_myself"; then
  78. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  79. { (exit 1); exit 1; }
  80. fi
  81. # Work around bugs in pre-3.0 UWIN ksh.
  82. for as_var in ENV MAIL MAILPATH
  83. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  84. done
  85. PS1='$ '
  86. PS2='> '
  87. PS4='+ '
  88. # NLS nuisances.
  89. for as_var in \
  90. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  91. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  92. LC_TELEPHONE LC_TIME
  93. do
  94. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  95. eval $as_var=C; export $as_var
  96. else
  97. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  98. fi
  99. done
  100. # Required to use basename.
  101. if expr a : '\(a\)' >/dev/null 2>&1 &&
  102. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  103. as_expr=expr
  104. else
  105. as_expr=false
  106. fi
  107. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  108. as_basename=basename
  109. else
  110. as_basename=false
  111. fi
  112. # Name of the executable.
  113. as_me=`$as_basename -- "$0" ||
  114. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  115. X"$0" : 'X\(//\)$' \| \
  116. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  117. echo X/"$0" |
  118. sed '/^.*\/\([^/][^/]*\)\/*$/{
  119. s//\1/
  120. q
  121. }
  122. /^X\/\(\/\/\)$/{
  123. s//\1/
  124. q
  125. }
  126. /^X\/\(\/\).*/{
  127. s//\1/
  128. q
  129. }
  130. s/.*/./; q'`
  131. # CDPATH.
  132. $as_unset CDPATH
  133. if test "x$CONFIG_SHELL" = x; then
  134. if (eval ":") 2>/dev/null; then
  135. as_have_required=yes
  136. else
  137. as_have_required=no
  138. fi
  139. if test $as_have_required = yes && (eval ":
  140. (as_func_return () {
  141. (exit \$1)
  142. }
  143. as_func_success () {
  144. as_func_return 0
  145. }
  146. as_func_failure () {
  147. as_func_return 1
  148. }
  149. as_func_ret_success () {
  150. return 0
  151. }
  152. as_func_ret_failure () {
  153. return 1
  154. }
  155. exitcode=0
  156. if as_func_success; then
  157. :
  158. else
  159. exitcode=1
  160. echo as_func_success failed.
  161. fi
  162. if as_func_failure; then
  163. exitcode=1
  164. echo as_func_failure succeeded.
  165. fi
  166. if as_func_ret_success; then
  167. :
  168. else
  169. exitcode=1
  170. echo as_func_ret_success failed.
  171. fi
  172. if as_func_ret_failure; then
  173. exitcode=1
  174. echo as_func_ret_failure succeeded.
  175. fi
  176. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  177. :
  178. else
  179. exitcode=1
  180. echo positional parameters were not saved.
  181. fi
  182. test \$exitcode = 0) || { (exit 1); exit 1; }
  183. (
  184. as_lineno_1=\$LINENO
  185. as_lineno_2=\$LINENO
  186. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  187. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  188. ") 2> /dev/null; then
  189. :
  190. else
  191. as_candidate_shells=
  192. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  193. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  194. do
  195. IFS=$as_save_IFS
  196. test -z "$as_dir" && as_dir=.
  197. case $as_dir in
  198. /*)
  199. for as_base in sh bash ksh sh5; do
  200. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  201. done;;
  202. esac
  203. done
  204. IFS=$as_save_IFS
  205. for as_shell in $as_candidate_shells $SHELL; do
  206. # Try only shells that exist, to save several forks.
  207. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  208. { ("$as_shell") 2> /dev/null <<\_ASEOF
  209. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  210. emulate sh
  211. NULLCMD=:
  212. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  213. # is contrary to our usage. Disable this feature.
  214. alias -g '${1+"$@"}'='"$@"'
  215. setopt NO_GLOB_SUBST
  216. else
  217. case `(set -o) 2>/dev/null` in
  218. *posix*) set -o posix ;;
  219. esac
  220. fi
  221. :
  222. _ASEOF
  223. }; then
  224. CONFIG_SHELL=$as_shell
  225. as_have_required=yes
  226. if { "$as_shell" 2> /dev/null <<\_ASEOF
  227. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  228. emulate sh
  229. NULLCMD=:
  230. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  231. # is contrary to our usage. Disable this feature.
  232. alias -g '${1+"$@"}'='"$@"'
  233. setopt NO_GLOB_SUBST
  234. else
  235. case `(set -o) 2>/dev/null` in
  236. *posix*) set -o posix ;;
  237. esac
  238. fi
  239. :
  240. (as_func_return () {
  241. (exit $1)
  242. }
  243. as_func_success () {
  244. as_func_return 0
  245. }
  246. as_func_failure () {
  247. as_func_return 1
  248. }
  249. as_func_ret_success () {
  250. return 0
  251. }
  252. as_func_ret_failure () {
  253. return 1
  254. }
  255. exitcode=0
  256. if as_func_success; then
  257. :
  258. else
  259. exitcode=1
  260. echo as_func_success failed.
  261. fi
  262. if as_func_failure; then
  263. exitcode=1
  264. echo as_func_failure succeeded.
  265. fi
  266. if as_func_ret_success; then
  267. :
  268. else
  269. exitcode=1
  270. echo as_func_ret_success failed.
  271. fi
  272. if as_func_ret_failure; then
  273. exitcode=1
  274. echo as_func_ret_failure succeeded.
  275. fi
  276. if ( set x; as_func_ret_success y && test x = "$1" ); then
  277. :
  278. else
  279. exitcode=1
  280. echo positional parameters were not saved.
  281. fi
  282. test $exitcode = 0) || { (exit 1); exit 1; }
  283. (
  284. as_lineno_1=$LINENO
  285. as_lineno_2=$LINENO
  286. test "x$as_lineno_1" != "x$as_lineno_2" &&
  287. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  288. _ASEOF
  289. }; then
  290. break
  291. fi
  292. fi
  293. done
  294. if test "x$CONFIG_SHELL" != x; then
  295. for as_var in BASH_ENV ENV
  296. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  297. done
  298. export CONFIG_SHELL
  299. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  300. fi
  301. if test $as_have_required = no; then
  302. echo This script requires a shell more modern than all the
  303. echo shells that I found on your system. Please install a
  304. echo modern shell, or manually run the script under such a
  305. echo shell if you do have one.
  306. { (exit 1); exit 1; }
  307. fi
  308. fi
  309. fi
  310. (eval "as_func_return () {
  311. (exit \$1)
  312. }
  313. as_func_success () {
  314. as_func_return 0
  315. }
  316. as_func_failure () {
  317. as_func_return 1
  318. }
  319. as_func_ret_success () {
  320. return 0
  321. }
  322. as_func_ret_failure () {
  323. return 1
  324. }
  325. exitcode=0
  326. if as_func_success; then
  327. :
  328. else
  329. exitcode=1
  330. echo as_func_success failed.
  331. fi
  332. if as_func_failure; then
  333. exitcode=1
  334. echo as_func_failure succeeded.
  335. fi
  336. if as_func_ret_success; then
  337. :
  338. else
  339. exitcode=1
  340. echo as_func_ret_success failed.
  341. fi
  342. if as_func_ret_failure; then
  343. exitcode=1
  344. echo as_func_ret_failure succeeded.
  345. fi
  346. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  347. :
  348. else
  349. exitcode=1
  350. echo positional parameters were not saved.
  351. fi
  352. test \$exitcode = 0") || {
  353. echo No shell found that supports shell functions.
  354. echo Please tell autoconf@gnu.org about your system,
  355. echo including any error possibly output before this
  356. echo message
  357. }
  358. as_lineno_1=$LINENO
  359. as_lineno_2=$LINENO
  360. test "x$as_lineno_1" != "x$as_lineno_2" &&
  361. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  362. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  363. # uniformly replaced by the line number. The first 'sed' inserts a
  364. # line-number line after each line using $LINENO; the second 'sed'
  365. # does the real work. The second script uses 'N' to pair each
  366. # line-number line with the line containing $LINENO, and appends
  367. # trailing '-' during substitution so that $LINENO is not a special
  368. # case at line end.
  369. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  370. # scripts with optimization help from Paolo Bonzini. Blame Lee
  371. # E. McMahon (1931-1989) for sed's syntax. :-)
  372. sed -n '
  373. p
  374. /[$]LINENO/=
  375. ' <$as_myself |
  376. sed '
  377. s/[$]LINENO.*/&-/
  378. t lineno
  379. b
  380. :lineno
  381. N
  382. :loop
  383. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  384. t loop
  385. s/-\n.*//
  386. ' >$as_me.lineno &&
  387. chmod +x "$as_me.lineno" ||
  388. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  389. { (exit 1); exit 1; }; }
  390. # Don't try to exec as it changes $[0], causing all sort of problems
  391. # (the dirname of $[0] is not the place where we might find the
  392. # original and so on. Autoconf is especially sensitive to this).
  393. . "./$as_me.lineno"
  394. # Exit status is that of the last command.
  395. exit
  396. }
  397. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  398. as_dirname=dirname
  399. else
  400. as_dirname=false
  401. fi
  402. ECHO_C= ECHO_N= ECHO_T=
  403. case `echo -n x` in
  404. -n*)
  405. case `echo 'x\c'` in
  406. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  407. *) ECHO_C='\c';;
  408. esac;;
  409. *)
  410. ECHO_N='-n';;
  411. esac
  412. if expr a : '\(a\)' >/dev/null 2>&1 &&
  413. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  414. as_expr=expr
  415. else
  416. as_expr=false
  417. fi
  418. rm -f conf$$ conf$$.exe conf$$.file
  419. if test -d conf$$.dir; then
  420. rm -f conf$$.dir/conf$$.file
  421. else
  422. rm -f conf$$.dir
  423. mkdir conf$$.dir
  424. fi
  425. echo >conf$$.file
  426. if ln -s conf$$.file conf$$ 2>/dev/null; then
  427. as_ln_s='ln -s'
  428. # ... but there are two gotchas:
  429. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  430. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  431. # In both cases, we have to default to `cp -p'.
  432. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  433. as_ln_s='cp -p'
  434. elif ln conf$$.file conf$$ 2>/dev/null; then
  435. as_ln_s=ln
  436. else
  437. as_ln_s='cp -p'
  438. fi
  439. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  440. rmdir conf$$.dir 2>/dev/null
  441. if mkdir -p . 2>/dev/null; then
  442. as_mkdir_p=:
  443. else
  444. test -d ./-p && rmdir ./-p
  445. as_mkdir_p=false
  446. fi
  447. if test -x / >/dev/null 2>&1; then
  448. as_test_x='test -x'
  449. else
  450. if ls -dL / >/dev/null 2>&1; then
  451. as_ls_L_option=L
  452. else
  453. as_ls_L_option=
  454. fi
  455. as_test_x='
  456. eval sh -c '\''
  457. if test -d "$1"; then
  458. test -d "$1/.";
  459. else
  460. case $1 in
  461. -*)set "./$1";;
  462. esac;
  463. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  464. ???[sx]*):;;*)false;;esac;fi
  465. '\'' sh
  466. '
  467. fi
  468. as_executable_p=$as_test_x
  469. # Sed expression to map a string onto a valid CPP name.
  470. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  471. # Sed expression to map a string onto a valid variable name.
  472. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  473. exec 7<&0 </dev/null 6>&1
  474. # Name of the host.
  475. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  476. # so uname gets run too.
  477. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  478. #
  479. # Initializations.
  480. #
  481. ac_default_prefix=/usr/local
  482. ac_clean_files=
  483. ac_config_libobj_dir=.
  484. LIBOBJS=
  485. cross_compiling=no
  486. subdirs=
  487. MFLAGS=
  488. MAKEFLAGS=
  489. SHELL=${CONFIG_SHELL-/bin/sh}
  490. # Identity of this package.
  491. PACKAGE_NAME=
  492. PACKAGE_TARNAME=
  493. PACKAGE_VERSION=
  494. PACKAGE_STRING=
  495. PACKAGE_BUGREPORT=
  496. ac_unique_file="byteorder.h"
  497. # Factoring default headers for most tests.
  498. ac_includes_default="\
  499. #include <stdio.h>
  500. #ifdef HAVE_SYS_TYPES_H
  501. # include <sys/types.h>
  502. #endif
  503. #ifdef HAVE_SYS_STAT_H
  504. # include <sys/stat.h>
  505. #endif
  506. #ifdef STDC_HEADERS
  507. # include <stdlib.h>
  508. # include <stddef.h>
  509. #else
  510. # ifdef HAVE_STDLIB_H
  511. # include <stdlib.h>
  512. # endif
  513. #endif
  514. #ifdef HAVE_STRING_H
  515. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  516. # include <memory.h>
  517. # endif
  518. # include <string.h>
  519. #endif
  520. #ifdef HAVE_STRINGS_H
  521. # include <strings.h>
  522. #endif
  523. #ifdef HAVE_INTTYPES_H
  524. # include <inttypes.h>
  525. #endif
  526. #ifdef HAVE_STDINT_H
  527. # include <stdint.h>
  528. #endif
  529. #ifdef HAVE_UNISTD_H
  530. # include <unistd.h>
  531. #endif"
  532. ac_header_list=
  533. ac_subst_vars='SHELL
  534. PATH_SEPARATOR
  535. PACKAGE_NAME
  536. PACKAGE_TARNAME
  537. PACKAGE_VERSION
  538. PACKAGE_STRING
  539. PACKAGE_BUGREPORT
  540. exec_prefix
  541. prefix
  542. program_transform_name
  543. bindir
  544. sbindir
  545. libexecdir
  546. datarootdir
  547. datadir
  548. sysconfdir
  549. sharedstatedir
  550. localstatedir
  551. includedir
  552. oldincludedir
  553. docdir
  554. infodir
  555. htmldir
  556. dvidir
  557. pdfdir
  558. psdir
  559. libdir
  560. localedir
  561. mandir
  562. DEFS
  563. ECHO_C
  564. ECHO_N
  565. ECHO_T
  566. LIBS
  567. build_alias
  568. host_alias
  569. target_alias
  570. RSYNC_VERSION
  571. build
  572. build_cpu
  573. build_vendor
  574. build_os
  575. host
  576. host_cpu
  577. host_vendor
  578. host_os
  579. target
  580. target_cpu
  581. target_vendor
  582. target_os
  583. CC
  584. CFLAGS
  585. LDFLAGS
  586. CPPFLAGS
  587. ac_ct_CC
  588. EXEEXT
  589. OBJEXT
  590. CPP
  591. GREP
  592. EGREP
  593. INSTALL_PROGRAM
  594. INSTALL_SCRIPT
  595. INSTALL_DATA
  596. HAVE_REMSH
  597. HAVE_YODL2MAN
  598. LIBOBJS
  599. ALLOCA
  600. OBJ_SAVE
  601. OBJ_RESTORE
  602. CC_SHOBJ_FLAG
  603. BUILD_POPT
  604. MAKE_MAN
  605. LTLIBOBJS'
  606. ac_subst_files=''
  607. ac_precious_vars='build_alias
  608. host_alias
  609. target_alias
  610. CC
  611. CFLAGS
  612. LDFLAGS
  613. LIBS
  614. CPPFLAGS
  615. CPP'
  616. # Initialize some variables set by options.
  617. ac_init_help=
  618. ac_init_version=false
  619. # The variables have the same names as the options, with
  620. # dashes changed to underlines.
  621. cache_file=/dev/null
  622. exec_prefix=NONE
  623. no_create=
  624. no_recursion=
  625. prefix=NONE
  626. program_prefix=NONE
  627. program_suffix=NONE
  628. program_transform_name=s,x,x,
  629. silent=
  630. site=
  631. srcdir=
  632. verbose=
  633. x_includes=NONE
  634. x_libraries=NONE
  635. # Installation directory options.
  636. # These are left unexpanded so users can "make install exec_prefix=/foo"
  637. # and all the variables that are supposed to be based on exec_prefix
  638. # by default will actually change.
  639. # Use braces instead of parens because sh, perl, etc. also accept them.
  640. # (The list follows the same order as the GNU Coding Standards.)
  641. bindir='${exec_prefix}/bin'
  642. sbindir='${exec_prefix}/sbin'
  643. libexecdir='${exec_prefix}/libexec'
  644. datarootdir='${prefix}/share'
  645. datadir='${datarootdir}'
  646. sysconfdir='${prefix}/etc'
  647. sharedstatedir='${prefix}/com'
  648. localstatedir='${prefix}/var'
  649. includedir='${prefix}/include'
  650. oldincludedir='/usr/include'
  651. docdir='${datarootdir}/doc/${PACKAGE}'
  652. infodir='${datarootdir}/info'
  653. htmldir='${docdir}'
  654. dvidir='${docdir}'
  655. pdfdir='${docdir}'
  656. psdir='${docdir}'
  657. libdir='${exec_prefix}/lib'
  658. localedir='${datarootdir}/locale'
  659. mandir='${datarootdir}/man'
  660. ac_prev=
  661. ac_dashdash=
  662. for ac_option
  663. do
  664. # If the previous option needs an argument, assign it.
  665. if test -n "$ac_prev"; then
  666. eval $ac_prev=\$ac_option
  667. ac_prev=
  668. continue
  669. fi
  670. case $ac_option in
  671. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  672. *) ac_optarg=yes ;;
  673. esac
  674. # Accept the important Cygnus configure options, so we can diagnose typos.
  675. case $ac_dashdash$ac_option in
  676. --)
  677. ac_dashdash=yes ;;
  678. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  679. ac_prev=bindir ;;
  680. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  681. bindir=$ac_optarg ;;
  682. -build | --build | --buil | --bui | --bu)
  683. ac_prev=build_alias ;;
  684. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  685. build_alias=$ac_optarg ;;
  686. -cache-file | --cache-file | --cache-fil | --cache-fi \
  687. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  688. ac_prev=cache_file ;;
  689. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  690. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  691. cache_file=$ac_optarg ;;
  692. --config-cache | -C)
  693. cache_file=config.cache ;;
  694. -datadir | --datadir | --datadi | --datad)
  695. ac_prev=datadir ;;
  696. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  697. datadir=$ac_optarg ;;
  698. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  699. | --dataroo | --dataro | --datar)
  700. ac_prev=datarootdir ;;
  701. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  702. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  703. datarootdir=$ac_optarg ;;
  704. -disable-* | --disable-*)
  705. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  706. # Reject names that are not valid shell variable names.
  707. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  708. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  709. { (exit 1); exit 1; }; }
  710. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  711. eval enable_$ac_feature=no ;;
  712. -docdir | --docdir | --docdi | --doc | --do)
  713. ac_prev=docdir ;;
  714. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  715. docdir=$ac_optarg ;;
  716. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  717. ac_prev=dvidir ;;
  718. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  719. dvidir=$ac_optarg ;;
  720. -enable-* | --enable-*)
  721. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  722. # Reject names that are not valid shell variable names.
  723. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  724. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  725. { (exit 1); exit 1; }; }
  726. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  727. eval enable_$ac_feature=\$ac_optarg ;;
  728. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  729. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  730. | --exec | --exe | --ex)
  731. ac_prev=exec_prefix ;;
  732. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  733. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  734. | --exec=* | --exe=* | --ex=*)
  735. exec_prefix=$ac_optarg ;;
  736. -gas | --gas | --ga | --g)
  737. # Obsolete; use --with-gas.
  738. with_gas=yes ;;
  739. -help | --help | --hel | --he | -h)
  740. ac_init_help=long ;;
  741. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  742. ac_init_help=recursive ;;
  743. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  744. ac_init_help=short ;;
  745. -host | --host | --hos | --ho)
  746. ac_prev=host_alias ;;
  747. -host=* | --host=* | --hos=* | --ho=*)
  748. host_alias=$ac_optarg ;;
  749. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  750. ac_prev=htmldir ;;
  751. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  752. | --ht=*)
  753. htmldir=$ac_optarg ;;
  754. -includedir | --includedir | --includedi | --included | --include \
  755. | --includ | --inclu | --incl | --inc)
  756. ac_prev=includedir ;;
  757. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  758. | --includ=* | --inclu=* | --incl=* | --inc=*)
  759. includedir=$ac_optarg ;;
  760. -infodir | --infodir | --infodi | --infod | --info | --inf)
  761. ac_prev=infodir ;;
  762. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  763. infodir=$ac_optarg ;;
  764. -libdir | --libdir | --libdi | --libd)
  765. ac_prev=libdir ;;
  766. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  767. libdir=$ac_optarg ;;
  768. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  769. | --libexe | --libex | --libe)
  770. ac_prev=libexecdir ;;
  771. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  772. | --libexe=* | --libex=* | --libe=*)
  773. libexecdir=$ac_optarg ;;
  774. -localedir | --localedir | --localedi | --localed | --locale)
  775. ac_prev=localedir ;;
  776. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  777. localedir=$ac_optarg ;;
  778. -localstatedir | --localstatedir | --localstatedi | --localstated \
  779. | --localstate | --localstat | --localsta | --localst | --locals)
  780. ac_prev=localstatedir ;;
  781. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  782. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  783. localstatedir=$ac_optarg ;;
  784. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  785. ac_prev=mandir ;;
  786. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  787. mandir=$ac_optarg ;;
  788. -nfp | --nfp | --nf)
  789. # Obsolete; use --without-fp.
  790. with_fp=no ;;
  791. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  792. | --no-cr | --no-c | -n)
  793. no_create=yes ;;
  794. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  795. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  796. no_recursion=yes ;;
  797. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  798. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  799. | --oldin | --oldi | --old | --ol | --o)
  800. ac_prev=oldincludedir ;;
  801. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  802. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  803. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  804. oldincludedir=$ac_optarg ;;
  805. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  806. ac_prev=prefix ;;
  807. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  808. prefix=$ac_optarg ;;
  809. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  810. | --program-pre | --program-pr | --program-p)
  811. ac_prev=program_prefix ;;
  812. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  813. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  814. program_prefix=$ac_optarg ;;
  815. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  816. | --program-suf | --program-su | --program-s)
  817. ac_prev=program_suffix ;;
  818. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  819. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  820. program_suffix=$ac_optarg ;;
  821. -program-transform-name | --program-transform-name \
  822. | --program-transform-nam | --program-transform-na \
  823. | --program-transform-n | --program-transform- \
  824. | --program-transform | --program-transfor \
  825. | --program-transfo | --program-transf \
  826. | --program-trans | --program-tran \
  827. | --progr-tra | --program-tr | --program-t)
  828. ac_prev=program_transform_name ;;
  829. -program-transform-name=* | --program-transform-name=* \
  830. | --program-transform-nam=* | --program-transform-na=* \
  831. | --program-transform-n=* | --program-transform-=* \
  832. | --program-transform=* | --program-transfor=* \
  833. | --program-transfo=* | --program-transf=* \
  834. | --program-trans=* | --program-tran=* \
  835. | --progr-tra=* | --program-tr=* | --program-t=*)
  836. program_transform_name=$ac_optarg ;;
  837. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  838. ac_prev=pdfdir ;;
  839. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  840. pdfdir=$ac_optarg ;;
  841. -psdir | --psdir | --psdi | --psd | --ps)
  842. ac_prev=psdir ;;
  843. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  844. psdir=$ac_optarg ;;
  845. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  846. | -silent | --silent | --silen | --sile | --sil)
  847. silent=yes ;;
  848. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  849. ac_prev=sbindir ;;
  850. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  851. | --sbi=* | --sb=*)
  852. sbindir=$ac_optarg ;;
  853. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  854. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  855. | --sharedst | --shareds | --shared | --share | --shar \
  856. | --sha | --sh)
  857. ac_prev=sharedstatedir ;;
  858. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  859. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  860. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  861. | --sha=* | --sh=*)
  862. sharedstatedir=$ac_optarg ;;
  863. -site | --site | --sit)
  864. ac_prev=site ;;
  865. -site=* | --site=* | --sit=*)
  866. site=$ac_optarg ;;
  867. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  868. ac_prev=srcdir ;;
  869. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  870. srcdir=$ac_optarg ;;
  871. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  872. | --syscon | --sysco | --sysc | --sys | --sy)
  873. ac_prev=sysconfdir ;;
  874. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  875. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  876. sysconfdir=$ac_optarg ;;
  877. -target | --target | --targe | --targ | --tar | --ta | --t)
  878. ac_prev=target_alias ;;
  879. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  880. target_alias=$ac_optarg ;;
  881. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  882. verbose=yes ;;
  883. -version | --version | --versio | --versi | --vers | -V)
  884. ac_init_version=: ;;
  885. -with-* | --with-*)
  886. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  887. # Reject names that are not valid shell variable names.
  888. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  889. { echo "$as_me: error: invalid package name: $ac_package" >&2
  890. { (exit 1); exit 1; }; }
  891. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  892. eval with_$ac_package=\$ac_optarg ;;
  893. -without-* | --without-*)
  894. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  895. # Reject names that are not valid shell variable names.
  896. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  897. { echo "$as_me: error: invalid package name: $ac_package" >&2
  898. { (exit 1); exit 1; }; }
  899. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  900. eval with_$ac_package=no ;;
  901. --x)
  902. # Obsolete; use --with-x.
  903. with_x=yes ;;
  904. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  905. | --x-incl | --x-inc | --x-in | --x-i)
  906. ac_prev=x_includes ;;
  907. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  908. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  909. x_includes=$ac_optarg ;;
  910. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  911. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  912. ac_prev=x_libraries ;;
  913. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  914. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  915. x_libraries=$ac_optarg ;;
  916. -*) { echo "$as_me: error: unrecognized option: $ac_option
  917. Try \`$0 --help' for more information." >&2
  918. { (exit 1); exit 1; }; }
  919. ;;
  920. *=*)
  921. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  922. # Reject names that are not valid shell variable names.
  923. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  924. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  925. { (exit 1); exit 1; }; }
  926. eval $ac_envvar=\$ac_optarg
  927. export $ac_envvar ;;
  928. *)
  929. # FIXME: should be removed in autoconf 3.0.
  930. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  931. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  932. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  933. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  934. ;;
  935. esac
  936. done
  937. if test -n "$ac_prev"; then
  938. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  939. { echo "$as_me: error: missing argument to $ac_option" >&2
  940. { (exit 1); exit 1; }; }
  941. fi
  942. # Be sure to have absolute directory names.
  943. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  944. datadir sysconfdir sharedstatedir localstatedir includedir \
  945. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  946. libdir localedir mandir
  947. do
  948. eval ac_val=\$$ac_var
  949. case $ac_val in
  950. [\\/$]* | ?:[\\/]* ) continue;;
  951. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  952. esac
  953. { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  954. { (exit 1); exit 1; }; }
  955. done
  956. # There might be people who depend on the old broken behavior: `$host'
  957. # used to hold the argument of --host etc.
  958. # FIXME: To remove some day.
  959. build=$build_alias
  960. host=$host_alias
  961. target=$target_alias
  962. # FIXME: To remove some day.
  963. if test "x$host_alias" != x; then
  964. if test "x$build_alias" = x; then
  965. cross_compiling=maybe
  966. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  967. If a cross compiler is detected then cross compile mode will be used." >&2
  968. elif test "x$build_alias" != "x$host_alias"; then
  969. cross_compiling=yes
  970. fi
  971. fi
  972. ac_tool_prefix=
  973. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  974. test "$silent" = yes && exec 6>/dev/null
  975. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  976. ac_ls_di=`ls -di .` &&
  977. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  978. { echo "$as_me: error: Working directory cannot be determined" >&2
  979. { (exit 1); exit 1; }; }
  980. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  981. { echo "$as_me: error: pwd does not report name of working directory" >&2
  982. { (exit 1); exit 1; }; }
  983. # Find the source files, if location was not specified.
  984. if test -z "$srcdir"; then
  985. ac_srcdir_defaulted=yes
  986. # Try the directory containing this script, then the parent directory.
  987. ac_confdir=`$as_dirname -- "$0" ||
  988. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  989. X"$0" : 'X\(//\)[^/]' \| \
  990. X"$0" : 'X\(//\)$' \| \
  991. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  992. echo X"$0" |
  993. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  994. s//\1/
  995. q
  996. }
  997. /^X\(\/\/\)[^/].*/{
  998. s//\1/
  999. q
  1000. }
  1001. /^X\(\/\/\)$/{
  1002. s//\1/
  1003. q
  1004. }
  1005. /^X\(\/\).*/{
  1006. s//\1/
  1007. q
  1008. }
  1009. s/.*/./; q'`
  1010. srcdir=$ac_confdir
  1011. if test ! -r "$srcdir/$ac_unique_file"; then
  1012. srcdir=..
  1013. fi
  1014. else
  1015. ac_srcdir_defaulted=no
  1016. fi
  1017. if test ! -r "$srcdir/$ac_unique_file"; then
  1018. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1019. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1020. { (exit 1); exit 1; }; }
  1021. fi
  1022. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1023. ac_abs_confdir=`(
  1024. cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1025. { (exit 1); exit 1; }; }
  1026. pwd)`
  1027. # When building in place, set srcdir=.
  1028. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1029. srcdir=.
  1030. fi
  1031. # Remove unnecessary trailing slashes from srcdir.
  1032. # Double slashes in file names in object file debugging info
  1033. # mess up M-x gdb in Emacs.
  1034. case $srcdir in
  1035. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1036. esac
  1037. for ac_var in $ac_precious_vars; do
  1038. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1039. eval ac_env_${ac_var}_value=\$${ac_var}
  1040. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1041. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1042. done
  1043. #
  1044. # Report the --help message.
  1045. #
  1046. if test "$ac_init_help" = "long"; then
  1047. # Omit some internal or obsolete options to make the list less imposing.
  1048. # This message is too long to be a string in the A/UX 3.1 sh.
  1049. cat <<_ACEOF
  1050. \`configure' configures this package to adapt to many kinds of systems.
  1051. Usage: $0 [OPTION]... [VAR=VALUE]...
  1052. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1053. VAR=VALUE. See below for descriptions of some of the useful variables.
  1054. Defaults for the options are specified in brackets.
  1055. Configuration:
  1056. -h, --help display this help and exit
  1057. --help=short display options specific to this package
  1058. --help=recursive display the short help of all the included packages
  1059. -V, --version display version information and exit
  1060. -q, --quiet, --silent do not print \`checking...' messages
  1061. --cache-file=FILE cache test results in FILE [disabled]
  1062. -C, --config-cache alias for \`--cache-file=config.cache'
  1063. -n, --no-create do not create output files
  1064. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1065. Installation directories:
  1066. --prefix=PREFIX install architecture-independent files in PREFIX
  1067. [$ac_default_prefix]
  1068. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1069. [PREFIX]
  1070. By default, \`make install' will install all the files in
  1071. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1072. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1073. for instance \`--prefix=\$HOME'.
  1074. For better control, use the options below.
  1075. Fine tuning of the installation directories:
  1076. --bindir=DIR user executables [EPREFIX/bin]
  1077. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1078. --libexecdir=DIR program executables [EPREFIX/libexec]
  1079. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1080. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1081. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1082. --libdir=DIR object code libraries [EPREFIX/lib]
  1083. --includedir=DIR C header files [PREFIX/include]
  1084. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1085. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1086. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1087. --infodir=DIR info documentation [DATAROOTDIR/info]
  1088. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1089. --mandir=DIR man documentation [DATAROOTDIR/man]
  1090. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1091. --htmldir=DIR html documentation [DOCDIR]
  1092. --dvidir=DIR dvi documentation [DOCDIR]
  1093. --pdfdir=DIR pdf documentation [DOCDIR]
  1094. --psdir=DIR ps documentation [DOCDIR]
  1095. _ACEOF
  1096. cat <<\_ACEOF
  1097. System types:
  1098. --build=BUILD configure for building on BUILD [guessed]
  1099. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1100. --target=TARGET configure for building compilers for TARGET [HOST]
  1101. _ACEOF
  1102. fi
  1103. if test -n "$ac_init_help"; then
  1104. cat <<\_ACEOF
  1105. Optional Features:
  1106. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1107. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1108. --disable-debug disable debugging symbols and features
  1109. --enable-profile turn on CPU profiling
  1110. --enable-maintainer-mode
  1111. turn on extra debug features
  1112. --disable-largefile omit support for large files
  1113. --disable-ipv6 don't even try to use IPv6
  1114. --disable-locale disable locale features
  1115. --disable-iconv disable rsync's --iconv option
  1116. --disable-acl-support disable ACL support
  1117. --disable-xattr-support disable extended attributes
  1118. Optional Packages:
  1119. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1120. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1121. --with-included-popt use bundled popt library, not from system
  1122. --with-rsync-path=PATH set default --rsync-path to PATH (default: rsync)
  1123. --with-rsyncd-conf=PATH set configuration file for rsync server to PATH
  1124. (default: /etc/rsyncd.conf)
  1125. --with-rsh=CMD set remote shell command to CMD (default: ssh)
  1126. --with-nobody-group=GROUP
  1127. set the default unprivileged group (default nobody
  1128. or nogroup)
  1129. Some influential environment variables:
  1130. CC C compiler command
  1131. CFLAGS C compiler flags
  1132. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1133. nonstandard directory <lib dir>
  1134. LIBS libraries to pass to the linker, e.g. -l<library>
  1135. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1136. you have headers in a nonstandard directory <include dir>
  1137. CPP C preprocessor
  1138. Use these variables to override the choices made by `configure' or to help
  1139. it to find libraries and programs with nonstandard names/locations.
  1140. _ACEOF
  1141. ac_status=$?
  1142. fi
  1143. if test "$ac_init_help" = "recursive"; then
  1144. # If there are subdirs, report their specific --help.
  1145. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1146. test -d "$ac_dir" || continue
  1147. ac_builddir=.
  1148. case "$ac_dir" in
  1149. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1150. *)
  1151. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1152. # A ".." for each directory in $ac_dir_suffix.
  1153. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1154. case $ac_top_builddir_sub in
  1155. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1156. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1157. esac ;;
  1158. esac
  1159. ac_abs_top_builddir=$ac_pwd
  1160. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1161. # for backward compatibility:
  1162. ac_top_builddir=$ac_top_build_prefix
  1163. case $srcdir in
  1164. .) # We are building in place.
  1165. ac_srcdir=.
  1166. ac_top_srcdir=$ac_top_builddir_sub
  1167. ac_abs_top_srcdir=$ac_pwd ;;
  1168. [\\/]* | ?:[\\/]* ) # Absolute name.
  1169. ac_srcdir=$srcdir$ac_dir_suffix;
  1170. ac_top_srcdir=$srcdir
  1171. ac_abs_top_srcdir=$srcdir ;;
  1172. *) # Relative name.
  1173. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1174. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1175. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1176. esac
  1177. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1178. cd "$ac_dir" || { ac_status=$?; continue; }
  1179. # Check for guested configure.
  1180. if test -f "$ac_srcdir/configure.gnu"; then
  1181. echo &&
  1182. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1183. elif test -f "$ac_srcdir/configure"; then
  1184. echo &&
  1185. $SHELL "$ac_srcdir/configure" --help=recursive
  1186. else
  1187. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1188. fi || ac_status=$?
  1189. cd "$ac_pwd" || { ac_status=$?; break; }
  1190. done
  1191. fi
  1192. test -n "$ac_init_help" && exit $ac_status
  1193. if $ac_init_version; then
  1194. cat <<\_ACEOF
  1195. configure
  1196. generated by GNU Autoconf 2.61
  1197. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1198. 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1199. This configure script is free software; the Free Software Foundation
  1200. gives unlimited permission to copy, distribute and modify it.
  1201. _ACEOF
  1202. exit
  1203. fi
  1204. cat >config.log <<_ACEOF
  1205. This file contains any messages produced by compilers while
  1206. running configure, to aid debugging if configure makes a mistake.
  1207. It was created by $as_me, which was
  1208. generated by GNU Autoconf 2.61. Invocation command line was
  1209. $ $0 $@
  1210. _ACEOF
  1211. exec 5>>config.log
  1212. {
  1213. cat <<_ASUNAME
  1214. ## --------- ##
  1215. ## Platform. ##
  1216. ## --------- ##
  1217. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1218. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1219. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1220. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1221. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1222. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1223. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1224. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1225. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1226. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1227. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1228. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1229. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1230. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1231. _ASUNAME
  1232. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1233. for as_dir in $PATH
  1234. do
  1235. IFS=$as_save_IFS
  1236. test -z "$as_dir" && as_dir=.
  1237. echo "PATH: $as_dir"
  1238. done
  1239. IFS=$as_save_IFS
  1240. } >&5
  1241. cat >&5 <<_ACEOF
  1242. ## ----------- ##
  1243. ## Core tests. ##
  1244. ## ----------- ##
  1245. _ACEOF
  1246. # Keep a trace of the command line.
  1247. # Strip out --no-create and --no-recursion so they do not pile up.
  1248. # Strip out --silent because we don't want to record it for future runs.
  1249. # Also quote any args containing shell meta-characters.
  1250. # Make two passes to allow for proper duplicate-argument suppression.
  1251. ac_configure_args=
  1252. ac_configure_args0=
  1253. ac_configure_args1=
  1254. ac_must_keep_next=false
  1255. for ac_pass in 1 2
  1256. do
  1257. for ac_arg
  1258. do
  1259. case $ac_arg in
  1260. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1261. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1262. | -silent | --silent | --silen | --sile | --sil)
  1263. continue ;;
  1264. *\'*)
  1265. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1266. esac
  1267. case $ac_pass in
  1268. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1269. 2)
  1270. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1271. if test $ac_must_keep_next = true; then
  1272. ac_must_keep_next=false # Got value, back to normal.
  1273. else
  1274. case $ac_arg in
  1275. *=* | --config-cache | -C | -disable-* | --disable-* \
  1276. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1277. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1278. | -with-* | --with-* | -without-* | --without-* | --x)
  1279. case "$ac_configure_args0 " in
  1280. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1281. esac
  1282. ;;
  1283. -* ) ac_must_keep_next=true ;;
  1284. esac
  1285. fi
  1286. ac_configure_args="$ac_configure_args '$ac_arg'"
  1287. ;;
  1288. esac
  1289. done
  1290. done
  1291. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1292. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1293. # When interrupted or exit'd, cleanup temporary files, and complete
  1294. # config.log. We remove comments because anyway the quotes in there
  1295. # would cause problems or look ugly.
  1296. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1297. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1298. trap 'exit_status=$?
  1299. # Save into config.log some information that might help in debugging.
  1300. {
  1301. echo
  1302. cat <<\_ASBOX
  1303. ## ---------------- ##
  1304. ## Cache variables. ##
  1305. ## ---------------- ##
  1306. _ASBOX
  1307. echo
  1308. # The following way of writing the cache mishandles newlines in values,
  1309. (
  1310. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1311. eval ac_val=\$$ac_var
  1312. case $ac_val in #(
  1313. *${as_nl}*)
  1314. case $ac_var in #(
  1315. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1316. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1317. esac
  1318. case $ac_var in #(
  1319. _ | IFS | as_nl) ;; #(
  1320. *) $as_unset $ac_var ;;
  1321. esac ;;
  1322. esac
  1323. done
  1324. (set) 2>&1 |
  1325. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1326. *${as_nl}ac_space=\ *)
  1327. sed -n \
  1328. "s/'\''/'\''\\\\'\'''\''/g;
  1329. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1330. ;; #(
  1331. *)
  1332. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1333. ;;
  1334. esac |
  1335. sort
  1336. )
  1337. echo
  1338. cat <<\_ASBOX
  1339. ## ----------------- ##
  1340. ## Output variables. ##
  1341. ## ----------------- ##
  1342. _ASBOX
  1343. echo
  1344. for ac_var in $ac_subst_vars
  1345. do
  1346. eval ac_val=\$$ac_var
  1347. case $ac_val in
  1348. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1349. esac
  1350. echo "$ac_var='\''$ac_val'\''"
  1351. done | sort
  1352. echo
  1353. if test -n "$ac_subst_files"; then
  1354. cat <<\_ASBOX
  1355. ## ------------------- ##
  1356. ## File substitutions. ##
  1357. ## ------------------- ##
  1358. _ASBOX
  1359. echo
  1360. for ac_var in $ac_subst_files
  1361. do
  1362. eval ac_val=\$$ac_var
  1363. case $ac_val in
  1364. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1365. esac
  1366. echo "$ac_var='\''$ac_val'\''"
  1367. done | sort
  1368. echo
  1369. fi
  1370. if test -s confdefs.h; then
  1371. cat <<\_ASBOX
  1372. ## ----------- ##
  1373. ## confdefs.h. ##
  1374. ## ----------- ##
  1375. _ASBOX
  1376. echo
  1377. cat confdefs.h
  1378. echo
  1379. fi
  1380. test "$ac_signal" != 0 &&
  1381. echo "$as_me: caught signal $ac_signal"
  1382. echo "$as_me: exit $exit_status"
  1383. } >&5
  1384. rm -f core *.core core.conftest.* &&
  1385. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1386. exit $exit_status
  1387. ' 0
  1388. for ac_signal in 1 2 13 15; do
  1389. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1390. done
  1391. ac_signal=0
  1392. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1393. rm -f -r conftest* confdefs.h
  1394. # Predefined preprocessor variables.
  1395. cat >>confdefs.h <<_ACEOF
  1396. #define PACKAGE_NAME "$PACKAGE_NAME"
  1397. _ACEOF
  1398. cat >>confdefs.h <<_ACEOF
  1399. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1400. _ACEOF
  1401. cat >>confdefs.h <<_ACEOF
  1402. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1403. _ACEOF
  1404. cat >>confdefs.h <<_ACEOF
  1405. #define PACKAGE_STRING "$PACKAGE_STRING"
  1406. _ACEOF
  1407. cat >>confdefs.h <<_ACEOF
  1408. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1409. _ACEOF
  1410. # Let the site file select an alternate cache file if it wants to.
  1411. # Prefer explicitly selected file to automatically selected ones.
  1412. if test -n "$CONFIG_SITE"; then
  1413. set x "$CONFIG_SITE"
  1414. elif test "x$prefix" != xNONE; then
  1415. set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1416. else
  1417. set x "$ac_default_prefix/share/config.site" \
  1418. "$ac_default_prefix/etc/config.site"
  1419. fi
  1420. shift
  1421. for ac_site_file
  1422. do
  1423. if test -r "$ac_site_file"; then
  1424. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1425. echo "$as_me: loading site script $ac_site_file" >&6;}
  1426. sed 's/^/| /' "$ac_site_file" >&5
  1427. . "$ac_site_file"
  1428. fi
  1429. done
  1430. if test -r "$cache_file"; then
  1431. # Some versions of bash will fail to source /dev/null (special
  1432. # files actually), so we avoid doing that.
  1433. if test -f "$cache_file"; then
  1434. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1435. echo "$as_me: loading cache $cache_file" >&6;}
  1436. case $cache_file in
  1437. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1438. *) . "./$cache_file";;
  1439. esac
  1440. fi
  1441. else
  1442. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1443. echo "$as_me: creating cache $cache_file" >&6;}
  1444. >$cache_file
  1445. fi
  1446. ac_header_list="$ac_header_list utime.h"
  1447. # Check that the precious variables saved in the cache have kept the same
  1448. # value.
  1449. ac_cache_corrupted=false
  1450. for ac_var in $ac_precious_vars; do
  1451. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1452. eval ac_new_set=\$ac_env_${ac_var}_set
  1453. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1454. eval ac_new_val=\$ac_env_${ac_var}_value
  1455. case $ac_old_set,$ac_new_set in
  1456. set,)
  1457. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1458. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1459. ac_cache_corrupted=: ;;
  1460. ,set)
  1461. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1462. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1463. ac_cache_corrupted=: ;;
  1464. ,);;
  1465. *)
  1466. if test "x$ac_old_val" != "x$ac_new_val"; then
  1467. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1468. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1469. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1470. echo "$as_me: former value: $ac_old_val" >&2;}
  1471. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1472. echo "$as_me: current value: $ac_new_val" >&2;}
  1473. ac_cache_corrupted=:
  1474. fi;;
  1475. esac
  1476. # Pass precious variables to config.status.
  1477. if test "$ac_new_set" = set; then
  1478. case $ac_new_val in
  1479. *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1480. *) ac_arg=$ac_var=$ac_new_val ;;
  1481. esac
  1482. case " $ac_configure_args " in
  1483. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1484. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1485. esac
  1486. fi
  1487. done
  1488. if $ac_cache_corrupted; then
  1489. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1490. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1491. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1492. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1493. { (exit 1); exit 1; }; }
  1494. fi
  1495. ac_ext=c
  1496. ac_cpp='$CPP $CPPFLAGS'
  1497. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1498. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1499. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1500. ac_config_headers="$ac_config_headers config.h"
  1501. RSYNC_VERSION=3.0.4
  1502. { echo "$as_me:$LINENO: Configuring rsync $RSYNC_VERSION" >&5
  1503. echo "$as_me: Configuring rsync $RSYNC_VERSION" >&6;}
  1504. cat >>confdefs.h <<_ACEOF
  1505. #define RSYNC_VERSION "$RSYNC_VERSION"
  1506. _ACEOF
  1507. LDFLAGS=${LDFLAGS-""}
  1508. ac_aux_dir=
  1509. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1510. if test -f "$ac_dir/install-sh"; then
  1511. ac_aux_dir=$ac_dir
  1512. ac_install_sh="$ac_aux_dir/install-sh -c"
  1513. break
  1514. elif test -f "$ac_dir/install.sh"; then
  1515. ac_aux_dir=$ac_dir
  1516. ac_install_sh="$ac_aux_dir/install.sh -c"
  1517. break
  1518. elif test -f "$ac_dir/shtool"; then
  1519. ac_aux_dir=$ac_dir
  1520. ac_install_sh="$ac_aux_dir/shtool install -c"
  1521. break
  1522. fi
  1523. done
  1524. if test -z "$ac_aux_dir"; then
  1525. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1526. echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1527. { (exit 1); exit 1; }; }
  1528. fi
  1529. # These three variables are undocumented and unsupported,
  1530. # and are intended to be withdrawn in a future Autoconf release.
  1531. # They can cause serious problems if a builder's source tree is in a directory
  1532. # whose full name contains unusual characters.
  1533. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1534. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1535. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1536. # Make sure we can run config.sub.
  1537. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  1538. { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  1539. echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  1540. { (exit 1); exit 1; }; }
  1541. { echo "$as_me:$LINENO: checking build system type" >&5
  1542. echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  1543. if test "${ac_cv_build+set}" = set; then
  1544. echo $ECHO_N "(cached) $ECHO_C" >&6
  1545. else
  1546. ac_build_alias=$build_alias
  1547. test "x$ac_build_alias" = x &&
  1548. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  1549. test "x$ac_build_alias" = x &&
  1550. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1551. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1552. { (exit 1); exit 1; }; }
  1553. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  1554. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  1555. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  1556. { (exit 1); exit 1; }; }
  1557. fi
  1558. { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1559. echo "${ECHO_T}$ac_cv_build" >&6; }
  1560. case $ac_cv_build in
  1561. *-*-*) ;;
  1562. *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  1563. echo "$as_me: error: invalid value of canonical build" >&2;}
  1564. { (exit 1); exit 1; }; };;
  1565. esac
  1566. build=$ac_cv_build
  1567. ac_save_IFS=$IFS; IFS='-'
  1568. set x $ac_cv_build
  1569. shift
  1570. build_cpu=$1
  1571. build_vendor=$2
  1572. shift; shift
  1573. # Remember, the first character of IFS is used to create $*,
  1574. # except with old shells:
  1575. build_os=$*
  1576. IFS=$ac_save_IFS
  1577. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  1578. { echo "$as_me:$LINENO: checking host system type" >&5
  1579. echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  1580. if test "${ac_cv_host+set}" = set; then
  1581. echo $ECHO_N "(cached) $ECHO_C" >&6
  1582. else
  1583. if test "x$host_alias" = x; then
  1584. ac_cv_host=$ac_cv_build
  1585. else
  1586. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  1587. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  1588. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  1589. { (exit 1); exit 1; }; }
  1590. fi
  1591. fi
  1592. { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1593. echo "${ECHO_T}$ac_cv_host" >&6; }
  1594. case $ac_cv_host in
  1595. *-*-*) ;;
  1596. *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  1597. echo "$as_me: error: invalid value of canonical host" >&2;}
  1598. { (exit 1); exit 1; }; };;
  1599. esac
  1600. host=$ac_cv_host
  1601. ac_save_IFS=$IFS; IFS='-'
  1602. set x $ac_cv_host
  1603. shift
  1604. host_cpu=$1
  1605. host_vendor=$2
  1606. shift; shift
  1607. # Remember, the first character of IFS is used to create $*,
  1608. # except with old shells:
  1609. host_os=$*
  1610. IFS=$ac_save_IFS
  1611. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  1612. { echo "$as_me:$LINENO: checking target system type" >&5
  1613. echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
  1614. if test "${ac_cv_target+set}" = set; then
  1615. echo $ECHO_N "(cached) $ECHO_C" >&6
  1616. else
  1617. if test "x$target_alias" = x; then
  1618. ac_cv_target=$ac_cv_host
  1619. else
  1620. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  1621. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
  1622. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
  1623. { (exit 1); exit 1; }; }
  1624. fi
  1625. fi
  1626. { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  1627. echo "${ECHO_T}$ac_cv_target" >&6; }
  1628. case $ac_cv_target in
  1629. *-*-*) ;;
  1630. *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
  1631. echo "$as_me: error: invalid value of canonical target" >&2;}
  1632. { (exit 1); exit 1; }; };;
  1633. esac
  1634. target=$ac_cv_target
  1635. ac_save_IFS=$IFS; IFS='-'
  1636. set x $ac_cv_target
  1637. shift
  1638. target_cpu=$1
  1639. target_vendor=$2
  1640. shift; shift
  1641. # Remember, the first character of IFS is used to create $*,
  1642. # except with old shells:
  1643. target_os=$*
  1644. IFS=$ac_save_IFS
  1645. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  1646. # The aliases save the names the user supplied, while $host etc.
  1647. # will get canonicalized.
  1648. test -n "$target_alias" &&
  1649. test "$program_prefix$program_suffix$program_transform_name" = \
  1650. NONENONEs,x,x, &&
  1651. program_prefix=${target_alias}-
  1652. ac_ext=c
  1653. ac_cpp='$CPP $CPPFLAGS'
  1654. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1655. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1656. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1657. if test -n "$ac_tool_prefix"; then
  1658. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1659. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1660. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1661. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1662. if test "${ac_cv_prog_CC+set}" = set; then
  1663. echo $ECHO_N "(cached) $ECHO_C" >&6
  1664. else
  1665. if test -n "$CC"; then
  1666. ac_cv_prog_CC="$CC" # Let the user override the test.
  1667. else
  1668. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1669. for as_dir in $PATH
  1670. do
  1671. IFS=$as_save_IFS
  1672. test -z "$as_dir" && as_dir=.
  1673. for ac_exec_ext in '' $ac_executable_extensions; do
  1674. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1675. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1676. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1677. break 2
  1678. fi
  1679. done
  1680. done
  1681. IFS=$as_save_IFS
  1682. fi
  1683. fi
  1684. CC=$ac_cv_prog_CC
  1685. if test -n "$CC"; then
  1686. { echo "$as_me:$LINENO: result: $CC" >&5
  1687. echo "${ECHO_T}$CC" >&6; }
  1688. else
  1689. { echo "$as_me:$LINENO: result: no" >&5
  1690. echo "${ECHO_T}no" >&6; }
  1691. fi
  1692. fi
  1693. if test -z "$ac_cv_prog_CC"; then
  1694. ac_ct_CC=$CC
  1695. # Extract the first word of "gcc", so it can be a program name with args.
  1696. set dummy gcc; ac_word=$2
  1697. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1698. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1699. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1700. echo $ECHO_N "(cached) $ECHO_C" >&6
  1701. else
  1702. if test -n "$ac_ct_CC"; then
  1703. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1704. else
  1705. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1706. for as_dir in $PATH
  1707. do
  1708. IFS=$as_save_IFS
  1709. test -z "$as_dir" && as_dir=.
  1710. for ac_exec_ext in '' $ac_executable_extensions; do
  1711. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1712. ac_cv_prog_ac_ct_CC="gcc"
  1713. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1714. break 2
  1715. fi
  1716. done
  1717. done
  1718. IFS=$as_save_IFS
  1719. fi
  1720. fi
  1721. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1722. if test -n "$ac_ct_CC"; then
  1723. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1724. echo "${ECHO_T}$ac_ct_CC" >&6; }
  1725. else
  1726. { echo "$as_me:$LINENO: result: no" >&5
  1727. echo "${ECHO_T}no" >&6; }
  1728. fi
  1729. if test "x$ac_ct_CC" = x; then
  1730. CC=""
  1731. else
  1732. case $cross_compiling:$ac_tool_warned in
  1733. yes:)
  1734. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  1735. whose name does not start with the host triplet. If you think this
  1736. configuration is useful to you, please write to autoconf@gnu.org." >&5
  1737. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  1738. whose name does not start with the host triplet. If you think this
  1739. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  1740. ac_tool_warned=yes ;;
  1741. esac
  1742. CC=$ac_ct_CC
  1743. fi
  1744. else
  1745. CC="$ac_cv_prog_CC"
  1746. fi
  1747. if test -z "$CC"; then
  1748. if test -n "$ac_tool_prefix"; then
  1749. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1750. set dummy ${ac_tool_prefix}cc; ac_word=$2
  1751. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1752. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1753. if test "${ac_cv_prog_CC+set}" = set; then
  1754. echo $ECHO_N "(cached) $ECHO_C" >&6
  1755. else
  1756. if test -n "$CC"; then
  1757. ac_cv_prog_CC="$CC" # Let the user override the test.
  1758. else
  1759. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1760. for as_dir in $PATH
  1761. do
  1762. IFS=$as_save_IFS
  1763. test -z "$as_dir" && as_dir=.
  1764. for ac_exec_ext in '' $ac_executable_extensions; do
  1765. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1766. ac_cv_prog_CC="${ac_tool_prefix}cc"
  1767. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1768. break 2
  1769. fi
  1770. done
  1771. done
  1772. IFS=$as_save_IFS
  1773. fi
  1774. fi
  1775. CC=$ac_cv_prog_CC
  1776. if test -n "$CC"; then
  1777. { echo "$as_me:$LINENO: result: $CC" >&5
  1778. echo "${ECHO_T}$CC" >&6; }
  1779. else
  1780. { echo "$as_me:$LINENO: result: no" >&5
  1781. echo "${ECHO_T}no" >&6; }
  1782. fi
  1783. fi
  1784. fi
  1785. if test -z "$CC"; then
  1786. # Extract the first word of "cc", so it can be a program name with args.
  1787. set dummy cc; ac_word=$2
  1788. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1789. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1790. if test "${ac_cv_prog_CC+set}" = set; then
  1791. echo $ECHO_N "(cached) $ECHO_C" >&6
  1792. else
  1793. if test -n "$CC"; then
  1794. ac_cv_prog_CC="$CC" # Let the user override the test.
  1795. else
  1796. ac_prog_rejected=no
  1797. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1798. for as_dir in $PATH
  1799. do
  1800. IFS=$as_save_IFS
  1801. test -z "$as_dir" && as_dir=.
  1802. for ac_exec_ext in '' $ac_executable_extensions; do
  1803. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1804. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  1805. ac_prog_rejected=yes
  1806. continue
  1807. fi
  1808. ac_cv_prog_CC="cc"
  1809. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1810. break 2
  1811. fi
  1812. done
  1813. done
  1814. IFS=$as_save_IFS
  1815. if test $ac_prog_rejected = yes; then
  1816. # We found a bogon in the path, so make sure we never use it.
  1817. set dummy $ac_cv_prog_CC
  1818. shift
  1819. if test $# != 0; then
  1820. # We chose a different compiler from the bogus one.
  1821. # However, it has the same basename, so the bogon will be chosen
  1822. # first if we set CC to just the basename; use the full file name.
  1823. shift
  1824. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  1825. fi
  1826. fi
  1827. fi
  1828. fi
  1829. CC=$ac_cv_prog_CC
  1830. if test -n "$CC"; then
  1831. { echo "$as_me:$LINENO: result: $CC" >&5
  1832. echo "${ECHO_T}$CC" >&6; }
  1833. else
  1834. { echo "$as_me:$LINENO: result: no" >&5
  1835. echo "${ECHO_T}no" >&6; }
  1836. fi
  1837. fi
  1838. if test -z "$CC"; then
  1839. if test -n "$ac_tool_prefix"; then
  1840. for ac_prog in cl.exe
  1841. do
  1842. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1843. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1844. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1845. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1846. if test "${ac_cv_prog_CC+set}" = set; then
  1847. echo $ECHO_N "(cached) $ECHO_C" >&6
  1848. else
  1849. if test -n "$CC"; then
  1850. ac_cv_prog_CC="$CC" # Let the user override the test.
  1851. else
  1852. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1853. for as_dir in $PATH
  1854. do
  1855. IFS=$as_save_IFS
  1856. test -z "$as_dir" && as_dir=.
  1857. for ac_exec_ext in '' $ac_executable_extensions; do
  1858. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1859. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1860. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1861. break 2
  1862. fi
  1863. done
  1864. done
  1865. IFS=$as_save_IFS
  1866. fi
  1867. fi
  1868. CC=$ac_cv_prog_CC
  1869. if test -n "$CC"; then
  1870. { echo "$as_me:$LINENO: result: $CC" >&5
  1871. echo "${ECHO_T}$CC" >&6; }
  1872. else
  1873. { echo "$as_me:$LINENO: result: no" >&5
  1874. echo "${ECHO_T}no" >&6; }
  1875. fi
  1876. test -n "$CC" && break
  1877. done
  1878. fi
  1879. if test -z "$CC"; then
  1880. ac_ct_CC=$CC
  1881. for ac_prog in cl.exe
  1882. do
  1883. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1884. set dummy $ac_prog; ac_word=$2
  1885. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1886. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1887. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1888. echo $ECHO_N "(cached) $ECHO_C" >&6
  1889. else
  1890. if test -n "$ac_ct_CC"; then
  1891. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1892. else
  1893. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1894. for as_dir in $PATH
  1895. do
  1896. IFS=$as_save_IFS
  1897. test -z "$as_dir" && as_dir=.
  1898. for ac_exec_ext in '' $ac_executable_extensions; do
  1899. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1900. ac_cv_prog_ac_ct_CC="$ac_prog"
  1901. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1902. break 2
  1903. fi
  1904. done
  1905. done
  1906. IFS=$as_save_IFS
  1907. fi
  1908. fi
  1909. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1910. if test -n "$ac_ct_CC"; then
  1911. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1912. echo "${ECHO_T}$ac_ct_CC" >&6; }
  1913. else
  1914. { echo "$as_me:$LINENO: result: no" >&5
  1915. echo "${ECHO_T}no" >&6; }
  1916. fi
  1917. test -n "$ac_ct_CC" && break
  1918. done
  1919. if test "x$ac_ct_CC" = x; then
  1920. CC=""
  1921. else
  1922. case $cross_compiling:$ac_tool_warned in
  1923. yes:)
  1924. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  1925. whose name does not start with the host triplet. If you think this
  1926. configuration is useful to you, please write to autoconf@gnu.org." >&5
  1927. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  1928. whose name does not start with the host triplet. If you think this
  1929. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  1930. ac_tool_warned=yes ;;
  1931. esac
  1932. CC=$ac_ct_CC
  1933. fi
  1934. fi
  1935. fi
  1936. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  1937. See \`config.log' for more details." >&5
  1938. echo "$as_me: error: no acceptable C compiler found in \$PATH
  1939. See \`config.log' for more details." >&2;}
  1940. { (exit 1); exit 1; }; }
  1941. # Provide some information about the compiler.
  1942. echo "$as_me:$LINENO: checking for C compiler version" >&5
  1943. ac_compiler=`set X $ac_compile; echo $2`
  1944. { (ac_try="$ac_compiler --version >&5"
  1945. case "(($ac_try" in
  1946. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1947. *) ac_try_echo=$ac_try;;
  1948. esac
  1949. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1950. (eval "$ac_compiler --version >&5") 2>&5
  1951. ac_status=$?
  1952. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1953. (exit $ac_status); }
  1954. { (ac_try="$ac_compiler -v >&5"
  1955. case "(($ac_try" in
  1956. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1957. *) ac_try_echo=$ac_try;;
  1958. esac
  1959. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1960. (eval "$ac_compiler -v >&5") 2>&5
  1961. ac_status=$?
  1962. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1963. (exit $ac_status); }
  1964. { (ac_try="$ac_compiler -V >&5"
  1965. case "(($ac_try" in
  1966. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1967. *) ac_try_echo=$ac_try;;
  1968. esac
  1969. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1970. (eval "$ac_compiler -V >&5") 2>&5
  1971. ac_status=$?
  1972. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1973. (exit $ac_status); }
  1974. cat >conftest.$ac_ext <<_ACEOF
  1975. /* confdefs.h. */
  1976. _ACEOF
  1977. cat confdefs.h >>conftest.$ac_ext
  1978. cat >>conftest.$ac_ext <<_ACEOF
  1979. /* end confdefs.h. */
  1980. int
  1981. main ()
  1982. {
  1983. ;
  1984. return 0;
  1985. }
  1986. _ACEOF
  1987. ac_clean_files_save=$ac_clean_files
  1988. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1989. # Try to create an executable without -o first, disregard a.out.
  1990. # It will help us diagnose broken compilers, and finding out an intuition
  1991. # of exeext.
  1992. { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  1993. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
  1994. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1995. #
  1996. # List of possible output files, starting from the most likely.
  1997. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  1998. # only as a last resort. b.out is created by i960 compilers.
  1999. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2000. #
  2001. # The IRIX 6 linker writes into existing files which may not be
  2002. # executable, retaining their permissions. Remove them first so a
  2003. # subsequent execution test works.
  2004. ac_rmfiles=
  2005. for ac_file in $ac_files
  2006. do
  2007. case $ac_file in
  2008. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2009. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2010. esac
  2011. done
  2012. rm -f $ac_rmfiles
  2013. if { (ac_try="$ac_link_default"
  2014. case "(($ac_try" in
  2015. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2016. *) ac_try_echo=$ac_try;;
  2017. esac
  2018. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2019. (eval "$ac_link_default") 2>&5
  2020. ac_status=$?
  2021. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2022. (exit $ac_status); }; then
  2023. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2024. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2025. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2026. # so that the user can short-circuit this test for compilers unknown to
  2027. # Autoconf.
  2028. for ac_file in $ac_files ''
  2029. do
  2030. test -f "$ac_file" || continue
  2031. case $ac_file in
  2032. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  2033. ;;
  2034. [ab].out )
  2035. # We found the default executable, but exeext='' is most
  2036. # certainly right.
  2037. break;;
  2038. *.* )
  2039. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2040. then :; else
  2041. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2042. fi
  2043. # We set ac_cv_exeext here because the later test for it is not
  2044. # safe: cross compilers may not add the suffix if given an `-o'
  2045. # argument, so we may need to know it at that point already.
  2046. # Even if this section looks crufty: it has the advantage of
  2047. # actually working.
  2048. break;;
  2049. * )
  2050. break;;
  2051. esac
  2052. done
  2053. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2054. else
  2055. ac_file=''
  2056. fi
  2057. { echo "$as_me:$LINENO: result: $ac_file" >&5
  2058. echo "${ECHO_T}$ac_file" >&6; }
  2059. if test -z "$ac_file"; then
  2060. echo "$as_me: failed program was:" >&5
  2061. sed 's/^/| /' conftest.$ac_ext >&5
  2062. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  2063. See \`config.log' for more details." >&5
  2064. echo "$as_me: error: C compiler cannot create executables
  2065. See \`config.log' for more details." >&2;}
  2066. { (exit 77); exit 77; }; }
  2067. fi
  2068. ac_exeext=$ac_cv_exeext
  2069. # Check that the compiler produces executables we can run. If not, either
  2070. # the compiler is broken, or we cross compile.
  2071. { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2072. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
  2073. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2074. # If not cross compiling, check that we can run a simple program.
  2075. if test "$cross_compiling" != yes; then
  2076. if { ac_try='./$ac_file'
  2077. { (case "(($ac_try" in
  2078. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2079. *) ac_try_echo=$ac_try;;
  2080. esac
  2081. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2082. (eval "$ac_try") 2>&5
  2083. ac_status=$?
  2084. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2085. (exit $ac_status); }; }; then
  2086. cross_compiling=no
  2087. else
  2088. if test "$cross_compiling" = maybe; then
  2089. cross_compiling=yes
  2090. else
  2091. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2092. If you meant to cross compile, use \`--host'.
  2093. See \`config.log' for more details." >&5
  2094. echo "$as_me: error: cannot run C compiled programs.
  2095. If you meant to cross compile, use \`--host'.
  2096. See \`config.log' for more details." >&2;}
  2097. { (exit 1); exit 1; }; }
  2098. fi
  2099. fi
  2100. fi
  2101. { echo "$as_me:$LINENO: result: yes" >&5
  2102. echo "${ECHO_T}yes" >&6; }
  2103. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2104. ac_clean_files=$ac_clean_files_save
  2105. # Check that the compiler produces executables we can run. If not, either
  2106. # the compiler is broken, or we cross compile.
  2107. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2108. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  2109. { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2110. echo "${ECHO_T}$cross_compiling" >&6; }
  2111. { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2112. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  2113. if { (ac_try="$ac_link"
  2114. case "(($ac_try" in
  2115. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2116. *) ac_try_echo=$ac_try;;
  2117. esac
  2118. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2119. (eval "$ac_link") 2>&5
  2120. ac_status=$?
  2121. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2122. (exit $ac_status); }; then
  2123. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2124. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2125. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2126. # `rm'.
  2127. for ac_file in conftest.exe conftest conftest.*; do
  2128. test -f "$ac_file" || continue
  2129. case $ac_file in
  2130. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2131. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2132. break;;
  2133. * ) break;;
  2134. esac
  2135. done
  2136. else
  2137. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2138. See \`config.log' for more details." >&5
  2139. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2140. See \`config.log' for more details." >&2;}
  2141. { (exit 1); exit 1; }; }
  2142. fi
  2143. rm -f conftest$ac_cv_exeext
  2144. { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2145. echo "${ECHO_T}$ac_cv_exeext" >&6; }
  2146. rm -f conftest.$ac_ext
  2147. EXEEXT=$ac_cv_exeext
  2148. ac_exeext=$EXEEXT
  2149. { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2150. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  2151. if test "${ac_cv_objext+set}" = set; then
  2152. echo $ECHO_N "(cached) $ECHO_C" >&6
  2153. else
  2154. cat >conftest.$ac_ext <<_ACEOF
  2155. /* confdefs.h. */
  2156. _ACEOF
  2157. cat confdefs.h >>conftest.$ac_ext
  2158. cat >>conftest.$ac_ext <<_ACEOF
  2159. /* end confdefs.h. */
  2160. int
  2161. main ()
  2162. {
  2163. ;
  2164. return 0;
  2165. }
  2166. _ACEOF
  2167. rm -f conftest.o conftest.obj
  2168. if { (ac_try="$ac_compile"
  2169. case "(($ac_try" in
  2170. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2171. *) ac_try_echo=$ac_try;;
  2172. esac
  2173. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2174. (eval "$ac_compile") 2>&5
  2175. ac_status=$?
  2176. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2177. (exit $ac_status); }; then
  2178. for ac_file in conftest.o conftest.obj conftest.*; do
  2179. test -f "$ac_file" || continue;
  2180. case $ac_file in
  2181. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  2182. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2183. break;;
  2184. esac
  2185. done
  2186. else
  2187. echo "$as_me: failed program was:" >&5
  2188. sed 's/^/| /' conftest.$ac_ext >&5
  2189. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2190. See \`config.log' for more details." >&5
  2191. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2192. See \`config.log' for more details." >&2;}
  2193. { (exit 1); exit 1; }; }
  2194. fi
  2195. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2196. fi
  2197. { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2198. echo "${ECHO_T}$ac_cv_objext" >&6; }
  2199. OBJEXT=$ac_cv_objext
  2200. ac_objext=$OBJEXT
  2201. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2202. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  2203. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2204. echo $ECHO_N "(cached) $ECHO_C" >&6
  2205. else
  2206. cat >conftest.$ac_ext <<_ACEOF
  2207. /* confdefs.h. */
  2208. _ACEOF
  2209. cat confdefs.h >>conftest.$ac_ext
  2210. cat >>conftest.$ac_ext <<_ACEOF
  2211. /* end confdefs.h. */
  2212. int
  2213. main ()
  2214. {
  2215. #ifndef __GNUC__
  2216. choke me
  2217. #endif
  2218. ;
  2219. return 0;
  2220. }
  2221. _ACEOF
  2222. rm -f conftest.$ac_objext
  2223. if { (ac_try="$ac_compile"
  2224. case "(($ac_try" in
  2225. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2226. *) ac_try_echo=$ac_try;;
  2227. esac
  2228. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2229. (eval "$ac_compile") 2>conftest.er1
  2230. ac_status=$?
  2231. grep -v '^ *+' conftest.er1 >conftest.err
  2232. rm -f conftest.er1
  2233. cat conftest.err >&5
  2234. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2235. (exit $ac_status); } && {
  2236. test -z "$ac_c_werror_flag" ||
  2237. test ! -s conftest.err
  2238. } && test -s conftest.$ac_objext; then
  2239. ac_compiler_gnu=yes
  2240. else
  2241. echo "$as_me: failed program was:" >&5
  2242. sed 's/^/| /' conftest.$ac_ext >&5
  2243. ac_compiler_gnu=no
  2244. fi
  2245. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2246. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2247. fi
  2248. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2249. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  2250. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2251. ac_test_CFLAGS=${CFLAGS+set}
  2252. ac_save_CFLAGS=$CFLAGS
  2253. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2254. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  2255. if test "${ac_cv_prog_cc_g+set}" = set; then
  2256. echo $ECHO_N "(cached) $ECHO_C" >&6
  2257. else
  2258. ac_save_c_werror_flag=$ac_c_werror_flag
  2259. ac_c_werror_flag=yes
  2260. ac_cv_prog_cc_g=no
  2261. CFLAGS="-g"
  2262. cat >conftest.$ac_ext <<_ACEOF
  2263. /* confdefs.h. */
  2264. _ACEOF
  2265. cat confdefs.h >>conftest.$ac_ext
  2266. cat >>conftest.$ac_ext <<_ACEOF
  2267. /* end confdefs.h. */
  2268. int
  2269. main ()
  2270. {
  2271. ;
  2272. return 0;
  2273. }
  2274. _ACEOF
  2275. rm -f conftest.$ac_objext
  2276. if { (ac_try="$ac_compile"
  2277. case "(($ac_try" in
  2278. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2279. *) ac_try_echo=$ac_try;;
  2280. esac
  2281. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2282. (eval "$ac_compile") 2>conftest.er1
  2283. ac_status=$?
  2284. grep -v '^ *+' conftest.er1 >conftest.err
  2285. rm -f conftest.er1
  2286. cat conftest.err >&5
  2287. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2288. (exit $ac_status); } && {
  2289. test -z "$ac_c_werror_flag" ||
  2290. test ! -s conftest.err
  2291. } && test -s conftest.$ac_objext; then
  2292. ac_cv_prog_cc_g=yes
  2293. else
  2294. echo "$as_me: failed program was:" >&5
  2295. sed 's/^/| /' conftest.$ac_ext >&5
  2296. CFLAGS=""
  2297. cat >conftest.$ac_ext <<_ACEOF
  2298. /* confdefs.h. */
  2299. _ACEOF
  2300. cat confdefs.h >>conftest.$ac_ext
  2301. cat >>conftest.$ac_ext <<_ACEOF
  2302. /* end confdefs.h. */
  2303. int
  2304. main ()
  2305. {
  2306. ;
  2307. return 0;
  2308. }
  2309. _ACEOF
  2310. rm -f conftest.$ac_objext
  2311. if { (ac_try="$ac_compile"
  2312. case "(($ac_try" in
  2313. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2314. *) ac_try_echo=$ac_try;;
  2315. esac
  2316. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2317. (eval "$ac_compile") 2>conftest.er1
  2318. ac_status=$?
  2319. grep -v '^ *+' conftest.er1 >conftest.err
  2320. rm -f conftest.er1
  2321. cat conftest.err >&5
  2322. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2323. (exit $ac_status); } && {
  2324. test -z "$ac_c_werror_flag" ||
  2325. test ! -s conftest.err
  2326. } && test -s conftest.$ac_objext; then
  2327. :
  2328. else
  2329. echo "$as_me: failed program was:" >&5
  2330. sed 's/^/| /' conftest.$ac_ext >&5
  2331. ac_c_werror_flag=$ac_save_c_werror_flag
  2332. CFLAGS="-g"
  2333. cat >conftest.$ac_ext <<_ACEOF
  2334. /* confdefs.h. */
  2335. _ACEOF
  2336. cat confdefs.h >>conftest.$ac_ext
  2337. cat >>conftest.$ac_ext <<_ACEOF
  2338. /* end confdefs.h. */
  2339. int
  2340. main ()
  2341. {
  2342. ;
  2343. return 0;
  2344. }
  2345. _ACEOF
  2346. rm -f conftest.$ac_objext
  2347. if { (ac_try="$ac_compile"
  2348. case "(($ac_try" in
  2349. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2350. *) ac_try_echo=$ac_try;;
  2351. esac
  2352. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2353. (eval "$ac_compile") 2>conftest.er1
  2354. ac_status=$?
  2355. grep -v '^ *+' conftest.er1 >conftest.err
  2356. rm -f conftest.er1
  2357. cat conftest.err >&5
  2358. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2359. (exit $ac_status); } && {
  2360. test -z "$ac_c_werror_flag" ||
  2361. test ! -s conftest.err
  2362. } && test -s conftest.$ac_objext; then
  2363. ac_cv_prog_cc_g=yes
  2364. else
  2365. echo "$as_me: failed program was:" >&5
  2366. sed 's/^/| /' conftest.$ac_ext >&5
  2367. fi
  2368. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2369. fi
  2370. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2371. fi
  2372. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2373. ac_c_werror_flag=$ac_save_c_werror_flag
  2374. fi
  2375. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2376. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  2377. if test "$ac_test_CFLAGS" = set; then
  2378. CFLAGS=$ac_save_CFLAGS
  2379. elif test $ac_cv_prog_cc_g = yes; then
  2380. if test "$GCC" = yes; then
  2381. CFLAGS="-g -O2"
  2382. else
  2383. CFLAGS="-g"
  2384. fi
  2385. else
  2386. if test "$GCC" = yes; then
  2387. CFLAGS="-O2"
  2388. else
  2389. CFLAGS=
  2390. fi
  2391. fi
  2392. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  2393. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  2394. if test "${ac_cv_prog_cc_c89+set}" = set; then
  2395. echo $ECHO_N "(cached) $ECHO_C" >&6
  2396. else
  2397. ac_cv_prog_cc_c89=no
  2398. ac_save_CC=$CC
  2399. cat >conftest.$ac_ext <<_ACEOF
  2400. /* confdefs.h. */
  2401. _ACEOF
  2402. cat confdefs.h >>conftest.$ac_ext
  2403. cat >>conftest.$ac_ext <<_ACEOF
  2404. /* end confdefs.h. */
  2405. #include <stdarg.h>
  2406. #include <stdio.h>
  2407. #include <sys/types.h>
  2408. #include <sys/stat.h>
  2409. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2410. struct buf { int x; };
  2411. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2412. static char *e (p, i)
  2413. char **p;
  2414. int i;
  2415. {
  2416. return p[i];
  2417. }
  2418. static char *f (char * (*g) (char **, int), char **p, ...)
  2419. {
  2420. char *s;
  2421. va_list v;
  2422. va_start (v,p);
  2423. s = g (p, va_arg (v,int));
  2424. va_end (v);
  2425. return s;
  2426. }
  2427. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2428. function prototypes and stuff, but not '\xHH' hex character constants.
  2429. These don't provoke an error unfortunately, instead are silently treated
  2430. as 'x'. The following induces an error, until -std is added to get
  2431. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2432. array size at least. It's necessary to write '\x00'==0 to get something
  2433. that's true only with -std. */
  2434. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2435. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2436. inside strings and character constants. */
  2437. #define FOO(x) 'x'
  2438. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2439. int test (int i, double x);
  2440. struct s1 {int (*f) (int a);};
  2441. struct s2 {int (*f) (double a);};
  2442. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2443. int argc;
  2444. char **argv;
  2445. int
  2446. main ()
  2447. {
  2448. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2449. ;
  2450. return 0;
  2451. }
  2452. _ACEOF
  2453. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2454. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2455. do
  2456. CC="$ac_save_CC $ac_arg"
  2457. rm -f conftest.$ac_objext
  2458. if { (ac_try="$ac_compile"
  2459. case "(($ac_try" in
  2460. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2461. *) ac_try_echo=$ac_try;;
  2462. esac
  2463. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2464. (eval "$ac_compile") 2>conftest.er1
  2465. ac_status=$?
  2466. grep -v '^ *+' conftest.er1 >conftest.err
  2467. rm -f conftest.er1
  2468. cat conftest.err >&5
  2469. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2470. (exit $ac_status); } && {
  2471. test -z "$ac_c_werror_flag" ||
  2472. test ! -s conftest.err
  2473. } && test -s conftest.$ac_objext; then
  2474. ac_cv_prog_cc_c89=$ac_arg
  2475. else
  2476. echo "$as_me: failed program was:" >&5
  2477. sed 's/^/| /' conftest.$ac_ext >&5
  2478. fi
  2479. rm -f core conftest.err conftest.$ac_objext
  2480. test "x$ac_cv_prog_cc_c89" != "xno" && break
  2481. done
  2482. rm -f conftest.$ac_ext
  2483. CC=$ac_save_CC
  2484. fi
  2485. # AC_CACHE_VAL
  2486. case "x$ac_cv_prog_cc_c89" in
  2487. x)
  2488. { echo "$as_me:$LINENO: result: none needed" >&5
  2489. echo "${ECHO_T}none needed" >&6; } ;;
  2490. xno)
  2491. { echo "$as_me:$LINENO: result: unsupported" >&5
  2492. echo "${ECHO_T}unsupported" >&6; } ;;
  2493. *)
  2494. CC="$CC $ac_cv_prog_cc_c89"
  2495. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  2496. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  2497. esac
  2498. ac_ext=c
  2499. ac_cpp='$CPP $CPPFLAGS'
  2500. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2501. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2502. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2503. ac_ext=c
  2504. ac_cpp='$CPP $CPPFLAGS'
  2505. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2506. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2507. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2508. { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  2509. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  2510. # On Suns, sometimes $CPP names a directory.
  2511. if test -n "$CPP" && test -d "$CPP"; then
  2512. CPP=
  2513. fi
  2514. if test -z "$CPP"; then
  2515. if test "${ac_cv_prog_CPP+set}" = set; then
  2516. echo $ECHO_N "(cached) $ECHO_C" >&6
  2517. else
  2518. # Double quotes because CPP needs to be expanded
  2519. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2520. do
  2521. ac_preproc_ok=false
  2522. for ac_c_preproc_warn_flag in '' yes
  2523. do
  2524. # Use a header file that comes with gcc, so configuring glibc
  2525. # with a fresh cross-compiler works.
  2526. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2527. # <limits.h> exists even on freestanding compilers.
  2528. # On the NeXT, cc -E runs the code through the compiler's parser,
  2529. # not just through cpp. "Syntax error" is here to catch this case.
  2530. cat >conftest.$ac_ext <<_ACEOF
  2531. /* confdefs.h. */
  2532. _ACEOF
  2533. cat confdefs.h >>conftest.$ac_ext
  2534. cat >>conftest.$ac_ext <<_ACEOF
  2535. /* end confdefs.h. */
  2536. #ifdef __STDC__
  2537. # include <limits.h>
  2538. #else
  2539. # include <assert.h>
  2540. #endif
  2541. Syntax error
  2542. _ACEOF
  2543. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2544. case "(($ac_try" in
  2545. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2546. *) ac_try_echo=$ac_try;;
  2547. esac
  2548. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2549. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2550. ac_status=$?
  2551. grep -v '^ *+' conftest.er1 >conftest.err
  2552. rm -f conftest.er1
  2553. cat conftest.err >&5
  2554. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2555. (exit $ac_status); } >/dev/null && {
  2556. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2557. test ! -s conftest.err
  2558. }; then
  2559. :
  2560. else
  2561. echo "$as_me: failed program was:" >&5
  2562. sed 's/^/| /' conftest.$ac_ext >&5
  2563. # Broken: fails on valid input.
  2564. continue
  2565. fi
  2566. rm -f conftest.err conftest.$ac_ext
  2567. # OK, works on sane cases. Now check whether nonexistent headers
  2568. # can be detected and how.
  2569. cat >conftest.$ac_ext <<_ACEOF
  2570. /* confdefs.h. */
  2571. _ACEOF
  2572. cat confdefs.h >>conftest.$ac_ext
  2573. cat >>conftest.$ac_ext <<_ACEOF
  2574. /* end confdefs.h. */
  2575. #include <ac_nonexistent.h>
  2576. _ACEOF
  2577. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2578. case "(($ac_try" in
  2579. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2580. *) ac_try_echo=$ac_try;;
  2581. esac
  2582. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2583. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2584. ac_status=$?
  2585. grep -v '^ *+' conftest.er1 >conftest.err
  2586. rm -f conftest.er1
  2587. cat conftest.err >&5
  2588. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2589. (exit $ac_status); } >/dev/null && {
  2590. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2591. test ! -s conftest.err
  2592. }; then
  2593. # Broken: success on invalid input.
  2594. continue
  2595. else
  2596. echo "$as_me: failed program was:" >&5
  2597. sed 's/^/| /' conftest.$ac_ext >&5
  2598. # Passes both tests.
  2599. ac_preproc_ok=:
  2600. break
  2601. fi
  2602. rm -f conftest.err conftest.$ac_ext
  2603. done
  2604. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2605. rm -f conftest.err conftest.$ac_ext
  2606. if $ac_preproc_ok; then
  2607. break
  2608. fi
  2609. done
  2610. ac_cv_prog_CPP=$CPP
  2611. fi
  2612. CPP=$ac_cv_prog_CPP
  2613. else
  2614. ac_cv_prog_CPP=$CPP
  2615. fi
  2616. { echo "$as_me:$LINENO: result: $CPP" >&5
  2617. echo "${ECHO_T}$CPP" >&6; }
  2618. ac_preproc_ok=false
  2619. for ac_c_preproc_warn_flag in '' yes
  2620. do
  2621. # Use a header file that comes with gcc, so configuring glibc
  2622. # with a fresh cross-compiler works.
  2623. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2624. # <limits.h> exists even on freestanding compilers.
  2625. # On the NeXT, cc -E runs the code through the compiler's parser,
  2626. # not just through cpp. "Syntax error" is here to catch this case.
  2627. cat >conftest.$ac_ext <<_ACEOF
  2628. /* confdefs.h. */
  2629. _ACEOF
  2630. cat confdefs.h >>conftest.$ac_ext
  2631. cat >>conftest.$ac_ext <<_ACEOF
  2632. /* end confdefs.h. */
  2633. #ifdef __STDC__
  2634. # include <limits.h>
  2635. #else
  2636. # include <assert.h>
  2637. #endif
  2638. Syntax error
  2639. _ACEOF
  2640. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2641. case "(($ac_try" in
  2642. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2643. *) ac_try_echo=$ac_try;;
  2644. esac
  2645. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2646. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2647. ac_status=$?
  2648. grep -v '^ *+' conftest.er1 >conftest.err
  2649. rm -f conftest.er1
  2650. cat conftest.err >&5
  2651. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2652. (exit $ac_status); } >/dev/null && {
  2653. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2654. test ! -s conftest.err
  2655. }; then
  2656. :
  2657. else
  2658. echo "$as_me: failed program was:" >&5
  2659. sed 's/^/| /' conftest.$ac_ext >&5
  2660. # Broken: fails on valid input.
  2661. continue
  2662. fi
  2663. rm -f conftest.err conftest.$ac_ext
  2664. # OK, works on sane cases. Now check whether nonexistent headers
  2665. # can be detected and how.
  2666. cat >conftest.$ac_ext <<_ACEOF
  2667. /* confdefs.h. */
  2668. _ACEOF
  2669. cat confdefs.h >>conftest.$ac_ext
  2670. cat >>conftest.$ac_ext <<_ACEOF
  2671. /* end confdefs.h. */
  2672. #include <ac_nonexistent.h>
  2673. _ACEOF
  2674. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2675. case "(($ac_try" in
  2676. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2677. *) ac_try_echo=$ac_try;;
  2678. esac
  2679. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2680. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2681. ac_status=$?
  2682. grep -v '^ *+' conftest.er1 >conftest.err
  2683. rm -f conftest.er1
  2684. cat conftest.err >&5
  2685. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2686. (exit $ac_status); } >/dev/null && {
  2687. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2688. test ! -s conftest.err
  2689. }; then
  2690. # Broken: success on invalid input.
  2691. continue
  2692. else
  2693. echo "$as_me: failed program was:" >&5
  2694. sed 's/^/| /' conftest.$ac_ext >&5
  2695. # Passes both tests.
  2696. ac_preproc_ok=:
  2697. break
  2698. fi
  2699. rm -f conftest.err conftest.$ac_ext
  2700. done
  2701. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2702. rm -f conftest.err conftest.$ac_ext
  2703. if $ac_preproc_ok; then
  2704. :
  2705. else
  2706. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  2707. See \`config.log' for more details." >&5
  2708. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  2709. See \`config.log' for more details." >&2;}
  2710. { (exit 1); exit 1; }; }
  2711. fi
  2712. ac_ext=c
  2713. ac_cpp='$CPP $CPPFLAGS'
  2714. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2715. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2716. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2717. { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  2718. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  2719. if test "${ac_cv_path_GREP+set}" = set; then
  2720. echo $ECHO_N "(cached) $ECHO_C" >&6
  2721. else
  2722. # Extract the first word of "grep ggrep" to use in msg output
  2723. if test -z "$GREP"; then
  2724. set dummy grep ggrep; ac_prog_name=$2
  2725. if test "${ac_cv_path_GREP+set}" = set; then
  2726. echo $ECHO_N "(cached) $ECHO_C" >&6
  2727. else
  2728. ac_path_GREP_found=false
  2729. # Loop through the user's path and test for each of PROGNAME-LIST
  2730. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2731. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  2732. do
  2733. IFS=$as_save_IFS
  2734. test -z "$as_dir" && as_dir=.
  2735. for ac_prog in grep ggrep; do
  2736. for ac_exec_ext in '' $ac_executable_extensions; do
  2737. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  2738. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  2739. # Check for GNU ac_path_GREP and select it if it is found.
  2740. # Check for GNU $ac_path_GREP
  2741. case `"$ac_path_GREP" --version 2>&1` in
  2742. *GNU*)
  2743. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  2744. *)
  2745. ac_count=0
  2746. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  2747. while :
  2748. do
  2749. cat "conftest.in" "conftest.in" >"conftest.tmp"
  2750. mv "conftest.tmp" "conftest.in"
  2751. cp "conftest.in" "conftest.nl"
  2752. echo 'GREP' >> "conftest.nl"
  2753. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  2754. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  2755. ac_count=`expr $ac_count + 1`
  2756. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  2757. # Best one so far, save it but keep looking for a better one
  2758. ac_cv_path_GREP="$ac_path_GREP"
  2759. ac_path_GREP_max=$ac_count
  2760. fi
  2761. # 10*(2^10) chars as input seems more than enough
  2762. test $ac_count -gt 10 && break
  2763. done
  2764. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  2765. esac
  2766. $ac_path_GREP_found && break 3
  2767. done
  2768. done
  2769. done
  2770. IFS=$as_save_IFS
  2771. fi
  2772. GREP="$ac_cv_path_GREP"
  2773. if test -z "$GREP"; then
  2774. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  2775. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  2776. { (exit 1); exit 1; }; }
  2777. fi
  2778. else
  2779. ac_cv_path_GREP=$GREP
  2780. fi
  2781. fi
  2782. { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  2783. echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  2784. GREP="$ac_cv_path_GREP"
  2785. { echo "$as_me:$LINENO: checking for egrep" >&5
  2786. echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  2787. if test "${ac_cv_path_EGREP+set}" = set; then
  2788. echo $ECHO_N "(cached) $ECHO_C" >&6
  2789. else
  2790. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  2791. then ac_cv_path_EGREP="$GREP -E"
  2792. else
  2793. # Extract the first word of "egrep" to use in msg output
  2794. if test -z "$EGREP"; then
  2795. set dummy egrep; ac_prog_name=$2
  2796. if test "${ac_cv_path_EGREP+set}" = set; then
  2797. echo $ECHO_N "(cached) $ECHO_C" >&6
  2798. else
  2799. ac_path_EGREP_found=false
  2800. # Loop through the user's path and test for each of PROGNAME-LIST
  2801. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2802. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  2803. do
  2804. IFS=$as_save_IFS
  2805. test -z "$as_dir" && as_dir=.
  2806. for ac_prog in egrep; do
  2807. for ac_exec_ext in '' $ac_executable_extensions; do
  2808. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  2809. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  2810. # Check for GNU ac_path_EGREP and select it if it is found.
  2811. # Check for GNU $ac_path_EGREP
  2812. case `"$ac_path_EGREP" --version 2>&1` in
  2813. *GNU*)
  2814. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  2815. *)
  2816. ac_count=0
  2817. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  2818. while :
  2819. do
  2820. cat "conftest.in" "conftest.in" >"conftest.tmp"
  2821. mv "conftest.tmp" "conftest.in"
  2822. cp "conftest.in" "conftest.nl"
  2823. echo 'EGREP' >> "conftest.nl"
  2824. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  2825. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  2826. ac_count=`expr $ac_count + 1`
  2827. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  2828. # Best one so far, save it but keep looking for a better one
  2829. ac_cv_path_EGREP="$ac_path_EGREP"
  2830. ac_path_EGREP_max=$ac_count
  2831. fi
  2832. # 10*(2^10) chars as input seems more than enough
  2833. test $ac_count -gt 10 && break
  2834. done
  2835. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  2836. esac
  2837. $ac_path_EGREP_found && break 3
  2838. done
  2839. done
  2840. done
  2841. IFS=$as_save_IFS
  2842. fi
  2843. EGREP="$ac_cv_path_EGREP"
  2844. if test -z "$EGREP"; then
  2845. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  2846. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  2847. { (exit 1); exit 1; }; }
  2848. fi
  2849. else
  2850. ac_cv_path_EGREP=$EGREP
  2851. fi
  2852. fi
  2853. fi
  2854. { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  2855. echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  2856. EGREP="$ac_cv_path_EGREP"
  2857. # Find a good install program. We prefer a C program (faster),
  2858. # so one script is as good as another. But avoid the broken or
  2859. # incompatible versions:
  2860. # SysV /etc/install, /usr/sbin/install
  2861. # SunOS /usr/etc/install
  2862. # IRIX /sbin/install
  2863. # AIX /bin/install
  2864. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2865. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2866. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2867. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2868. # OS/2's system install, which has a completely different semantic
  2869. # ./install, which can be erroneously created by make from ./install.sh.
  2870. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  2871. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  2872. if test -z "$INSTALL"; then
  2873. if test "${ac_cv_path_install+set}" = set; then
  2874. echo $ECHO_N "(cached) $ECHO_C" >&6
  2875. else
  2876. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2877. for as_dir in $PATH
  2878. do
  2879. IFS=$as_save_IFS
  2880. test -z "$as_dir" && as_dir=.
  2881. # Account for people who put trailing slashes in PATH elements.
  2882. case $as_dir/ in
  2883. ./ | .// | /cC/* | \
  2884. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2885. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  2886. /usr/ucb/* ) ;;
  2887. *)
  2888. # OSF1 and SCO ODT 3.0 have their own names for install.
  2889. # Don't use installbsd from OSF since it installs stuff as root
  2890. # by default.
  2891. for ac_prog in ginstall scoinst install; do
  2892. for ac_exec_ext in '' $ac_executable_extensions; do
  2893. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2894. if test $ac_prog = install &&
  2895. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2896. # AIX install. It has an incompatible calling convention.
  2897. :
  2898. elif test $ac_prog = install &&
  2899. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2900. # program-specific install script used by HP pwplus--don't use.
  2901. :
  2902. else
  2903. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2904. break 3
  2905. fi
  2906. fi
  2907. done
  2908. done
  2909. ;;
  2910. esac
  2911. done
  2912. IFS=$as_save_IFS
  2913. fi
  2914. if test "${ac_cv_path_install+set}" = set; then
  2915. INSTALL=$ac_cv_path_install
  2916. else
  2917. # As a last resort, use the slow shell script. Don't cache a
  2918. # value for INSTALL within a source directory, because that will
  2919. # break other packages using the cache if that directory is
  2920. # removed, or if the value is a relative name.
  2921. INSTALL=$ac_install_sh
  2922. fi
  2923. fi
  2924. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  2925. echo "${ECHO_T}$INSTALL" >&6; }
  2926. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2927. # It thinks the first close brace ends the variable substitution.
  2928. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2929. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2930. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2931. case $ac_cv_prog_cc_stdc in
  2932. no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
  2933. *) { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
  2934. echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
  2935. if test "${ac_cv_prog_cc_c99+set}" = set; then
  2936. echo $ECHO_N "(cached) $ECHO_C" >&6
  2937. else
  2938. ac_cv_prog_cc_c99=no
  2939. ac_save_CC=$CC
  2940. cat >conftest.$ac_ext <<_ACEOF
  2941. /* confdefs.h. */
  2942. _ACEOF
  2943. cat confdefs.h >>conftest.$ac_ext
  2944. cat >>conftest.$ac_ext <<_ACEOF
  2945. /* end confdefs.h. */
  2946. #include <stdarg.h>
  2947. #include <stdbool.h>
  2948. #include <stdlib.h>
  2949. #include <wchar.h>
  2950. #include <stdio.h>
  2951. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  2952. #define debug(...) fprintf (stderr, __VA_ARGS__)
  2953. #define showlist(...) puts (#__VA_ARGS__)
  2954. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  2955. static void
  2956. test_varargs_macros (void)
  2957. {
  2958. int x = 1234;
  2959. int y = 5678;
  2960. debug ("Flag");
  2961. debug ("X = %d\n", x);
  2962. showlist (The first, second, and third items.);
  2963. report (x>y, "x is %d but y is %d", x, y);
  2964. }
  2965. // Check long long types.
  2966. #define BIG64 18446744073709551615ull
  2967. #define BIG32 4294967295ul
  2968. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  2969. #if !BIG_OK
  2970. your preprocessor is broken;
  2971. #endif
  2972. #if BIG_OK
  2973. #else
  2974. your preprocessor is broken;
  2975. #endif
  2976. static long long int bignum = -9223372036854775807LL;
  2977. static unsigned long long int ubignum = BIG64;
  2978. struct incomplete_array
  2979. {
  2980. int datasize;
  2981. double data[];
  2982. };
  2983. struct named_init {
  2984. int number;
  2985. const wchar_t *name;
  2986. double average;
  2987. };
  2988. typedef const char *ccp;
  2989. static inline int
  2990. test_restrict (ccp restrict text)
  2991. {
  2992. // See if C++-style comments work.
  2993. // Iterate through items via the restricted pointer.
  2994. // Also check for declarations in for loops.
  2995. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  2996. continue;
  2997. return 0;
  2998. }
  2999. // Check varargs and va_copy.
  3000. static void
  3001. test_varargs (const char *format, ...)
  3002. {
  3003. va_list args;
  3004. va_start (args, format);
  3005. va_list args_copy;
  3006. va_copy (args_copy, args);
  3007. const char *str;
  3008. int number;
  3009. float fnumber;
  3010. while (*format)
  3011. {
  3012. switch (*format++)
  3013. {
  3014. case 's': // string
  3015. str = va_arg (args_copy, const char *);
  3016. break;
  3017. case 'd': // int
  3018. number = va_arg (args_copy, int);
  3019. break;
  3020. case 'f': // float
  3021. fnumber = va_arg (args_copy, double);
  3022. break;
  3023. default:
  3024. break;
  3025. }
  3026. }
  3027. va_end (args_copy);
  3028. va_end (args);
  3029. }
  3030. int
  3031. main ()
  3032. {
  3033. // Check bool.
  3034. _Bool success = false;
  3035. // Check restrict.
  3036. if (test_restrict ("String literal") == 0)
  3037. success = true;
  3038. char *restrict newvar = "Another string";
  3039. // Check varargs.
  3040. test_varargs ("s, d' f .", "string", 65, 34.234);
  3041. test_varargs_macros ();
  3042. // Check flexible array members.
  3043. struct incomplete_array *ia =
  3044. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  3045. ia->datasize = 10;
  3046. for (int i = 0; i < ia->datasize; ++i)
  3047. ia->data[i] = i * 1.234;
  3048. // Check named initializers.
  3049. struct named_init ni = {
  3050. .number = 34,
  3051. .name = L"Test wide string",
  3052. .average = 543.34343,
  3053. };
  3054. ni.number = 58;
  3055. int dynamic_array[ni.number];
  3056. dynamic_array[ni.number - 1] = 543;
  3057. // work around unused variable warnings
  3058. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  3059. || dynamic_array[ni.number - 1] != 543);
  3060. ;
  3061. return 0;
  3062. }
  3063. _ACEOF
  3064. for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
  3065. do
  3066. CC="$ac_save_CC $ac_arg"
  3067. rm -f conftest.$ac_objext
  3068. if { (ac_try="$ac_compile"
  3069. case "(($ac_try" in
  3070. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3071. *) ac_try_echo=$ac_try;;
  3072. esac
  3073. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3074. (eval "$ac_compile") 2>conftest.er1
  3075. ac_status=$?
  3076. grep -v '^ *+' conftest.er1 >conftest.err
  3077. rm -f conftest.er1
  3078. cat conftest.err >&5
  3079. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3080. (exit $ac_status); } && {
  3081. test -z "$ac_c_werror_flag" ||
  3082. test ! -s conftest.err
  3083. } && test -s conftest.$ac_objext; then
  3084. ac_cv_prog_cc_c99=$ac_arg
  3085. else
  3086. echo "$as_me: failed program was:" >&5
  3087. sed 's/^/| /' conftest.$ac_ext >&5
  3088. fi
  3089. rm -f core conftest.err conftest.$ac_objext
  3090. test "x$ac_cv_prog_cc_c99" != "xno" && break
  3091. done
  3092. rm -f conftest.$ac_ext
  3093. CC=$ac_save_CC
  3094. fi
  3095. # AC_CACHE_VAL
  3096. case "x$ac_cv_prog_cc_c99" in
  3097. x)
  3098. { echo "$as_me:$LINENO: result: none needed" >&5
  3099. echo "${ECHO_T}none needed" >&6; } ;;
  3100. xno)
  3101. { echo "$as_me:$LINENO: result: unsupported" >&5
  3102. echo "${ECHO_T}unsupported" >&6; } ;;
  3103. *)
  3104. CC="$CC $ac_cv_prog_cc_c99"
  3105. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
  3106. echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
  3107. esac
  3108. if test "x$ac_cv_prog_cc_c99" != xno; then
  3109. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  3110. else
  3111. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3112. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  3113. if test "${ac_cv_prog_cc_c89+set}" = set; then
  3114. echo $ECHO_N "(cached) $ECHO_C" >&6
  3115. else
  3116. ac_cv_prog_cc_c89=no
  3117. ac_save_CC=$CC
  3118. cat >conftest.$ac_ext <<_ACEOF
  3119. /* confdefs.h. */
  3120. _ACEOF
  3121. cat confdefs.h >>conftest.$ac_ext
  3122. cat >>conftest.$ac_ext <<_ACEOF
  3123. /* end confdefs.h. */
  3124. #include <stdarg.h>
  3125. #include <stdio.h>
  3126. #include <sys/types.h>
  3127. #include <sys/stat.h>
  3128. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3129. struct buf { int x; };
  3130. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3131. static char *e (p, i)
  3132. char **p;
  3133. int i;
  3134. {
  3135. return p[i];
  3136. }
  3137. static char *f (char * (*g) (char **, int), char **p, ...)
  3138. {
  3139. char *s;
  3140. va_list v;
  3141. va_start (v,p);
  3142. s = g (p, va_arg (v,int));
  3143. va_end (v);
  3144. return s;
  3145. }
  3146. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3147. function prototypes and stuff, but not '\xHH' hex character constants.
  3148. These don't provoke an error unfortunately, instead are silently treated
  3149. as 'x'. The following induces an error, until -std is added to get
  3150. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3151. array size at least. It's necessary to write '\x00'==0 to get something
  3152. that's true only with -std. */
  3153. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3154. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3155. inside strings and character constants. */
  3156. #define FOO(x) 'x'
  3157. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3158. int test (int i, double x);
  3159. struct s1 {int (*f) (int a);};
  3160. struct s2 {int (*f) (double a);};
  3161. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3162. int argc;
  3163. char **argv;
  3164. int
  3165. main ()
  3166. {
  3167. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3168. ;
  3169. return 0;
  3170. }
  3171. _ACEOF
  3172. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3173. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3174. do
  3175. CC="$ac_save_CC $ac_arg"
  3176. rm -f conftest.$ac_objext
  3177. if { (ac_try="$ac_compile"
  3178. case "(($ac_try" in
  3179. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3180. *) ac_try_echo=$ac_try;;
  3181. esac
  3182. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3183. (eval "$ac_compile") 2>conftest.er1
  3184. ac_status=$?
  3185. grep -v '^ *+' conftest.er1 >conftest.err
  3186. rm -f conftest.er1
  3187. cat conftest.err >&5
  3188. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3189. (exit $ac_status); } && {
  3190. test -z "$ac_c_werror_flag" ||
  3191. test ! -s conftest.err
  3192. } && test -s conftest.$ac_objext; then
  3193. ac_cv_prog_cc_c89=$ac_arg
  3194. else
  3195. echo "$as_me: failed program was:" >&5
  3196. sed 's/^/| /' conftest.$ac_ext >&5
  3197. fi
  3198. rm -f core conftest.err conftest.$ac_objext
  3199. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3200. done
  3201. rm -f conftest.$ac_ext
  3202. CC=$ac_save_CC
  3203. fi
  3204. # AC_CACHE_VAL
  3205. case "x$ac_cv_prog_cc_c89" in
  3206. x)
  3207. { echo "$as_me:$LINENO: result: none needed" >&5
  3208. echo "${ECHO_T}none needed" >&6; } ;;
  3209. xno)
  3210. { echo "$as_me:$LINENO: result: unsupported" >&5
  3211. echo "${ECHO_T}unsupported" >&6; } ;;
  3212. *)
  3213. CC="$CC $ac_cv_prog_cc_c89"
  3214. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3215. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  3216. esac
  3217. if test "x$ac_cv_prog_cc_c89" != xno; then
  3218. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  3219. else
  3220. ac_cv_prog_cc_stdc=no
  3221. fi
  3222. fi
  3223. ;;
  3224. esac
  3225. { echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
  3226. echo $ECHO_N "checking for $CC option to accept ISO Standard C... $ECHO_C" >&6; }
  3227. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  3228. echo $ECHO_N "(cached) $ECHO_C" >&6
  3229. fi
  3230. case $ac_cv_prog_cc_stdc in
  3231. no) { echo "$as_me:$LINENO: result: unsupported" >&5
  3232. echo "${ECHO_T}unsupported" >&6; } ;;
  3233. '') { echo "$as_me:$LINENO: result: none needed" >&5
  3234. echo "${ECHO_T}none needed" >&6; } ;;
  3235. *) { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  3236. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6; } ;;
  3237. esac
  3238. cat >>confdefs.h <<\_ACEOF
  3239. #define _GNU_SOURCE 1
  3240. _ACEOF
  3241. if test x"$ac_cv_prog_cc_stdc" = x"no"; then
  3242. { echo "$as_me:$LINENO: WARNING: rsync requires an ANSI C compiler and you don't seem to have one" >&5
  3243. echo "$as_me: WARNING: rsync requires an ANSI C compiler and you don't seem to have one" >&2;}
  3244. fi
  3245. # We must decide this before testing the compiler.
  3246. # Please allow this to default to yes, so that your users have more
  3247. # chance of getting a useful stack trace if problems occur.
  3248. { echo "$as_me:$LINENO: checking whether to include debugging symbols" >&5
  3249. echo $ECHO_N "checking whether to include debugging symbols... $ECHO_C" >&6; }
  3250. # Check whether --enable-debug was given.
  3251. if test "${enable_debug+set}" = set; then
  3252. enableval=$enable_debug;
  3253. fi
  3254. if test x"$enable_debug" = x"no"; then
  3255. { echo "$as_me:$LINENO: result: no" >&5
  3256. echo "${ECHO_T}no" >&6; }
  3257. CFLAGS=${CFLAGS-"-O"}
  3258. else
  3259. { echo "$as_me:$LINENO: result: yes" >&5
  3260. echo "${ECHO_T}yes" >&6; }
  3261. # leave CFLAGS alone; AC_PROG_CC will try to include -g if it can
  3262. fi
  3263. # Check whether --enable-profile was given.
  3264. if test "${enable_profile+set}" = set; then
  3265. enableval=$enable_profile;
  3266. fi
  3267. if test x"$enable_profile" = x"yes"; then
  3268. CFLAGS="$CFLAGS -pg"
  3269. fi
  3270. # Specifically, this turns on panic_action handling.
  3271. # Check whether --enable-maintainer-mode was given.
  3272. if test "${enable_maintainer_mode+set}" = set; then
  3273. enableval=$enable_maintainer_mode;
  3274. fi
  3275. if test x"$enable_maintainer_mode" = x"yes"; then
  3276. CFLAGS="$CFLAGS -DMAINTAINER_MODE"
  3277. fi
  3278. # This is needed for our included version of popt. Kind of silly, but
  3279. # I don't want our version too far out of sync.
  3280. CFLAGS="$CFLAGS -DHAVE_CONFIG_H"
  3281. # If GCC, turn on warnings.
  3282. if test x"$GCC" = x"yes"; then
  3283. CFLAGS="$CFLAGS -Wall -W"
  3284. fi
  3285. # Check whether --with-included-popt was given.
  3286. if test "${with_included_popt+set}" = set; then
  3287. withval=$with_included_popt;
  3288. fi
  3289. # Check whether --with-rsync-path was given.
  3290. if test "${with_rsync_path+set}" = set; then
  3291. withval=$with_rsync_path; RSYNC_PATH="$with_rsync_path"
  3292. else
  3293. RSYNC_PATH="rsync"
  3294. fi
  3295. cat >>confdefs.h <<_ACEOF
  3296. #define RSYNC_PATH "$RSYNC_PATH"
  3297. _ACEOF
  3298. # Check whether --with-rsyncd-conf was given.
  3299. if test "${with_rsyncd_conf+set}" = set; then
  3300. withval=$with_rsyncd_conf; if test ! -z "$with_rsyncd_conf" ; then
  3301. case $with_rsyncd_conf in
  3302. yes|no)
  3303. RSYNCD_SYSCONF="/etc/rsyncd.conf"
  3304. ;;
  3305. /*)
  3306. RSYNCD_SYSCONF="$with_rsyncd_conf"
  3307. ;;
  3308. *)
  3309. { { echo "$as_me:$LINENO: error: You must specify an absolute path to --with-rsyncd-conf=PATH" >&5
  3310. echo "$as_me: error: You must specify an absolute path to --with-rsyncd-conf=PATH" >&2;}
  3311. { (exit 1); exit 1; }; }
  3312. ;;
  3313. esac
  3314. else
  3315. RSYNCD_SYSCONF="/etc/rsyncd.conf"
  3316. fi
  3317. else
  3318. RSYNCD_SYSCONF="/etc/rsyncd.conf"
  3319. fi
  3320. cat >>confdefs.h <<_ACEOF
  3321. #define RSYNCD_SYSCONF "$RSYNCD_SYSCONF"
  3322. _ACEOF
  3323. # Check whether --with-rsh was given.
  3324. if test "${with_rsh+set}" = set; then
  3325. withval=$with_rsh;
  3326. fi
  3327. # Extract the first word of "remsh", so it can be a program name with args.
  3328. set dummy remsh; ac_word=$2
  3329. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3330. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3331. if test "${ac_cv_prog_HAVE_REMSH+set}" = set; then
  3332. echo $ECHO_N "(cached) $ECHO_C" >&6
  3333. else
  3334. if test -n "$HAVE_REMSH"; then
  3335. ac_cv_prog_HAVE_REMSH="$HAVE_REMSH" # Let the user override the test.
  3336. else
  3337. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3338. for as_dir in $PATH
  3339. do
  3340. IFS=$as_save_IFS
  3341. test -z "$as_dir" && as_dir=.
  3342. for ac_exec_ext in '' $ac_executable_extensions; do
  3343. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3344. ac_cv_prog_HAVE_REMSH="1"
  3345. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3346. break 2
  3347. fi
  3348. done
  3349. done
  3350. IFS=$as_save_IFS
  3351. test -z "$ac_cv_prog_HAVE_REMSH" && ac_cv_prog_HAVE_REMSH="0"
  3352. fi
  3353. fi
  3354. HAVE_REMSH=$ac_cv_prog_HAVE_REMSH
  3355. if test -n "$HAVE_REMSH"; then
  3356. { echo "$as_me:$LINENO: result: $HAVE_REMSH" >&5
  3357. echo "${ECHO_T}$HAVE_REMSH" >&6; }
  3358. else
  3359. { echo "$as_me:$LINENO: result: no" >&5
  3360. echo "${ECHO_T}no" >&6; }
  3361. fi
  3362. if test x$HAVE_REMSH = x1; then
  3363. cat >>confdefs.h <<\_ACEOF
  3364. #define HAVE_REMSH 1
  3365. _ACEOF
  3366. fi
  3367. if test x"$with_rsh" != x; then
  3368. RSYNC_RSH="$with_rsh"
  3369. else
  3370. RSYNC_RSH="ssh"
  3371. fi
  3372. cat >>confdefs.h <<_ACEOF
  3373. #define RSYNC_RSH "$RSYNC_RSH"
  3374. _ACEOF
  3375. # Extract the first word of "yodl2man", so it can be a program name with args.
  3376. set dummy yodl2man; ac_word=$2
  3377. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3378. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3379. if test "${ac_cv_prog_HAVE_YODL2MAN+set}" = set; then
  3380. echo $ECHO_N "(cached) $ECHO_C" >&6
  3381. else
  3382. if test -n "$HAVE_YODL2MAN"; then
  3383. ac_cv_prog_HAVE_YODL2MAN="$HAVE_YODL2MAN" # Let the user override the test.
  3384. else
  3385. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3386. for as_dir in $PATH
  3387. do
  3388. IFS=$as_save_IFS
  3389. test -z "$as_dir" && as_dir=.
  3390. for ac_exec_ext in '' $ac_executable_extensions; do
  3391. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3392. ac_cv_prog_HAVE_YODL2MAN="1"
  3393. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3394. break 2
  3395. fi
  3396. done
  3397. done
  3398. IFS=$as_save_IFS
  3399. test -z "$ac_cv_prog_HAVE_YODL2MAN" && ac_cv_prog_HAVE_YODL2MAN="0"
  3400. fi
  3401. fi
  3402. HAVE_YODL2MAN=$ac_cv_prog_HAVE_YODL2MAN
  3403. if test -n "$HAVE_YODL2MAN"; then
  3404. { echo "$as_me:$LINENO: result: $HAVE_YODL2MAN" >&5
  3405. echo "${ECHO_T}$HAVE_YODL2MAN" >&6; }
  3406. else
  3407. { echo "$as_me:$LINENO: result: no" >&5
  3408. echo "${ECHO_T}no" >&6; }
  3409. fi
  3410. if test x$HAVE_YODL2MAN = x1; then
  3411. MAKE_MAN=man
  3412. fi
  3413. # Check whether --with-nobody-group was given.
  3414. if test "${with_nobody_group+set}" = set; then
  3415. withval=$with_nobody_group; NOBODY_GROUP="$with_nobody_group"
  3416. fi
  3417. if test x"$with_nobody_group" = x; then
  3418. { echo "$as_me:$LINENO: checking the group for user \"nobody\"" >&5
  3419. echo $ECHO_N "checking the group for user \"nobody\"... $ECHO_C" >&6; }
  3420. if grep '^nobody:' /etc/group >/dev/null 2>&1; then
  3421. NOBODY_GROUP=nobody
  3422. elif grep '^nogroup:' /etc/group >/dev/null 2>&1; then
  3423. NOBODY_GROUP=nogroup
  3424. else
  3425. NOBODY_GROUP=nobody # test for others?
  3426. fi
  3427. { echo "$as_me:$LINENO: result: $NOBODY_GROUP" >&5
  3428. echo "${ECHO_T}$NOBODY_GROUP" >&6; }
  3429. fi
  3430. cat >>confdefs.h <<_ACEOF
  3431. #define NOBODY_USER "nobody"
  3432. _ACEOF
  3433. cat >>confdefs.h <<_ACEOF
  3434. #define NOBODY_GROUP "$NOBODY_GROUP"
  3435. _ACEOF
  3436. # arrgh. libc in some old debian version screwed up the largefile
  3437. # stuff, getting byte range locking wrong
  3438. { echo "$as_me:$LINENO: checking for broken largefile support" >&5
  3439. echo $ECHO_N "checking for broken largefile support... $ECHO_C" >&6; }
  3440. if test "${rsync_cv_HAVE_BROKEN_LARGEFILE+set}" = set; then
  3441. echo $ECHO_N "(cached) $ECHO_C" >&6
  3442. else
  3443. if test "$cross_compiling" = yes; then
  3444. rsync_cv_HAVE_BROKEN_LARGEFILE=cross
  3445. else
  3446. cat >conftest.$ac_ext <<_ACEOF
  3447. /* confdefs.h. */
  3448. _ACEOF
  3449. cat confdefs.h >>conftest.$ac_ext
  3450. cat >>conftest.$ac_ext <<_ACEOF
  3451. /* end confdefs.h. */
  3452. #define _FILE_OFFSET_BITS 64
  3453. #include <stdio.h>
  3454. #include <fcntl.h>
  3455. #include <sys/types.h>
  3456. #include <sys/wait.h>
  3457. int main(void)
  3458. {
  3459. struct flock lock;
  3460. int status;
  3461. char tpl[32] = "/tmp/locktest.XXXXXX";
  3462. int fd = mkstemp(tpl);
  3463. if (fd < 0) {
  3464. strcpy(tpl, "conftest.dat");
  3465. fd = open(tpl, O_CREAT|O_RDWR, 0600);
  3466. }
  3467. lock.l_type = F_WRLCK;
  3468. lock.l_whence = SEEK_SET;
  3469. lock.l_start = 0;
  3470. lock.l_len = 1;
  3471. lock.l_pid = 0;
  3472. fcntl(fd,F_SETLK,&lock);
  3473. if (fork() == 0) {
  3474. lock.l_start = 1;
  3475. _exit(fcntl(fd,F_SETLK,&lock) == 0);
  3476. }
  3477. wait(&status);
  3478. unlink(tpl);
  3479. exit(WEXITSTATUS(status));
  3480. }
  3481. _ACEOF
  3482. rm -f conftest$ac_exeext
  3483. if { (ac_try="$ac_link"
  3484. case "(($ac_try" in
  3485. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3486. *) ac_try_echo=$ac_try;;
  3487. esac
  3488. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3489. (eval "$ac_link") 2>&5
  3490. ac_status=$?
  3491. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3492. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3493. { (case "(($ac_try" in
  3494. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3495. *) ac_try_echo=$ac_try;;
  3496. esac
  3497. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3498. (eval "$ac_try") 2>&5
  3499. ac_status=$?
  3500. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3501. (exit $ac_status); }; }; then
  3502. rsync_cv_HAVE_BROKEN_LARGEFILE=yes
  3503. else
  3504. echo "$as_me: program exited with status $ac_status" >&5
  3505. echo "$as_me: failed program was:" >&5
  3506. sed 's/^/| /' conftest.$ac_ext >&5
  3507. ( exit $ac_status )
  3508. rsync_cv_HAVE_BROKEN_LARGEFILE=no
  3509. fi
  3510. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3511. fi
  3512. fi
  3513. { echo "$as_me:$LINENO: result: $rsync_cv_HAVE_BROKEN_LARGEFILE" >&5
  3514. echo "${ECHO_T}$rsync_cv_HAVE_BROKEN_LARGEFILE" >&6; }
  3515. if test x"$rsync_cv_HAVE_BROKEN_LARGEFILE" != x"yes"; then
  3516. # Check whether --enable-largefile was given.
  3517. if test "${enable_largefile+set}" = set; then
  3518. enableval=$enable_largefile;
  3519. fi
  3520. if test "$enable_largefile" != no; then
  3521. { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
  3522. echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
  3523. if test "${ac_cv_sys_largefile_CC+set}" = set; then
  3524. echo $ECHO_N "(cached) $ECHO_C" >&6
  3525. else
  3526. ac_cv_sys_largefile_CC=no
  3527. if test "$GCC" != yes; then
  3528. ac_save_CC=$CC
  3529. while :; do
  3530. # IRIX 6.2 and later do not support large files by default,
  3531. # so use the C compiler's -n32 option if that helps.
  3532. cat >conftest.$ac_ext <<_ACEOF
  3533. /* confdefs.h. */
  3534. _ACEOF
  3535. cat confdefs.h >>conftest.$ac_ext
  3536. cat >>conftest.$ac_ext <<_ACEOF
  3537. /* end confdefs.h. */
  3538. #include <sys/types.h>
  3539. /* Check that off_t can represent 2**63 - 1 correctly.
  3540. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  3541. since some C++ compilers masquerading as C compilers
  3542. incorrectly reject 9223372036854775807. */
  3543. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  3544. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  3545. && LARGE_OFF_T % 2147483647 == 1)
  3546. ? 1 : -1];
  3547. int
  3548. main ()
  3549. {
  3550. ;
  3551. return 0;
  3552. }
  3553. _ACEOF
  3554. rm -f conftest.$ac_objext
  3555. if { (ac_try="$ac_compile"
  3556. case "(($ac_try" in
  3557. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3558. *) ac_try_echo=$ac_try;;
  3559. esac
  3560. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3561. (eval "$ac_compile") 2>conftest.er1
  3562. ac_status=$?
  3563. grep -v '^ *+' conftest.er1 >conftest.err
  3564. rm -f conftest.er1
  3565. cat conftest.err >&5
  3566. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3567. (exit $ac_status); } && {
  3568. test -z "$ac_c_werror_flag" ||
  3569. test ! -s conftest.err
  3570. } && test -s conftest.$ac_objext; then
  3571. break
  3572. else
  3573. echo "$as_me: failed program was:" >&5
  3574. sed 's/^/| /' conftest.$ac_ext >&5
  3575. fi
  3576. rm -f core conftest.err conftest.$ac_objext
  3577. CC="$CC -n32"
  3578. rm -f conftest.$ac_objext
  3579. if { (ac_try="$ac_compile"
  3580. case "(($ac_try" in
  3581. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3582. *) ac_try_echo=$ac_try;;
  3583. esac
  3584. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3585. (eval "$ac_compile") 2>conftest.er1
  3586. ac_status=$?
  3587. grep -v '^ *+' conftest.er1 >conftest.err
  3588. rm -f conftest.er1
  3589. cat conftest.err >&5
  3590. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3591. (exit $ac_status); } && {
  3592. test -z "$ac_c_werror_flag" ||
  3593. test ! -s conftest.err
  3594. } && test -s conftest.$ac_objext; then
  3595. ac_cv_sys_largefile_CC=' -n32'; break
  3596. else
  3597. echo "$as_me: failed program was:" >&5
  3598. sed 's/^/| /' conftest.$ac_ext >&5
  3599. fi
  3600. rm -f core conftest.err conftest.$ac_objext
  3601. break
  3602. done
  3603. CC=$ac_save_CC
  3604. rm -f conftest.$ac_ext
  3605. fi
  3606. fi
  3607. { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
  3608. echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
  3609. if test "$ac_cv_sys_largefile_CC" != no; then
  3610. CC=$CC$ac_cv_sys_largefile_CC
  3611. fi
  3612. { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  3613. echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
  3614. if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  3615. echo $ECHO_N "(cached) $ECHO_C" >&6
  3616. else
  3617. while :; do
  3618. cat >conftest.$ac_ext <<_ACEOF
  3619. /* confdefs.h. */
  3620. _ACEOF
  3621. cat confdefs.h >>conftest.$ac_ext
  3622. cat >>conftest.$ac_ext <<_ACEOF
  3623. /* end confdefs.h. */
  3624. #include <sys/types.h>
  3625. /* Check that off_t can represent 2**63 - 1 correctly.
  3626. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  3627. since some C++ compilers masquerading as C compilers
  3628. incorrectly reject 9223372036854775807. */
  3629. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  3630. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  3631. && LARGE_OFF_T % 2147483647 == 1)
  3632. ? 1 : -1];
  3633. int
  3634. main ()
  3635. {
  3636. ;
  3637. return 0;
  3638. }
  3639. _ACEOF
  3640. rm -f conftest.$ac_objext
  3641. if { (ac_try="$ac_compile"
  3642. case "(($ac_try" in
  3643. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3644. *) ac_try_echo=$ac_try;;
  3645. esac
  3646. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3647. (eval "$ac_compile") 2>conftest.er1
  3648. ac_status=$?
  3649. grep -v '^ *+' conftest.er1 >conftest.err
  3650. rm -f conftest.er1
  3651. cat conftest.err >&5
  3652. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3653. (exit $ac_status); } && {
  3654. test -z "$ac_c_werror_flag" ||
  3655. test ! -s conftest.err
  3656. } && test -s conftest.$ac_objext; then
  3657. ac_cv_sys_file_offset_bits=no; break
  3658. else
  3659. echo "$as_me: failed program was:" >&5
  3660. sed 's/^/| /' conftest.$ac_ext >&5
  3661. fi
  3662. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3663. cat >conftest.$ac_ext <<_ACEOF
  3664. /* confdefs.h. */
  3665. _ACEOF
  3666. cat confdefs.h >>conftest.$ac_ext
  3667. cat >>conftest.$ac_ext <<_ACEOF
  3668. /* end confdefs.h. */
  3669. #define _FILE_OFFSET_BITS 64
  3670. #include <sys/types.h>
  3671. /* Check that off_t can represent 2**63 - 1 correctly.
  3672. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  3673. since some C++ compilers masquerading as C compilers
  3674. incorrectly reject 9223372036854775807. */
  3675. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  3676. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  3677. && LARGE_OFF_T % 2147483647 == 1)
  3678. ? 1 : -1];
  3679. int
  3680. main ()
  3681. {
  3682. ;
  3683. return 0;
  3684. }
  3685. _ACEOF
  3686. rm -f conftest.$ac_objext
  3687. if { (ac_try="$ac_compile"
  3688. case "(($ac_try" in
  3689. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3690. *) ac_try_echo=$ac_try;;
  3691. esac
  3692. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3693. (eval "$ac_compile") 2>conftest.er1
  3694. ac_status=$?
  3695. grep -v '^ *+' conftest.er1 >conftest.err
  3696. rm -f conftest.er1
  3697. cat conftest.err >&5
  3698. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3699. (exit $ac_status); } && {
  3700. test -z "$ac_c_werror_flag" ||
  3701. test ! -s conftest.err
  3702. } && test -s conftest.$ac_objext; then
  3703. ac_cv_sys_file_offset_bits=64; break
  3704. else
  3705. echo "$as_me: failed program was:" >&5
  3706. sed 's/^/| /' conftest.$ac_ext >&5
  3707. fi
  3708. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3709. ac_cv_sys_file_offset_bits=unknown
  3710. break
  3711. done
  3712. fi
  3713. { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
  3714. echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
  3715. case $ac_cv_sys_file_offset_bits in #(
  3716. no | unknown) ;;
  3717. *)
  3718. cat >>confdefs.h <<_ACEOF
  3719. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  3720. _ACEOF
  3721. ;;
  3722. esac
  3723. rm -f conftest*
  3724. if test $ac_cv_sys_file_offset_bits = unknown; then
  3725. { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
  3726. echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
  3727. if test "${ac_cv_sys_large_files+set}" = set; then
  3728. echo $ECHO_N "(cached) $ECHO_C" >&6
  3729. else
  3730. while :; do
  3731. cat >conftest.$ac_ext <<_ACEOF
  3732. /* confdefs.h. */
  3733. _ACEOF
  3734. cat confdefs.h >>conftest.$ac_ext
  3735. cat >>conftest.$ac_ext <<_ACEOF
  3736. /* end confdefs.h. */
  3737. #include <sys/types.h>
  3738. /* Check that off_t can represent 2**63 - 1 correctly.
  3739. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  3740. since some C++ compilers masquerading as C compilers
  3741. incorrectly reject 9223372036854775807. */
  3742. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  3743. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  3744. && LARGE_OFF_T % 2147483647 == 1)
  3745. ? 1 : -1];
  3746. int
  3747. main ()
  3748. {
  3749. ;
  3750. return 0;
  3751. }
  3752. _ACEOF
  3753. rm -f conftest.$ac_objext
  3754. if { (ac_try="$ac_compile"
  3755. case "(($ac_try" in
  3756. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3757. *) ac_try_echo=$ac_try;;
  3758. esac
  3759. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3760. (eval "$ac_compile") 2>conftest.er1
  3761. ac_status=$?
  3762. grep -v '^ *+' conftest.er1 >conftest.err
  3763. rm -f conftest.er1
  3764. cat conftest.err >&5
  3765. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3766. (exit $ac_status); } && {
  3767. test -z "$ac_c_werror_flag" ||
  3768. test ! -s conftest.err
  3769. } && test -s conftest.$ac_objext; then
  3770. ac_cv_sys_large_files=no; break
  3771. else
  3772. echo "$as_me: failed program was:" >&5
  3773. sed 's/^/| /' conftest.$ac_ext >&5
  3774. fi
  3775. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3776. cat >conftest.$ac_ext <<_ACEOF
  3777. /* confdefs.h. */
  3778. _ACEOF
  3779. cat confdefs.h >>conftest.$ac_ext
  3780. cat >>conftest.$ac_ext <<_ACEOF
  3781. /* end confdefs.h. */
  3782. #define _LARGE_FILES 1
  3783. #include <sys/types.h>
  3784. /* Check that off_t can represent 2**63 - 1 correctly.
  3785. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  3786. since some C++ compilers masquerading as C compilers
  3787. incorrectly reject 9223372036854775807. */
  3788. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  3789. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  3790. && LARGE_OFF_T % 2147483647 == 1)
  3791. ? 1 : -1];
  3792. int
  3793. main ()
  3794. {
  3795. ;
  3796. return 0;
  3797. }
  3798. _ACEOF
  3799. rm -f conftest.$ac_objext
  3800. if { (ac_try="$ac_compile"
  3801. case "(($ac_try" in
  3802. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3803. *) ac_try_echo=$ac_try;;
  3804. esac
  3805. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3806. (eval "$ac_compile") 2>conftest.er1
  3807. ac_status=$?
  3808. grep -v '^ *+' conftest.er1 >conftest.err
  3809. rm -f conftest.er1
  3810. cat conftest.err >&5
  3811. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3812. (exit $ac_status); } && {
  3813. test -z "$ac_c_werror_flag" ||
  3814. test ! -s conftest.err
  3815. } && test -s conftest.$ac_objext; then
  3816. ac_cv_sys_large_files=1; break
  3817. else
  3818. echo "$as_me: failed program was:" >&5
  3819. sed 's/^/| /' conftest.$ac_ext >&5
  3820. fi
  3821. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3822. ac_cv_sys_large_files=unknown
  3823. break
  3824. done
  3825. fi
  3826. { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
  3827. echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
  3828. case $ac_cv_sys_large_files in #(
  3829. no | unknown) ;;
  3830. *)
  3831. cat >>confdefs.h <<_ACEOF
  3832. #define _LARGE_FILES $ac_cv_sys_large_files
  3833. _ACEOF
  3834. ;;
  3835. esac
  3836. rm -f conftest*
  3837. fi
  3838. fi
  3839. fi
  3840. ipv6type=unknown
  3841. ipv6lib=none
  3842. ipv6trylibc=yes
  3843. # Check whether --enable-ipv6 was given.
  3844. if test "${enable_ipv6+set}" = set; then
  3845. enableval=$enable_ipv6;
  3846. fi
  3847. if test x"$enable_ipv6" != x"no"; then
  3848. { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
  3849. echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
  3850. for i in inria kame linux-glibc linux-inet6 toshiba v6d zeta; do
  3851. case $i in
  3852. inria)
  3853. # http://www.kame.net/
  3854. cat >conftest.$ac_ext <<_ACEOF
  3855. /* confdefs.h. */
  3856. _ACEOF
  3857. cat confdefs.h >>conftest.$ac_ext
  3858. cat >>conftest.$ac_ext <<_ACEOF
  3859. /* end confdefs.h. */
  3860. #include <netinet/in.h>
  3861. #ifdef IPV6_INRIA_VERSION
  3862. yes
  3863. #endif
  3864. _ACEOF
  3865. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3866. $EGREP "yes" >/dev/null 2>&1; then
  3867. ipv6type=$i;
  3868. cat >>confdefs.h <<\_ACEOF
  3869. #define INET6 1
  3870. _ACEOF
  3871. fi
  3872. rm -f conftest*
  3873. ;;
  3874. kame)
  3875. # http://www.kame.net/
  3876. cat >conftest.$ac_ext <<_ACEOF
  3877. /* confdefs.h. */
  3878. _ACEOF
  3879. cat confdefs.h >>conftest.$ac_ext
  3880. cat >>conftest.$ac_ext <<_ACEOF
  3881. /* end confdefs.h. */
  3882. #include <netinet/in.h>
  3883. #ifdef __KAME__
  3884. yes
  3885. #endif
  3886. _ACEOF
  3887. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3888. $EGREP "yes" >/dev/null 2>&1; then
  3889. ipv6type=$i;
  3890. cat >>confdefs.h <<\_ACEOF
  3891. #define INET6 1
  3892. _ACEOF
  3893. fi
  3894. rm -f conftest*
  3895. ;;
  3896. linux-glibc)
  3897. # http://www.v6.linux.or.jp/
  3898. cat >conftest.$ac_ext <<_ACEOF
  3899. /* confdefs.h. */
  3900. _ACEOF
  3901. cat confdefs.h >>conftest.$ac_ext
  3902. cat >>conftest.$ac_ext <<_ACEOF
  3903. /* end confdefs.h. */
  3904. #include <features.h>
  3905. #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
  3906. yes
  3907. #endif
  3908. _ACEOF
  3909. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3910. $EGREP "yes" >/dev/null 2>&1; then
  3911. ipv6type=$i;
  3912. cat >>confdefs.h <<\_ACEOF
  3913. #define INET6 1
  3914. _ACEOF
  3915. fi
  3916. rm -f conftest*
  3917. ;;
  3918. linux-inet6)
  3919. # http://www.v6.linux.or.jp/
  3920. if test -d /usr/inet6 -o -f /usr/inet6/lib/libinet6.a; then
  3921. ipv6type=$i
  3922. ipv6lib=inet6
  3923. ipv6libdir=/usr/inet6/lib
  3924. ipv6trylibc=yes;
  3925. cat >>confdefs.h <<\_ACEOF
  3926. #define INET6 1
  3927. _ACEOF
  3928. CFLAGS="-I/usr/inet6/include $CFLAGS"
  3929. fi
  3930. ;;
  3931. toshiba)
  3932. cat >conftest.$ac_ext <<_ACEOF
  3933. /* confdefs.h. */
  3934. _ACEOF
  3935. cat confdefs.h >>conftest.$ac_ext
  3936. cat >>conftest.$ac_ext <<_ACEOF
  3937. /* end confdefs.h. */
  3938. #include <sys/param.h>
  3939. #ifdef _TOSHIBA_INET6
  3940. yes
  3941. #endif
  3942. _ACEOF
  3943. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3944. $EGREP "yes" >/dev/null 2>&1; then
  3945. ipv6type=$i;
  3946. ipv6lib=inet6;
  3947. ipv6libdir=/usr/local/v6/lib;
  3948. cat >>confdefs.h <<\_ACEOF
  3949. #define INET6 1
  3950. _ACEOF
  3951. fi
  3952. rm -f conftest*
  3953. ;;
  3954. v6d)
  3955. cat >conftest.$ac_ext <<_ACEOF
  3956. /* confdefs.h. */
  3957. _ACEOF
  3958. cat confdefs.h >>conftest.$ac_ext
  3959. cat >>conftest.$ac_ext <<_ACEOF
  3960. /* end confdefs.h. */
  3961. #include </usr/local/v6/include/sys/v6config.h>
  3962. #ifdef __V6D__
  3963. yes
  3964. #endif
  3965. _ACEOF
  3966. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3967. $EGREP "yes" >/dev/null 2>&1; then
  3968. ipv6type=$i;
  3969. ipv6lib=v6;
  3970. ipv6libdir=/usr/local/v6/lib;
  3971. cat >>confdefs.h <<\_ACEOF
  3972. #define INET6 1
  3973. _ACEOF
  3974. fi
  3975. rm -f conftest*
  3976. ;;
  3977. zeta)
  3978. cat >conftest.$ac_ext <<_ACEOF
  3979. /* confdefs.h. */
  3980. _ACEOF
  3981. cat confdefs.h >>conftest.$ac_ext
  3982. cat >>conftest.$ac_ext <<_ACEOF
  3983. /* end confdefs.h. */
  3984. #include <sys/param.h>
  3985. #ifdef _ZETA_MINAMI_INET6
  3986. yes
  3987. #endif
  3988. _ACEOF
  3989. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3990. $EGREP "yes" >/dev/null 2>&1; then
  3991. ipv6type=$i;
  3992. ipv6lib=inet6;
  3993. ipv6libdir=/usr/local/v6/lib;
  3994. cat >>confdefs.h <<\_ACEOF
  3995. #define INET6 1
  3996. _ACEOF
  3997. fi
  3998. rm -f conftest*
  3999. ;;
  4000. esac
  4001. if test "$ipv6type" != "unknown"; then
  4002. break
  4003. fi
  4004. done
  4005. { echo "$as_me:$LINENO: result: $ipv6type" >&5
  4006. echo "${ECHO_T}$ipv6type" >&6; }
  4007. { echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
  4008. echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6; }
  4009. if test "${ac_cv_search_getaddrinfo+set}" = set; then
  4010. echo $ECHO_N "(cached) $ECHO_C" >&6
  4011. else
  4012. ac_func_search_save_LIBS=$LIBS
  4013. cat >conftest.$ac_ext <<_ACEOF
  4014. /* confdefs.h. */
  4015. _ACEOF
  4016. cat confdefs.h >>conftest.$ac_ext
  4017. cat >>conftest.$ac_ext <<_ACEOF
  4018. /* end confdefs.h. */
  4019. /* Override any GCC internal prototype to avoid an error.
  4020. Use char because int might match the return type of a GCC
  4021. builtin and then its argument prototype would still apply. */
  4022. #ifdef __cplusplus
  4023. extern "C"
  4024. #endif
  4025. char getaddrinfo ();
  4026. int
  4027. main ()
  4028. {
  4029. return getaddrinfo ();
  4030. ;
  4031. return 0;
  4032. }
  4033. _ACEOF
  4034. for ac_lib in '' inet6; do
  4035. if test -z "$ac_lib"; then
  4036. ac_res="none required"
  4037. else
  4038. ac_res=-l$ac_lib
  4039. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4040. fi
  4041. rm -f conftest.$ac_objext conftest$ac_exeext
  4042. if { (ac_try="$ac_link"
  4043. case "(($ac_try" in
  4044. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4045. *) ac_try_echo=$ac_try;;
  4046. esac
  4047. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4048. (eval "$ac_link") 2>conftest.er1
  4049. ac_status=$?
  4050. grep -v '^ *+' conftest.er1 >conftest.err
  4051. rm -f conftest.er1
  4052. cat conftest.err >&5
  4053. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4054. (exit $ac_status); } && {
  4055. test -z "$ac_c_werror_flag" ||
  4056. test ! -s conftest.err
  4057. } && test -s conftest$ac_exeext &&
  4058. $as_test_x conftest$ac_exeext; then
  4059. ac_cv_search_getaddrinfo=$ac_res
  4060. else
  4061. echo "$as_me: failed program was:" >&5
  4062. sed 's/^/| /' conftest.$ac_ext >&5
  4063. fi
  4064. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4065. conftest$ac_exeext
  4066. if test "${ac_cv_search_getaddrinfo+set}" = set; then
  4067. break
  4068. fi
  4069. done
  4070. if test "${ac_cv_search_getaddrinfo+set}" = set; then
  4071. :
  4072. else
  4073. ac_cv_search_getaddrinfo=no
  4074. fi
  4075. rm conftest.$ac_ext
  4076. LIBS=$ac_func_search_save_LIBS
  4077. fi
  4078. { echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
  4079. echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6; }
  4080. ac_res=$ac_cv_search_getaddrinfo
  4081. if test "$ac_res" != no; then
  4082. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  4083. fi
  4084. fi
  4085. # Check whether --enable-locale was given.
  4086. if test "${enable_locale+set}" = set; then
  4087. enableval=$enable_locale;
  4088. fi
  4089. if test x"$enable_locale" != x"no"; then
  4090. cat >>confdefs.h <<\_ACEOF
  4091. #define CONFIG_LOCALE 1
  4092. _ACEOF
  4093. fi
  4094. { echo "$as_me:$LINENO: checking whether to call shutdown on all sockets" >&5
  4095. echo $ECHO_N "checking whether to call shutdown on all sockets... $ECHO_C" >&6; }
  4096. case $host_os in
  4097. *cygwin* ) { echo "$as_me:$LINENO: result: yes" >&5
  4098. echo "${ECHO_T}yes" >&6; }
  4099. cat >>confdefs.h <<\_ACEOF
  4100. #define SHUTDOWN_ALL_SOCKETS 1
  4101. _ACEOF
  4102. ;;
  4103. * ) { echo "$as_me:$LINENO: result: no" >&5
  4104. echo "${ECHO_T}no" >&6; };;
  4105. esac
  4106. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4107. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  4108. if test "${ac_cv_header_stdc+set}" = set; then
  4109. echo $ECHO_N "(cached) $ECHO_C" >&6
  4110. else
  4111. cat >conftest.$ac_ext <<_ACEOF
  4112. /* confdefs.h. */
  4113. _ACEOF
  4114. cat confdefs.h >>conftest.$ac_ext
  4115. cat >>conftest.$ac_ext <<_ACEOF
  4116. /* end confdefs.h. */
  4117. #include <stdlib.h>
  4118. #include <stdarg.h>
  4119. #include <string.h>
  4120. #include <float.h>
  4121. int
  4122. main ()
  4123. {
  4124. ;
  4125. return 0;
  4126. }
  4127. _ACEOF
  4128. rm -f conftest.$ac_objext
  4129. if { (ac_try="$ac_compile"
  4130. case "(($ac_try" in
  4131. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4132. *) ac_try_echo=$ac_try;;
  4133. esac
  4134. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4135. (eval "$ac_compile") 2>conftest.er1
  4136. ac_status=$?
  4137. grep -v '^ *+' conftest.er1 >conftest.err
  4138. rm -f conftest.er1
  4139. cat conftest.err >&5
  4140. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4141. (exit $ac_status); } && {
  4142. test -z "$ac_c_werror_flag" ||
  4143. test ! -s conftest.err
  4144. } && test -s conftest.$ac_objext; then
  4145. ac_cv_header_stdc=yes
  4146. else
  4147. echo "$as_me: failed program was:" >&5
  4148. sed 's/^/| /' conftest.$ac_ext >&5
  4149. ac_cv_header_stdc=no
  4150. fi
  4151. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4152. if test $ac_cv_header_stdc = yes; then
  4153. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4154. cat >conftest.$ac_ext <<_ACEOF
  4155. /* confdefs.h. */
  4156. _ACEOF
  4157. cat confdefs.h >>conftest.$ac_ext
  4158. cat >>conftest.$ac_ext <<_ACEOF
  4159. /* end confdefs.h. */
  4160. #include <string.h>
  4161. _ACEOF
  4162. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4163. $EGREP "memchr" >/dev/null 2>&1; then
  4164. :
  4165. else
  4166. ac_cv_header_stdc=no
  4167. fi
  4168. rm -f conftest*
  4169. fi
  4170. if test $ac_cv_header_stdc = yes; then
  4171. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4172. cat >conftest.$ac_ext <<_ACEOF
  4173. /* confdefs.h. */
  4174. _ACEOF
  4175. cat confdefs.h >>conftest.$ac_ext
  4176. cat >>conftest.$ac_ext <<_ACEOF
  4177. /* end confdefs.h. */
  4178. #include <stdlib.h>
  4179. _ACEOF
  4180. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4181. $EGREP "free" >/dev/null 2>&1; then
  4182. :
  4183. else
  4184. ac_cv_header_stdc=no
  4185. fi
  4186. rm -f conftest*
  4187. fi
  4188. if test $ac_cv_header_stdc = yes; then
  4189. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4190. if test "$cross_compiling" = yes; then
  4191. :
  4192. else
  4193. cat >conftest.$ac_ext <<_ACEOF
  4194. /* confdefs.h. */
  4195. _ACEOF
  4196. cat confdefs.h >>conftest.$ac_ext
  4197. cat >>conftest.$ac_ext <<_ACEOF
  4198. /* end confdefs.h. */
  4199. #include <ctype.h>
  4200. #include <stdlib.h>
  4201. #if ((' ' & 0x0FF) == 0x020)
  4202. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4203. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4204. #else
  4205. # define ISLOWER(c) \
  4206. (('a' <= (c) && (c) <= 'i') \
  4207. || ('j' <= (c) && (c) <= 'r') \
  4208. || ('s' <= (c) && (c) <= 'z'))
  4209. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4210. #endif
  4211. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4212. int
  4213. main ()
  4214. {
  4215. int i;
  4216. for (i = 0; i < 256; i++)
  4217. if (XOR (islower (i), ISLOWER (i))
  4218. || toupper (i) != TOUPPER (i))
  4219. return 2;
  4220. return 0;
  4221. }
  4222. _ACEOF
  4223. rm -f conftest$ac_exeext
  4224. if { (ac_try="$ac_link"
  4225. case "(($ac_try" in
  4226. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4227. *) ac_try_echo=$ac_try;;
  4228. esac
  4229. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4230. (eval "$ac_link") 2>&5
  4231. ac_status=$?
  4232. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4233. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4234. { (case "(($ac_try" in
  4235. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4236. *) ac_try_echo=$ac_try;;
  4237. esac
  4238. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4239. (eval "$ac_try") 2>&5
  4240. ac_status=$?
  4241. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4242. (exit $ac_status); }; }; then
  4243. :
  4244. else
  4245. echo "$as_me: program exited with status $ac_status" >&5
  4246. echo "$as_me: failed program was:" >&5
  4247. sed 's/^/| /' conftest.$ac_ext >&5
  4248. ( exit $ac_status )
  4249. ac_cv_header_stdc=no
  4250. fi
  4251. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4252. fi
  4253. fi
  4254. fi
  4255. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4256. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  4257. if test $ac_cv_header_stdc = yes; then
  4258. cat >>confdefs.h <<\_ACEOF
  4259. #define STDC_HEADERS 1
  4260. _ACEOF
  4261. fi
  4262. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4263. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4264. inttypes.h stdint.h unistd.h
  4265. do
  4266. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4267. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4268. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4269. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4270. echo $ECHO_N "(cached) $ECHO_C" >&6
  4271. else
  4272. cat >conftest.$ac_ext <<_ACEOF
  4273. /* confdefs.h. */
  4274. _ACEOF
  4275. cat confdefs.h >>conftest.$ac_ext
  4276. cat >>conftest.$ac_ext <<_ACEOF
  4277. /* end confdefs.h. */
  4278. $ac_includes_default
  4279. #include <$ac_header>
  4280. _ACEOF
  4281. rm -f conftest.$ac_objext
  4282. if { (ac_try="$ac_compile"
  4283. case "(($ac_try" in
  4284. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4285. *) ac_try_echo=$ac_try;;
  4286. esac
  4287. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4288. (eval "$ac_compile") 2>conftest.er1
  4289. ac_status=$?
  4290. grep -v '^ *+' conftest.er1 >conftest.err
  4291. rm -f conftest.er1
  4292. cat conftest.err >&5
  4293. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4294. (exit $ac_status); } && {
  4295. test -z "$ac_c_werror_flag" ||
  4296. test ! -s conftest.err
  4297. } && test -s conftest.$ac_objext; then
  4298. eval "$as_ac_Header=yes"
  4299. else
  4300. echo "$as_me: failed program was:" >&5
  4301. sed 's/^/| /' conftest.$ac_ext >&5
  4302. eval "$as_ac_Header=no"
  4303. fi
  4304. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4305. fi
  4306. ac_res=`eval echo '${'$as_ac_Header'}'`
  4307. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4308. echo "${ECHO_T}$ac_res" >&6; }
  4309. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4310. cat >>confdefs.h <<_ACEOF
  4311. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4312. _ACEOF
  4313. fi
  4314. done
  4315. { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  4316. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
  4317. if test "${ac_cv_c_bigendian+set}" = set; then
  4318. echo $ECHO_N "(cached) $ECHO_C" >&6
  4319. else
  4320. # See if sys/param.h defines the BYTE_ORDER macro.
  4321. cat >conftest.$ac_ext <<_ACEOF
  4322. /* confdefs.h. */
  4323. _ACEOF
  4324. cat confdefs.h >>conftest.$ac_ext
  4325. cat >>conftest.$ac_ext <<_ACEOF
  4326. /* end confdefs.h. */
  4327. #include <sys/types.h>
  4328. #include <sys/param.h>
  4329. int
  4330. main ()
  4331. {
  4332. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
  4333. && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
  4334. bogus endian macros
  4335. #endif
  4336. ;
  4337. return 0;
  4338. }
  4339. _ACEOF
  4340. rm -f conftest.$ac_objext
  4341. if { (ac_try="$ac_compile"
  4342. case "(($ac_try" in
  4343. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4344. *) ac_try_echo=$ac_try;;
  4345. esac
  4346. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4347. (eval "$ac_compile") 2>conftest.er1
  4348. ac_status=$?
  4349. grep -v '^ *+' conftest.er1 >conftest.err
  4350. rm -f conftest.er1
  4351. cat conftest.err >&5
  4352. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4353. (exit $ac_status); } && {
  4354. test -z "$ac_c_werror_flag" ||
  4355. test ! -s conftest.err
  4356. } && test -s conftest.$ac_objext; then
  4357. # It does; now see whether it defined to BIG_ENDIAN or not.
  4358. cat >conftest.$ac_ext <<_ACEOF
  4359. /* confdefs.h. */
  4360. _ACEOF
  4361. cat confdefs.h >>conftest.$ac_ext
  4362. cat >>conftest.$ac_ext <<_ACEOF
  4363. /* end confdefs.h. */
  4364. #include <sys/types.h>
  4365. #include <sys/param.h>
  4366. int
  4367. main ()
  4368. {
  4369. #if BYTE_ORDER != BIG_ENDIAN
  4370. not big endian
  4371. #endif
  4372. ;
  4373. return 0;
  4374. }
  4375. _ACEOF
  4376. rm -f conftest.$ac_objext
  4377. if { (ac_try="$ac_compile"
  4378. case "(($ac_try" in
  4379. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4380. *) ac_try_echo=$ac_try;;
  4381. esac
  4382. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4383. (eval "$ac_compile") 2>conftest.er1
  4384. ac_status=$?
  4385. grep -v '^ *+' conftest.er1 >conftest.err
  4386. rm -f conftest.er1
  4387. cat conftest.err >&5
  4388. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4389. (exit $ac_status); } && {
  4390. test -z "$ac_c_werror_flag" ||
  4391. test ! -s conftest.err
  4392. } && test -s conftest.$ac_objext; then
  4393. ac_cv_c_bigendian=yes
  4394. else
  4395. echo "$as_me: failed program was:" >&5
  4396. sed 's/^/| /' conftest.$ac_ext >&5
  4397. ac_cv_c_bigendian=no
  4398. fi
  4399. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4400. else
  4401. echo "$as_me: failed program was:" >&5
  4402. sed 's/^/| /' conftest.$ac_ext >&5
  4403. # It does not; compile a test program.
  4404. if test "$cross_compiling" = yes; then
  4405. # try to guess the endianness by grepping values into an object file
  4406. ac_cv_c_bigendian=unknown
  4407. cat >conftest.$ac_ext <<_ACEOF
  4408. /* confdefs.h. */
  4409. _ACEOF
  4410. cat confdefs.h >>conftest.$ac_ext
  4411. cat >>conftest.$ac_ext <<_ACEOF
  4412. /* end confdefs.h. */
  4413. short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  4414. short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  4415. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  4416. short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  4417. short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  4418. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  4419. int
  4420. main ()
  4421. {
  4422. _ascii (); _ebcdic ();
  4423. ;
  4424. return 0;
  4425. }
  4426. _ACEOF
  4427. rm -f conftest.$ac_objext
  4428. if { (ac_try="$ac_compile"
  4429. case "(($ac_try" in
  4430. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4431. *) ac_try_echo=$ac_try;;
  4432. esac
  4433. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4434. (eval "$ac_compile") 2>conftest.er1
  4435. ac_status=$?
  4436. grep -v '^ *+' conftest.er1 >conftest.err
  4437. rm -f conftest.er1
  4438. cat conftest.err >&5
  4439. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4440. (exit $ac_status); } && {
  4441. test -z "$ac_c_werror_flag" ||
  4442. test ! -s conftest.err
  4443. } && test -s conftest.$ac_objext; then
  4444. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  4445. ac_cv_c_bigendian=yes
  4446. fi
  4447. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  4448. if test "$ac_cv_c_bigendian" = unknown; then
  4449. ac_cv_c_bigendian=no
  4450. else
  4451. # finding both strings is unlikely to happen, but who knows?
  4452. ac_cv_c_bigendian=unknown
  4453. fi
  4454. fi
  4455. else
  4456. echo "$as_me: failed program was:" >&5
  4457. sed 's/^/| /' conftest.$ac_ext >&5
  4458. fi
  4459. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4460. else
  4461. cat >conftest.$ac_ext <<_ACEOF
  4462. /* confdefs.h. */
  4463. _ACEOF
  4464. cat confdefs.h >>conftest.$ac_ext
  4465. cat >>conftest.$ac_ext <<_ACEOF
  4466. /* end confdefs.h. */
  4467. $ac_includes_default
  4468. int
  4469. main ()
  4470. {
  4471. /* Are we little or big endian? From Harbison&Steele. */
  4472. union
  4473. {
  4474. long int l;
  4475. char c[sizeof (long int)];
  4476. } u;
  4477. u.l = 1;
  4478. return u.c[sizeof (long int) - 1] == 1;
  4479. ;
  4480. return 0;
  4481. }
  4482. _ACEOF
  4483. rm -f conftest$ac_exeext
  4484. if { (ac_try="$ac_link"
  4485. case "(($ac_try" in
  4486. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4487. *) ac_try_echo=$ac_try;;
  4488. esac
  4489. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4490. (eval "$ac_link") 2>&5
  4491. ac_status=$?
  4492. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4493. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4494. { (case "(($ac_try" in
  4495. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4496. *) ac_try_echo=$ac_try;;
  4497. esac
  4498. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4499. (eval "$ac_try") 2>&5
  4500. ac_status=$?
  4501. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4502. (exit $ac_status); }; }; then
  4503. ac_cv_c_bigendian=no
  4504. else
  4505. echo "$as_me: program exited with status $ac_status" >&5
  4506. echo "$as_me: failed program was:" >&5
  4507. sed 's/^/| /' conftest.$ac_ext >&5
  4508. ( exit $ac_status )
  4509. ac_cv_c_bigendian=yes
  4510. fi
  4511. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4512. fi
  4513. fi
  4514. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4515. fi
  4516. { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  4517. echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
  4518. case $ac_cv_c_bigendian in
  4519. yes)
  4520. cat >>confdefs.h <<\_ACEOF
  4521. #define WORDS_BIGENDIAN 1
  4522. _ACEOF
  4523. ;;
  4524. no)
  4525. ;;
  4526. *)
  4527. { { echo "$as_me:$LINENO: error: unknown endianness
  4528. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  4529. echo "$as_me: error: unknown endianness
  4530. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  4531. { (exit 1); exit 1; }; } ;;
  4532. esac
  4533. ac_header_dirent=no
  4534. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  4535. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  4536. { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  4537. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
  4538. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4539. echo $ECHO_N "(cached) $ECHO_C" >&6
  4540. else
  4541. cat >conftest.$ac_ext <<_ACEOF
  4542. /* confdefs.h. */
  4543. _ACEOF
  4544. cat confdefs.h >>conftest.$ac_ext
  4545. cat >>conftest.$ac_ext <<_ACEOF
  4546. /* end confdefs.h. */
  4547. #include <sys/types.h>
  4548. #include <$ac_hdr>
  4549. int
  4550. main ()
  4551. {
  4552. if ((DIR *) 0)
  4553. return 0;
  4554. ;
  4555. return 0;
  4556. }
  4557. _ACEOF
  4558. rm -f conftest.$ac_objext
  4559. if { (ac_try="$ac_compile"
  4560. case "(($ac_try" in
  4561. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4562. *) ac_try_echo=$ac_try;;
  4563. esac
  4564. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4565. (eval "$ac_compile") 2>conftest.er1
  4566. ac_status=$?
  4567. grep -v '^ *+' conftest.er1 >conftest.err
  4568. rm -f conftest.er1
  4569. cat conftest.err >&5
  4570. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4571. (exit $ac_status); } && {
  4572. test -z "$ac_c_werror_flag" ||
  4573. test ! -s conftest.err
  4574. } && test -s conftest.$ac_objext; then
  4575. eval "$as_ac_Header=yes"
  4576. else
  4577. echo "$as_me: failed program was:" >&5
  4578. sed 's/^/| /' conftest.$ac_ext >&5
  4579. eval "$as_ac_Header=no"
  4580. fi
  4581. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4582. fi
  4583. ac_res=`eval echo '${'$as_ac_Header'}'`
  4584. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4585. echo "${ECHO_T}$ac_res" >&6; }
  4586. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4587. cat >>confdefs.h <<_ACEOF
  4588. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  4589. _ACEOF
  4590. ac_header_dirent=$ac_hdr; break
  4591. fi
  4592. done
  4593. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  4594. if test $ac_header_dirent = dirent.h; then
  4595. { echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4596. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
  4597. if test "${ac_cv_search_opendir+set}" = set; then
  4598. echo $ECHO_N "(cached) $ECHO_C" >&6
  4599. else
  4600. ac_func_search_save_LIBS=$LIBS
  4601. cat >conftest.$ac_ext <<_ACEOF
  4602. /* confdefs.h. */
  4603. _ACEOF
  4604. cat confdefs.h >>conftest.$ac_ext
  4605. cat >>conftest.$ac_ext <<_ACEOF
  4606. /* end confdefs.h. */
  4607. /* Override any GCC internal prototype to avoid an error.
  4608. Use char because int might match the return type of a GCC
  4609. builtin and then its argument prototype would still apply. */
  4610. #ifdef __cplusplus
  4611. extern "C"
  4612. #endif
  4613. char opendir ();
  4614. int
  4615. main ()
  4616. {
  4617. return opendir ();
  4618. ;
  4619. return 0;
  4620. }
  4621. _ACEOF
  4622. for ac_lib in '' dir; do
  4623. if test -z "$ac_lib"; then
  4624. ac_res="none required"
  4625. else
  4626. ac_res=-l$ac_lib
  4627. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4628. fi
  4629. rm -f conftest.$ac_objext conftest$ac_exeext
  4630. if { (ac_try="$ac_link"
  4631. case "(($ac_try" in
  4632. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4633. *) ac_try_echo=$ac_try;;
  4634. esac
  4635. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4636. (eval "$ac_link") 2>conftest.er1
  4637. ac_status=$?
  4638. grep -v '^ *+' conftest.er1 >conftest.err
  4639. rm -f conftest.er1
  4640. cat conftest.err >&5
  4641. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4642. (exit $ac_status); } && {
  4643. test -z "$ac_c_werror_flag" ||
  4644. test ! -s conftest.err
  4645. } && test -s conftest$ac_exeext &&
  4646. $as_test_x conftest$ac_exeext; then
  4647. ac_cv_search_opendir=$ac_res
  4648. else
  4649. echo "$as_me: failed program was:" >&5
  4650. sed 's/^/| /' conftest.$ac_ext >&5
  4651. fi
  4652. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4653. conftest$ac_exeext
  4654. if test "${ac_cv_search_opendir+set}" = set; then
  4655. break
  4656. fi
  4657. done
  4658. if test "${ac_cv_search_opendir+set}" = set; then
  4659. :
  4660. else
  4661. ac_cv_search_opendir=no
  4662. fi
  4663. rm conftest.$ac_ext
  4664. LIBS=$ac_func_search_save_LIBS
  4665. fi
  4666. { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4667. echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
  4668. ac_res=$ac_cv_search_opendir
  4669. if test "$ac_res" != no; then
  4670. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  4671. fi
  4672. else
  4673. { echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4674. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
  4675. if test "${ac_cv_search_opendir+set}" = set; then
  4676. echo $ECHO_N "(cached) $ECHO_C" >&6
  4677. else
  4678. ac_func_search_save_LIBS=$LIBS
  4679. cat >conftest.$ac_ext <<_ACEOF
  4680. /* confdefs.h. */
  4681. _ACEOF
  4682. cat confdefs.h >>conftest.$ac_ext
  4683. cat >>conftest.$ac_ext <<_ACEOF
  4684. /* end confdefs.h. */
  4685. /* Override any GCC internal prototype to avoid an error.
  4686. Use char because int might match the return type of a GCC
  4687. builtin and then its argument prototype would still apply. */
  4688. #ifdef __cplusplus
  4689. extern "C"
  4690. #endif
  4691. char opendir ();
  4692. int
  4693. main ()
  4694. {
  4695. return opendir ();
  4696. ;
  4697. return 0;
  4698. }
  4699. _ACEOF
  4700. for ac_lib in '' x; do
  4701. if test -z "$ac_lib"; then
  4702. ac_res="none required"
  4703. else
  4704. ac_res=-l$ac_lib
  4705. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4706. fi
  4707. rm -f conftest.$ac_objext conftest$ac_exeext
  4708. if { (ac_try="$ac_link"
  4709. case "(($ac_try" in
  4710. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4711. *) ac_try_echo=$ac_try;;
  4712. esac
  4713. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4714. (eval "$ac_link") 2>conftest.er1
  4715. ac_status=$?
  4716. grep -v '^ *+' conftest.er1 >conftest.err
  4717. rm -f conftest.er1
  4718. cat conftest.err >&5
  4719. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4720. (exit $ac_status); } && {
  4721. test -z "$ac_c_werror_flag" ||
  4722. test ! -s conftest.err
  4723. } && test -s conftest$ac_exeext &&
  4724. $as_test_x conftest$ac_exeext; then
  4725. ac_cv_search_opendir=$ac_res
  4726. else
  4727. echo "$as_me: failed program was:" >&5
  4728. sed 's/^/| /' conftest.$ac_ext >&5
  4729. fi
  4730. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4731. conftest$ac_exeext
  4732. if test "${ac_cv_search_opendir+set}" = set; then
  4733. break
  4734. fi
  4735. done
  4736. if test "${ac_cv_search_opendir+set}" = set; then
  4737. :
  4738. else
  4739. ac_cv_search_opendir=no
  4740. fi
  4741. rm conftest.$ac_ext
  4742. LIBS=$ac_func_search_save_LIBS
  4743. fi
  4744. { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4745. echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
  4746. ac_res=$ac_cv_search_opendir
  4747. if test "$ac_res" != no; then
  4748. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  4749. fi
  4750. fi
  4751. { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  4752. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
  4753. if test "${ac_cv_header_time+set}" = set; then
  4754. echo $ECHO_N "(cached) $ECHO_C" >&6
  4755. else
  4756. cat >conftest.$ac_ext <<_ACEOF
  4757. /* confdefs.h. */
  4758. _ACEOF
  4759. cat confdefs.h >>conftest.$ac_ext
  4760. cat >>conftest.$ac_ext <<_ACEOF
  4761. /* end confdefs.h. */
  4762. #include <sys/types.h>
  4763. #include <sys/time.h>
  4764. #include <time.h>
  4765. int
  4766. main ()
  4767. {
  4768. if ((struct tm *) 0)
  4769. return 0;
  4770. ;
  4771. return 0;
  4772. }
  4773. _ACEOF
  4774. rm -f conftest.$ac_objext
  4775. if { (ac_try="$ac_compile"
  4776. case "(($ac_try" in
  4777. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4778. *) ac_try_echo=$ac_try;;
  4779. esac
  4780. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4781. (eval "$ac_compile") 2>conftest.er1
  4782. ac_status=$?
  4783. grep -v '^ *+' conftest.er1 >conftest.err
  4784. rm -f conftest.er1
  4785. cat conftest.err >&5
  4786. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4787. (exit $ac_status); } && {
  4788. test -z "$ac_c_werror_flag" ||
  4789. test ! -s conftest.err
  4790. } && test -s conftest.$ac_objext; then
  4791. ac_cv_header_time=yes
  4792. else
  4793. echo "$as_me: failed program was:" >&5
  4794. sed 's/^/| /' conftest.$ac_ext >&5
  4795. ac_cv_header_time=no
  4796. fi
  4797. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4798. fi
  4799. { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  4800. echo "${ECHO_T}$ac_cv_header_time" >&6; }
  4801. if test $ac_cv_header_time = yes; then
  4802. cat >>confdefs.h <<\_ACEOF
  4803. #define TIME_WITH_SYS_TIME 1
  4804. _ACEOF
  4805. fi
  4806. { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  4807. echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
  4808. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  4809. echo $ECHO_N "(cached) $ECHO_C" >&6
  4810. else
  4811. cat >conftest.$ac_ext <<_ACEOF
  4812. /* confdefs.h. */
  4813. _ACEOF
  4814. cat confdefs.h >>conftest.$ac_ext
  4815. cat >>conftest.$ac_ext <<_ACEOF
  4816. /* end confdefs.h. */
  4817. #include <sys/types.h>
  4818. #include <sys/wait.h>
  4819. #ifndef WEXITSTATUS
  4820. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  4821. #endif
  4822. #ifndef WIFEXITED
  4823. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  4824. #endif
  4825. int
  4826. main ()
  4827. {
  4828. int s;
  4829. wait (&s);
  4830. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  4831. ;
  4832. return 0;
  4833. }
  4834. _ACEOF
  4835. rm -f conftest.$ac_objext
  4836. if { (ac_try="$ac_compile"
  4837. case "(($ac_try" in
  4838. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4839. *) ac_try_echo=$ac_try;;
  4840. esac
  4841. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4842. (eval "$ac_compile") 2>conftest.er1
  4843. ac_status=$?
  4844. grep -v '^ *+' conftest.er1 >conftest.err
  4845. rm -f conftest.er1
  4846. cat conftest.err >&5
  4847. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4848. (exit $ac_status); } && {
  4849. test -z "$ac_c_werror_flag" ||
  4850. test ! -s conftest.err
  4851. } && test -s conftest.$ac_objext; then
  4852. ac_cv_header_sys_wait_h=yes
  4853. else
  4854. echo "$as_me: failed program was:" >&5
  4855. sed 's/^/| /' conftest.$ac_ext >&5
  4856. ac_cv_header_sys_wait_h=no
  4857. fi
  4858. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4859. fi
  4860. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  4861. echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
  4862. if test $ac_cv_header_sys_wait_h = yes; then
  4863. cat >>confdefs.h <<\_ACEOF
  4864. #define HAVE_SYS_WAIT_H 1
  4865. _ACEOF
  4866. fi
  4867. for ac_header in sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h \
  4868. unistd.h utime.h grp.h compat.h sys/param.h ctype.h sys/wait.h \
  4869. sys/ioctl.h sys/filio.h string.h stdlib.h sys/socket.h sys/mode.h \
  4870. sys/un.h sys/attr.h mcheck.h arpa/inet.h arpa/nameser.h locale.h \
  4871. netdb.h malloc.h float.h limits.h iconv.h libcharset.h langinfo.h \
  4872. sys/acl.h acl/libacl.h attr/xattr.h sys/xattr.h sys/extattr.h \
  4873. popt.h popt/popt.h
  4874. do
  4875. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4876. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4877. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4878. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4879. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4880. echo $ECHO_N "(cached) $ECHO_C" >&6
  4881. fi
  4882. ac_res=`eval echo '${'$as_ac_Header'}'`
  4883. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4884. echo "${ECHO_T}$ac_res" >&6; }
  4885. else
  4886. # Is the header compilable?
  4887. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4888. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  4889. cat >conftest.$ac_ext <<_ACEOF
  4890. /* confdefs.h. */
  4891. _ACEOF
  4892. cat confdefs.h >>conftest.$ac_ext
  4893. cat >>conftest.$ac_ext <<_ACEOF
  4894. /* end confdefs.h. */
  4895. $ac_includes_default
  4896. #include <$ac_header>
  4897. _ACEOF
  4898. rm -f conftest.$ac_objext
  4899. if { (ac_try="$ac_compile"
  4900. case "(($ac_try" in
  4901. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4902. *) ac_try_echo=$ac_try;;
  4903. esac
  4904. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4905. (eval "$ac_compile") 2>conftest.er1
  4906. ac_status=$?
  4907. grep -v '^ *+' conftest.er1 >conftest.err
  4908. rm -f conftest.er1
  4909. cat conftest.err >&5
  4910. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4911. (exit $ac_status); } && {
  4912. test -z "$ac_c_werror_flag" ||
  4913. test ! -s conftest.err
  4914. } && test -s conftest.$ac_objext; then
  4915. ac_header_compiler=yes
  4916. else
  4917. echo "$as_me: failed program was:" >&5
  4918. sed 's/^/| /' conftest.$ac_ext >&5
  4919. ac_header_compiler=no
  4920. fi
  4921. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4922. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4923. echo "${ECHO_T}$ac_header_compiler" >&6; }
  4924. # Is the header present?
  4925. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4926. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  4927. cat >conftest.$ac_ext <<_ACEOF
  4928. /* confdefs.h. */
  4929. _ACEOF
  4930. cat confdefs.h >>conftest.$ac_ext
  4931. cat >>conftest.$ac_ext <<_ACEOF
  4932. /* end confdefs.h. */
  4933. #include <$ac_header>
  4934. _ACEOF
  4935. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4936. case "(($ac_try" in
  4937. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4938. *) ac_try_echo=$ac_try;;
  4939. esac
  4940. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4941. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4942. ac_status=$?
  4943. grep -v '^ *+' conftest.er1 >conftest.err
  4944. rm -f conftest.er1
  4945. cat conftest.err >&5
  4946. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4947. (exit $ac_status); } >/dev/null && {
  4948. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4949. test ! -s conftest.err
  4950. }; then
  4951. ac_header_preproc=yes
  4952. else
  4953. echo "$as_me: failed program was:" >&5
  4954. sed 's/^/| /' conftest.$ac_ext >&5
  4955. ac_header_preproc=no
  4956. fi
  4957. rm -f conftest.err conftest.$ac_ext
  4958. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4959. echo "${ECHO_T}$ac_header_preproc" >&6; }
  4960. # So? What about this header?
  4961. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4962. yes:no: )
  4963. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4964. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4965. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4966. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4967. ac_header_preproc=yes
  4968. ;;
  4969. no:yes:* )
  4970. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4971. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4972. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4973. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4974. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4975. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4976. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4977. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4978. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4979. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4980. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4981. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4982. ;;
  4983. esac
  4984. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4985. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4986. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4987. echo $ECHO_N "(cached) $ECHO_C" >&6
  4988. else
  4989. eval "$as_ac_Header=\$ac_header_preproc"
  4990. fi
  4991. ac_res=`eval echo '${'$as_ac_Header'}'`
  4992. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4993. echo "${ECHO_T}$ac_res" >&6; }
  4994. fi
  4995. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4996. cat >>confdefs.h <<_ACEOF
  4997. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4998. _ACEOF
  4999. fi
  5000. done
  5001. { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
  5002. echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
  5003. if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
  5004. echo $ECHO_N "(cached) $ECHO_C" >&6
  5005. else
  5006. cat >conftest.$ac_ext <<_ACEOF
  5007. /* confdefs.h. */
  5008. _ACEOF
  5009. cat confdefs.h >>conftest.$ac_ext
  5010. cat >>conftest.$ac_ext <<_ACEOF
  5011. /* end confdefs.h. */
  5012. #include <sys/types.h>
  5013. int
  5014. main ()
  5015. {
  5016. return makedev(0, 0);
  5017. ;
  5018. return 0;
  5019. }
  5020. _ACEOF
  5021. rm -f conftest.$ac_objext conftest$ac_exeext
  5022. if { (ac_try="$ac_link"
  5023. case "(($ac_try" in
  5024. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5025. *) ac_try_echo=$ac_try;;
  5026. esac
  5027. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5028. (eval "$ac_link") 2>conftest.er1
  5029. ac_status=$?
  5030. grep -v '^ *+' conftest.er1 >conftest.err
  5031. rm -f conftest.er1
  5032. cat conftest.err >&5
  5033. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5034. (exit $ac_status); } && {
  5035. test -z "$ac_c_werror_flag" ||
  5036. test ! -s conftest.err
  5037. } && test -s conftest$ac_exeext &&
  5038. $as_test_x conftest$ac_exeext; then
  5039. ac_cv_header_sys_types_h_makedev=yes
  5040. else
  5041. echo "$as_me: failed program was:" >&5
  5042. sed 's/^/| /' conftest.$ac_ext >&5
  5043. ac_cv_header_sys_types_h_makedev=no
  5044. fi
  5045. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5046. conftest$ac_exeext conftest.$ac_ext
  5047. fi
  5048. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
  5049. echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
  5050. if test $ac_cv_header_sys_types_h_makedev = no; then
  5051. if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
  5052. { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
  5053. echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
  5054. if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
  5055. echo $ECHO_N "(cached) $ECHO_C" >&6
  5056. fi
  5057. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
  5058. echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
  5059. else
  5060. # Is the header compilable?
  5061. { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
  5062. echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
  5063. cat >conftest.$ac_ext <<_ACEOF
  5064. /* confdefs.h. */
  5065. _ACEOF
  5066. cat confdefs.h >>conftest.$ac_ext
  5067. cat >>conftest.$ac_ext <<_ACEOF
  5068. /* end confdefs.h. */
  5069. $ac_includes_default
  5070. #include <sys/mkdev.h>
  5071. _ACEOF
  5072. rm -f conftest.$ac_objext
  5073. if { (ac_try="$ac_compile"
  5074. case "(($ac_try" in
  5075. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5076. *) ac_try_echo=$ac_try;;
  5077. esac
  5078. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5079. (eval "$ac_compile") 2>conftest.er1
  5080. ac_status=$?
  5081. grep -v '^ *+' conftest.er1 >conftest.err
  5082. rm -f conftest.er1
  5083. cat conftest.err >&5
  5084. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5085. (exit $ac_status); } && {
  5086. test -z "$ac_c_werror_flag" ||
  5087. test ! -s conftest.err
  5088. } && test -s conftest.$ac_objext; then
  5089. ac_header_compiler=yes
  5090. else
  5091. echo "$as_me: failed program was:" >&5
  5092. sed 's/^/| /' conftest.$ac_ext >&5
  5093. ac_header_compiler=no
  5094. fi
  5095. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5096. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5097. echo "${ECHO_T}$ac_header_compiler" >&6; }
  5098. # Is the header present?
  5099. { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
  5100. echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
  5101. cat >conftest.$ac_ext <<_ACEOF
  5102. /* confdefs.h. */
  5103. _ACEOF
  5104. cat confdefs.h >>conftest.$ac_ext
  5105. cat >>conftest.$ac_ext <<_ACEOF
  5106. /* end confdefs.h. */
  5107. #include <sys/mkdev.h>
  5108. _ACEOF
  5109. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5110. case "(($ac_try" in
  5111. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5112. *) ac_try_echo=$ac_try;;
  5113. esac
  5114. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5115. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5116. ac_status=$?
  5117. grep -v '^ *+' conftest.er1 >conftest.err
  5118. rm -f conftest.er1
  5119. cat conftest.err >&5
  5120. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5121. (exit $ac_status); } >/dev/null && {
  5122. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5123. test ! -s conftest.err
  5124. }; then
  5125. ac_header_preproc=yes
  5126. else
  5127. echo "$as_me: failed program was:" >&5
  5128. sed 's/^/| /' conftest.$ac_ext >&5
  5129. ac_header_preproc=no
  5130. fi
  5131. rm -f conftest.err conftest.$ac_ext
  5132. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5133. echo "${ECHO_T}$ac_header_preproc" >&6; }
  5134. # So? What about this header?
  5135. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5136. yes:no: )
  5137. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
  5138. echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5139. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
  5140. echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
  5141. ac_header_preproc=yes
  5142. ;;
  5143. no:yes:* )
  5144. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
  5145. echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
  5146. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
  5147. echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
  5148. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
  5149. echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
  5150. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
  5151. echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
  5152. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
  5153. echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
  5154. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
  5155. echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
  5156. ;;
  5157. esac
  5158. { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
  5159. echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
  5160. if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
  5161. echo $ECHO_N "(cached) $ECHO_C" >&6
  5162. else
  5163. ac_cv_header_sys_mkdev_h=$ac_header_preproc
  5164. fi
  5165. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
  5166. echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
  5167. fi
  5168. if test $ac_cv_header_sys_mkdev_h = yes; then
  5169. cat >>confdefs.h <<\_ACEOF
  5170. #define MAJOR_IN_MKDEV 1
  5171. _ACEOF
  5172. fi
  5173. if test $ac_cv_header_sys_mkdev_h = no; then
  5174. if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
  5175. { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
  5176. echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
  5177. if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
  5178. echo $ECHO_N "(cached) $ECHO_C" >&6
  5179. fi
  5180. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
  5181. echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
  5182. else
  5183. # Is the header compilable?
  5184. { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
  5185. echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
  5186. cat >conftest.$ac_ext <<_ACEOF
  5187. /* confdefs.h. */
  5188. _ACEOF
  5189. cat confdefs.h >>conftest.$ac_ext
  5190. cat >>conftest.$ac_ext <<_ACEOF
  5191. /* end confdefs.h. */
  5192. $ac_includes_default
  5193. #include <sys/sysmacros.h>
  5194. _ACEOF
  5195. rm -f conftest.$ac_objext
  5196. if { (ac_try="$ac_compile"
  5197. case "(($ac_try" in
  5198. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5199. *) ac_try_echo=$ac_try;;
  5200. esac
  5201. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5202. (eval "$ac_compile") 2>conftest.er1
  5203. ac_status=$?
  5204. grep -v '^ *+' conftest.er1 >conftest.err
  5205. rm -f conftest.er1
  5206. cat conftest.err >&5
  5207. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5208. (exit $ac_status); } && {
  5209. test -z "$ac_c_werror_flag" ||
  5210. test ! -s conftest.err
  5211. } && test -s conftest.$ac_objext; then
  5212. ac_header_compiler=yes
  5213. else
  5214. echo "$as_me: failed program was:" >&5
  5215. sed 's/^/| /' conftest.$ac_ext >&5
  5216. ac_header_compiler=no
  5217. fi
  5218. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5219. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5220. echo "${ECHO_T}$ac_header_compiler" >&6; }
  5221. # Is the header present?
  5222. { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
  5223. echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
  5224. cat >conftest.$ac_ext <<_ACEOF
  5225. /* confdefs.h. */
  5226. _ACEOF
  5227. cat confdefs.h >>conftest.$ac_ext
  5228. cat >>conftest.$ac_ext <<_ACEOF
  5229. /* end confdefs.h. */
  5230. #include <sys/sysmacros.h>
  5231. _ACEOF
  5232. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5233. case "(($ac_try" in
  5234. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5235. *) ac_try_echo=$ac_try;;
  5236. esac
  5237. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5238. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5239. ac_status=$?
  5240. grep -v '^ *+' conftest.er1 >conftest.err
  5241. rm -f conftest.er1
  5242. cat conftest.err >&5
  5243. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5244. (exit $ac_status); } >/dev/null && {
  5245. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5246. test ! -s conftest.err
  5247. }; then
  5248. ac_header_preproc=yes
  5249. else
  5250. echo "$as_me: failed program was:" >&5
  5251. sed 's/^/| /' conftest.$ac_ext >&5
  5252. ac_header_preproc=no
  5253. fi
  5254. rm -f conftest.err conftest.$ac_ext
  5255. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5256. echo "${ECHO_T}$ac_header_preproc" >&6; }
  5257. # So? What about this header?
  5258. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5259. yes:no: )
  5260. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
  5261. echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5262. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
  5263. echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
  5264. ac_header_preproc=yes
  5265. ;;
  5266. no:yes:* )
  5267. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
  5268. echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
  5269. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
  5270. echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
  5271. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
  5272. echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
  5273. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
  5274. echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
  5275. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
  5276. echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
  5277. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
  5278. echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
  5279. ;;
  5280. esac
  5281. { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
  5282. echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
  5283. if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
  5284. echo $ECHO_N "(cached) $ECHO_C" >&6
  5285. else
  5286. ac_cv_header_sys_sysmacros_h=$ac_header_preproc
  5287. fi
  5288. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
  5289. echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
  5290. fi
  5291. if test $ac_cv_header_sys_sysmacros_h = yes; then
  5292. cat >>confdefs.h <<\_ACEOF
  5293. #define MAJOR_IN_SYSMACROS 1
  5294. _ACEOF
  5295. fi
  5296. fi
  5297. fi
  5298. { echo "$as_me:$LINENO: checking if makedev takes 3 args" >&5
  5299. echo $ECHO_N "checking if makedev takes 3 args... $ECHO_C" >&6; }
  5300. if test "${rsync_cv_MAKEDEV_TAKES_3_ARGS+set}" = set; then
  5301. echo $ECHO_N "(cached) $ECHO_C" >&6
  5302. else
  5303. if test "$cross_compiling" = yes; then
  5304. rsync_cv_MAKEDEV_TAKES_3_ARGS=no
  5305. else
  5306. cat >conftest.$ac_ext <<_ACEOF
  5307. /* confdefs.h. */
  5308. _ACEOF
  5309. cat confdefs.h >>conftest.$ac_ext
  5310. cat >>conftest.$ac_ext <<_ACEOF
  5311. /* end confdefs.h. */
  5312. #include <sys/types.h>
  5313. #ifdef MAJOR_IN_MKDEV
  5314. #include <sys/mkdev.h>
  5315. # if !defined makedev && (defined mkdev || defined _WIN32 || defined __WIN32__)
  5316. # define makedev mkdev
  5317. # endif
  5318. #elif defined MAJOR_IN_SYSMACROS
  5319. #include <sys/sysmacros.h>
  5320. #endif
  5321. int main(void)
  5322. {
  5323. dev_t dev = makedev(0, 5, 7);
  5324. if (major(dev) != 5 || minor(dev) != 7)
  5325. exit(1);
  5326. return 0;
  5327. }
  5328. _ACEOF
  5329. rm -f conftest$ac_exeext
  5330. if { (ac_try="$ac_link"
  5331. case "(($ac_try" in
  5332. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5333. *) ac_try_echo=$ac_try;;
  5334. esac
  5335. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5336. (eval "$ac_link") 2>&5
  5337. ac_status=$?
  5338. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5339. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5340. { (case "(($ac_try" in
  5341. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5342. *) ac_try_echo=$ac_try;;
  5343. esac
  5344. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5345. (eval "$ac_try") 2>&5
  5346. ac_status=$?
  5347. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5348. (exit $ac_status); }; }; then
  5349. rsync_cv_MAKEDEV_TAKES_3_ARGS=yes
  5350. else
  5351. echo "$as_me: program exited with status $ac_status" >&5
  5352. echo "$as_me: failed program was:" >&5
  5353. sed 's/^/| /' conftest.$ac_ext >&5
  5354. ( exit $ac_status )
  5355. rsync_cv_MAKEDEV_TAKES_3_ARGS=no
  5356. fi
  5357. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5358. fi
  5359. fi
  5360. { echo "$as_me:$LINENO: result: $rsync_cv_MAKEDEV_TAKES_3_ARGS" >&5
  5361. echo "${ECHO_T}$rsync_cv_MAKEDEV_TAKES_3_ARGS" >&6; }
  5362. if test x"$rsync_cv_MAKEDEV_TAKES_3_ARGS" = x"yes"; then
  5363. cat >>confdefs.h <<\_ACEOF
  5364. #define MAKEDEV_TAKES_3_ARGS 1
  5365. _ACEOF
  5366. fi
  5367. { echo "$as_me:$LINENO: checking for int" >&5
  5368. echo $ECHO_N "checking for int... $ECHO_C" >&6; }
  5369. if test "${ac_cv_type_int+set}" = set; then
  5370. echo $ECHO_N "(cached) $ECHO_C" >&6
  5371. else
  5372. cat >conftest.$ac_ext <<_ACEOF
  5373. /* confdefs.h. */
  5374. _ACEOF
  5375. cat confdefs.h >>conftest.$ac_ext
  5376. cat >>conftest.$ac_ext <<_ACEOF
  5377. /* end confdefs.h. */
  5378. $ac_includes_default
  5379. typedef int ac__type_new_;
  5380. int
  5381. main ()
  5382. {
  5383. if ((ac__type_new_ *) 0)
  5384. return 0;
  5385. if (sizeof (ac__type_new_))
  5386. return 0;
  5387. ;
  5388. return 0;
  5389. }
  5390. _ACEOF
  5391. rm -f conftest.$ac_objext
  5392. if { (ac_try="$ac_compile"
  5393. case "(($ac_try" in
  5394. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5395. *) ac_try_echo=$ac_try;;
  5396. esac
  5397. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5398. (eval "$ac_compile") 2>conftest.er1
  5399. ac_status=$?
  5400. grep -v '^ *+' conftest.er1 >conftest.err
  5401. rm -f conftest.er1
  5402. cat conftest.err >&5
  5403. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5404. (exit $ac_status); } && {
  5405. test -z "$ac_c_werror_flag" ||
  5406. test ! -s conftest.err
  5407. } && test -s conftest.$ac_objext; then
  5408. ac_cv_type_int=yes
  5409. else
  5410. echo "$as_me: failed program was:" >&5
  5411. sed 's/^/| /' conftest.$ac_ext >&5
  5412. ac_cv_type_int=no
  5413. fi
  5414. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5415. fi
  5416. { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
  5417. echo "${ECHO_T}$ac_cv_type_int" >&6; }
  5418. # The cast to long int works around a bug in the HP C Compiler
  5419. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5420. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5421. # This bug is HP SR number 8606223364.
  5422. { echo "$as_me:$LINENO: checking size of int" >&5
  5423. echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
  5424. if test "${ac_cv_sizeof_int+set}" = set; then
  5425. echo $ECHO_N "(cached) $ECHO_C" >&6
  5426. else
  5427. if test "$cross_compiling" = yes; then
  5428. # Depending upon the size, compute the lo and hi bounds.
  5429. cat >conftest.$ac_ext <<_ACEOF
  5430. /* confdefs.h. */
  5431. _ACEOF
  5432. cat confdefs.h >>conftest.$ac_ext
  5433. cat >>conftest.$ac_ext <<_ACEOF
  5434. /* end confdefs.h. */
  5435. $ac_includes_default
  5436. typedef int ac__type_sizeof_;
  5437. int
  5438. main ()
  5439. {
  5440. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  5441. test_array [0] = 0
  5442. ;
  5443. return 0;
  5444. }
  5445. _ACEOF
  5446. rm -f conftest.$ac_objext
  5447. if { (ac_try="$ac_compile"
  5448. case "(($ac_try" in
  5449. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5450. *) ac_try_echo=$ac_try;;
  5451. esac
  5452. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5453. (eval "$ac_compile") 2>conftest.er1
  5454. ac_status=$?
  5455. grep -v '^ *+' conftest.er1 >conftest.err
  5456. rm -f conftest.er1
  5457. cat conftest.err >&5
  5458. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5459. (exit $ac_status); } && {
  5460. test -z "$ac_c_werror_flag" ||
  5461. test ! -s conftest.err
  5462. } && test -s conftest.$ac_objext; then
  5463. ac_lo=0 ac_mid=0
  5464. while :; do
  5465. cat >conftest.$ac_ext <<_ACEOF
  5466. /* confdefs.h. */
  5467. _ACEOF
  5468. cat confdefs.h >>conftest.$ac_ext
  5469. cat >>conftest.$ac_ext <<_ACEOF
  5470. /* end confdefs.h. */
  5471. $ac_includes_default
  5472. typedef int ac__type_sizeof_;
  5473. int
  5474. main ()
  5475. {
  5476. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  5477. test_array [0] = 0
  5478. ;
  5479. return 0;
  5480. }
  5481. _ACEOF
  5482. rm -f conftest.$ac_objext
  5483. if { (ac_try="$ac_compile"
  5484. case "(($ac_try" in
  5485. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5486. *) ac_try_echo=$ac_try;;
  5487. esac
  5488. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5489. (eval "$ac_compile") 2>conftest.er1
  5490. ac_status=$?
  5491. grep -v '^ *+' conftest.er1 >conftest.err
  5492. rm -f conftest.er1
  5493. cat conftest.err >&5
  5494. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5495. (exit $ac_status); } && {
  5496. test -z "$ac_c_werror_flag" ||
  5497. test ! -s conftest.err
  5498. } && test -s conftest.$ac_objext; then
  5499. ac_hi=$ac_mid; break
  5500. else
  5501. echo "$as_me: failed program was:" >&5
  5502. sed 's/^/| /' conftest.$ac_ext >&5
  5503. ac_lo=`expr $ac_mid + 1`
  5504. if test $ac_lo -le $ac_mid; then
  5505. ac_lo= ac_hi=
  5506. break
  5507. fi
  5508. ac_mid=`expr 2 '*' $ac_mid + 1`
  5509. fi
  5510. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5511. done
  5512. else
  5513. echo "$as_me: failed program was:" >&5
  5514. sed 's/^/| /' conftest.$ac_ext >&5
  5515. cat >conftest.$ac_ext <<_ACEOF
  5516. /* confdefs.h. */
  5517. _ACEOF
  5518. cat confdefs.h >>conftest.$ac_ext
  5519. cat >>conftest.$ac_ext <<_ACEOF
  5520. /* end confdefs.h. */
  5521. $ac_includes_default
  5522. typedef int ac__type_sizeof_;
  5523. int
  5524. main ()
  5525. {
  5526. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  5527. test_array [0] = 0
  5528. ;
  5529. return 0;
  5530. }
  5531. _ACEOF
  5532. rm -f conftest.$ac_objext
  5533. if { (ac_try="$ac_compile"
  5534. case "(($ac_try" in
  5535. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5536. *) ac_try_echo=$ac_try;;
  5537. esac
  5538. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5539. (eval "$ac_compile") 2>conftest.er1
  5540. ac_status=$?
  5541. grep -v '^ *+' conftest.er1 >conftest.err
  5542. rm -f conftest.er1
  5543. cat conftest.err >&5
  5544. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5545. (exit $ac_status); } && {
  5546. test -z "$ac_c_werror_flag" ||
  5547. test ! -s conftest.err
  5548. } && test -s conftest.$ac_objext; then
  5549. ac_hi=-1 ac_mid=-1
  5550. while :; do
  5551. cat >conftest.$ac_ext <<_ACEOF
  5552. /* confdefs.h. */
  5553. _ACEOF
  5554. cat confdefs.h >>conftest.$ac_ext
  5555. cat >>conftest.$ac_ext <<_ACEOF
  5556. /* end confdefs.h. */
  5557. $ac_includes_default
  5558. typedef int ac__type_sizeof_;
  5559. int
  5560. main ()
  5561. {
  5562. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  5563. test_array [0] = 0
  5564. ;
  5565. return 0;
  5566. }
  5567. _ACEOF
  5568. rm -f conftest.$ac_objext
  5569. if { (ac_try="$ac_compile"
  5570. case "(($ac_try" in
  5571. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5572. *) ac_try_echo=$ac_try;;
  5573. esac
  5574. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5575. (eval "$ac_compile") 2>conftest.er1
  5576. ac_status=$?
  5577. grep -v '^ *+' conftest.er1 >conftest.err
  5578. rm -f conftest.er1
  5579. cat conftest.err >&5
  5580. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5581. (exit $ac_status); } && {
  5582. test -z "$ac_c_werror_flag" ||
  5583. test ! -s conftest.err
  5584. } && test -s conftest.$ac_objext; then
  5585. ac_lo=$ac_mid; break
  5586. else
  5587. echo "$as_me: failed program was:" >&5
  5588. sed 's/^/| /' conftest.$ac_ext >&5
  5589. ac_hi=`expr '(' $ac_mid ')' - 1`
  5590. if test $ac_mid -le $ac_hi; then
  5591. ac_lo= ac_hi=
  5592. break
  5593. fi
  5594. ac_mid=`expr 2 '*' $ac_mid`
  5595. fi
  5596. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5597. done
  5598. else
  5599. echo "$as_me: failed program was:" >&5
  5600. sed 's/^/| /' conftest.$ac_ext >&5
  5601. ac_lo= ac_hi=
  5602. fi
  5603. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5604. fi
  5605. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5606. # Binary search between lo and hi bounds.
  5607. while test "x$ac_lo" != "x$ac_hi"; do
  5608. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  5609. cat >conftest.$ac_ext <<_ACEOF
  5610. /* confdefs.h. */
  5611. _ACEOF
  5612. cat confdefs.h >>conftest.$ac_ext
  5613. cat >>conftest.$ac_ext <<_ACEOF
  5614. /* end confdefs.h. */
  5615. $ac_includes_default
  5616. typedef int ac__type_sizeof_;
  5617. int
  5618. main ()
  5619. {
  5620. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  5621. test_array [0] = 0
  5622. ;
  5623. return 0;
  5624. }
  5625. _ACEOF
  5626. rm -f conftest.$ac_objext
  5627. if { (ac_try="$ac_compile"
  5628. case "(($ac_try" in
  5629. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5630. *) ac_try_echo=$ac_try;;
  5631. esac
  5632. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5633. (eval "$ac_compile") 2>conftest.er1
  5634. ac_status=$?
  5635. grep -v '^ *+' conftest.er1 >conftest.err
  5636. rm -f conftest.er1
  5637. cat conftest.err >&5
  5638. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5639. (exit $ac_status); } && {
  5640. test -z "$ac_c_werror_flag" ||
  5641. test ! -s conftest.err
  5642. } && test -s conftest.$ac_objext; then
  5643. ac_hi=$ac_mid
  5644. else
  5645. echo "$as_me: failed program was:" >&5
  5646. sed 's/^/| /' conftest.$ac_ext >&5
  5647. ac_lo=`expr '(' $ac_mid ')' + 1`
  5648. fi
  5649. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5650. done
  5651. case $ac_lo in
  5652. ?*) ac_cv_sizeof_int=$ac_lo;;
  5653. '') if test "$ac_cv_type_int" = yes; then
  5654. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  5655. See \`config.log' for more details." >&5
  5656. echo "$as_me: error: cannot compute sizeof (int)
  5657. See \`config.log' for more details." >&2;}
  5658. { (exit 77); exit 77; }; }
  5659. else
  5660. ac_cv_sizeof_int=0
  5661. fi ;;
  5662. esac
  5663. else
  5664. cat >conftest.$ac_ext <<_ACEOF
  5665. /* confdefs.h. */
  5666. _ACEOF
  5667. cat confdefs.h >>conftest.$ac_ext
  5668. cat >>conftest.$ac_ext <<_ACEOF
  5669. /* end confdefs.h. */
  5670. $ac_includes_default
  5671. typedef int ac__type_sizeof_;
  5672. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  5673. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  5674. #include <stdio.h>
  5675. #include <stdlib.h>
  5676. int
  5677. main ()
  5678. {
  5679. FILE *f = fopen ("conftest.val", "w");
  5680. if (! f)
  5681. return 1;
  5682. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  5683. {
  5684. long int i = longval ();
  5685. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  5686. return 1;
  5687. fprintf (f, "%ld\n", i);
  5688. }
  5689. else
  5690. {
  5691. unsigned long int i = ulongval ();
  5692. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  5693. return 1;
  5694. fprintf (f, "%lu\n", i);
  5695. }
  5696. return ferror (f) || fclose (f) != 0;
  5697. ;
  5698. return 0;
  5699. }
  5700. _ACEOF
  5701. rm -f conftest$ac_exeext
  5702. if { (ac_try="$ac_link"
  5703. case "(($ac_try" in
  5704. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5705. *) ac_try_echo=$ac_try;;
  5706. esac
  5707. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5708. (eval "$ac_link") 2>&5
  5709. ac_status=$?
  5710. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5711. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5712. { (case "(($ac_try" in
  5713. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5714. *) ac_try_echo=$ac_try;;
  5715. esac
  5716. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5717. (eval "$ac_try") 2>&5
  5718. ac_status=$?
  5719. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5720. (exit $ac_status); }; }; then
  5721. ac_cv_sizeof_int=`cat conftest.val`
  5722. else
  5723. echo "$as_me: program exited with status $ac_status" >&5
  5724. echo "$as_me: failed program was:" >&5
  5725. sed 's/^/| /' conftest.$ac_ext >&5
  5726. ( exit $ac_status )
  5727. if test "$ac_cv_type_int" = yes; then
  5728. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  5729. See \`config.log' for more details." >&5
  5730. echo "$as_me: error: cannot compute sizeof (int)
  5731. See \`config.log' for more details." >&2;}
  5732. { (exit 77); exit 77; }; }
  5733. else
  5734. ac_cv_sizeof_int=0
  5735. fi
  5736. fi
  5737. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5738. fi
  5739. rm -f conftest.val
  5740. fi
  5741. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  5742. echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
  5743. cat >>confdefs.h <<_ACEOF
  5744. #define SIZEOF_INT $ac_cv_sizeof_int
  5745. _ACEOF
  5746. { echo "$as_me:$LINENO: checking for long" >&5
  5747. echo $ECHO_N "checking for long... $ECHO_C" >&6; }
  5748. if test "${ac_cv_type_long+set}" = set; then
  5749. echo $ECHO_N "(cached) $ECHO_C" >&6
  5750. else
  5751. cat >conftest.$ac_ext <<_ACEOF
  5752. /* confdefs.h. */
  5753. _ACEOF
  5754. cat confdefs.h >>conftest.$ac_ext
  5755. cat >>conftest.$ac_ext <<_ACEOF
  5756. /* end confdefs.h. */
  5757. $ac_includes_default
  5758. typedef long ac__type_new_;
  5759. int
  5760. main ()
  5761. {
  5762. if ((ac__type_new_ *) 0)
  5763. return 0;
  5764. if (sizeof (ac__type_new_))
  5765. return 0;
  5766. ;
  5767. return 0;
  5768. }
  5769. _ACEOF
  5770. rm -f conftest.$ac_objext
  5771. if { (ac_try="$ac_compile"
  5772. case "(($ac_try" in
  5773. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5774. *) ac_try_echo=$ac_try;;
  5775. esac
  5776. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5777. (eval "$ac_compile") 2>conftest.er1
  5778. ac_status=$?
  5779. grep -v '^ *+' conftest.er1 >conftest.err
  5780. rm -f conftest.er1
  5781. cat conftest.err >&5
  5782. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5783. (exit $ac_status); } && {
  5784. test -z "$ac_c_werror_flag" ||
  5785. test ! -s conftest.err
  5786. } && test -s conftest.$ac_objext; then
  5787. ac_cv_type_long=yes
  5788. else
  5789. echo "$as_me: failed program was:" >&5
  5790. sed 's/^/| /' conftest.$ac_ext >&5
  5791. ac_cv_type_long=no
  5792. fi
  5793. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5794. fi
  5795. { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
  5796. echo "${ECHO_T}$ac_cv_type_long" >&6; }
  5797. # The cast to long int works around a bug in the HP C Compiler
  5798. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5799. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5800. # This bug is HP SR number 8606223364.
  5801. { echo "$as_me:$LINENO: checking size of long" >&5
  5802. echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
  5803. if test "${ac_cv_sizeof_long+set}" = set; then
  5804. echo $ECHO_N "(cached) $ECHO_C" >&6
  5805. else
  5806. if test "$cross_compiling" = yes; then
  5807. # Depending upon the size, compute the lo and hi bounds.
  5808. cat >conftest.$ac_ext <<_ACEOF
  5809. /* confdefs.h. */
  5810. _ACEOF
  5811. cat confdefs.h >>conftest.$ac_ext
  5812. cat >>conftest.$ac_ext <<_ACEOF
  5813. /* end confdefs.h. */
  5814. $ac_includes_default
  5815. typedef long ac__type_sizeof_;
  5816. int
  5817. main ()
  5818. {
  5819. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  5820. test_array [0] = 0
  5821. ;
  5822. return 0;
  5823. }
  5824. _ACEOF
  5825. rm -f conftest.$ac_objext
  5826. if { (ac_try="$ac_compile"
  5827. case "(($ac_try" in
  5828. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5829. *) ac_try_echo=$ac_try;;
  5830. esac
  5831. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5832. (eval "$ac_compile") 2>conftest.er1
  5833. ac_status=$?
  5834. grep -v '^ *+' conftest.er1 >conftest.err
  5835. rm -f conftest.er1
  5836. cat conftest.err >&5
  5837. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5838. (exit $ac_status); } && {
  5839. test -z "$ac_c_werror_flag" ||
  5840. test ! -s conftest.err
  5841. } && test -s conftest.$ac_objext; then
  5842. ac_lo=0 ac_mid=0
  5843. while :; do
  5844. cat >conftest.$ac_ext <<_ACEOF
  5845. /* confdefs.h. */
  5846. _ACEOF
  5847. cat confdefs.h >>conftest.$ac_ext
  5848. cat >>conftest.$ac_ext <<_ACEOF
  5849. /* end confdefs.h. */
  5850. $ac_includes_default
  5851. typedef long ac__type_sizeof_;
  5852. int
  5853. main ()
  5854. {
  5855. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  5856. test_array [0] = 0
  5857. ;
  5858. return 0;
  5859. }
  5860. _ACEOF
  5861. rm -f conftest.$ac_objext
  5862. if { (ac_try="$ac_compile"
  5863. case "(($ac_try" in
  5864. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5865. *) ac_try_echo=$ac_try;;
  5866. esac
  5867. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5868. (eval "$ac_compile") 2>conftest.er1
  5869. ac_status=$?
  5870. grep -v '^ *+' conftest.er1 >conftest.err
  5871. rm -f conftest.er1
  5872. cat conftest.err >&5
  5873. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5874. (exit $ac_status); } && {
  5875. test -z "$ac_c_werror_flag" ||
  5876. test ! -s conftest.err
  5877. } && test -s conftest.$ac_objext; then
  5878. ac_hi=$ac_mid; break
  5879. else
  5880. echo "$as_me: failed program was:" >&5
  5881. sed 's/^/| /' conftest.$ac_ext >&5
  5882. ac_lo=`expr $ac_mid + 1`
  5883. if test $ac_lo -le $ac_mid; then
  5884. ac_lo= ac_hi=
  5885. break
  5886. fi
  5887. ac_mid=`expr 2 '*' $ac_mid + 1`
  5888. fi
  5889. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5890. done
  5891. else
  5892. echo "$as_me: failed program was:" >&5
  5893. sed 's/^/| /' conftest.$ac_ext >&5
  5894. cat >conftest.$ac_ext <<_ACEOF
  5895. /* confdefs.h. */
  5896. _ACEOF
  5897. cat confdefs.h >>conftest.$ac_ext
  5898. cat >>conftest.$ac_ext <<_ACEOF
  5899. /* end confdefs.h. */
  5900. $ac_includes_default
  5901. typedef long ac__type_sizeof_;
  5902. int
  5903. main ()
  5904. {
  5905. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  5906. test_array [0] = 0
  5907. ;
  5908. return 0;
  5909. }
  5910. _ACEOF
  5911. rm -f conftest.$ac_objext
  5912. if { (ac_try="$ac_compile"
  5913. case "(($ac_try" in
  5914. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5915. *) ac_try_echo=$ac_try;;
  5916. esac
  5917. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5918. (eval "$ac_compile") 2>conftest.er1
  5919. ac_status=$?
  5920. grep -v '^ *+' conftest.er1 >conftest.err
  5921. rm -f conftest.er1
  5922. cat conftest.err >&5
  5923. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5924. (exit $ac_status); } && {
  5925. test -z "$ac_c_werror_flag" ||
  5926. test ! -s conftest.err
  5927. } && test -s conftest.$ac_objext; then
  5928. ac_hi=-1 ac_mid=-1
  5929. while :; do
  5930. cat >conftest.$ac_ext <<_ACEOF
  5931. /* confdefs.h. */
  5932. _ACEOF
  5933. cat confdefs.h >>conftest.$ac_ext
  5934. cat >>conftest.$ac_ext <<_ACEOF
  5935. /* end confdefs.h. */
  5936. $ac_includes_default
  5937. typedef long ac__type_sizeof_;
  5938. int
  5939. main ()
  5940. {
  5941. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  5942. test_array [0] = 0
  5943. ;
  5944. return 0;
  5945. }
  5946. _ACEOF
  5947. rm -f conftest.$ac_objext
  5948. if { (ac_try="$ac_compile"
  5949. case "(($ac_try" in
  5950. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5951. *) ac_try_echo=$ac_try;;
  5952. esac
  5953. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5954. (eval "$ac_compile") 2>conftest.er1
  5955. ac_status=$?
  5956. grep -v '^ *+' conftest.er1 >conftest.err
  5957. rm -f conftest.er1
  5958. cat conftest.err >&5
  5959. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5960. (exit $ac_status); } && {
  5961. test -z "$ac_c_werror_flag" ||
  5962. test ! -s conftest.err
  5963. } && test -s conftest.$ac_objext; then
  5964. ac_lo=$ac_mid; break
  5965. else
  5966. echo "$as_me: failed program was:" >&5
  5967. sed 's/^/| /' conftest.$ac_ext >&5
  5968. ac_hi=`expr '(' $ac_mid ')' - 1`
  5969. if test $ac_mid -le $ac_hi; then
  5970. ac_lo= ac_hi=
  5971. break
  5972. fi
  5973. ac_mid=`expr 2 '*' $ac_mid`
  5974. fi
  5975. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5976. done
  5977. else
  5978. echo "$as_me: failed program was:" >&5
  5979. sed 's/^/| /' conftest.$ac_ext >&5
  5980. ac_lo= ac_hi=
  5981. fi
  5982. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5983. fi
  5984. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5985. # Binary search between lo and hi bounds.
  5986. while test "x$ac_lo" != "x$ac_hi"; do
  5987. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  5988. cat >conftest.$ac_ext <<_ACEOF
  5989. /* confdefs.h. */
  5990. _ACEOF
  5991. cat confdefs.h >>conftest.$ac_ext
  5992. cat >>conftest.$ac_ext <<_ACEOF
  5993. /* end confdefs.h. */
  5994. $ac_includes_default
  5995. typedef long ac__type_sizeof_;
  5996. int
  5997. main ()
  5998. {
  5999. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  6000. test_array [0] = 0
  6001. ;
  6002. return 0;
  6003. }
  6004. _ACEOF
  6005. rm -f conftest.$ac_objext
  6006. if { (ac_try="$ac_compile"
  6007. case "(($ac_try" in
  6008. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6009. *) ac_try_echo=$ac_try;;
  6010. esac
  6011. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6012. (eval "$ac_compile") 2>conftest.er1
  6013. ac_status=$?
  6014. grep -v '^ *+' conftest.er1 >conftest.err
  6015. rm -f conftest.er1
  6016. cat conftest.err >&5
  6017. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6018. (exit $ac_status); } && {
  6019. test -z "$ac_c_werror_flag" ||
  6020. test ! -s conftest.err
  6021. } && test -s conftest.$ac_objext; then
  6022. ac_hi=$ac_mid
  6023. else
  6024. echo "$as_me: failed program was:" >&5
  6025. sed 's/^/| /' conftest.$ac_ext >&5
  6026. ac_lo=`expr '(' $ac_mid ')' + 1`
  6027. fi
  6028. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6029. done
  6030. case $ac_lo in
  6031. ?*) ac_cv_sizeof_long=$ac_lo;;
  6032. '') if test "$ac_cv_type_long" = yes; then
  6033. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  6034. See \`config.log' for more details." >&5
  6035. echo "$as_me: error: cannot compute sizeof (long)
  6036. See \`config.log' for more details." >&2;}
  6037. { (exit 77); exit 77; }; }
  6038. else
  6039. ac_cv_sizeof_long=0
  6040. fi ;;
  6041. esac
  6042. else
  6043. cat >conftest.$ac_ext <<_ACEOF
  6044. /* confdefs.h. */
  6045. _ACEOF
  6046. cat confdefs.h >>conftest.$ac_ext
  6047. cat >>conftest.$ac_ext <<_ACEOF
  6048. /* end confdefs.h. */
  6049. $ac_includes_default
  6050. typedef long ac__type_sizeof_;
  6051. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  6052. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  6053. #include <stdio.h>
  6054. #include <stdlib.h>
  6055. int
  6056. main ()
  6057. {
  6058. FILE *f = fopen ("conftest.val", "w");
  6059. if (! f)
  6060. return 1;
  6061. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  6062. {
  6063. long int i = longval ();
  6064. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  6065. return 1;
  6066. fprintf (f, "%ld\n", i);
  6067. }
  6068. else
  6069. {
  6070. unsigned long int i = ulongval ();
  6071. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  6072. return 1;
  6073. fprintf (f, "%lu\n", i);
  6074. }
  6075. return ferror (f) || fclose (f) != 0;
  6076. ;
  6077. return 0;
  6078. }
  6079. _ACEOF
  6080. rm -f conftest$ac_exeext
  6081. if { (ac_try="$ac_link"
  6082. case "(($ac_try" in
  6083. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6084. *) ac_try_echo=$ac_try;;
  6085. esac
  6086. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6087. (eval "$ac_link") 2>&5
  6088. ac_status=$?
  6089. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6090. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6091. { (case "(($ac_try" in
  6092. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6093. *) ac_try_echo=$ac_try;;
  6094. esac
  6095. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6096. (eval "$ac_try") 2>&5
  6097. ac_status=$?
  6098. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6099. (exit $ac_status); }; }; then
  6100. ac_cv_sizeof_long=`cat conftest.val`
  6101. else
  6102. echo "$as_me: program exited with status $ac_status" >&5
  6103. echo "$as_me: failed program was:" >&5
  6104. sed 's/^/| /' conftest.$ac_ext >&5
  6105. ( exit $ac_status )
  6106. if test "$ac_cv_type_long" = yes; then
  6107. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  6108. See \`config.log' for more details." >&5
  6109. echo "$as_me: error: cannot compute sizeof (long)
  6110. See \`config.log' for more details." >&2;}
  6111. { (exit 77); exit 77; }; }
  6112. else
  6113. ac_cv_sizeof_long=0
  6114. fi
  6115. fi
  6116. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6117. fi
  6118. rm -f conftest.val
  6119. fi
  6120. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  6121. echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
  6122. cat >>confdefs.h <<_ACEOF
  6123. #define SIZEOF_LONG $ac_cv_sizeof_long
  6124. _ACEOF
  6125. { echo "$as_me:$LINENO: checking for long long" >&5
  6126. echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
  6127. if test "${ac_cv_type_long_long+set}" = set; then
  6128. echo $ECHO_N "(cached) $ECHO_C" >&6
  6129. else
  6130. cat >conftest.$ac_ext <<_ACEOF
  6131. /* confdefs.h. */
  6132. _ACEOF
  6133. cat confdefs.h >>conftest.$ac_ext
  6134. cat >>conftest.$ac_ext <<_ACEOF
  6135. /* end confdefs.h. */
  6136. $ac_includes_default
  6137. typedef long long ac__type_new_;
  6138. int
  6139. main ()
  6140. {
  6141. if ((ac__type_new_ *) 0)
  6142. return 0;
  6143. if (sizeof (ac__type_new_))
  6144. return 0;
  6145. ;
  6146. return 0;
  6147. }
  6148. _ACEOF
  6149. rm -f conftest.$ac_objext
  6150. if { (ac_try="$ac_compile"
  6151. case "(($ac_try" in
  6152. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6153. *) ac_try_echo=$ac_try;;
  6154. esac
  6155. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6156. (eval "$ac_compile") 2>conftest.er1
  6157. ac_status=$?
  6158. grep -v '^ *+' conftest.er1 >conftest.err
  6159. rm -f conftest.er1
  6160. cat conftest.err >&5
  6161. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6162. (exit $ac_status); } && {
  6163. test -z "$ac_c_werror_flag" ||
  6164. test ! -s conftest.err
  6165. } && test -s conftest.$ac_objext; then
  6166. ac_cv_type_long_long=yes
  6167. else
  6168. echo "$as_me: failed program was:" >&5
  6169. sed 's/^/| /' conftest.$ac_ext >&5
  6170. ac_cv_type_long_long=no
  6171. fi
  6172. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6173. fi
  6174. { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
  6175. echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
  6176. # The cast to long int works around a bug in the HP C Compiler
  6177. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6178. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6179. # This bug is HP SR number 8606223364.
  6180. { echo "$as_me:$LINENO: checking size of long long" >&5
  6181. echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
  6182. if test "${ac_cv_sizeof_long_long+set}" = set; then
  6183. echo $ECHO_N "(cached) $ECHO_C" >&6
  6184. else
  6185. if test "$cross_compiling" = yes; then
  6186. # Depending upon the size, compute the lo and hi bounds.
  6187. cat >conftest.$ac_ext <<_ACEOF
  6188. /* confdefs.h. */
  6189. _ACEOF
  6190. cat confdefs.h >>conftest.$ac_ext
  6191. cat >>conftest.$ac_ext <<_ACEOF
  6192. /* end confdefs.h. */
  6193. $ac_includes_default
  6194. typedef long long ac__type_sizeof_;
  6195. int
  6196. main ()
  6197. {
  6198. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  6199. test_array [0] = 0
  6200. ;
  6201. return 0;
  6202. }
  6203. _ACEOF
  6204. rm -f conftest.$ac_objext
  6205. if { (ac_try="$ac_compile"
  6206. case "(($ac_try" in
  6207. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6208. *) ac_try_echo=$ac_try;;
  6209. esac
  6210. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6211. (eval "$ac_compile") 2>conftest.er1
  6212. ac_status=$?
  6213. grep -v '^ *+' conftest.er1 >conftest.err
  6214. rm -f conftest.er1
  6215. cat conftest.err >&5
  6216. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6217. (exit $ac_status); } && {
  6218. test -z "$ac_c_werror_flag" ||
  6219. test ! -s conftest.err
  6220. } && test -s conftest.$ac_objext; then
  6221. ac_lo=0 ac_mid=0
  6222. while :; do
  6223. cat >conftest.$ac_ext <<_ACEOF
  6224. /* confdefs.h. */
  6225. _ACEOF
  6226. cat confdefs.h >>conftest.$ac_ext
  6227. cat >>conftest.$ac_ext <<_ACEOF
  6228. /* end confdefs.h. */
  6229. $ac_includes_default
  6230. typedef long long ac__type_sizeof_;
  6231. int
  6232. main ()
  6233. {
  6234. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  6235. test_array [0] = 0
  6236. ;
  6237. return 0;
  6238. }
  6239. _ACEOF
  6240. rm -f conftest.$ac_objext
  6241. if { (ac_try="$ac_compile"
  6242. case "(($ac_try" in
  6243. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6244. *) ac_try_echo=$ac_try;;
  6245. esac
  6246. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6247. (eval "$ac_compile") 2>conftest.er1
  6248. ac_status=$?
  6249. grep -v '^ *+' conftest.er1 >conftest.err
  6250. rm -f conftest.er1
  6251. cat conftest.err >&5
  6252. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6253. (exit $ac_status); } && {
  6254. test -z "$ac_c_werror_flag" ||
  6255. test ! -s conftest.err
  6256. } && test -s conftest.$ac_objext; then
  6257. ac_hi=$ac_mid; break
  6258. else
  6259. echo "$as_me: failed program was:" >&5
  6260. sed 's/^/| /' conftest.$ac_ext >&5
  6261. ac_lo=`expr $ac_mid + 1`
  6262. if test $ac_lo -le $ac_mid; then
  6263. ac_lo= ac_hi=
  6264. break
  6265. fi
  6266. ac_mid=`expr 2 '*' $ac_mid + 1`
  6267. fi
  6268. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6269. done
  6270. else
  6271. echo "$as_me: failed program was:" >&5
  6272. sed 's/^/| /' conftest.$ac_ext >&5
  6273. cat >conftest.$ac_ext <<_ACEOF
  6274. /* confdefs.h. */
  6275. _ACEOF
  6276. cat confdefs.h >>conftest.$ac_ext
  6277. cat >>conftest.$ac_ext <<_ACEOF
  6278. /* end confdefs.h. */
  6279. $ac_includes_default
  6280. typedef long long ac__type_sizeof_;
  6281. int
  6282. main ()
  6283. {
  6284. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  6285. test_array [0] = 0
  6286. ;
  6287. return 0;
  6288. }
  6289. _ACEOF
  6290. rm -f conftest.$ac_objext
  6291. if { (ac_try="$ac_compile"
  6292. case "(($ac_try" in
  6293. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6294. *) ac_try_echo=$ac_try;;
  6295. esac
  6296. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6297. (eval "$ac_compile") 2>conftest.er1
  6298. ac_status=$?
  6299. grep -v '^ *+' conftest.er1 >conftest.err
  6300. rm -f conftest.er1
  6301. cat conftest.err >&5
  6302. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6303. (exit $ac_status); } && {
  6304. test -z "$ac_c_werror_flag" ||
  6305. test ! -s conftest.err
  6306. } && test -s conftest.$ac_objext; then
  6307. ac_hi=-1 ac_mid=-1
  6308. while :; do
  6309. cat >conftest.$ac_ext <<_ACEOF
  6310. /* confdefs.h. */
  6311. _ACEOF
  6312. cat confdefs.h >>conftest.$ac_ext
  6313. cat >>conftest.$ac_ext <<_ACEOF
  6314. /* end confdefs.h. */
  6315. $ac_includes_default
  6316. typedef long long ac__type_sizeof_;
  6317. int
  6318. main ()
  6319. {
  6320. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  6321. test_array [0] = 0
  6322. ;
  6323. return 0;
  6324. }
  6325. _ACEOF
  6326. rm -f conftest.$ac_objext
  6327. if { (ac_try="$ac_compile"
  6328. case "(($ac_try" in
  6329. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6330. *) ac_try_echo=$ac_try;;
  6331. esac
  6332. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6333. (eval "$ac_compile") 2>conftest.er1
  6334. ac_status=$?
  6335. grep -v '^ *+' conftest.er1 >conftest.err
  6336. rm -f conftest.er1
  6337. cat conftest.err >&5
  6338. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6339. (exit $ac_status); } && {
  6340. test -z "$ac_c_werror_flag" ||
  6341. test ! -s conftest.err
  6342. } && test -s conftest.$ac_objext; then
  6343. ac_lo=$ac_mid; break
  6344. else
  6345. echo "$as_me: failed program was:" >&5
  6346. sed 's/^/| /' conftest.$ac_ext >&5
  6347. ac_hi=`expr '(' $ac_mid ')' - 1`
  6348. if test $ac_mid -le $ac_hi; then
  6349. ac_lo= ac_hi=
  6350. break
  6351. fi
  6352. ac_mid=`expr 2 '*' $ac_mid`
  6353. fi
  6354. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6355. done
  6356. else
  6357. echo "$as_me: failed program was:" >&5
  6358. sed 's/^/| /' conftest.$ac_ext >&5
  6359. ac_lo= ac_hi=
  6360. fi
  6361. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6362. fi
  6363. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6364. # Binary search between lo and hi bounds.
  6365. while test "x$ac_lo" != "x$ac_hi"; do
  6366. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6367. cat >conftest.$ac_ext <<_ACEOF
  6368. /* confdefs.h. */
  6369. _ACEOF
  6370. cat confdefs.h >>conftest.$ac_ext
  6371. cat >>conftest.$ac_ext <<_ACEOF
  6372. /* end confdefs.h. */
  6373. $ac_includes_default
  6374. typedef long long ac__type_sizeof_;
  6375. int
  6376. main ()
  6377. {
  6378. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  6379. test_array [0] = 0
  6380. ;
  6381. return 0;
  6382. }
  6383. _ACEOF
  6384. rm -f conftest.$ac_objext
  6385. if { (ac_try="$ac_compile"
  6386. case "(($ac_try" in
  6387. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6388. *) ac_try_echo=$ac_try;;
  6389. esac
  6390. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6391. (eval "$ac_compile") 2>conftest.er1
  6392. ac_status=$?
  6393. grep -v '^ *+' conftest.er1 >conftest.err
  6394. rm -f conftest.er1
  6395. cat conftest.err >&5
  6396. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6397. (exit $ac_status); } && {
  6398. test -z "$ac_c_werror_flag" ||
  6399. test ! -s conftest.err
  6400. } && test -s conftest.$ac_objext; then
  6401. ac_hi=$ac_mid
  6402. else
  6403. echo "$as_me: failed program was:" >&5
  6404. sed 's/^/| /' conftest.$ac_ext >&5
  6405. ac_lo=`expr '(' $ac_mid ')' + 1`
  6406. fi
  6407. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6408. done
  6409. case $ac_lo in
  6410. ?*) ac_cv_sizeof_long_long=$ac_lo;;
  6411. '') if test "$ac_cv_type_long_long" = yes; then
  6412. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
  6413. See \`config.log' for more details." >&5
  6414. echo "$as_me: error: cannot compute sizeof (long long)
  6415. See \`config.log' for more details." >&2;}
  6416. { (exit 77); exit 77; }; }
  6417. else
  6418. ac_cv_sizeof_long_long=0
  6419. fi ;;
  6420. esac
  6421. else
  6422. cat >conftest.$ac_ext <<_ACEOF
  6423. /* confdefs.h. */
  6424. _ACEOF
  6425. cat confdefs.h >>conftest.$ac_ext
  6426. cat >>conftest.$ac_ext <<_ACEOF
  6427. /* end confdefs.h. */
  6428. $ac_includes_default
  6429. typedef long long ac__type_sizeof_;
  6430. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  6431. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  6432. #include <stdio.h>
  6433. #include <stdlib.h>
  6434. int
  6435. main ()
  6436. {
  6437. FILE *f = fopen ("conftest.val", "w");
  6438. if (! f)
  6439. return 1;
  6440. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  6441. {
  6442. long int i = longval ();
  6443. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  6444. return 1;
  6445. fprintf (f, "%ld\n", i);
  6446. }
  6447. else
  6448. {
  6449. unsigned long int i = ulongval ();
  6450. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  6451. return 1;
  6452. fprintf (f, "%lu\n", i);
  6453. }
  6454. return ferror (f) || fclose (f) != 0;
  6455. ;
  6456. return 0;
  6457. }
  6458. _ACEOF
  6459. rm -f 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6466. (eval "$ac_link") 2>&5
  6467. ac_status=$?
  6468. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6469. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6470. { (case "(($ac_try" in
  6471. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6472. *) ac_try_echo=$ac_try;;
  6473. esac
  6474. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6475. (eval "$ac_try") 2>&5
  6476. ac_status=$?
  6477. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6478. (exit $ac_status); }; }; then
  6479. ac_cv_sizeof_long_long=`cat conftest.val`
  6480. else
  6481. echo "$as_me: program exited with status $ac_status" >&5
  6482. echo "$as_me: failed program was:" >&5
  6483. sed 's/^/| /' conftest.$ac_ext >&5
  6484. ( exit $ac_status )
  6485. if test "$ac_cv_type_long_long" = yes; then
  6486. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
  6487. See \`config.log' for more details." >&5
  6488. echo "$as_me: error: cannot compute sizeof (long long)
  6489. See \`config.log' for more details." >&2;}
  6490. { (exit 77); exit 77; }; }
  6491. else
  6492. ac_cv_sizeof_long_long=0
  6493. fi
  6494. fi
  6495. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6496. fi
  6497. rm -f conftest.val
  6498. fi
  6499. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
  6500. echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
  6501. cat >>confdefs.h <<_ACEOF
  6502. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  6503. _ACEOF
  6504. { echo "$as_me:$LINENO: checking for short" >&5
  6505. echo $ECHO_N "checking for short... $ECHO_C" >&6; }
  6506. if test "${ac_cv_type_short+set}" = set; then
  6507. echo $ECHO_N "(cached) $ECHO_C" >&6
  6508. else
  6509. cat >conftest.$ac_ext <<_ACEOF
  6510. /* confdefs.h. */
  6511. _ACEOF
  6512. cat confdefs.h >>conftest.$ac_ext
  6513. cat >>conftest.$ac_ext <<_ACEOF
  6514. /* end confdefs.h. */
  6515. $ac_includes_default
  6516. typedef short ac__type_new_;
  6517. int
  6518. main ()
  6519. {
  6520. if ((ac__type_new_ *) 0)
  6521. return 0;
  6522. if (sizeof (ac__type_new_))
  6523. return 0;
  6524. ;
  6525. return 0;
  6526. }
  6527. _ACEOF
  6528. rm -f conftest.$ac_objext
  6529. if { (ac_try="$ac_compile"
  6530. case "(($ac_try" in
  6531. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6532. *) ac_try_echo=$ac_try;;
  6533. esac
  6534. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6535. (eval "$ac_compile") 2>conftest.er1
  6536. ac_status=$?
  6537. grep -v '^ *+' conftest.er1 >conftest.err
  6538. rm -f conftest.er1
  6539. cat conftest.err >&5
  6540. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6541. (exit $ac_status); } && {
  6542. test -z "$ac_c_werror_flag" ||
  6543. test ! -s conftest.err
  6544. } && test -s conftest.$ac_objext; then
  6545. ac_cv_type_short=yes
  6546. else
  6547. echo "$as_me: failed program was:" >&5
  6548. sed 's/^/| /' conftest.$ac_ext >&5
  6549. ac_cv_type_short=no
  6550. fi
  6551. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6552. fi
  6553. { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
  6554. echo "${ECHO_T}$ac_cv_type_short" >&6; }
  6555. # The cast to long int works around a bug in the HP C Compiler
  6556. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6557. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6558. # This bug is HP SR number 8606223364.
  6559. { echo "$as_me:$LINENO: checking size of short" >&5
  6560. echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
  6561. if test "${ac_cv_sizeof_short+set}" = set; then
  6562. echo $ECHO_N "(cached) $ECHO_C" >&6
  6563. else
  6564. if test "$cross_compiling" = yes; then
  6565. # Depending upon the size, compute the lo and hi bounds.
  6566. cat >conftest.$ac_ext <<_ACEOF
  6567. /* confdefs.h. */
  6568. _ACEOF
  6569. cat confdefs.h >>conftest.$ac_ext
  6570. cat >>conftest.$ac_ext <<_ACEOF
  6571. /* end confdefs.h. */
  6572. $ac_includes_default
  6573. typedef short ac__type_sizeof_;
  6574. int
  6575. main ()
  6576. {
  6577. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  6578. test_array [0] = 0
  6579. ;
  6580. return 0;
  6581. }
  6582. _ACEOF
  6583. rm -f conftest.$ac_objext
  6584. if { (ac_try="$ac_compile"
  6585. case "(($ac_try" in
  6586. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6587. *) ac_try_echo=$ac_try;;
  6588. esac
  6589. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6590. (eval "$ac_compile") 2>conftest.er1
  6591. ac_status=$?
  6592. grep -v '^ *+' conftest.er1 >conftest.err
  6593. rm -f conftest.er1
  6594. cat conftest.err >&5
  6595. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6596. (exit $ac_status); } && {
  6597. test -z "$ac_c_werror_flag" ||
  6598. test ! -s conftest.err
  6599. } && test -s conftest.$ac_objext; then
  6600. ac_lo=0 ac_mid=0
  6601. while :; do
  6602. cat >conftest.$ac_ext <<_ACEOF
  6603. /* confdefs.h. */
  6604. _ACEOF
  6605. cat confdefs.h >>conftest.$ac_ext
  6606. cat >>conftest.$ac_ext <<_ACEOF
  6607. /* end confdefs.h. */
  6608. $ac_includes_default
  6609. typedef short ac__type_sizeof_;
  6610. int
  6611. main ()
  6612. {
  6613. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  6614. test_array [0] = 0
  6615. ;
  6616. return 0;
  6617. }
  6618. _ACEOF
  6619. rm -f conftest.$ac_objext
  6620. if { (ac_try="$ac_compile"
  6621. case "(($ac_try" in
  6622. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6623. *) ac_try_echo=$ac_try;;
  6624. esac
  6625. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6626. (eval "$ac_compile") 2>conftest.er1
  6627. ac_status=$?
  6628. grep -v '^ *+' conftest.er1 >conftest.err
  6629. rm -f conftest.er1
  6630. cat conftest.err >&5
  6631. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6632. (exit $ac_status); } && {
  6633. test -z "$ac_c_werror_flag" ||
  6634. test ! -s conftest.err
  6635. } && test -s conftest.$ac_objext; then
  6636. ac_hi=$ac_mid; break
  6637. else
  6638. echo "$as_me: failed program was:" >&5
  6639. sed 's/^/| /' conftest.$ac_ext >&5
  6640. ac_lo=`expr $ac_mid + 1`
  6641. if test $ac_lo -le $ac_mid; then
  6642. ac_lo= ac_hi=
  6643. break
  6644. fi
  6645. ac_mid=`expr 2 '*' $ac_mid + 1`
  6646. fi
  6647. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6648. done
  6649. else
  6650. echo "$as_me: failed program was:" >&5
  6651. sed 's/^/| /' conftest.$ac_ext >&5
  6652. cat >conftest.$ac_ext <<_ACEOF
  6653. /* confdefs.h. */
  6654. _ACEOF
  6655. cat confdefs.h >>conftest.$ac_ext
  6656. cat >>conftest.$ac_ext <<_ACEOF
  6657. /* end confdefs.h. */
  6658. $ac_includes_default
  6659. typedef short ac__type_sizeof_;
  6660. int
  6661. main ()
  6662. {
  6663. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  6664. test_array [0] = 0
  6665. ;
  6666. return 0;
  6667. }
  6668. _ACEOF
  6669. rm -f conftest.$ac_objext
  6670. if { (ac_try="$ac_compile"
  6671. case "(($ac_try" in
  6672. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6673. *) ac_try_echo=$ac_try;;
  6674. esac
  6675. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6676. (eval "$ac_compile") 2>conftest.er1
  6677. ac_status=$?
  6678. grep -v '^ *+' conftest.er1 >conftest.err
  6679. rm -f conftest.er1
  6680. cat conftest.err >&5
  6681. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6682. (exit $ac_status); } && {
  6683. test -z "$ac_c_werror_flag" ||
  6684. test ! -s conftest.err
  6685. } && test -s conftest.$ac_objext; then
  6686. ac_hi=-1 ac_mid=-1
  6687. while :; do
  6688. cat >conftest.$ac_ext <<_ACEOF
  6689. /* confdefs.h. */
  6690. _ACEOF
  6691. cat confdefs.h >>conftest.$ac_ext
  6692. cat >>conftest.$ac_ext <<_ACEOF
  6693. /* end confdefs.h. */
  6694. $ac_includes_default
  6695. typedef short ac__type_sizeof_;
  6696. int
  6697. main ()
  6698. {
  6699. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  6700. test_array [0] = 0
  6701. ;
  6702. return 0;
  6703. }
  6704. _ACEOF
  6705. rm -f conftest.$ac_objext
  6706. if { (ac_try="$ac_compile"
  6707. case "(($ac_try" in
  6708. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6709. *) ac_try_echo=$ac_try;;
  6710. esac
  6711. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6712. (eval "$ac_compile") 2>conftest.er1
  6713. ac_status=$?
  6714. grep -v '^ *+' conftest.er1 >conftest.err
  6715. rm -f conftest.er1
  6716. cat conftest.err >&5
  6717. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6718. (exit $ac_status); } && {
  6719. test -z "$ac_c_werror_flag" ||
  6720. test ! -s conftest.err
  6721. } && test -s conftest.$ac_objext; then
  6722. ac_lo=$ac_mid; break
  6723. else
  6724. echo "$as_me: failed program was:" >&5
  6725. sed 's/^/| /' conftest.$ac_ext >&5
  6726. ac_hi=`expr '(' $ac_mid ')' - 1`
  6727. if test $ac_mid -le $ac_hi; then
  6728. ac_lo= ac_hi=
  6729. break
  6730. fi
  6731. ac_mid=`expr 2 '*' $ac_mid`
  6732. fi
  6733. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6734. done
  6735. else
  6736. echo "$as_me: failed program was:" >&5
  6737. sed 's/^/| /' conftest.$ac_ext >&5
  6738. ac_lo= ac_hi=
  6739. fi
  6740. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6741. fi
  6742. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6743. # Binary search between lo and hi bounds.
  6744. while test "x$ac_lo" != "x$ac_hi"; do
  6745. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6746. cat >conftest.$ac_ext <<_ACEOF
  6747. /* confdefs.h. */
  6748. _ACEOF
  6749. cat confdefs.h >>conftest.$ac_ext
  6750. cat >>conftest.$ac_ext <<_ACEOF
  6751. /* end confdefs.h. */
  6752. $ac_includes_default
  6753. typedef short ac__type_sizeof_;
  6754. int
  6755. main ()
  6756. {
  6757. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  6758. test_array [0] = 0
  6759. ;
  6760. return 0;
  6761. }
  6762. _ACEOF
  6763. rm -f conftest.$ac_objext
  6764. if { (ac_try="$ac_compile"
  6765. case "(($ac_try" in
  6766. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6767. *) ac_try_echo=$ac_try;;
  6768. esac
  6769. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6770. (eval "$ac_compile") 2>conftest.er1
  6771. ac_status=$?
  6772. grep -v '^ *+' conftest.er1 >conftest.err
  6773. rm -f conftest.er1
  6774. cat conftest.err >&5
  6775. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6776. (exit $ac_status); } && {
  6777. test -z "$ac_c_werror_flag" ||
  6778. test ! -s conftest.err
  6779. } && test -s conftest.$ac_objext; then
  6780. ac_hi=$ac_mid
  6781. else
  6782. echo "$as_me: failed program was:" >&5
  6783. sed 's/^/| /' conftest.$ac_ext >&5
  6784. ac_lo=`expr '(' $ac_mid ')' + 1`
  6785. fi
  6786. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6787. done
  6788. case $ac_lo in
  6789. ?*) ac_cv_sizeof_short=$ac_lo;;
  6790. '') if test "$ac_cv_type_short" = yes; then
  6791. { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
  6792. See \`config.log' for more details." >&5
  6793. echo "$as_me: error: cannot compute sizeof (short)
  6794. See \`config.log' for more details." >&2;}
  6795. { (exit 77); exit 77; }; }
  6796. else
  6797. ac_cv_sizeof_short=0
  6798. fi ;;
  6799. esac
  6800. else
  6801. cat >conftest.$ac_ext <<_ACEOF
  6802. /* confdefs.h. */
  6803. _ACEOF
  6804. cat confdefs.h >>conftest.$ac_ext
  6805. cat >>conftest.$ac_ext <<_ACEOF
  6806. /* end confdefs.h. */
  6807. $ac_includes_default
  6808. typedef short ac__type_sizeof_;
  6809. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  6810. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  6811. #include <stdio.h>
  6812. #include <stdlib.h>
  6813. int
  6814. main ()
  6815. {
  6816. FILE *f = fopen ("conftest.val", "w");
  6817. if (! f)
  6818. return 1;
  6819. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  6820. {
  6821. long int i = longval ();
  6822. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  6823. return 1;
  6824. fprintf (f, "%ld\n", i);
  6825. }
  6826. else
  6827. {
  6828. unsigned long int i = ulongval ();
  6829. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  6830. return 1;
  6831. fprintf (f, "%lu\n", i);
  6832. }
  6833. return ferror (f) || fclose (f) != 0;
  6834. ;
  6835. return 0;
  6836. }
  6837. _ACEOF
  6838. rm -f conftest$ac_exeext
  6839. if { (ac_try="$ac_link"
  6840. case "(($ac_try" in
  6841. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6842. *) ac_try_echo=$ac_try;;
  6843. esac
  6844. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6845. (eval "$ac_link") 2>&5
  6846. ac_status=$?
  6847. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6848. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6849. { (case "(($ac_try" in
  6850. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6851. *) ac_try_echo=$ac_try;;
  6852. esac
  6853. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6854. (eval "$ac_try") 2>&5
  6855. ac_status=$?
  6856. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6857. (exit $ac_status); }; }; then
  6858. ac_cv_sizeof_short=`cat conftest.val`
  6859. else
  6860. echo "$as_me: program exited with status $ac_status" >&5
  6861. echo "$as_me: failed program was:" >&5
  6862. sed 's/^/| /' conftest.$ac_ext >&5
  6863. ( exit $ac_status )
  6864. if test "$ac_cv_type_short" = yes; then
  6865. { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
  6866. See \`config.log' for more details." >&5
  6867. echo "$as_me: error: cannot compute sizeof (short)
  6868. See \`config.log' for more details." >&2;}
  6869. { (exit 77); exit 77; }; }
  6870. else
  6871. ac_cv_sizeof_short=0
  6872. fi
  6873. fi
  6874. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6875. fi
  6876. rm -f conftest.val
  6877. fi
  6878. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
  6879. echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
  6880. cat >>confdefs.h <<_ACEOF
  6881. #define SIZEOF_SHORT $ac_cv_sizeof_short
  6882. _ACEOF
  6883. { echo "$as_me:$LINENO: checking for int16_t" >&5
  6884. echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
  6885. if test "${ac_cv_type_int16_t+set}" = set; then
  6886. echo $ECHO_N "(cached) $ECHO_C" >&6
  6887. else
  6888. cat >conftest.$ac_ext <<_ACEOF
  6889. /* confdefs.h. */
  6890. _ACEOF
  6891. cat confdefs.h >>conftest.$ac_ext
  6892. cat >>conftest.$ac_ext <<_ACEOF
  6893. /* end confdefs.h. */
  6894. $ac_includes_default
  6895. typedef int16_t ac__type_new_;
  6896. int
  6897. main ()
  6898. {
  6899. if ((ac__type_new_ *) 0)
  6900. return 0;
  6901. if (sizeof (ac__type_new_))
  6902. return 0;
  6903. ;
  6904. return 0;
  6905. }
  6906. _ACEOF
  6907. rm -f conftest.$ac_objext
  6908. if { (ac_try="$ac_compile"
  6909. case "(($ac_try" in
  6910. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6911. *) ac_try_echo=$ac_try;;
  6912. esac
  6913. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6914. (eval "$ac_compile") 2>conftest.er1
  6915. ac_status=$?
  6916. grep -v '^ *+' conftest.er1 >conftest.err
  6917. rm -f conftest.er1
  6918. cat conftest.err >&5
  6919. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6920. (exit $ac_status); } && {
  6921. test -z "$ac_c_werror_flag" ||
  6922. test ! -s conftest.err
  6923. } && test -s conftest.$ac_objext; then
  6924. ac_cv_type_int16_t=yes
  6925. else
  6926. echo "$as_me: failed program was:" >&5
  6927. sed 's/^/| /' conftest.$ac_ext >&5
  6928. ac_cv_type_int16_t=no
  6929. fi
  6930. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6931. fi
  6932. { echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
  6933. echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
  6934. # The cast to long int works around a bug in the HP C Compiler
  6935. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6936. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6937. # This bug is HP SR number 8606223364.
  6938. { echo "$as_me:$LINENO: checking size of int16_t" >&5
  6939. echo $ECHO_N "checking size of int16_t... $ECHO_C" >&6; }
  6940. if test "${ac_cv_sizeof_int16_t+set}" = set; then
  6941. echo $ECHO_N "(cached) $ECHO_C" >&6
  6942. else
  6943. if test "$cross_compiling" = yes; then
  6944. # Depending upon the size, compute the lo and hi bounds.
  6945. cat >conftest.$ac_ext <<_ACEOF
  6946. /* confdefs.h. */
  6947. _ACEOF
  6948. cat confdefs.h >>conftest.$ac_ext
  6949. cat >>conftest.$ac_ext <<_ACEOF
  6950. /* end confdefs.h. */
  6951. $ac_includes_default
  6952. typedef int16_t ac__type_sizeof_;
  6953. int
  6954. main ()
  6955. {
  6956. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  6957. test_array [0] = 0
  6958. ;
  6959. return 0;
  6960. }
  6961. _ACEOF
  6962. rm -f conftest.$ac_objext
  6963. if { (ac_try="$ac_compile"
  6964. case "(($ac_try" in
  6965. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6966. *) ac_try_echo=$ac_try;;
  6967. esac
  6968. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6969. (eval "$ac_compile") 2>conftest.er1
  6970. ac_status=$?
  6971. grep -v '^ *+' conftest.er1 >conftest.err
  6972. rm -f conftest.er1
  6973. cat conftest.err >&5
  6974. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6975. (exit $ac_status); } && {
  6976. test -z "$ac_c_werror_flag" ||
  6977. test ! -s conftest.err
  6978. } && test -s conftest.$ac_objext; then
  6979. ac_lo=0 ac_mid=0
  6980. while :; do
  6981. cat >conftest.$ac_ext <<_ACEOF
  6982. /* confdefs.h. */
  6983. _ACEOF
  6984. cat confdefs.h >>conftest.$ac_ext
  6985. cat >>conftest.$ac_ext <<_ACEOF
  6986. /* end confdefs.h. */
  6987. $ac_includes_default
  6988. typedef int16_t ac__type_sizeof_;
  6989. int
  6990. main ()
  6991. {
  6992. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  6993. test_array [0] = 0
  6994. ;
  6995. return 0;
  6996. }
  6997. _ACEOF
  6998. rm -f conftest.$ac_objext
  6999. if { (ac_try="$ac_compile"
  7000. case "(($ac_try" in
  7001. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7002. *) ac_try_echo=$ac_try;;
  7003. esac
  7004. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7005. (eval "$ac_compile") 2>conftest.er1
  7006. ac_status=$?
  7007. grep -v '^ *+' conftest.er1 >conftest.err
  7008. rm -f conftest.er1
  7009. cat conftest.err >&5
  7010. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7011. (exit $ac_status); } && {
  7012. test -z "$ac_c_werror_flag" ||
  7013. test ! -s conftest.err
  7014. } && test -s conftest.$ac_objext; then
  7015. ac_hi=$ac_mid; break
  7016. else
  7017. echo "$as_me: failed program was:" >&5
  7018. sed 's/^/| /' conftest.$ac_ext >&5
  7019. ac_lo=`expr $ac_mid + 1`
  7020. if test $ac_lo -le $ac_mid; then
  7021. ac_lo= ac_hi=
  7022. break
  7023. fi
  7024. ac_mid=`expr 2 '*' $ac_mid + 1`
  7025. fi
  7026. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7027. done
  7028. else
  7029. echo "$as_me: failed program was:" >&5
  7030. sed 's/^/| /' conftest.$ac_ext >&5
  7031. cat >conftest.$ac_ext <<_ACEOF
  7032. /* confdefs.h. */
  7033. _ACEOF
  7034. cat confdefs.h >>conftest.$ac_ext
  7035. cat >>conftest.$ac_ext <<_ACEOF
  7036. /* end confdefs.h. */
  7037. $ac_includes_default
  7038. typedef int16_t ac__type_sizeof_;
  7039. int
  7040. main ()
  7041. {
  7042. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  7043. test_array [0] = 0
  7044. ;
  7045. return 0;
  7046. }
  7047. _ACEOF
  7048. rm -f conftest.$ac_objext
  7049. if { (ac_try="$ac_compile"
  7050. case "(($ac_try" in
  7051. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7052. *) ac_try_echo=$ac_try;;
  7053. esac
  7054. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7055. (eval "$ac_compile") 2>conftest.er1
  7056. ac_status=$?
  7057. grep -v '^ *+' conftest.er1 >conftest.err
  7058. rm -f conftest.er1
  7059. cat conftest.err >&5
  7060. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7061. (exit $ac_status); } && {
  7062. test -z "$ac_c_werror_flag" ||
  7063. test ! -s conftest.err
  7064. } && test -s conftest.$ac_objext; then
  7065. ac_hi=-1 ac_mid=-1
  7066. while :; do
  7067. cat >conftest.$ac_ext <<_ACEOF
  7068. /* confdefs.h. */
  7069. _ACEOF
  7070. cat confdefs.h >>conftest.$ac_ext
  7071. cat >>conftest.$ac_ext <<_ACEOF
  7072. /* end confdefs.h. */
  7073. $ac_includes_default
  7074. typedef int16_t ac__type_sizeof_;
  7075. int
  7076. main ()
  7077. {
  7078. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  7079. test_array [0] = 0
  7080. ;
  7081. return 0;
  7082. }
  7083. _ACEOF
  7084. rm -f conftest.$ac_objext
  7085. if { (ac_try="$ac_compile"
  7086. case "(($ac_try" in
  7087. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7088. *) ac_try_echo=$ac_try;;
  7089. esac
  7090. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7091. (eval "$ac_compile") 2>conftest.er1
  7092. ac_status=$?
  7093. grep -v '^ *+' conftest.er1 >conftest.err
  7094. rm -f conftest.er1
  7095. cat conftest.err >&5
  7096. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7097. (exit $ac_status); } && {
  7098. test -z "$ac_c_werror_flag" ||
  7099. test ! -s conftest.err
  7100. } && test -s conftest.$ac_objext; then
  7101. ac_lo=$ac_mid; break
  7102. else
  7103. echo "$as_me: failed program was:" >&5
  7104. sed 's/^/| /' conftest.$ac_ext >&5
  7105. ac_hi=`expr '(' $ac_mid ')' - 1`
  7106. if test $ac_mid -le $ac_hi; then
  7107. ac_lo= ac_hi=
  7108. break
  7109. fi
  7110. ac_mid=`expr 2 '*' $ac_mid`
  7111. fi
  7112. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7113. done
  7114. else
  7115. echo "$as_me: failed program was:" >&5
  7116. sed 's/^/| /' conftest.$ac_ext >&5
  7117. ac_lo= ac_hi=
  7118. fi
  7119. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7120. fi
  7121. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7122. # Binary search between lo and hi bounds.
  7123. while test "x$ac_lo" != "x$ac_hi"; do
  7124. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  7125. cat >conftest.$ac_ext <<_ACEOF
  7126. /* confdefs.h. */
  7127. _ACEOF
  7128. cat confdefs.h >>conftest.$ac_ext
  7129. cat >>conftest.$ac_ext <<_ACEOF
  7130. /* end confdefs.h. */
  7131. $ac_includes_default
  7132. typedef int16_t ac__type_sizeof_;
  7133. int
  7134. main ()
  7135. {
  7136. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  7137. test_array [0] = 0
  7138. ;
  7139. return 0;
  7140. }
  7141. _ACEOF
  7142. rm -f conftest.$ac_objext
  7143. if { (ac_try="$ac_compile"
  7144. case "(($ac_try" in
  7145. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7146. *) ac_try_echo=$ac_try;;
  7147. esac
  7148. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7149. (eval "$ac_compile") 2>conftest.er1
  7150. ac_status=$?
  7151. grep -v '^ *+' conftest.er1 >conftest.err
  7152. rm -f conftest.er1
  7153. cat conftest.err >&5
  7154. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7155. (exit $ac_status); } && {
  7156. test -z "$ac_c_werror_flag" ||
  7157. test ! -s conftest.err
  7158. } && test -s conftest.$ac_objext; then
  7159. ac_hi=$ac_mid
  7160. else
  7161. echo "$as_me: failed program was:" >&5
  7162. sed 's/^/| /' conftest.$ac_ext >&5
  7163. ac_lo=`expr '(' $ac_mid ')' + 1`
  7164. fi
  7165. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7166. done
  7167. case $ac_lo in
  7168. ?*) ac_cv_sizeof_int16_t=$ac_lo;;
  7169. '') if test "$ac_cv_type_int16_t" = yes; then
  7170. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int16_t)
  7171. See \`config.log' for more details." >&5
  7172. echo "$as_me: error: cannot compute sizeof (int16_t)
  7173. See \`config.log' for more details." >&2;}
  7174. { (exit 77); exit 77; }; }
  7175. else
  7176. ac_cv_sizeof_int16_t=0
  7177. fi ;;
  7178. esac
  7179. else
  7180. cat >conftest.$ac_ext <<_ACEOF
  7181. /* confdefs.h. */
  7182. _ACEOF
  7183. cat confdefs.h >>conftest.$ac_ext
  7184. cat >>conftest.$ac_ext <<_ACEOF
  7185. /* end confdefs.h. */
  7186. $ac_includes_default
  7187. typedef int16_t ac__type_sizeof_;
  7188. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  7189. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  7190. #include <stdio.h>
  7191. #include <stdlib.h>
  7192. int
  7193. main ()
  7194. {
  7195. FILE *f = fopen ("conftest.val", "w");
  7196. if (! f)
  7197. return 1;
  7198. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  7199. {
  7200. long int i = longval ();
  7201. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  7202. return 1;
  7203. fprintf (f, "%ld\n", i);
  7204. }
  7205. else
  7206. {
  7207. unsigned long int i = ulongval ();
  7208. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  7209. return 1;
  7210. fprintf (f, "%lu\n", i);
  7211. }
  7212. return ferror (f) || fclose (f) != 0;
  7213. ;
  7214. return 0;
  7215. }
  7216. _ACEOF
  7217. rm -f conftest$ac_exeext
  7218. if { (ac_try="$ac_link"
  7219. case "(($ac_try" in
  7220. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7221. *) ac_try_echo=$ac_try;;
  7222. esac
  7223. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7224. (eval "$ac_link") 2>&5
  7225. ac_status=$?
  7226. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7227. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7228. { (case "(($ac_try" in
  7229. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7230. *) ac_try_echo=$ac_try;;
  7231. esac
  7232. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7233. (eval "$ac_try") 2>&5
  7234. ac_status=$?
  7235. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7236. (exit $ac_status); }; }; then
  7237. ac_cv_sizeof_int16_t=`cat conftest.val`
  7238. else
  7239. echo "$as_me: program exited with status $ac_status" >&5
  7240. echo "$as_me: failed program was:" >&5
  7241. sed 's/^/| /' conftest.$ac_ext >&5
  7242. ( exit $ac_status )
  7243. if test "$ac_cv_type_int16_t" = yes; then
  7244. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int16_t)
  7245. See \`config.log' for more details." >&5
  7246. echo "$as_me: error: cannot compute sizeof (int16_t)
  7247. See \`config.log' for more details." >&2;}
  7248. { (exit 77); exit 77; }; }
  7249. else
  7250. ac_cv_sizeof_int16_t=0
  7251. fi
  7252. fi
  7253. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7254. fi
  7255. rm -f conftest.val
  7256. fi
  7257. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int16_t" >&5
  7258. echo "${ECHO_T}$ac_cv_sizeof_int16_t" >&6; }
  7259. cat >>confdefs.h <<_ACEOF
  7260. #define SIZEOF_INT16_T $ac_cv_sizeof_int16_t
  7261. _ACEOF
  7262. { echo "$as_me:$LINENO: checking for uint16_t" >&5
  7263. echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
  7264. if test "${ac_cv_type_uint16_t+set}" = set; then
  7265. echo $ECHO_N "(cached) $ECHO_C" >&6
  7266. else
  7267. cat >conftest.$ac_ext <<_ACEOF
  7268. /* confdefs.h. */
  7269. _ACEOF
  7270. cat confdefs.h >>conftest.$ac_ext
  7271. cat >>conftest.$ac_ext <<_ACEOF
  7272. /* end confdefs.h. */
  7273. $ac_includes_default
  7274. typedef uint16_t ac__type_new_;
  7275. int
  7276. main ()
  7277. {
  7278. if ((ac__type_new_ *) 0)
  7279. return 0;
  7280. if (sizeof (ac__type_new_))
  7281. return 0;
  7282. ;
  7283. return 0;
  7284. }
  7285. _ACEOF
  7286. rm -f conftest.$ac_objext
  7287. if { (ac_try="$ac_compile"
  7288. case "(($ac_try" in
  7289. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7290. *) ac_try_echo=$ac_try;;
  7291. esac
  7292. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7293. (eval "$ac_compile") 2>conftest.er1
  7294. ac_status=$?
  7295. grep -v '^ *+' conftest.er1 >conftest.err
  7296. rm -f conftest.er1
  7297. cat conftest.err >&5
  7298. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7299. (exit $ac_status); } && {
  7300. test -z "$ac_c_werror_flag" ||
  7301. test ! -s conftest.err
  7302. } && test -s conftest.$ac_objext; then
  7303. ac_cv_type_uint16_t=yes
  7304. else
  7305. echo "$as_me: failed program was:" >&5
  7306. sed 's/^/| /' conftest.$ac_ext >&5
  7307. ac_cv_type_uint16_t=no
  7308. fi
  7309. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7310. fi
  7311. { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
  7312. echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
  7313. # The cast to long int works around a bug in the HP C Compiler
  7314. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7315. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  7316. # This bug is HP SR number 8606223364.
  7317. { echo "$as_me:$LINENO: checking size of uint16_t" >&5
  7318. echo $ECHO_N "checking size of uint16_t... $ECHO_C" >&6; }
  7319. if test "${ac_cv_sizeof_uint16_t+set}" = set; then
  7320. echo $ECHO_N "(cached) $ECHO_C" >&6
  7321. else
  7322. if test "$cross_compiling" = yes; then
  7323. # Depending upon the size, compute the lo and hi bounds.
  7324. cat >conftest.$ac_ext <<_ACEOF
  7325. /* confdefs.h. */
  7326. _ACEOF
  7327. cat confdefs.h >>conftest.$ac_ext
  7328. cat >>conftest.$ac_ext <<_ACEOF
  7329. /* end confdefs.h. */
  7330. $ac_includes_default
  7331. typedef uint16_t ac__type_sizeof_;
  7332. int
  7333. main ()
  7334. {
  7335. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  7336. test_array [0] = 0
  7337. ;
  7338. return 0;
  7339. }
  7340. _ACEOF
  7341. rm -f conftest.$ac_objext
  7342. if { (ac_try="$ac_compile"
  7343. case "(($ac_try" in
  7344. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7345. *) ac_try_echo=$ac_try;;
  7346. esac
  7347. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7348. (eval "$ac_compile") 2>conftest.er1
  7349. ac_status=$?
  7350. grep -v '^ *+' conftest.er1 >conftest.err
  7351. rm -f conftest.er1
  7352. cat conftest.err >&5
  7353. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7354. (exit $ac_status); } && {
  7355. test -z "$ac_c_werror_flag" ||
  7356. test ! -s conftest.err
  7357. } && test -s conftest.$ac_objext; then
  7358. ac_lo=0 ac_mid=0
  7359. while :; do
  7360. cat >conftest.$ac_ext <<_ACEOF
  7361. /* confdefs.h. */
  7362. _ACEOF
  7363. cat confdefs.h >>conftest.$ac_ext
  7364. cat >>conftest.$ac_ext <<_ACEOF
  7365. /* end confdefs.h. */
  7366. $ac_includes_default
  7367. typedef uint16_t ac__type_sizeof_;
  7368. int
  7369. main ()
  7370. {
  7371. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  7372. test_array [0] = 0
  7373. ;
  7374. return 0;
  7375. }
  7376. _ACEOF
  7377. rm -f conftest.$ac_objext
  7378. if { (ac_try="$ac_compile"
  7379. case "(($ac_try" in
  7380. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7381. *) ac_try_echo=$ac_try;;
  7382. esac
  7383. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7384. (eval "$ac_compile") 2>conftest.er1
  7385. ac_status=$?
  7386. grep -v '^ *+' conftest.er1 >conftest.err
  7387. rm -f conftest.er1
  7388. cat conftest.err >&5
  7389. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7390. (exit $ac_status); } && {
  7391. test -z "$ac_c_werror_flag" ||
  7392. test ! -s conftest.err
  7393. } && test -s conftest.$ac_objext; then
  7394. ac_hi=$ac_mid; break
  7395. else
  7396. echo "$as_me: failed program was:" >&5
  7397. sed 's/^/| /' conftest.$ac_ext >&5
  7398. ac_lo=`expr $ac_mid + 1`
  7399. if test $ac_lo -le $ac_mid; then
  7400. ac_lo= ac_hi=
  7401. break
  7402. fi
  7403. ac_mid=`expr 2 '*' $ac_mid + 1`
  7404. fi
  7405. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7406. done
  7407. else
  7408. echo "$as_me: failed program was:" >&5
  7409. sed 's/^/| /' conftest.$ac_ext >&5
  7410. cat >conftest.$ac_ext <<_ACEOF
  7411. /* confdefs.h. */
  7412. _ACEOF
  7413. cat confdefs.h >>conftest.$ac_ext
  7414. cat >>conftest.$ac_ext <<_ACEOF
  7415. /* end confdefs.h. */
  7416. $ac_includes_default
  7417. typedef uint16_t ac__type_sizeof_;
  7418. int
  7419. main ()
  7420. {
  7421. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  7422. test_array [0] = 0
  7423. ;
  7424. return 0;
  7425. }
  7426. _ACEOF
  7427. rm -f conftest.$ac_objext
  7428. if { (ac_try="$ac_compile"
  7429. case "(($ac_try" in
  7430. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7431. *) ac_try_echo=$ac_try;;
  7432. esac
  7433. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7434. (eval "$ac_compile") 2>conftest.er1
  7435. ac_status=$?
  7436. grep -v '^ *+' conftest.er1 >conftest.err
  7437. rm -f conftest.er1
  7438. cat conftest.err >&5
  7439. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7440. (exit $ac_status); } && {
  7441. test -z "$ac_c_werror_flag" ||
  7442. test ! -s conftest.err
  7443. } && test -s conftest.$ac_objext; then
  7444. ac_hi=-1 ac_mid=-1
  7445. while :; do
  7446. cat >conftest.$ac_ext <<_ACEOF
  7447. /* confdefs.h. */
  7448. _ACEOF
  7449. cat confdefs.h >>conftest.$ac_ext
  7450. cat >>conftest.$ac_ext <<_ACEOF
  7451. /* end confdefs.h. */
  7452. $ac_includes_default
  7453. typedef uint16_t ac__type_sizeof_;
  7454. int
  7455. main ()
  7456. {
  7457. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  7458. test_array [0] = 0
  7459. ;
  7460. return 0;
  7461. }
  7462. _ACEOF
  7463. rm -f conftest.$ac_objext
  7464. if { (ac_try="$ac_compile"
  7465. case "(($ac_try" in
  7466. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7467. *) ac_try_echo=$ac_try;;
  7468. esac
  7469. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7470. (eval "$ac_compile") 2>conftest.er1
  7471. ac_status=$?
  7472. grep -v '^ *+' conftest.er1 >conftest.err
  7473. rm -f conftest.er1
  7474. cat conftest.err >&5
  7475. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7476. (exit $ac_status); } && {
  7477. test -z "$ac_c_werror_flag" ||
  7478. test ! -s conftest.err
  7479. } && test -s conftest.$ac_objext; then
  7480. ac_lo=$ac_mid; break
  7481. else
  7482. echo "$as_me: failed program was:" >&5
  7483. sed 's/^/| /' conftest.$ac_ext >&5
  7484. ac_hi=`expr '(' $ac_mid ')' - 1`
  7485. if test $ac_mid -le $ac_hi; then
  7486. ac_lo= ac_hi=
  7487. break
  7488. fi
  7489. ac_mid=`expr 2 '*' $ac_mid`
  7490. fi
  7491. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7492. done
  7493. else
  7494. echo "$as_me: failed program was:" >&5
  7495. sed 's/^/| /' conftest.$ac_ext >&5
  7496. ac_lo= ac_hi=
  7497. fi
  7498. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7499. fi
  7500. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7501. # Binary search between lo and hi bounds.
  7502. while test "x$ac_lo" != "x$ac_hi"; do
  7503. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  7504. cat >conftest.$ac_ext <<_ACEOF
  7505. /* confdefs.h. */
  7506. _ACEOF
  7507. cat confdefs.h >>conftest.$ac_ext
  7508. cat >>conftest.$ac_ext <<_ACEOF
  7509. /* end confdefs.h. */
  7510. $ac_includes_default
  7511. typedef uint16_t ac__type_sizeof_;
  7512. int
  7513. main ()
  7514. {
  7515. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  7516. test_array [0] = 0
  7517. ;
  7518. return 0;
  7519. }
  7520. _ACEOF
  7521. rm -f conftest.$ac_objext
  7522. if { (ac_try="$ac_compile"
  7523. case "(($ac_try" in
  7524. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7525. *) ac_try_echo=$ac_try;;
  7526. esac
  7527. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7528. (eval "$ac_compile") 2>conftest.er1
  7529. ac_status=$?
  7530. grep -v '^ *+' conftest.er1 >conftest.err
  7531. rm -f conftest.er1
  7532. cat conftest.err >&5
  7533. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7534. (exit $ac_status); } && {
  7535. test -z "$ac_c_werror_flag" ||
  7536. test ! -s conftest.err
  7537. } && test -s conftest.$ac_objext; then
  7538. ac_hi=$ac_mid
  7539. else
  7540. echo "$as_me: failed program was:" >&5
  7541. sed 's/^/| /' conftest.$ac_ext >&5
  7542. ac_lo=`expr '(' $ac_mid ')' + 1`
  7543. fi
  7544. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7545. done
  7546. case $ac_lo in
  7547. ?*) ac_cv_sizeof_uint16_t=$ac_lo;;
  7548. '') if test "$ac_cv_type_uint16_t" = yes; then
  7549. { { echo "$as_me:$LINENO: error: cannot compute sizeof (uint16_t)
  7550. See \`config.log' for more details." >&5
  7551. echo "$as_me: error: cannot compute sizeof (uint16_t)
  7552. See \`config.log' for more details." >&2;}
  7553. { (exit 77); exit 77; }; }
  7554. else
  7555. ac_cv_sizeof_uint16_t=0
  7556. fi ;;
  7557. esac
  7558. else
  7559. cat >conftest.$ac_ext <<_ACEOF
  7560. /* confdefs.h. */
  7561. _ACEOF
  7562. cat confdefs.h >>conftest.$ac_ext
  7563. cat >>conftest.$ac_ext <<_ACEOF
  7564. /* end confdefs.h. */
  7565. $ac_includes_default
  7566. typedef uint16_t ac__type_sizeof_;
  7567. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  7568. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  7569. #include <stdio.h>
  7570. #include <stdlib.h>
  7571. int
  7572. main ()
  7573. {
  7574. FILE *f = fopen ("conftest.val", "w");
  7575. if (! f)
  7576. return 1;
  7577. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  7578. {
  7579. long int i = longval ();
  7580. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  7581. return 1;
  7582. fprintf (f, "%ld\n", i);
  7583. }
  7584. else
  7585. {
  7586. unsigned long int i = ulongval ();
  7587. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  7588. return 1;
  7589. fprintf (f, "%lu\n", i);
  7590. }
  7591. return ferror (f) || fclose (f) != 0;
  7592. ;
  7593. return 0;
  7594. }
  7595. _ACEOF
  7596. rm -f conftest$ac_exeext
  7597. if { (ac_try="$ac_link"
  7598. case "(($ac_try" in
  7599. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7600. *) ac_try_echo=$ac_try;;
  7601. esac
  7602. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7603. (eval "$ac_link") 2>&5
  7604. ac_status=$?
  7605. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7606. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7607. { (case "(($ac_try" in
  7608. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7609. *) ac_try_echo=$ac_try;;
  7610. esac
  7611. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7612. (eval "$ac_try") 2>&5
  7613. ac_status=$?
  7614. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7615. (exit $ac_status); }; }; then
  7616. ac_cv_sizeof_uint16_t=`cat conftest.val`
  7617. else
  7618. echo "$as_me: program exited with status $ac_status" >&5
  7619. echo "$as_me: failed program was:" >&5
  7620. sed 's/^/| /' conftest.$ac_ext >&5
  7621. ( exit $ac_status )
  7622. if test "$ac_cv_type_uint16_t" = yes; then
  7623. { { echo "$as_me:$LINENO: error: cannot compute sizeof (uint16_t)
  7624. See \`config.log' for more details." >&5
  7625. echo "$as_me: error: cannot compute sizeof (uint16_t)
  7626. See \`config.log' for more details." >&2;}
  7627. { (exit 77); exit 77; }; }
  7628. else
  7629. ac_cv_sizeof_uint16_t=0
  7630. fi
  7631. fi
  7632. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7633. fi
  7634. rm -f conftest.val
  7635. fi
  7636. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uint16_t" >&5
  7637. echo "${ECHO_T}$ac_cv_sizeof_uint16_t" >&6; }
  7638. cat >>confdefs.h <<_ACEOF
  7639. #define SIZEOF_UINT16_T $ac_cv_sizeof_uint16_t
  7640. _ACEOF
  7641. { echo "$as_me:$LINENO: checking for int32_t" >&5
  7642. echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
  7643. if test "${ac_cv_type_int32_t+set}" = set; then
  7644. echo $ECHO_N "(cached) $ECHO_C" >&6
  7645. else
  7646. cat >conftest.$ac_ext <<_ACEOF
  7647. /* confdefs.h. */
  7648. _ACEOF
  7649. cat confdefs.h >>conftest.$ac_ext
  7650. cat >>conftest.$ac_ext <<_ACEOF
  7651. /* end confdefs.h. */
  7652. $ac_includes_default
  7653. typedef int32_t ac__type_new_;
  7654. int
  7655. main ()
  7656. {
  7657. if ((ac__type_new_ *) 0)
  7658. return 0;
  7659. if (sizeof (ac__type_new_))
  7660. return 0;
  7661. ;
  7662. return 0;
  7663. }
  7664. _ACEOF
  7665. rm -f conftest.$ac_objext
  7666. if { (ac_try="$ac_compile"
  7667. case "(($ac_try" in
  7668. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7669. *) ac_try_echo=$ac_try;;
  7670. esac
  7671. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7672. (eval "$ac_compile") 2>conftest.er1
  7673. ac_status=$?
  7674. grep -v '^ *+' conftest.er1 >conftest.err
  7675. rm -f conftest.er1
  7676. cat conftest.err >&5
  7677. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7678. (exit $ac_status); } && {
  7679. test -z "$ac_c_werror_flag" ||
  7680. test ! -s conftest.err
  7681. } && test -s conftest.$ac_objext; then
  7682. ac_cv_type_int32_t=yes
  7683. else
  7684. echo "$as_me: failed program was:" >&5
  7685. sed 's/^/| /' conftest.$ac_ext >&5
  7686. ac_cv_type_int32_t=no
  7687. fi
  7688. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7689. fi
  7690. { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
  7691. echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
  7692. # The cast to long int works around a bug in the HP C Compiler
  7693. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7694. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  7695. # This bug is HP SR number 8606223364.
  7696. { echo "$as_me:$LINENO: checking size of int32_t" >&5
  7697. echo $ECHO_N "checking size of int32_t... $ECHO_C" >&6; }
  7698. if test "${ac_cv_sizeof_int32_t+set}" = set; then
  7699. echo $ECHO_N "(cached) $ECHO_C" >&6
  7700. else
  7701. if test "$cross_compiling" = yes; then
  7702. # Depending upon the size, compute the lo and hi bounds.
  7703. cat >conftest.$ac_ext <<_ACEOF
  7704. /* confdefs.h. */
  7705. _ACEOF
  7706. cat confdefs.h >>conftest.$ac_ext
  7707. cat >>conftest.$ac_ext <<_ACEOF
  7708. /* end confdefs.h. */
  7709. $ac_includes_default
  7710. typedef int32_t ac__type_sizeof_;
  7711. int
  7712. main ()
  7713. {
  7714. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  7715. test_array [0] = 0
  7716. ;
  7717. return 0;
  7718. }
  7719. _ACEOF
  7720. rm -f conftest.$ac_objext
  7721. if { (ac_try="$ac_compile"
  7722. case "(($ac_try" in
  7723. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7724. *) ac_try_echo=$ac_try;;
  7725. esac
  7726. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7727. (eval "$ac_compile") 2>conftest.er1
  7728. ac_status=$?
  7729. grep -v '^ *+' conftest.er1 >conftest.err
  7730. rm -f conftest.er1
  7731. cat conftest.err >&5
  7732. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7733. (exit $ac_status); } && {
  7734. test -z "$ac_c_werror_flag" ||
  7735. test ! -s conftest.err
  7736. } && test -s conftest.$ac_objext; then
  7737. ac_lo=0 ac_mid=0
  7738. while :; do
  7739. cat >conftest.$ac_ext <<_ACEOF
  7740. /* confdefs.h. */
  7741. _ACEOF
  7742. cat confdefs.h >>conftest.$ac_ext
  7743. cat >>conftest.$ac_ext <<_ACEOF
  7744. /* end confdefs.h. */
  7745. $ac_includes_default
  7746. typedef int32_t ac__type_sizeof_;
  7747. int
  7748. main ()
  7749. {
  7750. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  7751. test_array [0] = 0
  7752. ;
  7753. return 0;
  7754. }
  7755. _ACEOF
  7756. rm -f conftest.$ac_objext
  7757. if { (ac_try="$ac_compile"
  7758. case "(($ac_try" in
  7759. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7760. *) ac_try_echo=$ac_try;;
  7761. esac
  7762. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7763. (eval "$ac_compile") 2>conftest.er1
  7764. ac_status=$?
  7765. grep -v '^ *+' conftest.er1 >conftest.err
  7766. rm -f conftest.er1
  7767. cat conftest.err >&5
  7768. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7769. (exit $ac_status); } && {
  7770. test -z "$ac_c_werror_flag" ||
  7771. test ! -s conftest.err
  7772. } && test -s conftest.$ac_objext; then
  7773. ac_hi=$ac_mid; break
  7774. else
  7775. echo "$as_me: failed program was:" >&5
  7776. sed 's/^/| /' conftest.$ac_ext >&5
  7777. ac_lo=`expr $ac_mid + 1`
  7778. if test $ac_lo -le $ac_mid; then
  7779. ac_lo= ac_hi=
  7780. break
  7781. fi
  7782. ac_mid=`expr 2 '*' $ac_mid + 1`
  7783. fi
  7784. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7785. done
  7786. else
  7787. echo "$as_me: failed program was:" >&5
  7788. sed 's/^/| /' conftest.$ac_ext >&5
  7789. cat >conftest.$ac_ext <<_ACEOF
  7790. /* confdefs.h. */
  7791. _ACEOF
  7792. cat confdefs.h >>conftest.$ac_ext
  7793. cat >>conftest.$ac_ext <<_ACEOF
  7794. /* end confdefs.h. */
  7795. $ac_includes_default
  7796. typedef int32_t ac__type_sizeof_;
  7797. int
  7798. main ()
  7799. {
  7800. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  7801. test_array [0] = 0
  7802. ;
  7803. return 0;
  7804. }
  7805. _ACEOF
  7806. rm -f conftest.$ac_objext
  7807. if { (ac_try="$ac_compile"
  7808. case "(($ac_try" in
  7809. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7810. *) ac_try_echo=$ac_try;;
  7811. esac
  7812. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7813. (eval "$ac_compile") 2>conftest.er1
  7814. ac_status=$?
  7815. grep -v '^ *+' conftest.er1 >conftest.err
  7816. rm -f conftest.er1
  7817. cat conftest.err >&5
  7818. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7819. (exit $ac_status); } && {
  7820. test -z "$ac_c_werror_flag" ||
  7821. test ! -s conftest.err
  7822. } && test -s conftest.$ac_objext; then
  7823. ac_hi=-1 ac_mid=-1
  7824. while :; do
  7825. cat >conftest.$ac_ext <<_ACEOF
  7826. /* confdefs.h. */
  7827. _ACEOF
  7828. cat confdefs.h >>conftest.$ac_ext
  7829. cat >>conftest.$ac_ext <<_ACEOF
  7830. /* end confdefs.h. */
  7831. $ac_includes_default
  7832. typedef int32_t ac__type_sizeof_;
  7833. int
  7834. main ()
  7835. {
  7836. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  7837. test_array [0] = 0
  7838. ;
  7839. return 0;
  7840. }
  7841. _ACEOF
  7842. rm -f conftest.$ac_objext
  7843. if { (ac_try="$ac_compile"
  7844. case "(($ac_try" in
  7845. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7846. *) ac_try_echo=$ac_try;;
  7847. esac
  7848. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7849. (eval "$ac_compile") 2>conftest.er1
  7850. ac_status=$?
  7851. grep -v '^ *+' conftest.er1 >conftest.err
  7852. rm -f conftest.er1
  7853. cat conftest.err >&5
  7854. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7855. (exit $ac_status); } && {
  7856. test -z "$ac_c_werror_flag" ||
  7857. test ! -s conftest.err
  7858. } && test -s conftest.$ac_objext; then
  7859. ac_lo=$ac_mid; break
  7860. else
  7861. echo "$as_me: failed program was:" >&5
  7862. sed 's/^/| /' conftest.$ac_ext >&5
  7863. ac_hi=`expr '(' $ac_mid ')' - 1`
  7864. if test $ac_mid -le $ac_hi; then
  7865. ac_lo= ac_hi=
  7866. break
  7867. fi
  7868. ac_mid=`expr 2 '*' $ac_mid`
  7869. fi
  7870. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7871. done
  7872. else
  7873. echo "$as_me: failed program was:" >&5
  7874. sed 's/^/| /' conftest.$ac_ext >&5
  7875. ac_lo= ac_hi=
  7876. fi
  7877. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7878. fi
  7879. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7880. # Binary search between lo and hi bounds.
  7881. while test "x$ac_lo" != "x$ac_hi"; do
  7882. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  7883. cat >conftest.$ac_ext <<_ACEOF
  7884. /* confdefs.h. */
  7885. _ACEOF
  7886. cat confdefs.h >>conftest.$ac_ext
  7887. cat >>conftest.$ac_ext <<_ACEOF
  7888. /* end confdefs.h. */
  7889. $ac_includes_default
  7890. typedef int32_t ac__type_sizeof_;
  7891. int
  7892. main ()
  7893. {
  7894. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  7895. test_array [0] = 0
  7896. ;
  7897. return 0;
  7898. }
  7899. _ACEOF
  7900. rm -f conftest.$ac_objext
  7901. if { (ac_try="$ac_compile"
  7902. case "(($ac_try" in
  7903. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7904. *) ac_try_echo=$ac_try;;
  7905. esac
  7906. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7907. (eval "$ac_compile") 2>conftest.er1
  7908. ac_status=$?
  7909. grep -v '^ *+' conftest.er1 >conftest.err
  7910. rm -f conftest.er1
  7911. cat conftest.err >&5
  7912. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7913. (exit $ac_status); } && {
  7914. test -z "$ac_c_werror_flag" ||
  7915. test ! -s conftest.err
  7916. } && test -s conftest.$ac_objext; then
  7917. ac_hi=$ac_mid
  7918. else
  7919. echo "$as_me: failed program was:" >&5
  7920. sed 's/^/| /' conftest.$ac_ext >&5
  7921. ac_lo=`expr '(' $ac_mid ')' + 1`
  7922. fi
  7923. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7924. done
  7925. case $ac_lo in
  7926. ?*) ac_cv_sizeof_int32_t=$ac_lo;;
  7927. '') if test "$ac_cv_type_int32_t" = yes; then
  7928. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int32_t)
  7929. See \`config.log' for more details." >&5
  7930. echo "$as_me: error: cannot compute sizeof (int32_t)
  7931. See \`config.log' for more details." >&2;}
  7932. { (exit 77); exit 77; }; }
  7933. else
  7934. ac_cv_sizeof_int32_t=0
  7935. fi ;;
  7936. esac
  7937. else
  7938. cat >conftest.$ac_ext <<_ACEOF
  7939. /* confdefs.h. */
  7940. _ACEOF
  7941. cat confdefs.h >>conftest.$ac_ext
  7942. cat >>conftest.$ac_ext <<_ACEOF
  7943. /* end confdefs.h. */
  7944. $ac_includes_default
  7945. typedef int32_t ac__type_sizeof_;
  7946. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  7947. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  7948. #include <stdio.h>
  7949. #include <stdlib.h>
  7950. int
  7951. main ()
  7952. {
  7953. FILE *f = fopen ("conftest.val", "w");
  7954. if (! f)
  7955. return 1;
  7956. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  7957. {
  7958. long int i = longval ();
  7959. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  7960. return 1;
  7961. fprintf (f, "%ld\n", i);
  7962. }
  7963. else
  7964. {
  7965. unsigned long int i = ulongval ();
  7966. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  7967. return 1;
  7968. fprintf (f, "%lu\n", i);
  7969. }
  7970. return ferror (f) || fclose (f) != 0;
  7971. ;
  7972. return 0;
  7973. }
  7974. _ACEOF
  7975. rm -f conftest$ac_exeext
  7976. if { (ac_try="$ac_link"
  7977. case "(($ac_try" in
  7978. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7979. *) ac_try_echo=$ac_try;;
  7980. esac
  7981. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7982. (eval "$ac_link") 2>&5
  7983. ac_status=$?
  7984. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7985. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7986. { (case "(($ac_try" in
  7987. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7988. *) ac_try_echo=$ac_try;;
  7989. esac
  7990. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7991. (eval "$ac_try") 2>&5
  7992. ac_status=$?
  7993. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7994. (exit $ac_status); }; }; then
  7995. ac_cv_sizeof_int32_t=`cat conftest.val`
  7996. else
  7997. echo "$as_me: program exited with status $ac_status" >&5
  7998. echo "$as_me: failed program was:" >&5
  7999. sed 's/^/| /' conftest.$ac_ext >&5
  8000. ( exit $ac_status )
  8001. if test "$ac_cv_type_int32_t" = yes; then
  8002. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int32_t)
  8003. See \`config.log' for more details." >&5
  8004. echo "$as_me: error: cannot compute sizeof (int32_t)
  8005. See \`config.log' for more details." >&2;}
  8006. { (exit 77); exit 77; }; }
  8007. else
  8008. ac_cv_sizeof_int32_t=0
  8009. fi
  8010. fi
  8011. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8012. fi
  8013. rm -f conftest.val
  8014. fi
  8015. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int32_t" >&5
  8016. echo "${ECHO_T}$ac_cv_sizeof_int32_t" >&6; }
  8017. cat >>confdefs.h <<_ACEOF
  8018. #define SIZEOF_INT32_T $ac_cv_sizeof_int32_t
  8019. _ACEOF
  8020. { echo "$as_me:$LINENO: checking for uint32_t" >&5
  8021. echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
  8022. if test "${ac_cv_type_uint32_t+set}" = set; then
  8023. echo $ECHO_N "(cached) $ECHO_C" >&6
  8024. else
  8025. cat >conftest.$ac_ext <<_ACEOF
  8026. /* confdefs.h. */
  8027. _ACEOF
  8028. cat confdefs.h >>conftest.$ac_ext
  8029. cat >>conftest.$ac_ext <<_ACEOF
  8030. /* end confdefs.h. */
  8031. $ac_includes_default
  8032. typedef uint32_t ac__type_new_;
  8033. int
  8034. main ()
  8035. {
  8036. if ((ac__type_new_ *) 0)
  8037. return 0;
  8038. if (sizeof (ac__type_new_))
  8039. return 0;
  8040. ;
  8041. return 0;
  8042. }
  8043. _ACEOF
  8044. rm -f conftest.$ac_objext
  8045. if { (ac_try="$ac_compile"
  8046. case "(($ac_try" in
  8047. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8048. *) ac_try_echo=$ac_try;;
  8049. esac
  8050. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8051. (eval "$ac_compile") 2>conftest.er1
  8052. ac_status=$?
  8053. grep -v '^ *+' conftest.er1 >conftest.err
  8054. rm -f conftest.er1
  8055. cat conftest.err >&5
  8056. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8057. (exit $ac_status); } && {
  8058. test -z "$ac_c_werror_flag" ||
  8059. test ! -s conftest.err
  8060. } && test -s conftest.$ac_objext; then
  8061. ac_cv_type_uint32_t=yes
  8062. else
  8063. echo "$as_me: failed program was:" >&5
  8064. sed 's/^/| /' conftest.$ac_ext >&5
  8065. ac_cv_type_uint32_t=no
  8066. fi
  8067. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8068. fi
  8069. { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
  8070. echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
  8071. # The cast to long int works around a bug in the HP C Compiler
  8072. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  8073. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  8074. # This bug is HP SR number 8606223364.
  8075. { echo "$as_me:$LINENO: checking size of uint32_t" >&5
  8076. echo $ECHO_N "checking size of uint32_t... $ECHO_C" >&6; }
  8077. if test "${ac_cv_sizeof_uint32_t+set}" = set; then
  8078. echo $ECHO_N "(cached) $ECHO_C" >&6
  8079. else
  8080. if test "$cross_compiling" = yes; then
  8081. # Depending upon the size, compute the lo and hi bounds.
  8082. cat >conftest.$ac_ext <<_ACEOF
  8083. /* confdefs.h. */
  8084. _ACEOF
  8085. cat confdefs.h >>conftest.$ac_ext
  8086. cat >>conftest.$ac_ext <<_ACEOF
  8087. /* end confdefs.h. */
  8088. $ac_includes_default
  8089. typedef uint32_t ac__type_sizeof_;
  8090. int
  8091. main ()
  8092. {
  8093. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  8094. test_array [0] = 0
  8095. ;
  8096. return 0;
  8097. }
  8098. _ACEOF
  8099. rm -f conftest.$ac_objext
  8100. if { (ac_try="$ac_compile"
  8101. case "(($ac_try" in
  8102. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8103. *) ac_try_echo=$ac_try;;
  8104. esac
  8105. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8106. (eval "$ac_compile") 2>conftest.er1
  8107. ac_status=$?
  8108. grep -v '^ *+' conftest.er1 >conftest.err
  8109. rm -f conftest.er1
  8110. cat conftest.err >&5
  8111. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8112. (exit $ac_status); } && {
  8113. test -z "$ac_c_werror_flag" ||
  8114. test ! -s conftest.err
  8115. } && test -s conftest.$ac_objext; then
  8116. ac_lo=0 ac_mid=0
  8117. while :; do
  8118. cat >conftest.$ac_ext <<_ACEOF
  8119. /* confdefs.h. */
  8120. _ACEOF
  8121. cat confdefs.h >>conftest.$ac_ext
  8122. cat >>conftest.$ac_ext <<_ACEOF
  8123. /* end confdefs.h. */
  8124. $ac_includes_default
  8125. typedef uint32_t ac__type_sizeof_;
  8126. int
  8127. main ()
  8128. {
  8129. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  8130. test_array [0] = 0
  8131. ;
  8132. return 0;
  8133. }
  8134. _ACEOF
  8135. rm -f conftest.$ac_objext
  8136. if { (ac_try="$ac_compile"
  8137. case "(($ac_try" in
  8138. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8139. *) ac_try_echo=$ac_try;;
  8140. esac
  8141. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8142. (eval "$ac_compile") 2>conftest.er1
  8143. ac_status=$?
  8144. grep -v '^ *+' conftest.er1 >conftest.err
  8145. rm -f conftest.er1
  8146. cat conftest.err >&5
  8147. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8148. (exit $ac_status); } && {
  8149. test -z "$ac_c_werror_flag" ||
  8150. test ! -s conftest.err
  8151. } && test -s conftest.$ac_objext; then
  8152. ac_hi=$ac_mid; break
  8153. else
  8154. echo "$as_me: failed program was:" >&5
  8155. sed 's/^/| /' conftest.$ac_ext >&5
  8156. ac_lo=`expr $ac_mid + 1`
  8157. if test $ac_lo -le $ac_mid; then
  8158. ac_lo= ac_hi=
  8159. break
  8160. fi
  8161. ac_mid=`expr 2 '*' $ac_mid + 1`
  8162. fi
  8163. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8164. done
  8165. else
  8166. echo "$as_me: failed program was:" >&5
  8167. sed 's/^/| /' conftest.$ac_ext >&5
  8168. cat >conftest.$ac_ext <<_ACEOF
  8169. /* confdefs.h. */
  8170. _ACEOF
  8171. cat confdefs.h >>conftest.$ac_ext
  8172. cat >>conftest.$ac_ext <<_ACEOF
  8173. /* end confdefs.h. */
  8174. $ac_includes_default
  8175. typedef uint32_t ac__type_sizeof_;
  8176. int
  8177. main ()
  8178. {
  8179. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  8180. test_array [0] = 0
  8181. ;
  8182. return 0;
  8183. }
  8184. _ACEOF
  8185. rm -f conftest.$ac_objext
  8186. if { (ac_try="$ac_compile"
  8187. case "(($ac_try" in
  8188. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8189. *) ac_try_echo=$ac_try;;
  8190. esac
  8191. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8192. (eval "$ac_compile") 2>conftest.er1
  8193. ac_status=$?
  8194. grep -v '^ *+' conftest.er1 >conftest.err
  8195. rm -f conftest.er1
  8196. cat conftest.err >&5
  8197. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8198. (exit $ac_status); } && {
  8199. test -z "$ac_c_werror_flag" ||
  8200. test ! -s conftest.err
  8201. } && test -s conftest.$ac_objext; then
  8202. ac_hi=-1 ac_mid=-1
  8203. while :; do
  8204. cat >conftest.$ac_ext <<_ACEOF
  8205. /* confdefs.h. */
  8206. _ACEOF
  8207. cat confdefs.h >>conftest.$ac_ext
  8208. cat >>conftest.$ac_ext <<_ACEOF
  8209. /* end confdefs.h. */
  8210. $ac_includes_default
  8211. typedef uint32_t ac__type_sizeof_;
  8212. int
  8213. main ()
  8214. {
  8215. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  8216. test_array [0] = 0
  8217. ;
  8218. return 0;
  8219. }
  8220. _ACEOF
  8221. rm -f conftest.$ac_objext
  8222. if { (ac_try="$ac_compile"
  8223. case "(($ac_try" in
  8224. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8225. *) ac_try_echo=$ac_try;;
  8226. esac
  8227. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8228. (eval "$ac_compile") 2>conftest.er1
  8229. ac_status=$?
  8230. grep -v '^ *+' conftest.er1 >conftest.err
  8231. rm -f conftest.er1
  8232. cat conftest.err >&5
  8233. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8234. (exit $ac_status); } && {
  8235. test -z "$ac_c_werror_flag" ||
  8236. test ! -s conftest.err
  8237. } && test -s conftest.$ac_objext; then
  8238. ac_lo=$ac_mid; break
  8239. else
  8240. echo "$as_me: failed program was:" >&5
  8241. sed 's/^/| /' conftest.$ac_ext >&5
  8242. ac_hi=`expr '(' $ac_mid ')' - 1`
  8243. if test $ac_mid -le $ac_hi; then
  8244. ac_lo= ac_hi=
  8245. break
  8246. fi
  8247. ac_mid=`expr 2 '*' $ac_mid`
  8248. fi
  8249. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8250. done
  8251. else
  8252. echo "$as_me: failed program was:" >&5
  8253. sed 's/^/| /' conftest.$ac_ext >&5
  8254. ac_lo= ac_hi=
  8255. fi
  8256. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8257. fi
  8258. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8259. # Binary search between lo and hi bounds.
  8260. while test "x$ac_lo" != "x$ac_hi"; do
  8261. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  8262. cat >conftest.$ac_ext <<_ACEOF
  8263. /* confdefs.h. */
  8264. _ACEOF
  8265. cat confdefs.h >>conftest.$ac_ext
  8266. cat >>conftest.$ac_ext <<_ACEOF
  8267. /* end confdefs.h. */
  8268. $ac_includes_default
  8269. typedef uint32_t ac__type_sizeof_;
  8270. int
  8271. main ()
  8272. {
  8273. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  8274. test_array [0] = 0
  8275. ;
  8276. return 0;
  8277. }
  8278. _ACEOF
  8279. rm -f conftest.$ac_objext
  8280. if { (ac_try="$ac_compile"
  8281. case "(($ac_try" in
  8282. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8283. *) ac_try_echo=$ac_try;;
  8284. esac
  8285. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8286. (eval "$ac_compile") 2>conftest.er1
  8287. ac_status=$?
  8288. grep -v '^ *+' conftest.er1 >conftest.err
  8289. rm -f conftest.er1
  8290. cat conftest.err >&5
  8291. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8292. (exit $ac_status); } && {
  8293. test -z "$ac_c_werror_flag" ||
  8294. test ! -s conftest.err
  8295. } && test -s conftest.$ac_objext; then
  8296. ac_hi=$ac_mid
  8297. else
  8298. echo "$as_me: failed program was:" >&5
  8299. sed 's/^/| /' conftest.$ac_ext >&5
  8300. ac_lo=`expr '(' $ac_mid ')' + 1`
  8301. fi
  8302. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8303. done
  8304. case $ac_lo in
  8305. ?*) ac_cv_sizeof_uint32_t=$ac_lo;;
  8306. '') if test "$ac_cv_type_uint32_t" = yes; then
  8307. { { echo "$as_me:$LINENO: error: cannot compute sizeof (uint32_t)
  8308. See \`config.log' for more details." >&5
  8309. echo "$as_me: error: cannot compute sizeof (uint32_t)
  8310. See \`config.log' for more details." >&2;}
  8311. { (exit 77); exit 77; }; }
  8312. else
  8313. ac_cv_sizeof_uint32_t=0
  8314. fi ;;
  8315. esac
  8316. else
  8317. cat >conftest.$ac_ext <<_ACEOF
  8318. /* confdefs.h. */
  8319. _ACEOF
  8320. cat confdefs.h >>conftest.$ac_ext
  8321. cat >>conftest.$ac_ext <<_ACEOF
  8322. /* end confdefs.h. */
  8323. $ac_includes_default
  8324. typedef uint32_t ac__type_sizeof_;
  8325. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  8326. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  8327. #include <stdio.h>
  8328. #include <stdlib.h>
  8329. int
  8330. main ()
  8331. {
  8332. FILE *f = fopen ("conftest.val", "w");
  8333. if (! f)
  8334. return 1;
  8335. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  8336. {
  8337. long int i = longval ();
  8338. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  8339. return 1;
  8340. fprintf (f, "%ld\n", i);
  8341. }
  8342. else
  8343. {
  8344. unsigned long int i = ulongval ();
  8345. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  8346. return 1;
  8347. fprintf (f, "%lu\n", i);
  8348. }
  8349. return ferror (f) || fclose (f) != 0;
  8350. ;
  8351. return 0;
  8352. }
  8353. _ACEOF
  8354. rm -f conftest$ac_exeext
  8355. if { (ac_try="$ac_link"
  8356. case "(($ac_try" in
  8357. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8358. *) ac_try_echo=$ac_try;;
  8359. esac
  8360. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8361. (eval "$ac_link") 2>&5
  8362. ac_status=$?
  8363. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8364. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8365. { (case "(($ac_try" in
  8366. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8367. *) ac_try_echo=$ac_try;;
  8368. esac
  8369. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8370. (eval "$ac_try") 2>&5
  8371. ac_status=$?
  8372. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8373. (exit $ac_status); }; }; then
  8374. ac_cv_sizeof_uint32_t=`cat conftest.val`
  8375. else
  8376. echo "$as_me: program exited with status $ac_status" >&5
  8377. echo "$as_me: failed program was:" >&5
  8378. sed 's/^/| /' conftest.$ac_ext >&5
  8379. ( exit $ac_status )
  8380. if test "$ac_cv_type_uint32_t" = yes; then
  8381. { { echo "$as_me:$LINENO: error: cannot compute sizeof (uint32_t)
  8382. See \`config.log' for more details." >&5
  8383. echo "$as_me: error: cannot compute sizeof (uint32_t)
  8384. See \`config.log' for more details." >&2;}
  8385. { (exit 77); exit 77; }; }
  8386. else
  8387. ac_cv_sizeof_uint32_t=0
  8388. fi
  8389. fi
  8390. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8391. fi
  8392. rm -f conftest.val
  8393. fi
  8394. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uint32_t" >&5
  8395. echo "${ECHO_T}$ac_cv_sizeof_uint32_t" >&6; }
  8396. cat >>confdefs.h <<_ACEOF
  8397. #define SIZEOF_UINT32_T $ac_cv_sizeof_uint32_t
  8398. _ACEOF
  8399. { echo "$as_me:$LINENO: checking for int64_t" >&5
  8400. echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
  8401. if test "${ac_cv_type_int64_t+set}" = set; then
  8402. echo $ECHO_N "(cached) $ECHO_C" >&6
  8403. else
  8404. cat >conftest.$ac_ext <<_ACEOF
  8405. /* confdefs.h. */
  8406. _ACEOF
  8407. cat confdefs.h >>conftest.$ac_ext
  8408. cat >>conftest.$ac_ext <<_ACEOF
  8409. /* end confdefs.h. */
  8410. $ac_includes_default
  8411. typedef int64_t ac__type_new_;
  8412. int
  8413. main ()
  8414. {
  8415. if ((ac__type_new_ *) 0)
  8416. return 0;
  8417. if (sizeof (ac__type_new_))
  8418. return 0;
  8419. ;
  8420. return 0;
  8421. }
  8422. _ACEOF
  8423. rm -f conftest.$ac_objext
  8424. if { (ac_try="$ac_compile"
  8425. case "(($ac_try" in
  8426. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8427. *) ac_try_echo=$ac_try;;
  8428. esac
  8429. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8430. (eval "$ac_compile") 2>conftest.er1
  8431. ac_status=$?
  8432. grep -v '^ *+' conftest.er1 >conftest.err
  8433. rm -f conftest.er1
  8434. cat conftest.err >&5
  8435. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8436. (exit $ac_status); } && {
  8437. test -z "$ac_c_werror_flag" ||
  8438. test ! -s conftest.err
  8439. } && test -s conftest.$ac_objext; then
  8440. ac_cv_type_int64_t=yes
  8441. else
  8442. echo "$as_me: failed program was:" >&5
  8443. sed 's/^/| /' conftest.$ac_ext >&5
  8444. ac_cv_type_int64_t=no
  8445. fi
  8446. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8447. fi
  8448. { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
  8449. echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
  8450. # The cast to long int works around a bug in the HP C Compiler
  8451. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  8452. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  8453. # This bug is HP SR number 8606223364.
  8454. { echo "$as_me:$LINENO: checking size of int64_t" >&5
  8455. echo $ECHO_N "checking size of int64_t... $ECHO_C" >&6; }
  8456. if test "${ac_cv_sizeof_int64_t+set}" = set; then
  8457. echo $ECHO_N "(cached) $ECHO_C" >&6
  8458. else
  8459. if test "$cross_compiling" = yes; then
  8460. # Depending upon the size, compute the lo and hi bounds.
  8461. cat >conftest.$ac_ext <<_ACEOF
  8462. /* confdefs.h. */
  8463. _ACEOF
  8464. cat confdefs.h >>conftest.$ac_ext
  8465. cat >>conftest.$ac_ext <<_ACEOF
  8466. /* end confdefs.h. */
  8467. $ac_includes_default
  8468. typedef int64_t ac__type_sizeof_;
  8469. int
  8470. main ()
  8471. {
  8472. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  8473. test_array [0] = 0
  8474. ;
  8475. return 0;
  8476. }
  8477. _ACEOF
  8478. rm -f conftest.$ac_objext
  8479. if { (ac_try="$ac_compile"
  8480. case "(($ac_try" in
  8481. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8482. *) ac_try_echo=$ac_try;;
  8483. esac
  8484. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8485. (eval "$ac_compile") 2>conftest.er1
  8486. ac_status=$?
  8487. grep -v '^ *+' conftest.er1 >conftest.err
  8488. rm -f conftest.er1
  8489. cat conftest.err >&5
  8490. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8491. (exit $ac_status); } && {
  8492. test -z "$ac_c_werror_flag" ||
  8493. test ! -s conftest.err
  8494. } && test -s conftest.$ac_objext; then
  8495. ac_lo=0 ac_mid=0
  8496. while :; do
  8497. cat >conftest.$ac_ext <<_ACEOF
  8498. /* confdefs.h. */
  8499. _ACEOF
  8500. cat confdefs.h >>conftest.$ac_ext
  8501. cat >>conftest.$ac_ext <<_ACEOF
  8502. /* end confdefs.h. */
  8503. $ac_includes_default
  8504. typedef int64_t ac__type_sizeof_;
  8505. int
  8506. main ()
  8507. {
  8508. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  8509. test_array [0] = 0
  8510. ;
  8511. return 0;
  8512. }
  8513. _ACEOF
  8514. rm -f conftest.$ac_objext
  8515. if { (ac_try="$ac_compile"
  8516. case "(($ac_try" in
  8517. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8518. *) ac_try_echo=$ac_try;;
  8519. esac
  8520. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8521. (eval "$ac_compile") 2>conftest.er1
  8522. ac_status=$?
  8523. grep -v '^ *+' conftest.er1 >conftest.err
  8524. rm -f conftest.er1
  8525. cat conftest.err >&5
  8526. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8527. (exit $ac_status); } && {
  8528. test -z "$ac_c_werror_flag" ||
  8529. test ! -s conftest.err
  8530. } && test -s conftest.$ac_objext; then
  8531. ac_hi=$ac_mid; break
  8532. else
  8533. echo "$as_me: failed program was:" >&5
  8534. sed 's/^/| /' conftest.$ac_ext >&5
  8535. ac_lo=`expr $ac_mid + 1`
  8536. if test $ac_lo -le $ac_mid; then
  8537. ac_lo= ac_hi=
  8538. break
  8539. fi
  8540. ac_mid=`expr 2 '*' $ac_mid + 1`
  8541. fi
  8542. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8543. done
  8544. else
  8545. echo "$as_me: failed program was:" >&5
  8546. sed 's/^/| /' conftest.$ac_ext >&5
  8547. cat >conftest.$ac_ext <<_ACEOF
  8548. /* confdefs.h. */
  8549. _ACEOF
  8550. cat confdefs.h >>conftest.$ac_ext
  8551. cat >>conftest.$ac_ext <<_ACEOF
  8552. /* end confdefs.h. */
  8553. $ac_includes_default
  8554. typedef int64_t ac__type_sizeof_;
  8555. int
  8556. main ()
  8557. {
  8558. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  8559. test_array [0] = 0
  8560. ;
  8561. return 0;
  8562. }
  8563. _ACEOF
  8564. rm -f conftest.$ac_objext
  8565. if { (ac_try="$ac_compile"
  8566. case "(($ac_try" in
  8567. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8568. *) ac_try_echo=$ac_try;;
  8569. esac
  8570. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8571. (eval "$ac_compile") 2>conftest.er1
  8572. ac_status=$?
  8573. grep -v '^ *+' conftest.er1 >conftest.err
  8574. rm -f conftest.er1
  8575. cat conftest.err >&5
  8576. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8577. (exit $ac_status); } && {
  8578. test -z "$ac_c_werror_flag" ||
  8579. test ! -s conftest.err
  8580. } && test -s conftest.$ac_objext; then
  8581. ac_hi=-1 ac_mid=-1
  8582. while :; do
  8583. cat >conftest.$ac_ext <<_ACEOF
  8584. /* confdefs.h. */
  8585. _ACEOF
  8586. cat confdefs.h >>conftest.$ac_ext
  8587. cat >>conftest.$ac_ext <<_ACEOF
  8588. /* end confdefs.h. */
  8589. $ac_includes_default
  8590. typedef int64_t ac__type_sizeof_;
  8591. int
  8592. main ()
  8593. {
  8594. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  8595. test_array [0] = 0
  8596. ;
  8597. return 0;
  8598. }
  8599. _ACEOF
  8600. rm -f conftest.$ac_objext
  8601. if { (ac_try="$ac_compile"
  8602. case "(($ac_try" in
  8603. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8604. *) ac_try_echo=$ac_try;;
  8605. esac
  8606. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8607. (eval "$ac_compile") 2>conftest.er1
  8608. ac_status=$?
  8609. grep -v '^ *+' conftest.er1 >conftest.err
  8610. rm -f conftest.er1
  8611. cat conftest.err >&5
  8612. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8613. (exit $ac_status); } && {
  8614. test -z "$ac_c_werror_flag" ||
  8615. test ! -s conftest.err
  8616. } && test -s conftest.$ac_objext; then
  8617. ac_lo=$ac_mid; break
  8618. else
  8619. echo "$as_me: failed program was:" >&5
  8620. sed 's/^/| /' conftest.$ac_ext >&5
  8621. ac_hi=`expr '(' $ac_mid ')' - 1`
  8622. if test $ac_mid -le $ac_hi; then
  8623. ac_lo= ac_hi=
  8624. break
  8625. fi
  8626. ac_mid=`expr 2 '*' $ac_mid`
  8627. fi
  8628. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8629. done
  8630. else
  8631. echo "$as_me: failed program was:" >&5
  8632. sed 's/^/| /' conftest.$ac_ext >&5
  8633. ac_lo= ac_hi=
  8634. fi
  8635. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8636. fi
  8637. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8638. # Binary search between lo and hi bounds.
  8639. while test "x$ac_lo" != "x$ac_hi"; do
  8640. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  8641. cat >conftest.$ac_ext <<_ACEOF
  8642. /* confdefs.h. */
  8643. _ACEOF
  8644. cat confdefs.h >>conftest.$ac_ext
  8645. cat >>conftest.$ac_ext <<_ACEOF
  8646. /* end confdefs.h. */
  8647. $ac_includes_default
  8648. typedef int64_t ac__type_sizeof_;
  8649. int
  8650. main ()
  8651. {
  8652. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  8653. test_array [0] = 0
  8654. ;
  8655. return 0;
  8656. }
  8657. _ACEOF
  8658. rm -f conftest.$ac_objext
  8659. if { (ac_try="$ac_compile"
  8660. case "(($ac_try" in
  8661. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8662. *) ac_try_echo=$ac_try;;
  8663. esac
  8664. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8665. (eval "$ac_compile") 2>conftest.er1
  8666. ac_status=$?
  8667. grep -v '^ *+' conftest.er1 >conftest.err
  8668. rm -f conftest.er1
  8669. cat conftest.err >&5
  8670. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8671. (exit $ac_status); } && {
  8672. test -z "$ac_c_werror_flag" ||
  8673. test ! -s conftest.err
  8674. } && test -s conftest.$ac_objext; then
  8675. ac_hi=$ac_mid
  8676. else
  8677. echo "$as_me: failed program was:" >&5
  8678. sed 's/^/| /' conftest.$ac_ext >&5
  8679. ac_lo=`expr '(' $ac_mid ')' + 1`
  8680. fi
  8681. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8682. done
  8683. case $ac_lo in
  8684. ?*) ac_cv_sizeof_int64_t=$ac_lo;;
  8685. '') if test "$ac_cv_type_int64_t" = yes; then
  8686. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int64_t)
  8687. See \`config.log' for more details." >&5
  8688. echo "$as_me: error: cannot compute sizeof (int64_t)
  8689. See \`config.log' for more details." >&2;}
  8690. { (exit 77); exit 77; }; }
  8691. else
  8692. ac_cv_sizeof_int64_t=0
  8693. fi ;;
  8694. esac
  8695. else
  8696. cat >conftest.$ac_ext <<_ACEOF
  8697. /* confdefs.h. */
  8698. _ACEOF
  8699. cat confdefs.h >>conftest.$ac_ext
  8700. cat >>conftest.$ac_ext <<_ACEOF
  8701. /* end confdefs.h. */
  8702. $ac_includes_default
  8703. typedef int64_t ac__type_sizeof_;
  8704. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  8705. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  8706. #include <stdio.h>
  8707. #include <stdlib.h>
  8708. int
  8709. main ()
  8710. {
  8711. FILE *f = fopen ("conftest.val", "w");
  8712. if (! f)
  8713. return 1;
  8714. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  8715. {
  8716. long int i = longval ();
  8717. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  8718. return 1;
  8719. fprintf (f, "%ld\n", i);
  8720. }
  8721. else
  8722. {
  8723. unsigned long int i = ulongval ();
  8724. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  8725. return 1;
  8726. fprintf (f, "%lu\n", i);
  8727. }
  8728. return ferror (f) || fclose (f) != 0;
  8729. ;
  8730. return 0;
  8731. }
  8732. _ACEOF
  8733. rm -f conftest$ac_exeext
  8734. if { (ac_try="$ac_link"
  8735. case "(($ac_try" in
  8736. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8737. *) ac_try_echo=$ac_try;;
  8738. esac
  8739. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8740. (eval "$ac_link") 2>&5
  8741. ac_status=$?
  8742. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8743. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8744. { (case "(($ac_try" in
  8745. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8746. *) ac_try_echo=$ac_try;;
  8747. esac
  8748. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8749. (eval "$ac_try") 2>&5
  8750. ac_status=$?
  8751. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8752. (exit $ac_status); }; }; then
  8753. ac_cv_sizeof_int64_t=`cat conftest.val`
  8754. else
  8755. echo "$as_me: program exited with status $ac_status" >&5
  8756. echo "$as_me: failed program was:" >&5
  8757. sed 's/^/| /' conftest.$ac_ext >&5
  8758. ( exit $ac_status )
  8759. if test "$ac_cv_type_int64_t" = yes; then
  8760. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int64_t)
  8761. See \`config.log' for more details." >&5
  8762. echo "$as_me: error: cannot compute sizeof (int64_t)
  8763. See \`config.log' for more details." >&2;}
  8764. { (exit 77); exit 77; }; }
  8765. else
  8766. ac_cv_sizeof_int64_t=0
  8767. fi
  8768. fi
  8769. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8770. fi
  8771. rm -f conftest.val
  8772. fi
  8773. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int64_t" >&5
  8774. echo "${ECHO_T}$ac_cv_sizeof_int64_t" >&6; }
  8775. cat >>confdefs.h <<_ACEOF
  8776. #define SIZEOF_INT64_T $ac_cv_sizeof_int64_t
  8777. _ACEOF
  8778. { echo "$as_me:$LINENO: checking for off_t" >&5
  8779. echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
  8780. if test "${ac_cv_type_off_t+set}" = set; then
  8781. echo $ECHO_N "(cached) $ECHO_C" >&6
  8782. else
  8783. cat >conftest.$ac_ext <<_ACEOF
  8784. /* confdefs.h. */
  8785. _ACEOF
  8786. cat confdefs.h >>conftest.$ac_ext
  8787. cat >>conftest.$ac_ext <<_ACEOF
  8788. /* end confdefs.h. */
  8789. $ac_includes_default
  8790. typedef off_t ac__type_new_;
  8791. int
  8792. main ()
  8793. {
  8794. if ((ac__type_new_ *) 0)
  8795. return 0;
  8796. if (sizeof (ac__type_new_))
  8797. return 0;
  8798. ;
  8799. return 0;
  8800. }
  8801. _ACEOF
  8802. rm -f conftest.$ac_objext
  8803. if { (ac_try="$ac_compile"
  8804. case "(($ac_try" in
  8805. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8806. *) ac_try_echo=$ac_try;;
  8807. esac
  8808. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8809. (eval "$ac_compile") 2>conftest.er1
  8810. ac_status=$?
  8811. grep -v '^ *+' conftest.er1 >conftest.err
  8812. rm -f conftest.er1
  8813. cat conftest.err >&5
  8814. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8815. (exit $ac_status); } && {
  8816. test -z "$ac_c_werror_flag" ||
  8817. test ! -s conftest.err
  8818. } && test -s conftest.$ac_objext; then
  8819. ac_cv_type_off_t=yes
  8820. else
  8821. echo "$as_me: failed program was:" >&5
  8822. sed 's/^/| /' conftest.$ac_ext >&5
  8823. ac_cv_type_off_t=no
  8824. fi
  8825. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8826. fi
  8827. { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
  8828. echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
  8829. # The cast to long int works around a bug in the HP C Compiler
  8830. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  8831. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  8832. # This bug is HP SR number 8606223364.
  8833. { echo "$as_me:$LINENO: checking size of off_t" >&5
  8834. echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
  8835. if test "${ac_cv_sizeof_off_t+set}" = set; then
  8836. echo $ECHO_N "(cached) $ECHO_C" >&6
  8837. else
  8838. if test "$cross_compiling" = yes; then
  8839. # Depending upon the size, compute the lo and hi bounds.
  8840. cat >conftest.$ac_ext <<_ACEOF
  8841. /* confdefs.h. */
  8842. _ACEOF
  8843. cat confdefs.h >>conftest.$ac_ext
  8844. cat >>conftest.$ac_ext <<_ACEOF
  8845. /* end confdefs.h. */
  8846. $ac_includes_default
  8847. typedef off_t ac__type_sizeof_;
  8848. int
  8849. main ()
  8850. {
  8851. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  8852. test_array [0] = 0
  8853. ;
  8854. return 0;
  8855. }
  8856. _ACEOF
  8857. rm -f conftest.$ac_objext
  8858. if { (ac_try="$ac_compile"
  8859. case "(($ac_try" in
  8860. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8861. *) ac_try_echo=$ac_try;;
  8862. esac
  8863. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8864. (eval "$ac_compile") 2>conftest.er1
  8865. ac_status=$?
  8866. grep -v '^ *+' conftest.er1 >conftest.err
  8867. rm -f conftest.er1
  8868. cat conftest.err >&5
  8869. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8870. (exit $ac_status); } && {
  8871. test -z "$ac_c_werror_flag" ||
  8872. test ! -s conftest.err
  8873. } && test -s conftest.$ac_objext; then
  8874. ac_lo=0 ac_mid=0
  8875. while :; do
  8876. cat >conftest.$ac_ext <<_ACEOF
  8877. /* confdefs.h. */
  8878. _ACEOF
  8879. cat confdefs.h >>conftest.$ac_ext
  8880. cat >>conftest.$ac_ext <<_ACEOF
  8881. /* end confdefs.h. */
  8882. $ac_includes_default
  8883. typedef off_t ac__type_sizeof_;
  8884. int
  8885. main ()
  8886. {
  8887. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  8888. test_array [0] = 0
  8889. ;
  8890. return 0;
  8891. }
  8892. _ACEOF
  8893. rm -f conftest.$ac_objext
  8894. if { (ac_try="$ac_compile"
  8895. case "(($ac_try" in
  8896. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8897. *) ac_try_echo=$ac_try;;
  8898. esac
  8899. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8900. (eval "$ac_compile") 2>conftest.er1
  8901. ac_status=$?
  8902. grep -v '^ *+' conftest.er1 >conftest.err
  8903. rm -f conftest.er1
  8904. cat conftest.err >&5
  8905. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8906. (exit $ac_status); } && {
  8907. test -z "$ac_c_werror_flag" ||
  8908. test ! -s conftest.err
  8909. } && test -s conftest.$ac_objext; then
  8910. ac_hi=$ac_mid; break
  8911. else
  8912. echo "$as_me: failed program was:" >&5
  8913. sed 's/^/| /' conftest.$ac_ext >&5
  8914. ac_lo=`expr $ac_mid + 1`
  8915. if test $ac_lo -le $ac_mid; then
  8916. ac_lo= ac_hi=
  8917. break
  8918. fi
  8919. ac_mid=`expr 2 '*' $ac_mid + 1`
  8920. fi
  8921. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8922. done
  8923. else
  8924. echo "$as_me: failed program was:" >&5
  8925. sed 's/^/| /' conftest.$ac_ext >&5
  8926. cat >conftest.$ac_ext <<_ACEOF
  8927. /* confdefs.h. */
  8928. _ACEOF
  8929. cat confdefs.h >>conftest.$ac_ext
  8930. cat >>conftest.$ac_ext <<_ACEOF
  8931. /* end confdefs.h. */
  8932. $ac_includes_default
  8933. typedef off_t ac__type_sizeof_;
  8934. int
  8935. main ()
  8936. {
  8937. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  8938. test_array [0] = 0
  8939. ;
  8940. return 0;
  8941. }
  8942. _ACEOF
  8943. rm -f conftest.$ac_objext
  8944. if { (ac_try="$ac_compile"
  8945. case "(($ac_try" in
  8946. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8947. *) ac_try_echo=$ac_try;;
  8948. esac
  8949. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8950. (eval "$ac_compile") 2>conftest.er1
  8951. ac_status=$?
  8952. grep -v '^ *+' conftest.er1 >conftest.err
  8953. rm -f conftest.er1
  8954. cat conftest.err >&5
  8955. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8956. (exit $ac_status); } && {
  8957. test -z "$ac_c_werror_flag" ||
  8958. test ! -s conftest.err
  8959. } && test -s conftest.$ac_objext; then
  8960. ac_hi=-1 ac_mid=-1
  8961. while :; do
  8962. cat >conftest.$ac_ext <<_ACEOF
  8963. /* confdefs.h. */
  8964. _ACEOF
  8965. cat confdefs.h >>conftest.$ac_ext
  8966. cat >>conftest.$ac_ext <<_ACEOF
  8967. /* end confdefs.h. */
  8968. $ac_includes_default
  8969. typedef off_t ac__type_sizeof_;
  8970. int
  8971. main ()
  8972. {
  8973. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  8974. test_array [0] = 0
  8975. ;
  8976. return 0;
  8977. }
  8978. _ACEOF
  8979. rm -f conftest.$ac_objext
  8980. if { (ac_try="$ac_compile"
  8981. case "(($ac_try" in
  8982. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8983. *) ac_try_echo=$ac_try;;
  8984. esac
  8985. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8986. (eval "$ac_compile") 2>conftest.er1
  8987. ac_status=$?
  8988. grep -v '^ *+' conftest.er1 >conftest.err
  8989. rm -f conftest.er1
  8990. cat conftest.err >&5
  8991. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8992. (exit $ac_status); } && {
  8993. test -z "$ac_c_werror_flag" ||
  8994. test ! -s conftest.err
  8995. } && test -s conftest.$ac_objext; then
  8996. ac_lo=$ac_mid; break
  8997. else
  8998. echo "$as_me: failed program was:" >&5
  8999. sed 's/^/| /' conftest.$ac_ext >&5
  9000. ac_hi=`expr '(' $ac_mid ')' - 1`
  9001. if test $ac_mid -le $ac_hi; then
  9002. ac_lo= ac_hi=
  9003. break
  9004. fi
  9005. ac_mid=`expr 2 '*' $ac_mid`
  9006. fi
  9007. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9008. done
  9009. else
  9010. echo "$as_me: failed program was:" >&5
  9011. sed 's/^/| /' conftest.$ac_ext >&5
  9012. ac_lo= ac_hi=
  9013. fi
  9014. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9015. fi
  9016. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9017. # Binary search between lo and hi bounds.
  9018. while test "x$ac_lo" != "x$ac_hi"; do
  9019. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  9020. cat >conftest.$ac_ext <<_ACEOF
  9021. /* confdefs.h. */
  9022. _ACEOF
  9023. cat confdefs.h >>conftest.$ac_ext
  9024. cat >>conftest.$ac_ext <<_ACEOF
  9025. /* end confdefs.h. */
  9026. $ac_includes_default
  9027. typedef off_t ac__type_sizeof_;
  9028. int
  9029. main ()
  9030. {
  9031. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  9032. test_array [0] = 0
  9033. ;
  9034. return 0;
  9035. }
  9036. _ACEOF
  9037. rm -f conftest.$ac_objext
  9038. if { (ac_try="$ac_compile"
  9039. case "(($ac_try" in
  9040. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9041. *) ac_try_echo=$ac_try;;
  9042. esac
  9043. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9044. (eval "$ac_compile") 2>conftest.er1
  9045. ac_status=$?
  9046. grep -v '^ *+' conftest.er1 >conftest.err
  9047. rm -f conftest.er1
  9048. cat conftest.err >&5
  9049. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9050. (exit $ac_status); } && {
  9051. test -z "$ac_c_werror_flag" ||
  9052. test ! -s conftest.err
  9053. } && test -s conftest.$ac_objext; then
  9054. ac_hi=$ac_mid
  9055. else
  9056. echo "$as_me: failed program was:" >&5
  9057. sed 's/^/| /' conftest.$ac_ext >&5
  9058. ac_lo=`expr '(' $ac_mid ')' + 1`
  9059. fi
  9060. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9061. done
  9062. case $ac_lo in
  9063. ?*) ac_cv_sizeof_off_t=$ac_lo;;
  9064. '') if test "$ac_cv_type_off_t" = yes; then
  9065. { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
  9066. See \`config.log' for more details." >&5
  9067. echo "$as_me: error: cannot compute sizeof (off_t)
  9068. See \`config.log' for more details." >&2;}
  9069. { (exit 77); exit 77; }; }
  9070. else
  9071. ac_cv_sizeof_off_t=0
  9072. fi ;;
  9073. esac
  9074. else
  9075. cat >conftest.$ac_ext <<_ACEOF
  9076. /* confdefs.h. */
  9077. _ACEOF
  9078. cat confdefs.h >>conftest.$ac_ext
  9079. cat >>conftest.$ac_ext <<_ACEOF
  9080. /* end confdefs.h. */
  9081. $ac_includes_default
  9082. typedef off_t ac__type_sizeof_;
  9083. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  9084. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  9085. #include <stdio.h>
  9086. #include <stdlib.h>
  9087. int
  9088. main ()
  9089. {
  9090. FILE *f = fopen ("conftest.val", "w");
  9091. if (! f)
  9092. return 1;
  9093. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  9094. {
  9095. long int i = longval ();
  9096. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  9097. return 1;
  9098. fprintf (f, "%ld\n", i);
  9099. }
  9100. else
  9101. {
  9102. unsigned long int i = ulongval ();
  9103. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  9104. return 1;
  9105. fprintf (f, "%lu\n", i);
  9106. }
  9107. return ferror (f) || fclose (f) != 0;
  9108. ;
  9109. return 0;
  9110. }
  9111. _ACEOF
  9112. rm -f conftest$ac_exeext
  9113. if { (ac_try="$ac_link"
  9114. case "(($ac_try" in
  9115. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9116. *) ac_try_echo=$ac_try;;
  9117. esac
  9118. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9119. (eval "$ac_link") 2>&5
  9120. ac_status=$?
  9121. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9122. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9123. { (case "(($ac_try" in
  9124. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9125. *) ac_try_echo=$ac_try;;
  9126. esac
  9127. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9128. (eval "$ac_try") 2>&5
  9129. ac_status=$?
  9130. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9131. (exit $ac_status); }; }; then
  9132. ac_cv_sizeof_off_t=`cat conftest.val`
  9133. else
  9134. echo "$as_me: program exited with status $ac_status" >&5
  9135. echo "$as_me: failed program was:" >&5
  9136. sed 's/^/| /' conftest.$ac_ext >&5
  9137. ( exit $ac_status )
  9138. if test "$ac_cv_type_off_t" = yes; then
  9139. { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
  9140. See \`config.log' for more details." >&5
  9141. echo "$as_me: error: cannot compute sizeof (off_t)
  9142. See \`config.log' for more details." >&2;}
  9143. { (exit 77); exit 77; }; }
  9144. else
  9145. ac_cv_sizeof_off_t=0
  9146. fi
  9147. fi
  9148. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9149. fi
  9150. rm -f conftest.val
  9151. fi
  9152. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
  9153. echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
  9154. cat >>confdefs.h <<_ACEOF
  9155. #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
  9156. _ACEOF
  9157. { echo "$as_me:$LINENO: checking for off64_t" >&5
  9158. echo $ECHO_N "checking for off64_t... $ECHO_C" >&6; }
  9159. if test "${ac_cv_type_off64_t+set}" = set; then
  9160. echo $ECHO_N "(cached) $ECHO_C" >&6
  9161. else
  9162. cat >conftest.$ac_ext <<_ACEOF
  9163. /* confdefs.h. */
  9164. _ACEOF
  9165. cat confdefs.h >>conftest.$ac_ext
  9166. cat >>conftest.$ac_ext <<_ACEOF
  9167. /* end confdefs.h. */
  9168. $ac_includes_default
  9169. typedef off64_t ac__type_new_;
  9170. int
  9171. main ()
  9172. {
  9173. if ((ac__type_new_ *) 0)
  9174. return 0;
  9175. if (sizeof (ac__type_new_))
  9176. return 0;
  9177. ;
  9178. return 0;
  9179. }
  9180. _ACEOF
  9181. rm -f conftest.$ac_objext
  9182. if { (ac_try="$ac_compile"
  9183. case "(($ac_try" in
  9184. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9185. *) ac_try_echo=$ac_try;;
  9186. esac
  9187. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9188. (eval "$ac_compile") 2>conftest.er1
  9189. ac_status=$?
  9190. grep -v '^ *+' conftest.er1 >conftest.err
  9191. rm -f conftest.er1
  9192. cat conftest.err >&5
  9193. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9194. (exit $ac_status); } && {
  9195. test -z "$ac_c_werror_flag" ||
  9196. test ! -s conftest.err
  9197. } && test -s conftest.$ac_objext; then
  9198. ac_cv_type_off64_t=yes
  9199. else
  9200. echo "$as_me: failed program was:" >&5
  9201. sed 's/^/| /' conftest.$ac_ext >&5
  9202. ac_cv_type_off64_t=no
  9203. fi
  9204. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9205. fi
  9206. { echo "$as_me:$LINENO: result: $ac_cv_type_off64_t" >&5
  9207. echo "${ECHO_T}$ac_cv_type_off64_t" >&6; }
  9208. # The cast to long int works around a bug in the HP C Compiler
  9209. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  9210. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  9211. # This bug is HP SR number 8606223364.
  9212. { echo "$as_me:$LINENO: checking size of off64_t" >&5
  9213. echo $ECHO_N "checking size of off64_t... $ECHO_C" >&6; }
  9214. if test "${ac_cv_sizeof_off64_t+set}" = set; then
  9215. echo $ECHO_N "(cached) $ECHO_C" >&6
  9216. else
  9217. if test "$cross_compiling" = yes; then
  9218. # Depending upon the size, compute the lo and hi bounds.
  9219. cat >conftest.$ac_ext <<_ACEOF
  9220. /* confdefs.h. */
  9221. _ACEOF
  9222. cat confdefs.h >>conftest.$ac_ext
  9223. cat >>conftest.$ac_ext <<_ACEOF
  9224. /* end confdefs.h. */
  9225. $ac_includes_default
  9226. typedef off64_t ac__type_sizeof_;
  9227. int
  9228. main ()
  9229. {
  9230. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  9231. test_array [0] = 0
  9232. ;
  9233. return 0;
  9234. }
  9235. _ACEOF
  9236. rm -f conftest.$ac_objext
  9237. if { (ac_try="$ac_compile"
  9238. case "(($ac_try" in
  9239. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9240. *) ac_try_echo=$ac_try;;
  9241. esac
  9242. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9243. (eval "$ac_compile") 2>conftest.er1
  9244. ac_status=$?
  9245. grep -v '^ *+' conftest.er1 >conftest.err
  9246. rm -f conftest.er1
  9247. cat conftest.err >&5
  9248. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9249. (exit $ac_status); } && {
  9250. test -z "$ac_c_werror_flag" ||
  9251. test ! -s conftest.err
  9252. } && test -s conftest.$ac_objext; then
  9253. ac_lo=0 ac_mid=0
  9254. while :; do
  9255. cat >conftest.$ac_ext <<_ACEOF
  9256. /* confdefs.h. */
  9257. _ACEOF
  9258. cat confdefs.h >>conftest.$ac_ext
  9259. cat >>conftest.$ac_ext <<_ACEOF
  9260. /* end confdefs.h. */
  9261. $ac_includes_default
  9262. typedef off64_t ac__type_sizeof_;
  9263. int
  9264. main ()
  9265. {
  9266. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  9267. test_array [0] = 0
  9268. ;
  9269. return 0;
  9270. }
  9271. _ACEOF
  9272. rm -f conftest.$ac_objext
  9273. if { (ac_try="$ac_compile"
  9274. case "(($ac_try" in
  9275. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9276. *) ac_try_echo=$ac_try;;
  9277. esac
  9278. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9279. (eval "$ac_compile") 2>conftest.er1
  9280. ac_status=$?
  9281. grep -v '^ *+' conftest.er1 >conftest.err
  9282. rm -f conftest.er1
  9283. cat conftest.err >&5
  9284. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9285. (exit $ac_status); } && {
  9286. test -z "$ac_c_werror_flag" ||
  9287. test ! -s conftest.err
  9288. } && test -s conftest.$ac_objext; then
  9289. ac_hi=$ac_mid; break
  9290. else
  9291. echo "$as_me: failed program was:" >&5
  9292. sed 's/^/| /' conftest.$ac_ext >&5
  9293. ac_lo=`expr $ac_mid + 1`
  9294. if test $ac_lo -le $ac_mid; then
  9295. ac_lo= ac_hi=
  9296. break
  9297. fi
  9298. ac_mid=`expr 2 '*' $ac_mid + 1`
  9299. fi
  9300. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9301. done
  9302. else
  9303. echo "$as_me: failed program was:" >&5
  9304. sed 's/^/| /' conftest.$ac_ext >&5
  9305. cat >conftest.$ac_ext <<_ACEOF
  9306. /* confdefs.h. */
  9307. _ACEOF
  9308. cat confdefs.h >>conftest.$ac_ext
  9309. cat >>conftest.$ac_ext <<_ACEOF
  9310. /* end confdefs.h. */
  9311. $ac_includes_default
  9312. typedef off64_t ac__type_sizeof_;
  9313. int
  9314. main ()
  9315. {
  9316. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  9317. test_array [0] = 0
  9318. ;
  9319. return 0;
  9320. }
  9321. _ACEOF
  9322. rm -f conftest.$ac_objext
  9323. if { (ac_try="$ac_compile"
  9324. case "(($ac_try" in
  9325. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9326. *) ac_try_echo=$ac_try;;
  9327. esac
  9328. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9329. (eval "$ac_compile") 2>conftest.er1
  9330. ac_status=$?
  9331. grep -v '^ *+' conftest.er1 >conftest.err
  9332. rm -f conftest.er1
  9333. cat conftest.err >&5
  9334. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9335. (exit $ac_status); } && {
  9336. test -z "$ac_c_werror_flag" ||
  9337. test ! -s conftest.err
  9338. } && test -s conftest.$ac_objext; then
  9339. ac_hi=-1 ac_mid=-1
  9340. while :; do
  9341. cat >conftest.$ac_ext <<_ACEOF
  9342. /* confdefs.h. */
  9343. _ACEOF
  9344. cat confdefs.h >>conftest.$ac_ext
  9345. cat >>conftest.$ac_ext <<_ACEOF
  9346. /* end confdefs.h. */
  9347. $ac_includes_default
  9348. typedef off64_t ac__type_sizeof_;
  9349. int
  9350. main ()
  9351. {
  9352. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  9353. test_array [0] = 0
  9354. ;
  9355. return 0;
  9356. }
  9357. _ACEOF
  9358. rm -f conftest.$ac_objext
  9359. if { (ac_try="$ac_compile"
  9360. case "(($ac_try" in
  9361. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9362. *) ac_try_echo=$ac_try;;
  9363. esac
  9364. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9365. (eval "$ac_compile") 2>conftest.er1
  9366. ac_status=$?
  9367. grep -v '^ *+' conftest.er1 >conftest.err
  9368. rm -f conftest.er1
  9369. cat conftest.err >&5
  9370. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9371. (exit $ac_status); } && {
  9372. test -z "$ac_c_werror_flag" ||
  9373. test ! -s conftest.err
  9374. } && test -s conftest.$ac_objext; then
  9375. ac_lo=$ac_mid; break
  9376. else
  9377. echo "$as_me: failed program was:" >&5
  9378. sed 's/^/| /' conftest.$ac_ext >&5
  9379. ac_hi=`expr '(' $ac_mid ')' - 1`
  9380. if test $ac_mid -le $ac_hi; then
  9381. ac_lo= ac_hi=
  9382. break
  9383. fi
  9384. ac_mid=`expr 2 '*' $ac_mid`
  9385. fi
  9386. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9387. done
  9388. else
  9389. echo "$as_me: failed program was:" >&5
  9390. sed 's/^/| /' conftest.$ac_ext >&5
  9391. ac_lo= ac_hi=
  9392. fi
  9393. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9394. fi
  9395. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9396. # Binary search between lo and hi bounds.
  9397. while test "x$ac_lo" != "x$ac_hi"; do
  9398. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  9399. cat >conftest.$ac_ext <<_ACEOF
  9400. /* confdefs.h. */
  9401. _ACEOF
  9402. cat confdefs.h >>conftest.$ac_ext
  9403. cat >>conftest.$ac_ext <<_ACEOF
  9404. /* end confdefs.h. */
  9405. $ac_includes_default
  9406. typedef off64_t ac__type_sizeof_;
  9407. int
  9408. main ()
  9409. {
  9410. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  9411. test_array [0] = 0
  9412. ;
  9413. return 0;
  9414. }
  9415. _ACEOF
  9416. rm -f conftest.$ac_objext
  9417. if { (ac_try="$ac_compile"
  9418. case "(($ac_try" in
  9419. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9420. *) ac_try_echo=$ac_try;;
  9421. esac
  9422. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9423. (eval "$ac_compile") 2>conftest.er1
  9424. ac_status=$?
  9425. grep -v '^ *+' conftest.er1 >conftest.err
  9426. rm -f conftest.er1
  9427. cat conftest.err >&5
  9428. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9429. (exit $ac_status); } && {
  9430. test -z "$ac_c_werror_flag" ||
  9431. test ! -s conftest.err
  9432. } && test -s conftest.$ac_objext; then
  9433. ac_hi=$ac_mid
  9434. else
  9435. echo "$as_me: failed program was:" >&5
  9436. sed 's/^/| /' conftest.$ac_ext >&5
  9437. ac_lo=`expr '(' $ac_mid ')' + 1`
  9438. fi
  9439. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9440. done
  9441. case $ac_lo in
  9442. ?*) ac_cv_sizeof_off64_t=$ac_lo;;
  9443. '') if test "$ac_cv_type_off64_t" = yes; then
  9444. { { echo "$as_me:$LINENO: error: cannot compute sizeof (off64_t)
  9445. See \`config.log' for more details." >&5
  9446. echo "$as_me: error: cannot compute sizeof (off64_t)
  9447. See \`config.log' for more details." >&2;}
  9448. { (exit 77); exit 77; }; }
  9449. else
  9450. ac_cv_sizeof_off64_t=0
  9451. fi ;;
  9452. esac
  9453. else
  9454. cat >conftest.$ac_ext <<_ACEOF
  9455. /* confdefs.h. */
  9456. _ACEOF
  9457. cat confdefs.h >>conftest.$ac_ext
  9458. cat >>conftest.$ac_ext <<_ACEOF
  9459. /* end confdefs.h. */
  9460. $ac_includes_default
  9461. typedef off64_t ac__type_sizeof_;
  9462. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  9463. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  9464. #include <stdio.h>
  9465. #include <stdlib.h>
  9466. int
  9467. main ()
  9468. {
  9469. FILE *f = fopen ("conftest.val", "w");
  9470. if (! f)
  9471. return 1;
  9472. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  9473. {
  9474. long int i = longval ();
  9475. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  9476. return 1;
  9477. fprintf (f, "%ld\n", i);
  9478. }
  9479. else
  9480. {
  9481. unsigned long int i = ulongval ();
  9482. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  9483. return 1;
  9484. fprintf (f, "%lu\n", i);
  9485. }
  9486. return ferror (f) || fclose (f) != 0;
  9487. ;
  9488. return 0;
  9489. }
  9490. _ACEOF
  9491. rm -f conftest$ac_exeext
  9492. if { (ac_try="$ac_link"
  9493. case "(($ac_try" in
  9494. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9495. *) ac_try_echo=$ac_try;;
  9496. esac
  9497. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9498. (eval "$ac_link") 2>&5
  9499. ac_status=$?
  9500. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9501. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9502. { (case "(($ac_try" in
  9503. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9504. *) ac_try_echo=$ac_try;;
  9505. esac
  9506. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9507. (eval "$ac_try") 2>&5
  9508. ac_status=$?
  9509. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9510. (exit $ac_status); }; }; then
  9511. ac_cv_sizeof_off64_t=`cat conftest.val`
  9512. else
  9513. echo "$as_me: program exited with status $ac_status" >&5
  9514. echo "$as_me: failed program was:" >&5
  9515. sed 's/^/| /' conftest.$ac_ext >&5
  9516. ( exit $ac_status )
  9517. if test "$ac_cv_type_off64_t" = yes; then
  9518. { { echo "$as_me:$LINENO: error: cannot compute sizeof (off64_t)
  9519. See \`config.log' for more details." >&5
  9520. echo "$as_me: error: cannot compute sizeof (off64_t)
  9521. See \`config.log' for more details." >&2;}
  9522. { (exit 77); exit 77; }; }
  9523. else
  9524. ac_cv_sizeof_off64_t=0
  9525. fi
  9526. fi
  9527. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9528. fi
  9529. rm -f conftest.val
  9530. fi
  9531. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off64_t" >&5
  9532. echo "${ECHO_T}$ac_cv_sizeof_off64_t" >&6; }
  9533. cat >>confdefs.h <<_ACEOF
  9534. #define SIZEOF_OFF64_T $ac_cv_sizeof_off64_t
  9535. _ACEOF
  9536. { echo "$as_me:$LINENO: checking for time_t" >&5
  9537. echo $ECHO_N "checking for time_t... $ECHO_C" >&6; }
  9538. if test "${ac_cv_type_time_t+set}" = set; then
  9539. echo $ECHO_N "(cached) $ECHO_C" >&6
  9540. else
  9541. cat >conftest.$ac_ext <<_ACEOF
  9542. /* confdefs.h. */
  9543. _ACEOF
  9544. cat confdefs.h >>conftest.$ac_ext
  9545. cat >>conftest.$ac_ext <<_ACEOF
  9546. /* end confdefs.h. */
  9547. $ac_includes_default
  9548. typedef time_t ac__type_new_;
  9549. int
  9550. main ()
  9551. {
  9552. if ((ac__type_new_ *) 0)
  9553. return 0;
  9554. if (sizeof (ac__type_new_))
  9555. return 0;
  9556. ;
  9557. return 0;
  9558. }
  9559. _ACEOF
  9560. rm -f conftest.$ac_objext
  9561. if { (ac_try="$ac_compile"
  9562. case "(($ac_try" in
  9563. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9564. *) ac_try_echo=$ac_try;;
  9565. esac
  9566. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9567. (eval "$ac_compile") 2>conftest.er1
  9568. ac_status=$?
  9569. grep -v '^ *+' conftest.er1 >conftest.err
  9570. rm -f conftest.er1
  9571. cat conftest.err >&5
  9572. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9573. (exit $ac_status); } && {
  9574. test -z "$ac_c_werror_flag" ||
  9575. test ! -s conftest.err
  9576. } && test -s conftest.$ac_objext; then
  9577. ac_cv_type_time_t=yes
  9578. else
  9579. echo "$as_me: failed program was:" >&5
  9580. sed 's/^/| /' conftest.$ac_ext >&5
  9581. ac_cv_type_time_t=no
  9582. fi
  9583. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9584. fi
  9585. { echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
  9586. echo "${ECHO_T}$ac_cv_type_time_t" >&6; }
  9587. # The cast to long int works around a bug in the HP C Compiler
  9588. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  9589. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  9590. # This bug is HP SR number 8606223364.
  9591. { echo "$as_me:$LINENO: checking size of time_t" >&5
  9592. echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
  9593. if test "${ac_cv_sizeof_time_t+set}" = set; then
  9594. echo $ECHO_N "(cached) $ECHO_C" >&6
  9595. else
  9596. if test "$cross_compiling" = yes; then
  9597. # Depending upon the size, compute the lo and hi bounds.
  9598. cat >conftest.$ac_ext <<_ACEOF
  9599. /* confdefs.h. */
  9600. _ACEOF
  9601. cat confdefs.h >>conftest.$ac_ext
  9602. cat >>conftest.$ac_ext <<_ACEOF
  9603. /* end confdefs.h. */
  9604. $ac_includes_default
  9605. typedef time_t ac__type_sizeof_;
  9606. int
  9607. main ()
  9608. {
  9609. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  9610. test_array [0] = 0
  9611. ;
  9612. return 0;
  9613. }
  9614. _ACEOF
  9615. rm -f conftest.$ac_objext
  9616. if { (ac_try="$ac_compile"
  9617. case "(($ac_try" in
  9618. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9619. *) ac_try_echo=$ac_try;;
  9620. esac
  9621. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9622. (eval "$ac_compile") 2>conftest.er1
  9623. ac_status=$?
  9624. grep -v '^ *+' conftest.er1 >conftest.err
  9625. rm -f conftest.er1
  9626. cat conftest.err >&5
  9627. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9628. (exit $ac_status); } && {
  9629. test -z "$ac_c_werror_flag" ||
  9630. test ! -s conftest.err
  9631. } && test -s conftest.$ac_objext; then
  9632. ac_lo=0 ac_mid=0
  9633. while :; do
  9634. cat >conftest.$ac_ext <<_ACEOF
  9635. /* confdefs.h. */
  9636. _ACEOF
  9637. cat confdefs.h >>conftest.$ac_ext
  9638. cat >>conftest.$ac_ext <<_ACEOF
  9639. /* end confdefs.h. */
  9640. $ac_includes_default
  9641. typedef time_t ac__type_sizeof_;
  9642. int
  9643. main ()
  9644. {
  9645. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  9646. test_array [0] = 0
  9647. ;
  9648. return 0;
  9649. }
  9650. _ACEOF
  9651. rm -f conftest.$ac_objext
  9652. if { (ac_try="$ac_compile"
  9653. case "(($ac_try" in
  9654. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9655. *) ac_try_echo=$ac_try;;
  9656. esac
  9657. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9658. (eval "$ac_compile") 2>conftest.er1
  9659. ac_status=$?
  9660. grep -v '^ *+' conftest.er1 >conftest.err
  9661. rm -f conftest.er1
  9662. cat conftest.err >&5
  9663. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9664. (exit $ac_status); } && {
  9665. test -z "$ac_c_werror_flag" ||
  9666. test ! -s conftest.err
  9667. } && test -s conftest.$ac_objext; then
  9668. ac_hi=$ac_mid; break
  9669. else
  9670. echo "$as_me: failed program was:" >&5
  9671. sed 's/^/| /' conftest.$ac_ext >&5
  9672. ac_lo=`expr $ac_mid + 1`
  9673. if test $ac_lo -le $ac_mid; then
  9674. ac_lo= ac_hi=
  9675. break
  9676. fi
  9677. ac_mid=`expr 2 '*' $ac_mid + 1`
  9678. fi
  9679. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9680. done
  9681. else
  9682. echo "$as_me: failed program was:" >&5
  9683. sed 's/^/| /' conftest.$ac_ext >&5
  9684. cat >conftest.$ac_ext <<_ACEOF
  9685. /* confdefs.h. */
  9686. _ACEOF
  9687. cat confdefs.h >>conftest.$ac_ext
  9688. cat >>conftest.$ac_ext <<_ACEOF
  9689. /* end confdefs.h. */
  9690. $ac_includes_default
  9691. typedef time_t ac__type_sizeof_;
  9692. int
  9693. main ()
  9694. {
  9695. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  9696. test_array [0] = 0
  9697. ;
  9698. return 0;
  9699. }
  9700. _ACEOF
  9701. rm -f conftest.$ac_objext
  9702. if { (ac_try="$ac_compile"
  9703. case "(($ac_try" in
  9704. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9705. *) ac_try_echo=$ac_try;;
  9706. esac
  9707. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9708. (eval "$ac_compile") 2>conftest.er1
  9709. ac_status=$?
  9710. grep -v '^ *+' conftest.er1 >conftest.err
  9711. rm -f conftest.er1
  9712. cat conftest.err >&5
  9713. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9714. (exit $ac_status); } && {
  9715. test -z "$ac_c_werror_flag" ||
  9716. test ! -s conftest.err
  9717. } && test -s conftest.$ac_objext; then
  9718. ac_hi=-1 ac_mid=-1
  9719. while :; do
  9720. cat >conftest.$ac_ext <<_ACEOF
  9721. /* confdefs.h. */
  9722. _ACEOF
  9723. cat confdefs.h >>conftest.$ac_ext
  9724. cat >>conftest.$ac_ext <<_ACEOF
  9725. /* end confdefs.h. */
  9726. $ac_includes_default
  9727. typedef time_t ac__type_sizeof_;
  9728. int
  9729. main ()
  9730. {
  9731. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  9732. test_array [0] = 0
  9733. ;
  9734. return 0;
  9735. }
  9736. _ACEOF
  9737. rm -f conftest.$ac_objext
  9738. if { (ac_try="$ac_compile"
  9739. case "(($ac_try" in
  9740. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9741. *) ac_try_echo=$ac_try;;
  9742. esac
  9743. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9744. (eval "$ac_compile") 2>conftest.er1
  9745. ac_status=$?
  9746. grep -v '^ *+' conftest.er1 >conftest.err
  9747. rm -f conftest.er1
  9748. cat conftest.err >&5
  9749. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9750. (exit $ac_status); } && {
  9751. test -z "$ac_c_werror_flag" ||
  9752. test ! -s conftest.err
  9753. } && test -s conftest.$ac_objext; then
  9754. ac_lo=$ac_mid; break
  9755. else
  9756. echo "$as_me: failed program was:" >&5
  9757. sed 's/^/| /' conftest.$ac_ext >&5
  9758. ac_hi=`expr '(' $ac_mid ')' - 1`
  9759. if test $ac_mid -le $ac_hi; then
  9760. ac_lo= ac_hi=
  9761. break
  9762. fi
  9763. ac_mid=`expr 2 '*' $ac_mid`
  9764. fi
  9765. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9766. done
  9767. else
  9768. echo "$as_me: failed program was:" >&5
  9769. sed 's/^/| /' conftest.$ac_ext >&5
  9770. ac_lo= ac_hi=
  9771. fi
  9772. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9773. fi
  9774. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9775. # Binary search between lo and hi bounds.
  9776. while test "x$ac_lo" != "x$ac_hi"; do
  9777. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  9778. cat >conftest.$ac_ext <<_ACEOF
  9779. /* confdefs.h. */
  9780. _ACEOF
  9781. cat confdefs.h >>conftest.$ac_ext
  9782. cat >>conftest.$ac_ext <<_ACEOF
  9783. /* end confdefs.h. */
  9784. $ac_includes_default
  9785. typedef time_t ac__type_sizeof_;
  9786. int
  9787. main ()
  9788. {
  9789. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  9790. test_array [0] = 0
  9791. ;
  9792. return 0;
  9793. }
  9794. _ACEOF
  9795. rm -f conftest.$ac_objext
  9796. if { (ac_try="$ac_compile"
  9797. case "(($ac_try" in
  9798. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9799. *) ac_try_echo=$ac_try;;
  9800. esac
  9801. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9802. (eval "$ac_compile") 2>conftest.er1
  9803. ac_status=$?
  9804. grep -v '^ *+' conftest.er1 >conftest.err
  9805. rm -f conftest.er1
  9806. cat conftest.err >&5
  9807. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9808. (exit $ac_status); } && {
  9809. test -z "$ac_c_werror_flag" ||
  9810. test ! -s conftest.err
  9811. } && test -s conftest.$ac_objext; then
  9812. ac_hi=$ac_mid
  9813. else
  9814. echo "$as_me: failed program was:" >&5
  9815. sed 's/^/| /' conftest.$ac_ext >&5
  9816. ac_lo=`expr '(' $ac_mid ')' + 1`
  9817. fi
  9818. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9819. done
  9820. case $ac_lo in
  9821. ?*) ac_cv_sizeof_time_t=$ac_lo;;
  9822. '') if test "$ac_cv_type_time_t" = yes; then
  9823. { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
  9824. See \`config.log' for more details." >&5
  9825. echo "$as_me: error: cannot compute sizeof (time_t)
  9826. See \`config.log' for more details." >&2;}
  9827. { (exit 77); exit 77; }; }
  9828. else
  9829. ac_cv_sizeof_time_t=0
  9830. fi ;;
  9831. esac
  9832. else
  9833. cat >conftest.$ac_ext <<_ACEOF
  9834. /* confdefs.h. */
  9835. _ACEOF
  9836. cat confdefs.h >>conftest.$ac_ext
  9837. cat >>conftest.$ac_ext <<_ACEOF
  9838. /* end confdefs.h. */
  9839. $ac_includes_default
  9840. typedef time_t ac__type_sizeof_;
  9841. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  9842. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  9843. #include <stdio.h>
  9844. #include <stdlib.h>
  9845. int
  9846. main ()
  9847. {
  9848. FILE *f = fopen ("conftest.val", "w");
  9849. if (! f)
  9850. return 1;
  9851. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  9852. {
  9853. long int i = longval ();
  9854. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  9855. return 1;
  9856. fprintf (f, "%ld\n", i);
  9857. }
  9858. else
  9859. {
  9860. unsigned long int i = ulongval ();
  9861. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  9862. return 1;
  9863. fprintf (f, "%lu\n", i);
  9864. }
  9865. return ferror (f) || fclose (f) != 0;
  9866. ;
  9867. return 0;
  9868. }
  9869. _ACEOF
  9870. rm -f conftest$ac_exeext
  9871. if { (ac_try="$ac_link"
  9872. case "(($ac_try" in
  9873. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9874. *) ac_try_echo=$ac_try;;
  9875. esac
  9876. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9877. (eval "$ac_link") 2>&5
  9878. ac_status=$?
  9879. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9880. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9881. { (case "(($ac_try" in
  9882. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9883. *) ac_try_echo=$ac_try;;
  9884. esac
  9885. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9886. (eval "$ac_try") 2>&5
  9887. ac_status=$?
  9888. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9889. (exit $ac_status); }; }; then
  9890. ac_cv_sizeof_time_t=`cat conftest.val`
  9891. else
  9892. echo "$as_me: program exited with status $ac_status" >&5
  9893. echo "$as_me: failed program was:" >&5
  9894. sed 's/^/| /' conftest.$ac_ext >&5
  9895. ( exit $ac_status )
  9896. if test "$ac_cv_type_time_t" = yes; then
  9897. { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
  9898. See \`config.log' for more details." >&5
  9899. echo "$as_me: error: cannot compute sizeof (time_t)
  9900. See \`config.log' for more details." >&2;}
  9901. { (exit 77); exit 77; }; }
  9902. else
  9903. ac_cv_sizeof_time_t=0
  9904. fi
  9905. fi
  9906. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9907. fi
  9908. rm -f conftest.val
  9909. fi
  9910. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
  9911. echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
  9912. cat >>confdefs.h <<_ACEOF
  9913. #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
  9914. _ACEOF
  9915. { echo "$as_me:$LINENO: checking for inline" >&5
  9916. echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
  9917. if test "${ac_cv_c_inline+set}" = set; then
  9918. echo $ECHO_N "(cached) $ECHO_C" >&6
  9919. else
  9920. ac_cv_c_inline=no
  9921. for ac_kw in inline __inline__ __inline; do
  9922. cat >conftest.$ac_ext <<_ACEOF
  9923. /* confdefs.h. */
  9924. _ACEOF
  9925. cat confdefs.h >>conftest.$ac_ext
  9926. cat >>conftest.$ac_ext <<_ACEOF
  9927. /* end confdefs.h. */
  9928. #ifndef __cplusplus
  9929. typedef int foo_t;
  9930. static $ac_kw foo_t static_foo () {return 0; }
  9931. $ac_kw foo_t foo () {return 0; }
  9932. #endif
  9933. _ACEOF
  9934. rm -f conftest.$ac_objext
  9935. if { (ac_try="$ac_compile"
  9936. case "(($ac_try" in
  9937. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9938. *) ac_try_echo=$ac_try;;
  9939. esac
  9940. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9941. (eval "$ac_compile") 2>conftest.er1
  9942. ac_status=$?
  9943. grep -v '^ *+' conftest.er1 >conftest.err
  9944. rm -f conftest.er1
  9945. cat conftest.err >&5
  9946. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9947. (exit $ac_status); } && {
  9948. test -z "$ac_c_werror_flag" ||
  9949. test ! -s conftest.err
  9950. } && test -s conftest.$ac_objext; then
  9951. ac_cv_c_inline=$ac_kw
  9952. else
  9953. echo "$as_me: failed program was:" >&5
  9954. sed 's/^/| /' conftest.$ac_ext >&5
  9955. fi
  9956. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9957. test "$ac_cv_c_inline" != no && break
  9958. done
  9959. fi
  9960. { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  9961. echo "${ECHO_T}$ac_cv_c_inline" >&6; }
  9962. case $ac_cv_c_inline in
  9963. inline | yes) ;;
  9964. *)
  9965. case $ac_cv_c_inline in
  9966. no) ac_val=;;
  9967. *) ac_val=$ac_cv_c_inline;;
  9968. esac
  9969. cat >>confdefs.h <<_ACEOF
  9970. #ifndef __cplusplus
  9971. #define inline $ac_val
  9972. #endif
  9973. _ACEOF
  9974. ;;
  9975. esac
  9976. { echo "$as_me:$LINENO: checking for long double with more range or precision than double" >&5
  9977. echo $ECHO_N "checking for long double with more range or precision than double... $ECHO_C" >&6; }
  9978. if test "${ac_cv_type_long_double_wider+set}" = set; then
  9979. echo $ECHO_N "(cached) $ECHO_C" >&6
  9980. else
  9981. cat >conftest.$ac_ext <<_ACEOF
  9982. /* confdefs.h. */
  9983. _ACEOF
  9984. cat confdefs.h >>conftest.$ac_ext
  9985. cat >>conftest.$ac_ext <<_ACEOF
  9986. /* end confdefs.h. */
  9987. #include <float.h>
  9988. long double const a[] =
  9989. {
  9990. 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
  9991. LDBL_MIN, LDBL_MAX, LDBL_EPSILON
  9992. };
  9993. long double
  9994. f (long double x)
  9995. {
  9996. return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
  9997. + (x ? f (x) : 'c'));
  9998. }
  9999. int
  10000. main ()
  10001. {
  10002. static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
  10003. + (DBL_MANT_DIG < LDBL_MANT_DIG)
  10004. - (LDBL_MAX_EXP < DBL_MAX_EXP)
  10005. - (LDBL_MANT_DIG < DBL_MANT_DIG)))
  10006. && (int) LDBL_EPSILON == 0
  10007. )];
  10008. test_array [0] = 0
  10009. ;
  10010. return 0;
  10011. }
  10012. _ACEOF
  10013. rm -f conftest.$ac_objext
  10014. if { (ac_try="$ac_compile"
  10015. case "(($ac_try" in
  10016. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10017. *) ac_try_echo=$ac_try;;
  10018. esac
  10019. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10020. (eval "$ac_compile") 2>conftest.er1
  10021. ac_status=$?
  10022. grep -v '^ *+' conftest.er1 >conftest.err
  10023. rm -f conftest.er1
  10024. cat conftest.err >&5
  10025. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10026. (exit $ac_status); } && {
  10027. test -z "$ac_c_werror_flag" ||
  10028. test ! -s conftest.err
  10029. } && test -s conftest.$ac_objext; then
  10030. ac_cv_type_long_double_wider=yes
  10031. else
  10032. echo "$as_me: failed program was:" >&5
  10033. sed 's/^/| /' conftest.$ac_ext >&5
  10034. ac_cv_type_long_double_wider=no
  10035. fi
  10036. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10037. fi
  10038. { echo "$as_me:$LINENO: result: $ac_cv_type_long_double_wider" >&5
  10039. echo "${ECHO_T}$ac_cv_type_long_double_wider" >&6; }
  10040. if test $ac_cv_type_long_double_wider = yes; then
  10041. cat >>confdefs.h <<\_ACEOF
  10042. #define HAVE_LONG_DOUBLE_WIDER 1
  10043. _ACEOF
  10044. fi
  10045. ac_cv_c_long_double=$ac_cv_type_long_double_wider
  10046. if test $ac_cv_c_long_double = yes; then
  10047. cat >>confdefs.h <<\_ACEOF
  10048. #define HAVE_LONG_DOUBLE 1
  10049. _ACEOF
  10050. fi
  10051. { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  10052. echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
  10053. if test "${ac_cv_type_signal+set}" = set; then
  10054. echo $ECHO_N "(cached) $ECHO_C" >&6
  10055. else
  10056. cat >conftest.$ac_ext <<_ACEOF
  10057. /* confdefs.h. */
  10058. _ACEOF
  10059. cat confdefs.h >>conftest.$ac_ext
  10060. cat >>conftest.$ac_ext <<_ACEOF
  10061. /* end confdefs.h. */
  10062. #include <sys/types.h>
  10063. #include <signal.h>
  10064. int
  10065. main ()
  10066. {
  10067. return *(signal (0, 0)) (0) == 1;
  10068. ;
  10069. return 0;
  10070. }
  10071. _ACEOF
  10072. rm -f conftest.$ac_objext
  10073. if { (ac_try="$ac_compile"
  10074. case "(($ac_try" in
  10075. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10076. *) ac_try_echo=$ac_try;;
  10077. esac
  10078. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10079. (eval "$ac_compile") 2>conftest.er1
  10080. ac_status=$?
  10081. grep -v '^ *+' conftest.er1 >conftest.err
  10082. rm -f conftest.er1
  10083. cat conftest.err >&5
  10084. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10085. (exit $ac_status); } && {
  10086. test -z "$ac_c_werror_flag" ||
  10087. test ! -s conftest.err
  10088. } && test -s conftest.$ac_objext; then
  10089. ac_cv_type_signal=int
  10090. else
  10091. echo "$as_me: failed program was:" >&5
  10092. sed 's/^/| /' conftest.$ac_ext >&5
  10093. ac_cv_type_signal=void
  10094. fi
  10095. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10096. fi
  10097. { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  10098. echo "${ECHO_T}$ac_cv_type_signal" >&6; }
  10099. cat >>confdefs.h <<_ACEOF
  10100. #define RETSIGTYPE $ac_cv_type_signal
  10101. _ACEOF
  10102. { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  10103. echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
  10104. if test "${ac_cv_type_uid_t+set}" = set; then
  10105. echo $ECHO_N "(cached) $ECHO_C" >&6
  10106. else
  10107. cat >conftest.$ac_ext <<_ACEOF
  10108. /* confdefs.h. */
  10109. _ACEOF
  10110. cat confdefs.h >>conftest.$ac_ext
  10111. cat >>conftest.$ac_ext <<_ACEOF
  10112. /* end confdefs.h. */
  10113. #include <sys/types.h>
  10114. _ACEOF
  10115. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10116. $EGREP "uid_t" >/dev/null 2>&1; then
  10117. ac_cv_type_uid_t=yes
  10118. else
  10119. ac_cv_type_uid_t=no
  10120. fi
  10121. rm -f conftest*
  10122. fi
  10123. { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  10124. echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
  10125. if test $ac_cv_type_uid_t = no; then
  10126. cat >>confdefs.h <<\_ACEOF
  10127. #define uid_t int
  10128. _ACEOF
  10129. cat >>confdefs.h <<\_ACEOF
  10130. #define gid_t int
  10131. _ACEOF
  10132. fi
  10133. { echo "$as_me:$LINENO: checking for mode_t" >&5
  10134. echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
  10135. if test "${ac_cv_type_mode_t+set}" = set; then
  10136. echo $ECHO_N "(cached) $ECHO_C" >&6
  10137. else
  10138. cat >conftest.$ac_ext <<_ACEOF
  10139. /* confdefs.h. */
  10140. _ACEOF
  10141. cat confdefs.h >>conftest.$ac_ext
  10142. cat >>conftest.$ac_ext <<_ACEOF
  10143. /* end confdefs.h. */
  10144. $ac_includes_default
  10145. typedef mode_t ac__type_new_;
  10146. int
  10147. main ()
  10148. {
  10149. if ((ac__type_new_ *) 0)
  10150. return 0;
  10151. if (sizeof (ac__type_new_))
  10152. return 0;
  10153. ;
  10154. return 0;
  10155. }
  10156. _ACEOF
  10157. rm -f conftest.$ac_objext
  10158. if { (ac_try="$ac_compile"
  10159. case "(($ac_try" in
  10160. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10161. *) ac_try_echo=$ac_try;;
  10162. esac
  10163. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10164. (eval "$ac_compile") 2>conftest.er1
  10165. ac_status=$?
  10166. grep -v '^ *+' conftest.er1 >conftest.err
  10167. rm -f conftest.er1
  10168. cat conftest.err >&5
  10169. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10170. (exit $ac_status); } && {
  10171. test -z "$ac_c_werror_flag" ||
  10172. test ! -s conftest.err
  10173. } && test -s conftest.$ac_objext; then
  10174. ac_cv_type_mode_t=yes
  10175. else
  10176. echo "$as_me: failed program was:" >&5
  10177. sed 's/^/| /' conftest.$ac_ext >&5
  10178. ac_cv_type_mode_t=no
  10179. fi
  10180. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10181. fi
  10182. { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
  10183. echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
  10184. if test $ac_cv_type_mode_t = yes; then
  10185. cat >>confdefs.h <<_ACEOF
  10186. #define HAVE_MODE_T 1
  10187. _ACEOF
  10188. fi
  10189. { echo "$as_me:$LINENO: checking for off_t" >&5
  10190. echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
  10191. if test "${ac_cv_type_off_t+set}" = set; then
  10192. echo $ECHO_N "(cached) $ECHO_C" >&6
  10193. else
  10194. cat >conftest.$ac_ext <<_ACEOF
  10195. /* confdefs.h. */
  10196. _ACEOF
  10197. cat confdefs.h >>conftest.$ac_ext
  10198. cat >>conftest.$ac_ext <<_ACEOF
  10199. /* end confdefs.h. */
  10200. $ac_includes_default
  10201. typedef off_t ac__type_new_;
  10202. int
  10203. main ()
  10204. {
  10205. if ((ac__type_new_ *) 0)
  10206. return 0;
  10207. if (sizeof (ac__type_new_))
  10208. return 0;
  10209. ;
  10210. return 0;
  10211. }
  10212. _ACEOF
  10213. rm -f conftest.$ac_objext
  10214. if { (ac_try="$ac_compile"
  10215. case "(($ac_try" in
  10216. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10217. *) ac_try_echo=$ac_try;;
  10218. esac
  10219. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10220. (eval "$ac_compile") 2>conftest.er1
  10221. ac_status=$?
  10222. grep -v '^ *+' conftest.er1 >conftest.err
  10223. rm -f conftest.er1
  10224. cat conftest.err >&5
  10225. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10226. (exit $ac_status); } && {
  10227. test -z "$ac_c_werror_flag" ||
  10228. test ! -s conftest.err
  10229. } && test -s conftest.$ac_objext; then
  10230. ac_cv_type_off_t=yes
  10231. else
  10232. echo "$as_me: failed program was:" >&5
  10233. sed 's/^/| /' conftest.$ac_ext >&5
  10234. ac_cv_type_off_t=no
  10235. fi
  10236. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10237. fi
  10238. { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
  10239. echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
  10240. if test $ac_cv_type_off_t = yes; then
  10241. cat >>confdefs.h <<_ACEOF
  10242. #define HAVE_OFF_T 1
  10243. _ACEOF
  10244. fi
  10245. { echo "$as_me:$LINENO: checking for size_t" >&5
  10246. echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
  10247. if test "${ac_cv_type_size_t+set}" = set; then
  10248. echo $ECHO_N "(cached) $ECHO_C" >&6
  10249. else
  10250. cat >conftest.$ac_ext <<_ACEOF
  10251. /* confdefs.h. */
  10252. _ACEOF
  10253. cat confdefs.h >>conftest.$ac_ext
  10254. cat >>conftest.$ac_ext <<_ACEOF
  10255. /* end confdefs.h. */
  10256. $ac_includes_default
  10257. typedef size_t ac__type_new_;
  10258. int
  10259. main ()
  10260. {
  10261. if ((ac__type_new_ *) 0)
  10262. return 0;
  10263. if (sizeof (ac__type_new_))
  10264. return 0;
  10265. ;
  10266. return 0;
  10267. }
  10268. _ACEOF
  10269. rm -f conftest.$ac_objext
  10270. if { (ac_try="$ac_compile"
  10271. case "(($ac_try" in
  10272. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10273. *) ac_try_echo=$ac_try;;
  10274. esac
  10275. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10276. (eval "$ac_compile") 2>conftest.er1
  10277. ac_status=$?
  10278. grep -v '^ *+' conftest.er1 >conftest.err
  10279. rm -f conftest.er1
  10280. cat conftest.err >&5
  10281. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10282. (exit $ac_status); } && {
  10283. test -z "$ac_c_werror_flag" ||
  10284. test ! -s conftest.err
  10285. } && test -s conftest.$ac_objext; then
  10286. ac_cv_type_size_t=yes
  10287. else
  10288. echo "$as_me: failed program was:" >&5
  10289. sed 's/^/| /' conftest.$ac_ext >&5
  10290. ac_cv_type_size_t=no
  10291. fi
  10292. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10293. fi
  10294. { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  10295. echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
  10296. if test $ac_cv_type_size_t = yes; then
  10297. cat >>confdefs.h <<_ACEOF
  10298. #define HAVE_SIZE_T 1
  10299. _ACEOF
  10300. fi
  10301. { echo "$as_me:$LINENO: checking for pid_t" >&5
  10302. echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
  10303. if test "${ac_cv_type_pid_t+set}" = set; then
  10304. echo $ECHO_N "(cached) $ECHO_C" >&6
  10305. else
  10306. cat >conftest.$ac_ext <<_ACEOF
  10307. /* confdefs.h. */
  10308. _ACEOF
  10309. cat confdefs.h >>conftest.$ac_ext
  10310. cat >>conftest.$ac_ext <<_ACEOF
  10311. /* end confdefs.h. */
  10312. $ac_includes_default
  10313. typedef pid_t ac__type_new_;
  10314. int
  10315. main ()
  10316. {
  10317. if ((ac__type_new_ *) 0)
  10318. return 0;
  10319. if (sizeof (ac__type_new_))
  10320. return 0;
  10321. ;
  10322. return 0;
  10323. }
  10324. _ACEOF
  10325. rm -f conftest.$ac_objext
  10326. if { (ac_try="$ac_compile"
  10327. case "(($ac_try" in
  10328. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10329. *) ac_try_echo=$ac_try;;
  10330. esac
  10331. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10332. (eval "$ac_compile") 2>conftest.er1
  10333. ac_status=$?
  10334. grep -v '^ *+' conftest.er1 >conftest.err
  10335. rm -f conftest.er1
  10336. cat conftest.err >&5
  10337. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10338. (exit $ac_status); } && {
  10339. test -z "$ac_c_werror_flag" ||
  10340. test ! -s conftest.err
  10341. } && test -s conftest.$ac_objext; then
  10342. ac_cv_type_pid_t=yes
  10343. else
  10344. echo "$as_me: failed program was:" >&5
  10345. sed 's/^/| /' conftest.$ac_ext >&5
  10346. ac_cv_type_pid_t=no
  10347. fi
  10348. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10349. fi
  10350. { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  10351. echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
  10352. if test $ac_cv_type_pid_t = yes; then
  10353. cat >>confdefs.h <<_ACEOF
  10354. #define HAVE_PID_T 1
  10355. _ACEOF
  10356. fi
  10357. { echo "$as_me:$LINENO: checking for id_t" >&5
  10358. echo $ECHO_N "checking for id_t... $ECHO_C" >&6; }
  10359. if test "${ac_cv_type_id_t+set}" = set; then
  10360. echo $ECHO_N "(cached) $ECHO_C" >&6
  10361. else
  10362. cat >conftest.$ac_ext <<_ACEOF
  10363. /* confdefs.h. */
  10364. _ACEOF
  10365. cat confdefs.h >>conftest.$ac_ext
  10366. cat >>conftest.$ac_ext <<_ACEOF
  10367. /* end confdefs.h. */
  10368. $ac_includes_default
  10369. typedef id_t ac__type_new_;
  10370. int
  10371. main ()
  10372. {
  10373. if ((ac__type_new_ *) 0)
  10374. return 0;
  10375. if (sizeof (ac__type_new_))
  10376. return 0;
  10377. ;
  10378. return 0;
  10379. }
  10380. _ACEOF
  10381. rm -f conftest.$ac_objext
  10382. if { (ac_try="$ac_compile"
  10383. case "(($ac_try" in
  10384. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10385. *) ac_try_echo=$ac_try;;
  10386. esac
  10387. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10388. (eval "$ac_compile") 2>conftest.er1
  10389. ac_status=$?
  10390. grep -v '^ *+' conftest.er1 >conftest.err
  10391. rm -f conftest.er1
  10392. cat conftest.err >&5
  10393. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10394. (exit $ac_status); } && {
  10395. test -z "$ac_c_werror_flag" ||
  10396. test ! -s conftest.err
  10397. } && test -s conftest.$ac_objext; then
  10398. ac_cv_type_id_t=yes
  10399. else
  10400. echo "$as_me: failed program was:" >&5
  10401. sed 's/^/| /' conftest.$ac_ext >&5
  10402. ac_cv_type_id_t=no
  10403. fi
  10404. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10405. fi
  10406. { echo "$as_me:$LINENO: result: $ac_cv_type_id_t" >&5
  10407. echo "${ECHO_T}$ac_cv_type_id_t" >&6; }
  10408. if test $ac_cv_type_id_t = yes; then
  10409. cat >>confdefs.h <<_ACEOF
  10410. #define HAVE_ID_T 1
  10411. _ACEOF
  10412. fi
  10413. { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
  10414. echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
  10415. if test "${ac_cv_type_getgroups+set}" = set; then
  10416. echo $ECHO_N "(cached) $ECHO_C" >&6
  10417. else
  10418. if test "$cross_compiling" = yes; then
  10419. ac_cv_type_getgroups=cross
  10420. else
  10421. cat >conftest.$ac_ext <<_ACEOF
  10422. /* confdefs.h. */
  10423. _ACEOF
  10424. cat confdefs.h >>conftest.$ac_ext
  10425. cat >>conftest.$ac_ext <<_ACEOF
  10426. /* end confdefs.h. */
  10427. /* Thanks to Mike Rendell for this test. */
  10428. $ac_includes_default
  10429. #define NGID 256
  10430. #undef MAX
  10431. #define MAX(x, y) ((x) > (y) ? (x) : (y))
  10432. int
  10433. main ()
  10434. {
  10435. gid_t gidset[NGID];
  10436. int i, n;
  10437. union { gid_t gval; long int lval; } val;
  10438. val.lval = -1;
  10439. for (i = 0; i < NGID; i++)
  10440. gidset[i] = val.gval;
  10441. n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
  10442. gidset);
  10443. /* Exit non-zero if getgroups seems to require an array of ints. This
  10444. happens when gid_t is short int but getgroups modifies an array
  10445. of ints. */
  10446. return n > 0 && gidset[n] != val.gval;
  10447. }
  10448. _ACEOF
  10449. rm -f conftest$ac_exeext
  10450. if { (ac_try="$ac_link"
  10451. case "(($ac_try" in
  10452. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10453. *) ac_try_echo=$ac_try;;
  10454. esac
  10455. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10456. (eval "$ac_link") 2>&5
  10457. ac_status=$?
  10458. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10459. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10460. { (case "(($ac_try" in
  10461. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10462. *) ac_try_echo=$ac_try;;
  10463. esac
  10464. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10465. (eval "$ac_try") 2>&5
  10466. ac_status=$?
  10467. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10468. (exit $ac_status); }; }; then
  10469. ac_cv_type_getgroups=gid_t
  10470. else
  10471. echo "$as_me: program exited with status $ac_status" >&5
  10472. echo "$as_me: failed program was:" >&5
  10473. sed 's/^/| /' conftest.$ac_ext >&5
  10474. ( exit $ac_status )
  10475. ac_cv_type_getgroups=int
  10476. fi
  10477. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10478. fi
  10479. if test $ac_cv_type_getgroups = cross; then
  10480. cat >conftest.$ac_ext <<_ACEOF
  10481. /* confdefs.h. */
  10482. _ACEOF
  10483. cat confdefs.h >>conftest.$ac_ext
  10484. cat >>conftest.$ac_ext <<_ACEOF
  10485. /* end confdefs.h. */
  10486. #include <unistd.h>
  10487. _ACEOF
  10488. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10489. $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
  10490. ac_cv_type_getgroups=gid_t
  10491. else
  10492. ac_cv_type_getgroups=int
  10493. fi
  10494. rm -f conftest*
  10495. fi
  10496. fi
  10497. { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
  10498. echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
  10499. cat >>confdefs.h <<_ACEOF
  10500. #define GETGROUPS_T $ac_cv_type_getgroups
  10501. _ACEOF
  10502. { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
  10503. echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
  10504. if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
  10505. echo $ECHO_N "(cached) $ECHO_C" >&6
  10506. else
  10507. cat >conftest.$ac_ext <<_ACEOF
  10508. /* confdefs.h. */
  10509. _ACEOF
  10510. cat confdefs.h >>conftest.$ac_ext
  10511. cat >>conftest.$ac_ext <<_ACEOF
  10512. /* end confdefs.h. */
  10513. $ac_includes_default
  10514. int
  10515. main ()
  10516. {
  10517. static struct stat ac_aggr;
  10518. if (ac_aggr.st_rdev)
  10519. return 0;
  10520. ;
  10521. return 0;
  10522. }
  10523. _ACEOF
  10524. rm -f conftest.$ac_objext
  10525. if { (ac_try="$ac_compile"
  10526. case "(($ac_try" in
  10527. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10528. *) ac_try_echo=$ac_try;;
  10529. esac
  10530. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10531. (eval "$ac_compile") 2>conftest.er1
  10532. ac_status=$?
  10533. grep -v '^ *+' conftest.er1 >conftest.err
  10534. rm -f conftest.er1
  10535. cat conftest.err >&5
  10536. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10537. (exit $ac_status); } && {
  10538. test -z "$ac_c_werror_flag" ||
  10539. test ! -s conftest.err
  10540. } && test -s conftest.$ac_objext; then
  10541. ac_cv_member_struct_stat_st_rdev=yes
  10542. else
  10543. echo "$as_me: failed program was:" >&5
  10544. sed 's/^/| /' conftest.$ac_ext >&5
  10545. cat >conftest.$ac_ext <<_ACEOF
  10546. /* confdefs.h. */
  10547. _ACEOF
  10548. cat confdefs.h >>conftest.$ac_ext
  10549. cat >>conftest.$ac_ext <<_ACEOF
  10550. /* end confdefs.h. */
  10551. $ac_includes_default
  10552. int
  10553. main ()
  10554. {
  10555. static struct stat ac_aggr;
  10556. if (sizeof ac_aggr.st_rdev)
  10557. return 0;
  10558. ;
  10559. return 0;
  10560. }
  10561. _ACEOF
  10562. rm -f conftest.$ac_objext
  10563. if { (ac_try="$ac_compile"
  10564. case "(($ac_try" in
  10565. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10566. *) ac_try_echo=$ac_try;;
  10567. esac
  10568. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10569. (eval "$ac_compile") 2>conftest.er1
  10570. ac_status=$?
  10571. grep -v '^ *+' conftest.er1 >conftest.err
  10572. rm -f conftest.er1
  10573. cat conftest.err >&5
  10574. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10575. (exit $ac_status); } && {
  10576. test -z "$ac_c_werror_flag" ||
  10577. test ! -s conftest.err
  10578. } && test -s conftest.$ac_objext; then
  10579. ac_cv_member_struct_stat_st_rdev=yes
  10580. else
  10581. echo "$as_me: failed program was:" >&5
  10582. sed 's/^/| /' conftest.$ac_ext >&5
  10583. ac_cv_member_struct_stat_st_rdev=no
  10584. fi
  10585. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10586. fi
  10587. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10588. fi
  10589. { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
  10590. echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
  10591. if test $ac_cv_member_struct_stat_st_rdev = yes; then
  10592. cat >>confdefs.h <<_ACEOF
  10593. #define HAVE_STRUCT_STAT_ST_RDEV 1
  10594. _ACEOF
  10595. fi
  10596. { echo "$as_me:$LINENO: checking for socklen_t" >&5
  10597. echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
  10598. if test "${ac_cv_type_socklen_t+set}" = set; then
  10599. echo $ECHO_N "(cached) $ECHO_C" >&6
  10600. else
  10601. cat >conftest.$ac_ext <<_ACEOF
  10602. /* confdefs.h. */
  10603. _ACEOF
  10604. cat confdefs.h >>conftest.$ac_ext
  10605. cat >>conftest.$ac_ext <<_ACEOF
  10606. /* end confdefs.h. */
  10607. #include <sys/types.h>
  10608. #include <sys/socket.h>
  10609. typedef socklen_t ac__type_new_;
  10610. int
  10611. main ()
  10612. {
  10613. if ((ac__type_new_ *) 0)
  10614. return 0;
  10615. if (sizeof (ac__type_new_))
  10616. return 0;
  10617. ;
  10618. return 0;
  10619. }
  10620. _ACEOF
  10621. rm -f conftest.$ac_objext
  10622. if { (ac_try="$ac_compile"
  10623. case "(($ac_try" in
  10624. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10625. *) ac_try_echo=$ac_try;;
  10626. esac
  10627. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10628. (eval "$ac_compile") 2>conftest.er1
  10629. ac_status=$?
  10630. grep -v '^ *+' conftest.er1 >conftest.err
  10631. rm -f conftest.er1
  10632. cat conftest.err >&5
  10633. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10634. (exit $ac_status); } && {
  10635. test -z "$ac_c_werror_flag" ||
  10636. test ! -s conftest.err
  10637. } && test -s conftest.$ac_objext; then
  10638. ac_cv_type_socklen_t=yes
  10639. else
  10640. echo "$as_me: failed program was:" >&5
  10641. sed 's/^/| /' conftest.$ac_ext >&5
  10642. ac_cv_type_socklen_t=no
  10643. fi
  10644. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10645. fi
  10646. { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
  10647. echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
  10648. if test $ac_cv_type_socklen_t = yes; then
  10649. :
  10650. else
  10651. { echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
  10652. echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6; }
  10653. if test "${rsync_cv_socklen_t_equiv+set}" = set; then
  10654. echo $ECHO_N "(cached) $ECHO_C" >&6
  10655. else
  10656. # Systems have either "struct sockaddr *" or
  10657. # "void *" as the second argument to getpeername
  10658. rsync_cv_socklen_t_equiv=
  10659. for arg2 in "struct sockaddr" void; do
  10660. for t in int size_t unsigned long "unsigned long"; do
  10661. cat >conftest.$ac_ext <<_ACEOF
  10662. /* confdefs.h. */
  10663. _ACEOF
  10664. cat confdefs.h >>conftest.$ac_ext
  10665. cat >>conftest.$ac_ext <<_ACEOF
  10666. /* end confdefs.h. */
  10667. #include <sys/types.h>
  10668. #include <sys/socket.h>
  10669. int getpeername (int, $arg2 *, $t *);
  10670. int
  10671. main ()
  10672. {
  10673. $t len;
  10674. getpeername(0,0,&len);
  10675. ;
  10676. return 0;
  10677. }
  10678. _ACEOF
  10679. rm -f conftest.$ac_objext
  10680. if { (ac_try="$ac_compile"
  10681. case "(($ac_try" in
  10682. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10683. *) ac_try_echo=$ac_try;;
  10684. esac
  10685. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10686. (eval "$ac_compile") 2>conftest.er1
  10687. ac_status=$?
  10688. grep -v '^ *+' conftest.er1 >conftest.err
  10689. rm -f conftest.er1
  10690. cat conftest.err >&5
  10691. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10692. (exit $ac_status); } && {
  10693. test -z "$ac_c_werror_flag" ||
  10694. test ! -s conftest.err
  10695. } && test -s conftest.$ac_objext; then
  10696. rsync_cv_socklen_t_equiv="$t"
  10697. break
  10698. else
  10699. echo "$as_me: failed program was:" >&5
  10700. sed 's/^/| /' conftest.$ac_ext >&5
  10701. fi
  10702. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10703. done
  10704. done
  10705. if test "x$rsync_cv_socklen_t_equiv" = x; then
  10706. { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
  10707. echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
  10708. { (exit 1); exit 1; }; }
  10709. fi
  10710. fi
  10711. { echo "$as_me:$LINENO: result: $rsync_cv_socklen_t_equiv" >&5
  10712. echo "${ECHO_T}$rsync_cv_socklen_t_equiv" >&6; }
  10713. cat >>confdefs.h <<_ACEOF
  10714. #define socklen_t $rsync_cv_socklen_t_equiv
  10715. _ACEOF
  10716. fi
  10717. { echo "$as_me:$LINENO: checking for errno in errno.h" >&5
  10718. echo $ECHO_N "checking for errno in errno.h... $ECHO_C" >&6; }
  10719. if test "${rsync_cv_errno+set}" = set; then
  10720. echo $ECHO_N "(cached) $ECHO_C" >&6
  10721. else
  10722. cat >conftest.$ac_ext <<_ACEOF
  10723. /* confdefs.h. */
  10724. _ACEOF
  10725. cat confdefs.h >>conftest.$ac_ext
  10726. cat >>conftest.$ac_ext <<_ACEOF
  10727. /* end confdefs.h. */
  10728. #include <errno.h>
  10729. int
  10730. main ()
  10731. {
  10732. int i = errno
  10733. ;
  10734. return 0;
  10735. }
  10736. _ACEOF
  10737. rm -f conftest.$ac_objext
  10738. if { (ac_try="$ac_compile"
  10739. case "(($ac_try" in
  10740. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10741. *) ac_try_echo=$ac_try;;
  10742. esac
  10743. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10744. (eval "$ac_compile") 2>conftest.er1
  10745. ac_status=$?
  10746. grep -v '^ *+' conftest.er1 >conftest.err
  10747. rm -f conftest.er1
  10748. cat conftest.err >&5
  10749. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10750. (exit $ac_status); } && {
  10751. test -z "$ac_c_werror_flag" ||
  10752. test ! -s conftest.err
  10753. } && test -s conftest.$ac_objext; then
  10754. rsync_cv_errno=yes
  10755. else
  10756. echo "$as_me: failed program was:" >&5
  10757. sed 's/^/| /' conftest.$ac_ext >&5
  10758. rsync_cv_have_errno_decl=no
  10759. fi
  10760. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10761. fi
  10762. { echo "$as_me:$LINENO: result: $rsync_cv_errno" >&5
  10763. echo "${ECHO_T}$rsync_cv_errno" >&6; }
  10764. if test x"$rsync_cv_errno" = x"yes"; then
  10765. cat >>confdefs.h <<\_ACEOF
  10766. #define HAVE_ERRNO_DECL 1
  10767. _ACEOF
  10768. fi
  10769. # The following test taken from the cvs sources
  10770. # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
  10771. # These need checks to be before checks for any other functions that
  10772. # might be in the same libraries.
  10773. # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
  10774. # libsocket.so which has a bad implementation of gethostbyname (it
  10775. # only looks in /etc/hosts), so we only look for -lsocket if we need
  10776. # it.
  10777. for ac_func in connect
  10778. do
  10779. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10780. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  10781. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  10782. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  10783. echo $ECHO_N "(cached) $ECHO_C" >&6
  10784. else
  10785. cat >conftest.$ac_ext <<_ACEOF
  10786. /* confdefs.h. */
  10787. _ACEOF
  10788. cat confdefs.h >>conftest.$ac_ext
  10789. cat >>conftest.$ac_ext <<_ACEOF
  10790. /* end confdefs.h. */
  10791. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10792. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10793. #define $ac_func innocuous_$ac_func
  10794. /* System header to define __stub macros and hopefully few prototypes,
  10795. which can conflict with char $ac_func (); below.
  10796. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10797. <limits.h> exists even on freestanding compilers. */
  10798. #ifdef __STDC__
  10799. # include <limits.h>
  10800. #else
  10801. # include <assert.h>
  10802. #endif
  10803. #undef $ac_func
  10804. /* Override any GCC internal prototype to avoid an error.
  10805. Use char because int might match the return type of a GCC
  10806. builtin and then its argument prototype would still apply. */
  10807. #ifdef __cplusplus
  10808. extern "C"
  10809. #endif
  10810. char $ac_func ();
  10811. /* The GNU C library defines this for functions which it implements
  10812. to always fail with ENOSYS. Some functions are actually named
  10813. something starting with __ and the normal name is an alias. */
  10814. #if defined __stub_$ac_func || defined __stub___$ac_func
  10815. choke me
  10816. #endif
  10817. int
  10818. main ()
  10819. {
  10820. return $ac_func ();
  10821. ;
  10822. return 0;
  10823. }
  10824. _ACEOF
  10825. rm -f conftest.$ac_objext conftest$ac_exeext
  10826. if { (ac_try="$ac_link"
  10827. case "(($ac_try" in
  10828. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10829. *) ac_try_echo=$ac_try;;
  10830. esac
  10831. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10832. (eval "$ac_link") 2>conftest.er1
  10833. ac_status=$?
  10834. grep -v '^ *+' conftest.er1 >conftest.err
  10835. rm -f conftest.er1
  10836. cat conftest.err >&5
  10837. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10838. (exit $ac_status); } && {
  10839. test -z "$ac_c_werror_flag" ||
  10840. test ! -s conftest.err
  10841. } && test -s conftest$ac_exeext &&
  10842. $as_test_x conftest$ac_exeext; then
  10843. eval "$as_ac_var=yes"
  10844. else
  10845. echo "$as_me: failed program was:" >&5
  10846. sed 's/^/| /' conftest.$ac_ext >&5
  10847. eval "$as_ac_var=no"
  10848. fi
  10849. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10850. conftest$ac_exeext conftest.$ac_ext
  10851. fi
  10852. ac_res=`eval echo '${'$as_ac_var'}'`
  10853. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10854. echo "${ECHO_T}$ac_res" >&6; }
  10855. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10856. cat >>confdefs.h <<_ACEOF
  10857. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10858. _ACEOF
  10859. fi
  10860. done
  10861. if test x"$ac_cv_func_connect" = x"no"; then
  10862. case "$LIBS" in
  10863. *-lnsl*) ;;
  10864. *)
  10865. { echo "$as_me:$LINENO: checking for printf in -lnsl_s" >&5
  10866. echo $ECHO_N "checking for printf in -lnsl_s... $ECHO_C" >&6; }
  10867. if test "${ac_cv_lib_nsl_s_printf+set}" = set; then
  10868. echo $ECHO_N "(cached) $ECHO_C" >&6
  10869. else
  10870. ac_check_lib_save_LIBS=$LIBS
  10871. LIBS="-lnsl_s $LIBS"
  10872. cat >conftest.$ac_ext <<_ACEOF
  10873. /* confdefs.h. */
  10874. _ACEOF
  10875. cat confdefs.h >>conftest.$ac_ext
  10876. cat >>conftest.$ac_ext <<_ACEOF
  10877. /* end confdefs.h. */
  10878. /* Override any GCC internal prototype to avoid an error.
  10879. Use char because int might match the return type of a GCC
  10880. builtin and then its argument prototype would still apply. */
  10881. #ifdef __cplusplus
  10882. extern "C"
  10883. #endif
  10884. char printf ();
  10885. int
  10886. main ()
  10887. {
  10888. return printf ();
  10889. ;
  10890. return 0;
  10891. }
  10892. _ACEOF
  10893. rm -f conftest.$ac_objext conftest$ac_exeext
  10894. if { (ac_try="$ac_link"
  10895. case "(($ac_try" in
  10896. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10897. *) ac_try_echo=$ac_try;;
  10898. esac
  10899. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10900. (eval "$ac_link") 2>conftest.er1
  10901. ac_status=$?
  10902. grep -v '^ *+' conftest.er1 >conftest.err
  10903. rm -f conftest.er1
  10904. cat conftest.err >&5
  10905. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10906. (exit $ac_status); } && {
  10907. test -z "$ac_c_werror_flag" ||
  10908. test ! -s conftest.err
  10909. } && test -s conftest$ac_exeext &&
  10910. $as_test_x conftest$ac_exeext; then
  10911. ac_cv_lib_nsl_s_printf=yes
  10912. else
  10913. echo "$as_me: failed program was:" >&5
  10914. sed 's/^/| /' conftest.$ac_ext >&5
  10915. ac_cv_lib_nsl_s_printf=no
  10916. fi
  10917. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10918. conftest$ac_exeext conftest.$ac_ext
  10919. LIBS=$ac_check_lib_save_LIBS
  10920. fi
  10921. { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_printf" >&5
  10922. echo "${ECHO_T}$ac_cv_lib_nsl_s_printf" >&6; }
  10923. if test $ac_cv_lib_nsl_s_printf = yes; then
  10924. cat >>confdefs.h <<_ACEOF
  10925. #define HAVE_LIBNSL_S 1
  10926. _ACEOF
  10927. LIBS="-lnsl_s $LIBS"
  10928. fi
  10929. ;;
  10930. esac
  10931. case "$LIBS" in
  10932. *-lnsl*) ;;
  10933. *)
  10934. { echo "$as_me:$LINENO: checking for printf in -lnsl" >&5
  10935. echo $ECHO_N "checking for printf in -lnsl... $ECHO_C" >&6; }
  10936. if test "${ac_cv_lib_nsl_printf+set}" = set; then
  10937. echo $ECHO_N "(cached) $ECHO_C" >&6
  10938. else
  10939. ac_check_lib_save_LIBS=$LIBS
  10940. LIBS="-lnsl $LIBS"
  10941. cat >conftest.$ac_ext <<_ACEOF
  10942. /* confdefs.h. */
  10943. _ACEOF
  10944. cat confdefs.h >>conftest.$ac_ext
  10945. cat >>conftest.$ac_ext <<_ACEOF
  10946. /* end confdefs.h. */
  10947. /* Override any GCC internal prototype to avoid an error.
  10948. Use char because int might match the return type of a GCC
  10949. builtin and then its argument prototype would still apply. */
  10950. #ifdef __cplusplus
  10951. extern "C"
  10952. #endif
  10953. char printf ();
  10954. int
  10955. main ()
  10956. {
  10957. return printf ();
  10958. ;
  10959. return 0;
  10960. }
  10961. _ACEOF
  10962. rm -f conftest.$ac_objext conftest$ac_exeext
  10963. if { (ac_try="$ac_link"
  10964. case "(($ac_try" in
  10965. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10966. *) ac_try_echo=$ac_try;;
  10967. esac
  10968. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10969. (eval "$ac_link") 2>conftest.er1
  10970. ac_status=$?
  10971. grep -v '^ *+' conftest.er1 >conftest.err
  10972. rm -f conftest.er1
  10973. cat conftest.err >&5
  10974. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10975. (exit $ac_status); } && {
  10976. test -z "$ac_c_werror_flag" ||
  10977. test ! -s conftest.err
  10978. } && test -s conftest$ac_exeext &&
  10979. $as_test_x conftest$ac_exeext; then
  10980. ac_cv_lib_nsl_printf=yes
  10981. else
  10982. echo "$as_me: failed program was:" >&5
  10983. sed 's/^/| /' conftest.$ac_ext >&5
  10984. ac_cv_lib_nsl_printf=no
  10985. fi
  10986. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10987. conftest$ac_exeext conftest.$ac_ext
  10988. LIBS=$ac_check_lib_save_LIBS
  10989. fi
  10990. { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_printf" >&5
  10991. echo "${ECHO_T}$ac_cv_lib_nsl_printf" >&6; }
  10992. if test $ac_cv_lib_nsl_printf = yes; then
  10993. cat >>confdefs.h <<_ACEOF
  10994. #define HAVE_LIBNSL 1
  10995. _ACEOF
  10996. LIBS="-lnsl $LIBS"
  10997. fi
  10998. ;;
  10999. esac
  11000. case "$LIBS" in
  11001. *-lsocket*) ;;
  11002. *)
  11003. { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
  11004. echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
  11005. if test "${ac_cv_lib_socket_connect+set}" = set; then
  11006. echo $ECHO_N "(cached) $ECHO_C" >&6
  11007. else
  11008. ac_check_lib_save_LIBS=$LIBS
  11009. LIBS="-lsocket $LIBS"
  11010. cat >conftest.$ac_ext <<_ACEOF
  11011. /* confdefs.h. */
  11012. _ACEOF
  11013. cat confdefs.h >>conftest.$ac_ext
  11014. cat >>conftest.$ac_ext <<_ACEOF
  11015. /* end confdefs.h. */
  11016. /* Override any GCC internal prototype to avoid an error.
  11017. Use char because int might match the return type of a GCC
  11018. builtin and then its argument prototype would still apply. */
  11019. #ifdef __cplusplus
  11020. extern "C"
  11021. #endif
  11022. char connect ();
  11023. int
  11024. main ()
  11025. {
  11026. return connect ();
  11027. ;
  11028. return 0;
  11029. }
  11030. _ACEOF
  11031. rm -f conftest.$ac_objext conftest$ac_exeext
  11032. if { (ac_try="$ac_link"
  11033. case "(($ac_try" in
  11034. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11035. *) ac_try_echo=$ac_try;;
  11036. esac
  11037. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11038. (eval "$ac_link") 2>conftest.er1
  11039. ac_status=$?
  11040. grep -v '^ *+' conftest.er1 >conftest.err
  11041. rm -f conftest.er1
  11042. cat conftest.err >&5
  11043. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11044. (exit $ac_status); } && {
  11045. test -z "$ac_c_werror_flag" ||
  11046. test ! -s conftest.err
  11047. } && test -s conftest$ac_exeext &&
  11048. $as_test_x conftest$ac_exeext; then
  11049. ac_cv_lib_socket_connect=yes
  11050. else
  11051. echo "$as_me: failed program was:" >&5
  11052. sed 's/^/| /' conftest.$ac_ext >&5
  11053. ac_cv_lib_socket_connect=no
  11054. fi
  11055. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11056. conftest$ac_exeext conftest.$ac_ext
  11057. LIBS=$ac_check_lib_save_LIBS
  11058. fi
  11059. { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
  11060. echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
  11061. if test $ac_cv_lib_socket_connect = yes; then
  11062. cat >>confdefs.h <<_ACEOF
  11063. #define HAVE_LIBSOCKET 1
  11064. _ACEOF
  11065. LIBS="-lsocket $LIBS"
  11066. fi
  11067. ;;
  11068. esac
  11069. case "$LIBS" in
  11070. *-linet*) ;;
  11071. *)
  11072. { echo "$as_me:$LINENO: checking for connect in -linet" >&5
  11073. echo $ECHO_N "checking for connect in -linet... $ECHO_C" >&6; }
  11074. if test "${ac_cv_lib_inet_connect+set}" = set; then
  11075. echo $ECHO_N "(cached) $ECHO_C" >&6
  11076. else
  11077. ac_check_lib_save_LIBS=$LIBS
  11078. LIBS="-linet $LIBS"
  11079. cat >conftest.$ac_ext <<_ACEOF
  11080. /* confdefs.h. */
  11081. _ACEOF
  11082. cat confdefs.h >>conftest.$ac_ext
  11083. cat >>conftest.$ac_ext <<_ACEOF
  11084. /* end confdefs.h. */
  11085. /* Override any GCC internal prototype to avoid an error.
  11086. Use char because int might match the return type of a GCC
  11087. builtin and then its argument prototype would still apply. */
  11088. #ifdef __cplusplus
  11089. extern "C"
  11090. #endif
  11091. char connect ();
  11092. int
  11093. main ()
  11094. {
  11095. return connect ();
  11096. ;
  11097. return 0;
  11098. }
  11099. _ACEOF
  11100. rm -f conftest.$ac_objext conftest$ac_exeext
  11101. if { (ac_try="$ac_link"
  11102. case "(($ac_try" in
  11103. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11104. *) ac_try_echo=$ac_try;;
  11105. esac
  11106. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11107. (eval "$ac_link") 2>conftest.er1
  11108. ac_status=$?
  11109. grep -v '^ *+' conftest.er1 >conftest.err
  11110. rm -f conftest.er1
  11111. cat conftest.err >&5
  11112. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11113. (exit $ac_status); } && {
  11114. test -z "$ac_c_werror_flag" ||
  11115. test ! -s conftest.err
  11116. } && test -s conftest$ac_exeext &&
  11117. $as_test_x conftest$ac_exeext; then
  11118. ac_cv_lib_inet_connect=yes
  11119. else
  11120. echo "$as_me: failed program was:" >&5
  11121. sed 's/^/| /' conftest.$ac_ext >&5
  11122. ac_cv_lib_inet_connect=no
  11123. fi
  11124. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11125. conftest$ac_exeext conftest.$ac_ext
  11126. LIBS=$ac_check_lib_save_LIBS
  11127. fi
  11128. { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_connect" >&5
  11129. echo "${ECHO_T}$ac_cv_lib_inet_connect" >&6; }
  11130. if test $ac_cv_lib_inet_connect = yes; then
  11131. cat >>confdefs.h <<_ACEOF
  11132. #define HAVE_LIBINET 1
  11133. _ACEOF
  11134. LIBS="-linet $LIBS"
  11135. fi
  11136. ;;
  11137. esac
  11138. if test x"$ac_cv_lib_socket_connect" = x"yes" ||
  11139. test x"$ac_cv_lib_inet_connect" = x"yes"; then
  11140. # ac_cv_func_connect=yes
  11141. # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
  11142. cat >>confdefs.h <<\_ACEOF
  11143. #define HAVE_CONNECT 1
  11144. _ACEOF
  11145. fi
  11146. fi
  11147. { echo "$as_me:$LINENO: checking for library containing inet_ntop" >&5
  11148. echo $ECHO_N "checking for library containing inet_ntop... $ECHO_C" >&6; }
  11149. if test "${ac_cv_search_inet_ntop+set}" = set; then
  11150. echo $ECHO_N "(cached) $ECHO_C" >&6
  11151. else
  11152. ac_func_search_save_LIBS=$LIBS
  11153. cat >conftest.$ac_ext <<_ACEOF
  11154. /* confdefs.h. */
  11155. _ACEOF
  11156. cat confdefs.h >>conftest.$ac_ext
  11157. cat >>conftest.$ac_ext <<_ACEOF
  11158. /* end confdefs.h. */
  11159. /* Override any GCC internal prototype to avoid an error.
  11160. Use char because int might match the return type of a GCC
  11161. builtin and then its argument prototype would still apply. */
  11162. #ifdef __cplusplus
  11163. extern "C"
  11164. #endif
  11165. char inet_ntop ();
  11166. int
  11167. main ()
  11168. {
  11169. return inet_ntop ();
  11170. ;
  11171. return 0;
  11172. }
  11173. _ACEOF
  11174. for ac_lib in '' resolv; do
  11175. if test -z "$ac_lib"; then
  11176. ac_res="none required"
  11177. else
  11178. ac_res=-l$ac_lib
  11179. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  11180. fi
  11181. rm -f conftest.$ac_objext conftest$ac_exeext
  11182. if { (ac_try="$ac_link"
  11183. case "(($ac_try" in
  11184. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11185. *) ac_try_echo=$ac_try;;
  11186. esac
  11187. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11188. (eval "$ac_link") 2>conftest.er1
  11189. ac_status=$?
  11190. grep -v '^ *+' conftest.er1 >conftest.err
  11191. rm -f conftest.er1
  11192. cat conftest.err >&5
  11193. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11194. (exit $ac_status); } && {
  11195. test -z "$ac_c_werror_flag" ||
  11196. test ! -s conftest.err
  11197. } && test -s conftest$ac_exeext &&
  11198. $as_test_x conftest$ac_exeext; then
  11199. ac_cv_search_inet_ntop=$ac_res
  11200. else
  11201. echo "$as_me: failed program was:" >&5
  11202. sed 's/^/| /' conftest.$ac_ext >&5
  11203. fi
  11204. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11205. conftest$ac_exeext
  11206. if test "${ac_cv_search_inet_ntop+set}" = set; then
  11207. break
  11208. fi
  11209. done
  11210. if test "${ac_cv_search_inet_ntop+set}" = set; then
  11211. :
  11212. else
  11213. ac_cv_search_inet_ntop=no
  11214. fi
  11215. rm conftest.$ac_ext
  11216. LIBS=$ac_func_search_save_LIBS
  11217. fi
  11218. { echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntop" >&5
  11219. echo "${ECHO_T}$ac_cv_search_inet_ntop" >&6; }
  11220. ac_res=$ac_cv_search_inet_ntop
  11221. if test "$ac_res" != no; then
  11222. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  11223. fi
  11224. # Solaris and HP-UX weirdness:
  11225. # Search for libiconv_open (not iconv_open) to discover if -liconv is needed!
  11226. { echo "$as_me:$LINENO: checking for library containing libiconv_open" >&5
  11227. echo $ECHO_N "checking for library containing libiconv_open... $ECHO_C" >&6; }
  11228. if test "${ac_cv_search_libiconv_open+set}" = set; then
  11229. echo $ECHO_N "(cached) $ECHO_C" >&6
  11230. else
  11231. ac_func_search_save_LIBS=$LIBS
  11232. cat >conftest.$ac_ext <<_ACEOF
  11233. /* confdefs.h. */
  11234. _ACEOF
  11235. cat confdefs.h >>conftest.$ac_ext
  11236. cat >>conftest.$ac_ext <<_ACEOF
  11237. /* end confdefs.h. */
  11238. /* Override any GCC internal prototype to avoid an error.
  11239. Use char because int might match the return type of a GCC
  11240. builtin and then its argument prototype would still apply. */
  11241. #ifdef __cplusplus
  11242. extern "C"
  11243. #endif
  11244. char libiconv_open ();
  11245. int
  11246. main ()
  11247. {
  11248. return libiconv_open ();
  11249. ;
  11250. return 0;
  11251. }
  11252. _ACEOF
  11253. for ac_lib in '' iconv; do
  11254. if test -z "$ac_lib"; then
  11255. ac_res="none required"
  11256. else
  11257. ac_res=-l$ac_lib
  11258. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  11259. fi
  11260. rm -f conftest.$ac_objext conftest$ac_exeext
  11261. if { (ac_try="$ac_link"
  11262. case "(($ac_try" in
  11263. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11264. *) ac_try_echo=$ac_try;;
  11265. esac
  11266. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11267. (eval "$ac_link") 2>conftest.er1
  11268. ac_status=$?
  11269. grep -v '^ *+' conftest.er1 >conftest.err
  11270. rm -f conftest.er1
  11271. cat conftest.err >&5
  11272. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11273. (exit $ac_status); } && {
  11274. test -z "$ac_c_werror_flag" ||
  11275. test ! -s conftest.err
  11276. } && test -s conftest$ac_exeext &&
  11277. $as_test_x conftest$ac_exeext; then
  11278. ac_cv_search_libiconv_open=$ac_res
  11279. else
  11280. echo "$as_me: failed program was:" >&5
  11281. sed 's/^/| /' conftest.$ac_ext >&5
  11282. fi
  11283. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11284. conftest$ac_exeext
  11285. if test "${ac_cv_search_libiconv_open+set}" = set; then
  11286. break
  11287. fi
  11288. done
  11289. if test "${ac_cv_search_libiconv_open+set}" = set; then
  11290. :
  11291. else
  11292. ac_cv_search_libiconv_open=no
  11293. fi
  11294. rm conftest.$ac_ext
  11295. LIBS=$ac_func_search_save_LIBS
  11296. fi
  11297. { echo "$as_me:$LINENO: result: $ac_cv_search_libiconv_open" >&5
  11298. echo "${ECHO_T}$ac_cv_search_libiconv_open" >&6; }
  11299. ac_res=$ac_cv_search_libiconv_open
  11300. if test "$ac_res" != no; then
  11301. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  11302. fi
  11303. { echo "$as_me:$LINENO: checking for iconv declaration" >&5
  11304. echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
  11305. if test "${am_cv_proto_iconv+set}" = set; then
  11306. echo $ECHO_N "(cached) $ECHO_C" >&6
  11307. else
  11308. cat >conftest.$ac_ext <<_ACEOF
  11309. /* confdefs.h. */
  11310. _ACEOF
  11311. cat confdefs.h >>conftest.$ac_ext
  11312. cat >>conftest.$ac_ext <<_ACEOF
  11313. /* end confdefs.h. */
  11314. #include <stdlib.h>
  11315. #include <iconv.h>
  11316. extern
  11317. #ifdef __cplusplus
  11318. "C"
  11319. #endif
  11320. #if defined(__STDC__) || defined(__cplusplus)
  11321. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  11322. #else
  11323. size_t iconv();
  11324. #endif
  11325. int
  11326. main ()
  11327. {
  11328. ;
  11329. return 0;
  11330. }
  11331. _ACEOF
  11332. rm -f conftest.$ac_objext
  11333. if { (ac_try="$ac_compile"
  11334. case "(($ac_try" in
  11335. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11336. *) ac_try_echo=$ac_try;;
  11337. esac
  11338. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11339. (eval "$ac_compile") 2>conftest.er1
  11340. ac_status=$?
  11341. grep -v '^ *+' conftest.er1 >conftest.err
  11342. rm -f conftest.er1
  11343. cat conftest.err >&5
  11344. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11345. (exit $ac_status); } && {
  11346. test -z "$ac_c_werror_flag" ||
  11347. test ! -s conftest.err
  11348. } && test -s conftest.$ac_objext; then
  11349. am_cv_proto_iconv_arg1=""
  11350. else
  11351. echo "$as_me: failed program was:" >&5
  11352. sed 's/^/| /' conftest.$ac_ext >&5
  11353. am_cv_proto_iconv_arg1="const"
  11354. fi
  11355. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11356. am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
  11357. fi
  11358. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  11359. { echo "$as_me:$LINENO: result: ${ac_t:-
  11360. }$am_cv_proto_iconv" >&5
  11361. echo "${ECHO_T}${ac_t:-
  11362. }$am_cv_proto_iconv" >&6; }
  11363. cat >>confdefs.h <<_ACEOF
  11364. #define ICONV_CONST $am_cv_proto_iconv_arg1
  11365. _ACEOF
  11366. for ac_func in inet_ntop
  11367. do
  11368. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11369. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11370. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11371. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11372. echo $ECHO_N "(cached) $ECHO_C" >&6
  11373. else
  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. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11381. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11382. #define $ac_func innocuous_$ac_func
  11383. /* System header to define __stub macros and hopefully few prototypes,
  11384. which can conflict with char $ac_func (); below.
  11385. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11386. <limits.h> exists even on freestanding compilers. */
  11387. #ifdef __STDC__
  11388. # include <limits.h>
  11389. #else
  11390. # include <assert.h>
  11391. #endif
  11392. #undef $ac_func
  11393. /* Override any GCC internal prototype to avoid an error.
  11394. Use char because int might match the return type of a GCC
  11395. builtin and then its argument prototype would still apply. */
  11396. #ifdef __cplusplus
  11397. extern "C"
  11398. #endif
  11399. char $ac_func ();
  11400. /* The GNU C library defines this for functions which it implements
  11401. to always fail with ENOSYS. Some functions are actually named
  11402. something starting with __ and the normal name is an alias. */
  11403. #if defined __stub_$ac_func || defined __stub___$ac_func
  11404. choke me
  11405. #endif
  11406. int
  11407. main ()
  11408. {
  11409. return $ac_func ();
  11410. ;
  11411. return 0;
  11412. }
  11413. _ACEOF
  11414. rm -f conftest.$ac_objext conftest$ac_exeext
  11415. if { (ac_try="$ac_link"
  11416. case "(($ac_try" in
  11417. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11418. *) ac_try_echo=$ac_try;;
  11419. esac
  11420. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11421. (eval "$ac_link") 2>conftest.er1
  11422. ac_status=$?
  11423. grep -v '^ *+' conftest.er1 >conftest.err
  11424. rm -f conftest.er1
  11425. cat conftest.err >&5
  11426. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11427. (exit $ac_status); } && {
  11428. test -z "$ac_c_werror_flag" ||
  11429. test ! -s conftest.err
  11430. } && test -s conftest$ac_exeext &&
  11431. $as_test_x conftest$ac_exeext; then
  11432. eval "$as_ac_var=yes"
  11433. else
  11434. echo "$as_me: failed program was:" >&5
  11435. sed 's/^/| /' conftest.$ac_ext >&5
  11436. eval "$as_ac_var=no"
  11437. fi
  11438. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11439. conftest$ac_exeext conftest.$ac_ext
  11440. fi
  11441. ac_res=`eval echo '${'$as_ac_var'}'`
  11442. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11443. echo "${ECHO_T}$ac_res" >&6; }
  11444. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11445. cat >>confdefs.h <<_ACEOF
  11446. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11447. _ACEOF
  11448. else
  11449. case " $LIBOBJS " in
  11450. *" lib/inet_ntop.$ac_objext "* ) ;;
  11451. *) LIBOBJS="$LIBOBJS lib/inet_ntop.$ac_objext"
  11452. ;;
  11453. esac
  11454. fi
  11455. done
  11456. for ac_func in inet_pton
  11457. do
  11458. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11459. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11460. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11461. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11462. echo $ECHO_N "(cached) $ECHO_C" >&6
  11463. else
  11464. cat >conftest.$ac_ext <<_ACEOF
  11465. /* confdefs.h. */
  11466. _ACEOF
  11467. cat confdefs.h >>conftest.$ac_ext
  11468. cat >>conftest.$ac_ext <<_ACEOF
  11469. /* end confdefs.h. */
  11470. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11471. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11472. #define $ac_func innocuous_$ac_func
  11473. /* System header to define __stub macros and hopefully few prototypes,
  11474. which can conflict with char $ac_func (); below.
  11475. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11476. <limits.h> exists even on freestanding compilers. */
  11477. #ifdef __STDC__
  11478. # include <limits.h>
  11479. #else
  11480. # include <assert.h>
  11481. #endif
  11482. #undef $ac_func
  11483. /* Override any GCC internal prototype to avoid an error.
  11484. Use char because int might match the return type of a GCC
  11485. builtin and then its argument prototype would still apply. */
  11486. #ifdef __cplusplus
  11487. extern "C"
  11488. #endif
  11489. char $ac_func ();
  11490. /* The GNU C library defines this for functions which it implements
  11491. to always fail with ENOSYS. Some functions are actually named
  11492. something starting with __ and the normal name is an alias. */
  11493. #if defined __stub_$ac_func || defined __stub___$ac_func
  11494. choke me
  11495. #endif
  11496. int
  11497. main ()
  11498. {
  11499. return $ac_func ();
  11500. ;
  11501. return 0;
  11502. }
  11503. _ACEOF
  11504. rm -f conftest.$ac_objext conftest$ac_exeext
  11505. if { (ac_try="$ac_link"
  11506. case "(($ac_try" in
  11507. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11508. *) ac_try_echo=$ac_try;;
  11509. esac
  11510. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11511. (eval "$ac_link") 2>conftest.er1
  11512. ac_status=$?
  11513. grep -v '^ *+' conftest.er1 >conftest.err
  11514. rm -f conftest.er1
  11515. cat conftest.err >&5
  11516. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11517. (exit $ac_status); } && {
  11518. test -z "$ac_c_werror_flag" ||
  11519. test ! -s conftest.err
  11520. } && test -s conftest$ac_exeext &&
  11521. $as_test_x conftest$ac_exeext; then
  11522. eval "$as_ac_var=yes"
  11523. else
  11524. echo "$as_me: failed program was:" >&5
  11525. sed 's/^/| /' conftest.$ac_ext >&5
  11526. eval "$as_ac_var=no"
  11527. fi
  11528. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11529. conftest$ac_exeext conftest.$ac_ext
  11530. fi
  11531. ac_res=`eval echo '${'$as_ac_var'}'`
  11532. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11533. echo "${ECHO_T}$ac_res" >&6; }
  11534. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11535. cat >>confdefs.h <<_ACEOF
  11536. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11537. _ACEOF
  11538. else
  11539. case " $LIBOBJS " in
  11540. *" lib/inet_pton.$ac_objext "* ) ;;
  11541. *) LIBOBJS="$LIBOBJS lib/inet_pton.$ac_objext"
  11542. ;;
  11543. esac
  11544. fi
  11545. done
  11546. cv=`echo "struct addrinfo" | sed 'y%./+- %__p__%'`
  11547. { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
  11548. echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
  11549. if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then
  11550. echo $ECHO_N "(cached) $ECHO_C" >&6
  11551. else
  11552. cat >conftest.$ac_ext <<_ACEOF
  11553. /* confdefs.h. */
  11554. _ACEOF
  11555. cat confdefs.h >>conftest.$ac_ext
  11556. cat >>conftest.$ac_ext <<_ACEOF
  11557. /* end confdefs.h. */
  11558. $ac_includes_default
  11559. #include <netdb.h>
  11560. int
  11561. main ()
  11562. {
  11563. struct addrinfo foo;
  11564. ;
  11565. return 0;
  11566. }
  11567. _ACEOF
  11568. rm -f conftest.$ac_objext
  11569. if { (ac_try="$ac_compile"
  11570. case "(($ac_try" in
  11571. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11572. *) ac_try_echo=$ac_try;;
  11573. esac
  11574. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11575. (eval "$ac_compile") 2>conftest.er1
  11576. ac_status=$?
  11577. grep -v '^ *+' conftest.er1 >conftest.err
  11578. rm -f conftest.er1
  11579. cat conftest.err >&5
  11580. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11581. (exit $ac_status); } && {
  11582. test -z "$ac_c_werror_flag" ||
  11583. test ! -s conftest.err
  11584. } && test -s conftest.$ac_objext; then
  11585. eval "ac_cv_type_$cv=yes"
  11586. else
  11587. echo "$as_me: failed program was:" >&5
  11588. sed 's/^/| /' conftest.$ac_ext >&5
  11589. eval "ac_cv_type_$cv=no"
  11590. fi
  11591. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11592. fi
  11593. ac_foo=`eval echo \\$ac_cv_type_$cv`
  11594. { echo "$as_me:$LINENO: result: $ac_foo" >&5
  11595. echo "${ECHO_T}$ac_foo" >&6; }
  11596. if test "$ac_foo" = yes; then
  11597. ac_tr_hdr=HAVE_`echo struct addrinfo | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
  11598. if false; then
  11599. { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
  11600. echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
  11601. if test "${ac_cv_type_struct_addrinfo+set}" = set; then
  11602. echo $ECHO_N "(cached) $ECHO_C" >&6
  11603. else
  11604. cat >conftest.$ac_ext <<_ACEOF
  11605. /* confdefs.h. */
  11606. _ACEOF
  11607. cat confdefs.h >>conftest.$ac_ext
  11608. cat >>conftest.$ac_ext <<_ACEOF
  11609. /* end confdefs.h. */
  11610. $ac_includes_default
  11611. typedef struct addrinfo ac__type_new_;
  11612. int
  11613. main ()
  11614. {
  11615. if ((ac__type_new_ *) 0)
  11616. return 0;
  11617. if (sizeof (ac__type_new_))
  11618. return 0;
  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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11630. (eval "$ac_compile") 2>conftest.er1
  11631. ac_status=$?
  11632. grep -v '^ *+' conftest.er1 >conftest.err
  11633. rm -f conftest.er1
  11634. cat conftest.err >&5
  11635. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11636. (exit $ac_status); } && {
  11637. test -z "$ac_c_werror_flag" ||
  11638. test ! -s conftest.err
  11639. } && test -s conftest.$ac_objext; then
  11640. ac_cv_type_struct_addrinfo=yes
  11641. else
  11642. echo "$as_me: failed program was:" >&5
  11643. sed 's/^/| /' conftest.$ac_ext >&5
  11644. ac_cv_type_struct_addrinfo=no
  11645. fi
  11646. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11647. fi
  11648. { echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
  11649. echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6; }
  11650. if test $ac_cv_type_struct_addrinfo = yes; then
  11651. cat >>confdefs.h <<_ACEOF
  11652. #define HAVE_STRUCT_ADDRINFO 1
  11653. _ACEOF
  11654. fi
  11655. fi
  11656. cat >>confdefs.h <<_ACEOF
  11657. #define $ac_tr_hdr 1
  11658. _ACEOF
  11659. fi
  11660. cv=`echo "struct sockaddr_storage" | sed 'y%./+- %__p__%'`
  11661. { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
  11662. echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
  11663. if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then
  11664. echo $ECHO_N "(cached) $ECHO_C" >&6
  11665. else
  11666. cat >conftest.$ac_ext <<_ACEOF
  11667. /* confdefs.h. */
  11668. _ACEOF
  11669. cat confdefs.h >>conftest.$ac_ext
  11670. cat >>conftest.$ac_ext <<_ACEOF
  11671. /* end confdefs.h. */
  11672. $ac_includes_default
  11673. #include <sys/types.h>
  11674. #include <sys/socket.h>
  11675. int
  11676. main ()
  11677. {
  11678. struct sockaddr_storage foo;
  11679. ;
  11680. return 0;
  11681. }
  11682. _ACEOF
  11683. rm -f conftest.$ac_objext
  11684. if { (ac_try="$ac_compile"
  11685. case "(($ac_try" in
  11686. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11687. *) ac_try_echo=$ac_try;;
  11688. esac
  11689. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11690. (eval "$ac_compile") 2>conftest.er1
  11691. ac_status=$?
  11692. grep -v '^ *+' conftest.er1 >conftest.err
  11693. rm -f conftest.er1
  11694. cat conftest.err >&5
  11695. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11696. (exit $ac_status); } && {
  11697. test -z "$ac_c_werror_flag" ||
  11698. test ! -s conftest.err
  11699. } && test -s conftest.$ac_objext; then
  11700. eval "ac_cv_type_$cv=yes"
  11701. else
  11702. echo "$as_me: failed program was:" >&5
  11703. sed 's/^/| /' conftest.$ac_ext >&5
  11704. eval "ac_cv_type_$cv=no"
  11705. fi
  11706. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11707. fi
  11708. ac_foo=`eval echo \\$ac_cv_type_$cv`
  11709. { echo "$as_me:$LINENO: result: $ac_foo" >&5
  11710. echo "${ECHO_T}$ac_foo" >&6; }
  11711. if test "$ac_foo" = yes; then
  11712. ac_tr_hdr=HAVE_`echo struct sockaddr_storage | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
  11713. if false; then
  11714. { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
  11715. echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
  11716. if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
  11717. echo $ECHO_N "(cached) $ECHO_C" >&6
  11718. else
  11719. cat >conftest.$ac_ext <<_ACEOF
  11720. /* confdefs.h. */
  11721. _ACEOF
  11722. cat confdefs.h >>conftest.$ac_ext
  11723. cat >>conftest.$ac_ext <<_ACEOF
  11724. /* end confdefs.h. */
  11725. $ac_includes_default
  11726. typedef struct sockaddr_storage ac__type_new_;
  11727. int
  11728. main ()
  11729. {
  11730. if ((ac__type_new_ *) 0)
  11731. return 0;
  11732. if (sizeof (ac__type_new_))
  11733. return 0;
  11734. ;
  11735. return 0;
  11736. }
  11737. _ACEOF
  11738. rm -f conftest.$ac_objext
  11739. if { (ac_try="$ac_compile"
  11740. case "(($ac_try" in
  11741. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11742. *) ac_try_echo=$ac_try;;
  11743. esac
  11744. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11745. (eval "$ac_compile") 2>conftest.er1
  11746. ac_status=$?
  11747. grep -v '^ *+' conftest.er1 >conftest.err
  11748. rm -f conftest.er1
  11749. cat conftest.err >&5
  11750. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11751. (exit $ac_status); } && {
  11752. test -z "$ac_c_werror_flag" ||
  11753. test ! -s conftest.err
  11754. } && test -s conftest.$ac_objext; then
  11755. ac_cv_type_struct_sockaddr_storage=yes
  11756. else
  11757. echo "$as_me: failed program was:" >&5
  11758. sed 's/^/| /' conftest.$ac_ext >&5
  11759. ac_cv_type_struct_sockaddr_storage=no
  11760. fi
  11761. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11762. fi
  11763. { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
  11764. echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
  11765. if test $ac_cv_type_struct_sockaddr_storage = yes; then
  11766. cat >>confdefs.h <<_ACEOF
  11767. #define HAVE_STRUCT_SOCKADDR_STORAGE 1
  11768. _ACEOF
  11769. fi
  11770. fi
  11771. cat >>confdefs.h <<_ACEOF
  11772. #define $ac_tr_hdr 1
  11773. _ACEOF
  11774. fi
  11775. # Irix 6.5 has getaddrinfo but not the corresponding defines, so use
  11776. # builtin getaddrinfo if one of the defines don't exist
  11777. { echo "$as_me:$LINENO: checking whether defines needed by getaddrinfo exist" >&5
  11778. echo $ECHO_N "checking whether defines needed by getaddrinfo exist... $ECHO_C" >&6; }
  11779. if test "${rsync_cv_HAVE_GETADDR_DEFINES+set}" = set; then
  11780. echo $ECHO_N "(cached) $ECHO_C" >&6
  11781. else
  11782. cat >conftest.$ac_ext <<_ACEOF
  11783. /* confdefs.h. */
  11784. _ACEOF
  11785. cat confdefs.h >>conftest.$ac_ext
  11786. cat >>conftest.$ac_ext <<_ACEOF
  11787. /* end confdefs.h. */
  11788. #include <sys/types.h>
  11789. #include <sys/socket.h>
  11790. #include <netdb.h>
  11791. #ifdef AI_PASSIVE
  11792. yes
  11793. #endif
  11794. _ACEOF
  11795. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11796. $EGREP "yes" >/dev/null 2>&1; then
  11797. rsync_cv_HAVE_GETADDR_DEFINES=yes
  11798. else
  11799. rsync_cv_HAVE_GETADDR_DEFINES=no
  11800. fi
  11801. rm -f conftest*
  11802. fi
  11803. { echo "$as_me:$LINENO: result: $rsync_cv_HAVE_GETADDR_DEFINES" >&5
  11804. echo "${ECHO_T}$rsync_cv_HAVE_GETADDR_DEFINES" >&6; }
  11805. if test x"$rsync_cv_HAVE_GETADDR_DEFINES" = x"yes" -a x"$ac_cv_type_struct_addrinfo" = x"yes"; then
  11806. # Tru64 UNIX has getaddrinfo() but has it renamed in libc as
  11807. # something else so we must include <netdb.h> to get the
  11808. # redefinition.
  11809. for ac_func in getaddrinfo
  11810. do
  11811. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11812. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11813. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11814. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11815. echo $ECHO_N "(cached) $ECHO_C" >&6
  11816. else
  11817. cat >conftest.$ac_ext <<_ACEOF
  11818. /* confdefs.h. */
  11819. _ACEOF
  11820. cat confdefs.h >>conftest.$ac_ext
  11821. cat >>conftest.$ac_ext <<_ACEOF
  11822. /* end confdefs.h. */
  11823. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11824. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11825. #define $ac_func innocuous_$ac_func
  11826. /* System header to define __stub macros and hopefully few prototypes,
  11827. which can conflict with char $ac_func (); below.
  11828. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11829. <limits.h> exists even on freestanding compilers. */
  11830. #ifdef __STDC__
  11831. # include <limits.h>
  11832. #else
  11833. # include <assert.h>
  11834. #endif
  11835. #undef $ac_func
  11836. /* Override any GCC internal prototype to avoid an error.
  11837. Use char because int might match the return type of a GCC
  11838. builtin and then its argument prototype would still apply. */
  11839. #ifdef __cplusplus
  11840. extern "C"
  11841. #endif
  11842. char $ac_func ();
  11843. /* The GNU C library defines this for functions which it implements
  11844. to always fail with ENOSYS. Some functions are actually named
  11845. something starting with __ and the normal name is an alias. */
  11846. #if defined __stub_$ac_func || defined __stub___$ac_func
  11847. choke me
  11848. #endif
  11849. int
  11850. main ()
  11851. {
  11852. return $ac_func ();
  11853. ;
  11854. return 0;
  11855. }
  11856. _ACEOF
  11857. rm -f conftest.$ac_objext conftest$ac_exeext
  11858. if { (ac_try="$ac_link"
  11859. case "(($ac_try" in
  11860. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11861. *) ac_try_echo=$ac_try;;
  11862. esac
  11863. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11864. (eval "$ac_link") 2>conftest.er1
  11865. ac_status=$?
  11866. grep -v '^ *+' conftest.er1 >conftest.err
  11867. rm -f conftest.er1
  11868. cat conftest.err >&5
  11869. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11870. (exit $ac_status); } && {
  11871. test -z "$ac_c_werror_flag" ||
  11872. test ! -s conftest.err
  11873. } && test -s conftest$ac_exeext &&
  11874. $as_test_x conftest$ac_exeext; then
  11875. eval "$as_ac_var=yes"
  11876. else
  11877. echo "$as_me: failed program was:" >&5
  11878. sed 's/^/| /' conftest.$ac_ext >&5
  11879. eval "$as_ac_var=no"
  11880. fi
  11881. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11882. conftest$ac_exeext conftest.$ac_ext
  11883. fi
  11884. ac_res=`eval echo '${'$as_ac_var'}'`
  11885. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11886. echo "${ECHO_T}$ac_res" >&6; }
  11887. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11888. cat >>confdefs.h <<_ACEOF
  11889. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11890. _ACEOF
  11891. else
  11892. { echo "$as_me:$LINENO: checking for getaddrinfo by including <netdb.h>" >&5
  11893. echo $ECHO_N "checking for getaddrinfo by including <netdb.h>... $ECHO_C" >&6; }
  11894. cat >conftest.$ac_ext <<_ACEOF
  11895. /* confdefs.h. */
  11896. _ACEOF
  11897. cat confdefs.h >>conftest.$ac_ext
  11898. cat >>conftest.$ac_ext <<_ACEOF
  11899. /* end confdefs.h. */
  11900. #include <sys/types.h>
  11901. #include <sys/socket.h>
  11902. #include <netdb.h>
  11903. int
  11904. main ()
  11905. {
  11906. getaddrinfo(NULL, NULL, NULL, NULL);
  11907. ;
  11908. return 0;
  11909. }
  11910. _ACEOF
  11911. rm -f conftest.$ac_objext conftest$ac_exeext
  11912. if { (ac_try="$ac_link"
  11913. case "(($ac_try" in
  11914. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11915. *) ac_try_echo=$ac_try;;
  11916. esac
  11917. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11918. (eval "$ac_link") 2>conftest.er1
  11919. ac_status=$?
  11920. grep -v '^ *+' conftest.er1 >conftest.err
  11921. rm -f conftest.er1
  11922. cat conftest.err >&5
  11923. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11924. (exit $ac_status); } && {
  11925. test -z "$ac_c_werror_flag" ||
  11926. test ! -s conftest.err
  11927. } && test -s conftest$ac_exeext &&
  11928. $as_test_x conftest$ac_exeext; then
  11929. { echo "$as_me:$LINENO: result: yes" >&5
  11930. echo "${ECHO_T}yes" >&6; }
  11931. cat >>confdefs.h <<\_ACEOF
  11932. #define HAVE_GETADDRINFO 1
  11933. _ACEOF
  11934. else
  11935. echo "$as_me: failed program was:" >&5
  11936. sed 's/^/| /' conftest.$ac_ext >&5
  11937. { echo "$as_me:$LINENO: result: no" >&5
  11938. echo "${ECHO_T}no" >&6; }
  11939. case " $LIBOBJS " in
  11940. *" lib/getaddrinfo.$ac_objext "* ) ;;
  11941. *) LIBOBJS="$LIBOBJS lib/getaddrinfo.$ac_objext"
  11942. ;;
  11943. esac
  11944. fi
  11945. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11946. conftest$ac_exeext conftest.$ac_ext
  11947. fi
  11948. done
  11949. else
  11950. case " $LIBOBJS " in
  11951. *" lib/getaddrinfo.$ac_objext "* ) ;;
  11952. *) LIBOBJS="$LIBOBJS lib/getaddrinfo.$ac_objext"
  11953. ;;
  11954. esac
  11955. fi
  11956. { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
  11957. echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
  11958. if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
  11959. echo $ECHO_N "(cached) $ECHO_C" >&6
  11960. else
  11961. cat >conftest.$ac_ext <<_ACEOF
  11962. /* confdefs.h. */
  11963. _ACEOF
  11964. cat confdefs.h >>conftest.$ac_ext
  11965. cat >>conftest.$ac_ext <<_ACEOF
  11966. /* end confdefs.h. */
  11967. #include <sys/types.h>
  11968. #include <sys/socket.h>
  11969. int
  11970. main ()
  11971. {
  11972. static struct sockaddr ac_aggr;
  11973. if (ac_aggr.sa_len)
  11974. return 0;
  11975. ;
  11976. return 0;
  11977. }
  11978. _ACEOF
  11979. rm -f conftest.$ac_objext
  11980. if { (ac_try="$ac_compile"
  11981. case "(($ac_try" in
  11982. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11983. *) ac_try_echo=$ac_try;;
  11984. esac
  11985. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11986. (eval "$ac_compile") 2>conftest.er1
  11987. ac_status=$?
  11988. grep -v '^ *+' conftest.er1 >conftest.err
  11989. rm -f conftest.er1
  11990. cat conftest.err >&5
  11991. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11992. (exit $ac_status); } && {
  11993. test -z "$ac_c_werror_flag" ||
  11994. test ! -s conftest.err
  11995. } && test -s conftest.$ac_objext; then
  11996. ac_cv_member_struct_sockaddr_sa_len=yes
  11997. else
  11998. echo "$as_me: failed program was:" >&5
  11999. sed 's/^/| /' conftest.$ac_ext >&5
  12000. cat >conftest.$ac_ext <<_ACEOF
  12001. /* confdefs.h. */
  12002. _ACEOF
  12003. cat confdefs.h >>conftest.$ac_ext
  12004. cat >>conftest.$ac_ext <<_ACEOF
  12005. /* end confdefs.h. */
  12006. #include <sys/types.h>
  12007. #include <sys/socket.h>
  12008. int
  12009. main ()
  12010. {
  12011. static struct sockaddr ac_aggr;
  12012. if (sizeof ac_aggr.sa_len)
  12013. return 0;
  12014. ;
  12015. return 0;
  12016. }
  12017. _ACEOF
  12018. rm -f conftest.$ac_objext
  12019. if { (ac_try="$ac_compile"
  12020. case "(($ac_try" in
  12021. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12022. *) ac_try_echo=$ac_try;;
  12023. esac
  12024. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12025. (eval "$ac_compile") 2>conftest.er1
  12026. ac_status=$?
  12027. grep -v '^ *+' conftest.er1 >conftest.err
  12028. rm -f conftest.er1
  12029. cat conftest.err >&5
  12030. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12031. (exit $ac_status); } && {
  12032. test -z "$ac_c_werror_flag" ||
  12033. test ! -s conftest.err
  12034. } && test -s conftest.$ac_objext; then
  12035. ac_cv_member_struct_sockaddr_sa_len=yes
  12036. else
  12037. echo "$as_me: failed program was:" >&5
  12038. sed 's/^/| /' conftest.$ac_ext >&5
  12039. ac_cv_member_struct_sockaddr_sa_len=no
  12040. fi
  12041. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12042. fi
  12043. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12044. fi
  12045. { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
  12046. echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
  12047. if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
  12048. cat >>confdefs.h <<\_ACEOF
  12049. #define HAVE_SOCKADDR_LEN 1
  12050. _ACEOF
  12051. fi
  12052. { echo "$as_me:$LINENO: checking for struct sockaddr_in.sin_len" >&5
  12053. echo $ECHO_N "checking for struct sockaddr_in.sin_len... $ECHO_C" >&6; }
  12054. if test "${ac_cv_member_struct_sockaddr_in_sin_len+set}" = set; then
  12055. echo $ECHO_N "(cached) $ECHO_C" >&6
  12056. else
  12057. cat >conftest.$ac_ext <<_ACEOF
  12058. /* confdefs.h. */
  12059. _ACEOF
  12060. cat confdefs.h >>conftest.$ac_ext
  12061. cat >>conftest.$ac_ext <<_ACEOF
  12062. /* end confdefs.h. */
  12063. #include <sys/types.h>
  12064. #include <sys/socket.h>
  12065. #include <netinet/in.h>
  12066. int
  12067. main ()
  12068. {
  12069. static struct sockaddr_in ac_aggr;
  12070. if (ac_aggr.sin_len)
  12071. return 0;
  12072. ;
  12073. return 0;
  12074. }
  12075. _ACEOF
  12076. rm -f conftest.$ac_objext
  12077. if { (ac_try="$ac_compile"
  12078. case "(($ac_try" in
  12079. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12080. *) ac_try_echo=$ac_try;;
  12081. esac
  12082. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12083. (eval "$ac_compile") 2>conftest.er1
  12084. ac_status=$?
  12085. grep -v '^ *+' conftest.er1 >conftest.err
  12086. rm -f conftest.er1
  12087. cat conftest.err >&5
  12088. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12089. (exit $ac_status); } && {
  12090. test -z "$ac_c_werror_flag" ||
  12091. test ! -s conftest.err
  12092. } && test -s conftest.$ac_objext; then
  12093. ac_cv_member_struct_sockaddr_in_sin_len=yes
  12094. else
  12095. echo "$as_me: failed program was:" >&5
  12096. sed 's/^/| /' conftest.$ac_ext >&5
  12097. cat >conftest.$ac_ext <<_ACEOF
  12098. /* confdefs.h. */
  12099. _ACEOF
  12100. cat confdefs.h >>conftest.$ac_ext
  12101. cat >>conftest.$ac_ext <<_ACEOF
  12102. /* end confdefs.h. */
  12103. #include <sys/types.h>
  12104. #include <sys/socket.h>
  12105. #include <netinet/in.h>
  12106. int
  12107. main ()
  12108. {
  12109. static struct sockaddr_in ac_aggr;
  12110. if (sizeof ac_aggr.sin_len)
  12111. return 0;
  12112. ;
  12113. return 0;
  12114. }
  12115. _ACEOF
  12116. rm -f conftest.$ac_objext
  12117. if { (ac_try="$ac_compile"
  12118. case "(($ac_try" in
  12119. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12120. *) ac_try_echo=$ac_try;;
  12121. esac
  12122. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12123. (eval "$ac_compile") 2>conftest.er1
  12124. ac_status=$?
  12125. grep -v '^ *+' conftest.er1 >conftest.err
  12126. rm -f conftest.er1
  12127. cat conftest.err >&5
  12128. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12129. (exit $ac_status); } && {
  12130. test -z "$ac_c_werror_flag" ||
  12131. test ! -s conftest.err
  12132. } && test -s conftest.$ac_objext; then
  12133. ac_cv_member_struct_sockaddr_in_sin_len=yes
  12134. else
  12135. echo "$as_me: failed program was:" >&5
  12136. sed 's/^/| /' conftest.$ac_ext >&5
  12137. ac_cv_member_struct_sockaddr_in_sin_len=no
  12138. fi
  12139. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12140. fi
  12141. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12142. fi
  12143. { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in_sin_len" >&5
  12144. echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in_sin_len" >&6; }
  12145. if test $ac_cv_member_struct_sockaddr_in_sin_len = yes; then
  12146. cat >>confdefs.h <<\_ACEOF
  12147. #define HAVE_SOCKADDR_IN_LEN 1
  12148. _ACEOF
  12149. fi
  12150. { echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
  12151. echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6; }
  12152. if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
  12153. echo $ECHO_N "(cached) $ECHO_C" >&6
  12154. else
  12155. cat >conftest.$ac_ext <<_ACEOF
  12156. /* confdefs.h. */
  12157. _ACEOF
  12158. cat confdefs.h >>conftest.$ac_ext
  12159. cat >>conftest.$ac_ext <<_ACEOF
  12160. /* end confdefs.h. */
  12161. #include <sys/types.h>
  12162. #include <sys/socket.h>
  12163. #include <netinet/in.h>
  12164. int
  12165. main ()
  12166. {
  12167. static struct sockaddr_un ac_aggr;
  12168. if (ac_aggr.sun_len)
  12169. return 0;
  12170. ;
  12171. return 0;
  12172. }
  12173. _ACEOF
  12174. rm -f conftest.$ac_objext
  12175. if { (ac_try="$ac_compile"
  12176. case "(($ac_try" in
  12177. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12178. *) ac_try_echo=$ac_try;;
  12179. esac
  12180. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12181. (eval "$ac_compile") 2>conftest.er1
  12182. ac_status=$?
  12183. grep -v '^ *+' conftest.er1 >conftest.err
  12184. rm -f conftest.er1
  12185. cat conftest.err >&5
  12186. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12187. (exit $ac_status); } && {
  12188. test -z "$ac_c_werror_flag" ||
  12189. test ! -s conftest.err
  12190. } && test -s conftest.$ac_objext; then
  12191. ac_cv_member_struct_sockaddr_un_sun_len=yes
  12192. else
  12193. echo "$as_me: failed program was:" >&5
  12194. sed 's/^/| /' conftest.$ac_ext >&5
  12195. cat >conftest.$ac_ext <<_ACEOF
  12196. /* confdefs.h. */
  12197. _ACEOF
  12198. cat confdefs.h >>conftest.$ac_ext
  12199. cat >>conftest.$ac_ext <<_ACEOF
  12200. /* end confdefs.h. */
  12201. #include <sys/types.h>
  12202. #include <sys/socket.h>
  12203. #include <netinet/in.h>
  12204. int
  12205. main ()
  12206. {
  12207. static struct sockaddr_un ac_aggr;
  12208. if (sizeof ac_aggr.sun_len)
  12209. return 0;
  12210. ;
  12211. return 0;
  12212. }
  12213. _ACEOF
  12214. rm -f conftest.$ac_objext
  12215. if { (ac_try="$ac_compile"
  12216. case "(($ac_try" in
  12217. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12218. *) ac_try_echo=$ac_try;;
  12219. esac
  12220. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12221. (eval "$ac_compile") 2>conftest.er1
  12222. ac_status=$?
  12223. grep -v '^ *+' conftest.er1 >conftest.err
  12224. rm -f conftest.er1
  12225. cat conftest.err >&5
  12226. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12227. (exit $ac_status); } && {
  12228. test -z "$ac_c_werror_flag" ||
  12229. test ! -s conftest.err
  12230. } && test -s conftest.$ac_objext; then
  12231. ac_cv_member_struct_sockaddr_un_sun_len=yes
  12232. else
  12233. echo "$as_me: failed program was:" >&5
  12234. sed 's/^/| /' conftest.$ac_ext >&5
  12235. ac_cv_member_struct_sockaddr_un_sun_len=no
  12236. fi
  12237. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12238. fi
  12239. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12240. fi
  12241. { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
  12242. echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6; }
  12243. if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
  12244. cat >>confdefs.h <<\_ACEOF
  12245. #define HAVE_SOCKADDR_UN_LEN 1
  12246. _ACEOF
  12247. fi
  12248. { echo "$as_me:$LINENO: checking for struct sockaddr_in6.sin6_scope_id" >&5
  12249. echo $ECHO_N "checking for struct sockaddr_in6.sin6_scope_id... $ECHO_C" >&6; }
  12250. if test "${ac_cv_member_struct_sockaddr_in6_sin6_scope_id+set}" = set; then
  12251. echo $ECHO_N "(cached) $ECHO_C" >&6
  12252. else
  12253. cat >conftest.$ac_ext <<_ACEOF
  12254. /* confdefs.h. */
  12255. _ACEOF
  12256. cat confdefs.h >>conftest.$ac_ext
  12257. cat >>conftest.$ac_ext <<_ACEOF
  12258. /* end confdefs.h. */
  12259. #include <sys/types.h>
  12260. #include <sys/socket.h>
  12261. #include <netinet/in.h>
  12262. int
  12263. main ()
  12264. {
  12265. static struct sockaddr_in6 ac_aggr;
  12266. if (ac_aggr.sin6_scope_id)
  12267. return 0;
  12268. ;
  12269. return 0;
  12270. }
  12271. _ACEOF
  12272. rm -f conftest.$ac_objext
  12273. if { (ac_try="$ac_compile"
  12274. case "(($ac_try" in
  12275. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12276. *) ac_try_echo=$ac_try;;
  12277. esac
  12278. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12279. (eval "$ac_compile") 2>conftest.er1
  12280. ac_status=$?
  12281. grep -v '^ *+' conftest.er1 >conftest.err
  12282. rm -f conftest.er1
  12283. cat conftest.err >&5
  12284. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12285. (exit $ac_status); } && {
  12286. test -z "$ac_c_werror_flag" ||
  12287. test ! -s conftest.err
  12288. } && test -s conftest.$ac_objext; then
  12289. ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
  12290. else
  12291. echo "$as_me: failed program was:" >&5
  12292. sed 's/^/| /' conftest.$ac_ext >&5
  12293. cat >conftest.$ac_ext <<_ACEOF
  12294. /* confdefs.h. */
  12295. _ACEOF
  12296. cat confdefs.h >>conftest.$ac_ext
  12297. cat >>conftest.$ac_ext <<_ACEOF
  12298. /* end confdefs.h. */
  12299. #include <sys/types.h>
  12300. #include <sys/socket.h>
  12301. #include <netinet/in.h>
  12302. int
  12303. main ()
  12304. {
  12305. static struct sockaddr_in6 ac_aggr;
  12306. if (sizeof ac_aggr.sin6_scope_id)
  12307. return 0;
  12308. ;
  12309. return 0;
  12310. }
  12311. _ACEOF
  12312. rm -f conftest.$ac_objext
  12313. if { (ac_try="$ac_compile"
  12314. case "(($ac_try" in
  12315. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12316. *) ac_try_echo=$ac_try;;
  12317. esac
  12318. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12319. (eval "$ac_compile") 2>conftest.er1
  12320. ac_status=$?
  12321. grep -v '^ *+' conftest.er1 >conftest.err
  12322. rm -f conftest.er1
  12323. cat conftest.err >&5
  12324. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12325. (exit $ac_status); } && {
  12326. test -z "$ac_c_werror_flag" ||
  12327. test ! -s conftest.err
  12328. } && test -s conftest.$ac_objext; then
  12329. ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
  12330. else
  12331. echo "$as_me: failed program was:" >&5
  12332. sed 's/^/| /' conftest.$ac_ext >&5
  12333. ac_cv_member_struct_sockaddr_in6_sin6_scope_id=no
  12334. fi
  12335. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12336. fi
  12337. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12338. fi
  12339. { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&5
  12340. echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&6; }
  12341. if test $ac_cv_member_struct_sockaddr_in6_sin6_scope_id = yes; then
  12342. cat >>confdefs.h <<\_ACEOF
  12343. #define HAVE_SOCKADDR_IN6_SCOPE_ID 1
  12344. _ACEOF
  12345. fi
  12346. cv=`echo "struct stat64" | sed 'y%./+- %__p__%'`
  12347. { echo "$as_me:$LINENO: checking for struct stat64" >&5
  12348. echo $ECHO_N "checking for struct stat64... $ECHO_C" >&6; }
  12349. if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then
  12350. echo $ECHO_N "(cached) $ECHO_C" >&6
  12351. else
  12352. cat >conftest.$ac_ext <<_ACEOF
  12353. /* confdefs.h. */
  12354. _ACEOF
  12355. cat confdefs.h >>conftest.$ac_ext
  12356. cat >>conftest.$ac_ext <<_ACEOF
  12357. /* end confdefs.h. */
  12358. $ac_includes_default
  12359. #include <stdio.h>
  12360. #if HAVE_SYS_TYPES_H
  12361. # include <sys/types.h>
  12362. #endif
  12363. #if HAVE_SYS_STAT_H
  12364. # include <sys/stat.h>
  12365. #endif
  12366. #if STDC_HEADERS
  12367. # include <stdlib.h>
  12368. # include <stddef.h>
  12369. #else
  12370. # if HAVE_STDLIB_H
  12371. # include <stdlib.h>
  12372. # endif
  12373. #endif
  12374. int
  12375. main ()
  12376. {
  12377. struct stat64 foo;
  12378. ;
  12379. return 0;
  12380. }
  12381. _ACEOF
  12382. rm -f conftest.$ac_objext
  12383. if { (ac_try="$ac_compile"
  12384. case "(($ac_try" in
  12385. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12386. *) ac_try_echo=$ac_try;;
  12387. esac
  12388. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12389. (eval "$ac_compile") 2>conftest.er1
  12390. ac_status=$?
  12391. grep -v '^ *+' conftest.er1 >conftest.err
  12392. rm -f conftest.er1
  12393. cat conftest.err >&5
  12394. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12395. (exit $ac_status); } && {
  12396. test -z "$ac_c_werror_flag" ||
  12397. test ! -s conftest.err
  12398. } && test -s conftest.$ac_objext; then
  12399. eval "ac_cv_type_$cv=yes"
  12400. else
  12401. echo "$as_me: failed program was:" >&5
  12402. sed 's/^/| /' conftest.$ac_ext >&5
  12403. eval "ac_cv_type_$cv=no"
  12404. fi
  12405. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12406. fi
  12407. ac_foo=`eval echo \\$ac_cv_type_$cv`
  12408. { echo "$as_me:$LINENO: result: $ac_foo" >&5
  12409. echo "${ECHO_T}$ac_foo" >&6; }
  12410. if test "$ac_foo" = yes; then
  12411. ac_tr_hdr=HAVE_`echo struct stat64 | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
  12412. if false; then
  12413. { echo "$as_me:$LINENO: checking for struct stat64" >&5
  12414. echo $ECHO_N "checking for struct stat64... $ECHO_C" >&6; }
  12415. if test "${ac_cv_type_struct_stat64+set}" = set; then
  12416. echo $ECHO_N "(cached) $ECHO_C" >&6
  12417. else
  12418. cat >conftest.$ac_ext <<_ACEOF
  12419. /* confdefs.h. */
  12420. _ACEOF
  12421. cat confdefs.h >>conftest.$ac_ext
  12422. cat >>conftest.$ac_ext <<_ACEOF
  12423. /* end confdefs.h. */
  12424. $ac_includes_default
  12425. typedef struct stat64 ac__type_new_;
  12426. int
  12427. main ()
  12428. {
  12429. if ((ac__type_new_ *) 0)
  12430. return 0;
  12431. if (sizeof (ac__type_new_))
  12432. return 0;
  12433. ;
  12434. return 0;
  12435. }
  12436. _ACEOF
  12437. rm -f conftest.$ac_objext
  12438. if { (ac_try="$ac_compile"
  12439. case "(($ac_try" in
  12440. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12441. *) ac_try_echo=$ac_try;;
  12442. esac
  12443. eval "echo \"\$as_me:$LINENO: $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. 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_cv_type_struct_stat64=yes
  12455. else
  12456. echo "$as_me: failed program was:" >&5
  12457. sed 's/^/| /' conftest.$ac_ext >&5
  12458. ac_cv_type_struct_stat64=no
  12459. fi
  12460. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12461. fi
  12462. { echo "$as_me:$LINENO: result: $ac_cv_type_struct_stat64" >&5
  12463. echo "${ECHO_T}$ac_cv_type_struct_stat64" >&6; }
  12464. if test $ac_cv_type_struct_stat64 = yes; then
  12465. cat >>confdefs.h <<_ACEOF
  12466. #define HAVE_STRUCT_STAT64 1
  12467. _ACEOF
  12468. fi
  12469. fi
  12470. cat >>confdefs.h <<_ACEOF
  12471. #define $ac_tr_hdr 1
  12472. _ACEOF
  12473. fi
  12474. # if we can't find strcasecmp, look in -lresolv (for Unixware at least)
  12475. #
  12476. for ac_func in strcasecmp
  12477. do
  12478. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12479. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  12480. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  12481. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  12482. echo $ECHO_N "(cached) $ECHO_C" >&6
  12483. else
  12484. cat >conftest.$ac_ext <<_ACEOF
  12485. /* confdefs.h. */
  12486. _ACEOF
  12487. cat confdefs.h >>conftest.$ac_ext
  12488. cat >>conftest.$ac_ext <<_ACEOF
  12489. /* end confdefs.h. */
  12490. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  12491. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  12492. #define $ac_func innocuous_$ac_func
  12493. /* System header to define __stub macros and hopefully few prototypes,
  12494. which can conflict with char $ac_func (); below.
  12495. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12496. <limits.h> exists even on freestanding compilers. */
  12497. #ifdef __STDC__
  12498. # include <limits.h>
  12499. #else
  12500. # include <assert.h>
  12501. #endif
  12502. #undef $ac_func
  12503. /* Override any GCC internal prototype to avoid an error.
  12504. Use char because int might match the return type of a GCC
  12505. builtin and then its argument prototype would still apply. */
  12506. #ifdef __cplusplus
  12507. extern "C"
  12508. #endif
  12509. char $ac_func ();
  12510. /* The GNU C library defines this for functions which it implements
  12511. to always fail with ENOSYS. Some functions are actually named
  12512. something starting with __ and the normal name is an alias. */
  12513. #if defined __stub_$ac_func || defined __stub___$ac_func
  12514. choke me
  12515. #endif
  12516. int
  12517. main ()
  12518. {
  12519. return $ac_func ();
  12520. ;
  12521. return 0;
  12522. }
  12523. _ACEOF
  12524. rm -f conftest.$ac_objext conftest$ac_exeext
  12525. if { (ac_try="$ac_link"
  12526. case "(($ac_try" in
  12527. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12528. *) ac_try_echo=$ac_try;;
  12529. esac
  12530. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12531. (eval "$ac_link") 2>conftest.er1
  12532. ac_status=$?
  12533. grep -v '^ *+' conftest.er1 >conftest.err
  12534. rm -f conftest.er1
  12535. cat conftest.err >&5
  12536. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12537. (exit $ac_status); } && {
  12538. test -z "$ac_c_werror_flag" ||
  12539. test ! -s conftest.err
  12540. } && test -s conftest$ac_exeext &&
  12541. $as_test_x conftest$ac_exeext; then
  12542. eval "$as_ac_var=yes"
  12543. else
  12544. echo "$as_me: failed program was:" >&5
  12545. sed 's/^/| /' conftest.$ac_ext >&5
  12546. eval "$as_ac_var=no"
  12547. fi
  12548. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12549. conftest$ac_exeext conftest.$ac_ext
  12550. fi
  12551. ac_res=`eval echo '${'$as_ac_var'}'`
  12552. { echo "$as_me:$LINENO: result: $ac_res" >&5
  12553. echo "${ECHO_T}$ac_res" >&6; }
  12554. if test `eval echo '${'$as_ac_var'}'` = yes; then
  12555. cat >>confdefs.h <<_ACEOF
  12556. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12557. _ACEOF
  12558. fi
  12559. done
  12560. if test x"$ac_cv_func_strcasecmp" = x"no"; then
  12561. { echo "$as_me:$LINENO: checking for strcasecmp in -lresolv" >&5
  12562. echo $ECHO_N "checking for strcasecmp in -lresolv... $ECHO_C" >&6; }
  12563. if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then
  12564. echo $ECHO_N "(cached) $ECHO_C" >&6
  12565. else
  12566. ac_check_lib_save_LIBS=$LIBS
  12567. LIBS="-lresolv $LIBS"
  12568. cat >conftest.$ac_ext <<_ACEOF
  12569. /* confdefs.h. */
  12570. _ACEOF
  12571. cat confdefs.h >>conftest.$ac_ext
  12572. cat >>conftest.$ac_ext <<_ACEOF
  12573. /* end confdefs.h. */
  12574. /* Override any GCC internal prototype to avoid an error.
  12575. Use char because int might match the return type of a GCC
  12576. builtin and then its argument prototype would still apply. */
  12577. #ifdef __cplusplus
  12578. extern "C"
  12579. #endif
  12580. char strcasecmp ();
  12581. int
  12582. main ()
  12583. {
  12584. return strcasecmp ();
  12585. ;
  12586. return 0;
  12587. }
  12588. _ACEOF
  12589. rm -f conftest.$ac_objext conftest$ac_exeext
  12590. if { (ac_try="$ac_link"
  12591. case "(($ac_try" in
  12592. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12593. *) ac_try_echo=$ac_try;;
  12594. esac
  12595. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12596. (eval "$ac_link") 2>conftest.er1
  12597. ac_status=$?
  12598. grep -v '^ *+' conftest.er1 >conftest.err
  12599. rm -f conftest.er1
  12600. cat conftest.err >&5
  12601. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12602. (exit $ac_status); } && {
  12603. test -z "$ac_c_werror_flag" ||
  12604. test ! -s conftest.err
  12605. } && test -s conftest$ac_exeext &&
  12606. $as_test_x conftest$ac_exeext; then
  12607. ac_cv_lib_resolv_strcasecmp=yes
  12608. else
  12609. echo "$as_me: failed program was:" >&5
  12610. sed 's/^/| /' conftest.$ac_ext >&5
  12611. ac_cv_lib_resolv_strcasecmp=no
  12612. fi
  12613. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12614. conftest$ac_exeext conftest.$ac_ext
  12615. LIBS=$ac_check_lib_save_LIBS
  12616. fi
  12617. { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_strcasecmp" >&5
  12618. echo "${ECHO_T}$ac_cv_lib_resolv_strcasecmp" >&6; }
  12619. if test $ac_cv_lib_resolv_strcasecmp = yes; then
  12620. cat >>confdefs.h <<_ACEOF
  12621. #define HAVE_LIBRESOLV 1
  12622. _ACEOF
  12623. LIBS="-lresolv $LIBS"
  12624. fi
  12625. fi
  12626. for ac_func in aclsort
  12627. do
  12628. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12629. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  12630. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  12631. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  12632. echo $ECHO_N "(cached) $ECHO_C" >&6
  12633. else
  12634. cat >conftest.$ac_ext <<_ACEOF
  12635. /* confdefs.h. */
  12636. _ACEOF
  12637. cat confdefs.h >>conftest.$ac_ext
  12638. cat >>conftest.$ac_ext <<_ACEOF
  12639. /* end confdefs.h. */
  12640. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  12641. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  12642. #define $ac_func innocuous_$ac_func
  12643. /* System header to define __stub macros and hopefully few prototypes,
  12644. which can conflict with char $ac_func (); below.
  12645. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12646. <limits.h> exists even on freestanding compilers. */
  12647. #ifdef __STDC__
  12648. # include <limits.h>
  12649. #else
  12650. # include <assert.h>
  12651. #endif
  12652. #undef $ac_func
  12653. /* Override any GCC internal prototype to avoid an error.
  12654. Use char because int might match the return type of a GCC
  12655. builtin and then its argument prototype would still apply. */
  12656. #ifdef __cplusplus
  12657. extern "C"
  12658. #endif
  12659. char $ac_func ();
  12660. /* The GNU C library defines this for functions which it implements
  12661. to always fail with ENOSYS. Some functions are actually named
  12662. something starting with __ and the normal name is an alias. */
  12663. #if defined __stub_$ac_func || defined __stub___$ac_func
  12664. choke me
  12665. #endif
  12666. int
  12667. main ()
  12668. {
  12669. return $ac_func ();
  12670. ;
  12671. return 0;
  12672. }
  12673. _ACEOF
  12674. rm -f conftest.$ac_objext conftest$ac_exeext
  12675. if { (ac_try="$ac_link"
  12676. case "(($ac_try" in
  12677. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12678. *) ac_try_echo=$ac_try;;
  12679. esac
  12680. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12681. (eval "$ac_link") 2>conftest.er1
  12682. ac_status=$?
  12683. grep -v '^ *+' conftest.er1 >conftest.err
  12684. rm -f conftest.er1
  12685. cat conftest.err >&5
  12686. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12687. (exit $ac_status); } && {
  12688. test -z "$ac_c_werror_flag" ||
  12689. test ! -s conftest.err
  12690. } && test -s conftest$ac_exeext &&
  12691. $as_test_x conftest$ac_exeext; then
  12692. eval "$as_ac_var=yes"
  12693. else
  12694. echo "$as_me: failed program was:" >&5
  12695. sed 's/^/| /' conftest.$ac_ext >&5
  12696. eval "$as_ac_var=no"
  12697. fi
  12698. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12699. conftest$ac_exeext conftest.$ac_ext
  12700. fi
  12701. ac_res=`eval echo '${'$as_ac_var'}'`
  12702. { echo "$as_me:$LINENO: result: $ac_res" >&5
  12703. echo "${ECHO_T}$ac_res" >&6; }
  12704. if test `eval echo '${'$as_ac_var'}'` = yes; then
  12705. cat >>confdefs.h <<_ACEOF
  12706. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12707. _ACEOF
  12708. fi
  12709. done
  12710. if test x"$ac_cv_func_aclsort" = x"no"; then
  12711. { echo "$as_me:$LINENO: checking for aclsort in -lsec" >&5
  12712. echo $ECHO_N "checking for aclsort in -lsec... $ECHO_C" >&6; }
  12713. if test "${ac_cv_lib_sec_aclsort+set}" = set; then
  12714. echo $ECHO_N "(cached) $ECHO_C" >&6
  12715. else
  12716. ac_check_lib_save_LIBS=$LIBS
  12717. LIBS="-lsec $LIBS"
  12718. cat >conftest.$ac_ext <<_ACEOF
  12719. /* confdefs.h. */
  12720. _ACEOF
  12721. cat confdefs.h >>conftest.$ac_ext
  12722. cat >>conftest.$ac_ext <<_ACEOF
  12723. /* end confdefs.h. */
  12724. /* Override any GCC internal prototype to avoid an error.
  12725. Use char because int might match the return type of a GCC
  12726. builtin and then its argument prototype would still apply. */
  12727. #ifdef __cplusplus
  12728. extern "C"
  12729. #endif
  12730. char aclsort ();
  12731. int
  12732. main ()
  12733. {
  12734. return aclsort ();
  12735. ;
  12736. return 0;
  12737. }
  12738. _ACEOF
  12739. rm -f conftest.$ac_objext conftest$ac_exeext
  12740. if { (ac_try="$ac_link"
  12741. case "(($ac_try" in
  12742. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12743. *) ac_try_echo=$ac_try;;
  12744. esac
  12745. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12746. (eval "$ac_link") 2>conftest.er1
  12747. ac_status=$?
  12748. grep -v '^ *+' conftest.er1 >conftest.err
  12749. rm -f conftest.er1
  12750. cat conftest.err >&5
  12751. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12752. (exit $ac_status); } && {
  12753. test -z "$ac_c_werror_flag" ||
  12754. test ! -s conftest.err
  12755. } && test -s conftest$ac_exeext &&
  12756. $as_test_x conftest$ac_exeext; then
  12757. ac_cv_lib_sec_aclsort=yes
  12758. else
  12759. echo "$as_me: failed program was:" >&5
  12760. sed 's/^/| /' conftest.$ac_ext >&5
  12761. ac_cv_lib_sec_aclsort=no
  12762. fi
  12763. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12764. conftest$ac_exeext conftest.$ac_ext
  12765. LIBS=$ac_check_lib_save_LIBS
  12766. fi
  12767. { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_aclsort" >&5
  12768. echo "${ECHO_T}$ac_cv_lib_sec_aclsort" >&6; }
  12769. if test $ac_cv_lib_sec_aclsort = yes; then
  12770. cat >>confdefs.h <<_ACEOF
  12771. #define HAVE_LIBSEC 1
  12772. _ACEOF
  12773. LIBS="-lsec $LIBS"
  12774. fi
  12775. fi
  12776. for ac_header in $ac_header_list
  12777. do
  12778. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12779. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12780. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  12781. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  12782. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12783. echo $ECHO_N "(cached) $ECHO_C" >&6
  12784. fi
  12785. ac_res=`eval echo '${'$as_ac_Header'}'`
  12786. { echo "$as_me:$LINENO: result: $ac_res" >&5
  12787. echo "${ECHO_T}$ac_res" >&6; }
  12788. else
  12789. # Is the header compilable?
  12790. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  12791. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  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. #include <$ac_header>
  12800. _ACEOF
  12801. rm -f conftest.$ac_objext
  12802. if { (ac_try="$ac_compile"
  12803. case "(($ac_try" in
  12804. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12805. *) ac_try_echo=$ac_try;;
  12806. esac
  12807. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12808. (eval "$ac_compile") 2>conftest.er1
  12809. ac_status=$?
  12810. grep -v '^ *+' conftest.er1 >conftest.err
  12811. rm -f conftest.er1
  12812. cat conftest.err >&5
  12813. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12814. (exit $ac_status); } && {
  12815. test -z "$ac_c_werror_flag" ||
  12816. test ! -s conftest.err
  12817. } && test -s conftest.$ac_objext; then
  12818. ac_header_compiler=yes
  12819. else
  12820. echo "$as_me: failed program was:" >&5
  12821. sed 's/^/| /' conftest.$ac_ext >&5
  12822. ac_header_compiler=no
  12823. fi
  12824. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12825. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  12826. echo "${ECHO_T}$ac_header_compiler" >&6; }
  12827. # Is the header present?
  12828. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  12829. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  12830. cat >conftest.$ac_ext <<_ACEOF
  12831. /* confdefs.h. */
  12832. _ACEOF
  12833. cat confdefs.h >>conftest.$ac_ext
  12834. cat >>conftest.$ac_ext <<_ACEOF
  12835. /* end confdefs.h. */
  12836. #include <$ac_header>
  12837. _ACEOF
  12838. if { (ac_try="$ac_cpp conftest.$ac_ext"
  12839. case "(($ac_try" in
  12840. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12841. *) ac_try_echo=$ac_try;;
  12842. esac
  12843. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12844. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  12845. ac_status=$?
  12846. grep -v '^ *+' conftest.er1 >conftest.err
  12847. rm -f conftest.er1
  12848. cat conftest.err >&5
  12849. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12850. (exit $ac_status); } >/dev/null && {
  12851. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  12852. test ! -s conftest.err
  12853. }; then
  12854. ac_header_preproc=yes
  12855. else
  12856. echo "$as_me: failed program was:" >&5
  12857. sed 's/^/| /' conftest.$ac_ext >&5
  12858. ac_header_preproc=no
  12859. fi
  12860. rm -f conftest.err conftest.$ac_ext
  12861. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  12862. echo "${ECHO_T}$ac_header_preproc" >&6; }
  12863. # So? What about this header?
  12864. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  12865. yes:no: )
  12866. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  12867. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  12868. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  12869. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  12870. ac_header_preproc=yes
  12871. ;;
  12872. no:yes:* )
  12873. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  12874. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  12875. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  12876. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  12877. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  12878. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  12879. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  12880. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  12881. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  12882. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  12883. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  12884. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  12885. ;;
  12886. esac
  12887. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  12888. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  12889. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12890. echo $ECHO_N "(cached) $ECHO_C" >&6
  12891. else
  12892. eval "$as_ac_Header=\$ac_header_preproc"
  12893. fi
  12894. ac_res=`eval echo '${'$as_ac_Header'}'`
  12895. { echo "$as_me:$LINENO: result: $ac_res" >&5
  12896. echo "${ECHO_T}$ac_res" >&6; }
  12897. fi
  12898. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  12899. cat >>confdefs.h <<_ACEOF
  12900. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12901. _ACEOF
  12902. fi
  12903. done
  12904. { echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
  12905. echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6; }
  12906. if test "${ac_cv_func_utime_null+set}" = set; then
  12907. echo $ECHO_N "(cached) $ECHO_C" >&6
  12908. else
  12909. rm -f conftest.data; >conftest.data
  12910. # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
  12911. if test "$cross_compiling" = yes; then
  12912. ac_cv_func_utime_null=no
  12913. else
  12914. cat >conftest.$ac_ext <<_ACEOF
  12915. /* confdefs.h. */
  12916. _ACEOF
  12917. cat confdefs.h >>conftest.$ac_ext
  12918. cat >>conftest.$ac_ext <<_ACEOF
  12919. /* end confdefs.h. */
  12920. $ac_includes_default
  12921. #ifdef HAVE_UTIME_H
  12922. # include <utime.h>
  12923. #endif
  12924. int
  12925. main ()
  12926. {
  12927. struct stat s, t;
  12928. return ! (stat ("conftest.data", &s) == 0
  12929. && utime ("conftest.data", 0) == 0
  12930. && stat ("conftest.data", &t) == 0
  12931. && t.st_mtime >= s.st_mtime
  12932. && t.st_mtime - s.st_mtime < 120);
  12933. ;
  12934. return 0;
  12935. }
  12936. _ACEOF
  12937. rm -f conftest$ac_exeext
  12938. if { (ac_try="$ac_link"
  12939. case "(($ac_try" in
  12940. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12941. *) ac_try_echo=$ac_try;;
  12942. esac
  12943. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12944. (eval "$ac_link") 2>&5
  12945. ac_status=$?
  12946. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12947. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  12948. { (case "(($ac_try" in
  12949. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12950. *) ac_try_echo=$ac_try;;
  12951. esac
  12952. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12953. (eval "$ac_try") 2>&5
  12954. ac_status=$?
  12955. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12956. (exit $ac_status); }; }; then
  12957. ac_cv_func_utime_null=yes
  12958. else
  12959. echo "$as_me: program exited with status $ac_status" >&5
  12960. echo "$as_me: failed program was:" >&5
  12961. sed 's/^/| /' conftest.$ac_ext >&5
  12962. ( exit $ac_status )
  12963. ac_cv_func_utime_null=no
  12964. fi
  12965. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  12966. fi
  12967. fi
  12968. { echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
  12969. echo "${ECHO_T}$ac_cv_func_utime_null" >&6; }
  12970. if test $ac_cv_func_utime_null = yes; then
  12971. cat >>confdefs.h <<\_ACEOF
  12972. #define HAVE_UTIME_NULL 1
  12973. _ACEOF
  12974. fi
  12975. rm -f conftest.data
  12976. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  12977. # for constant arguments. Useless!
  12978. { echo "$as_me:$LINENO: checking for working alloca.h" >&5
  12979. echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
  12980. if test "${ac_cv_working_alloca_h+set}" = set; then
  12981. echo $ECHO_N "(cached) $ECHO_C" >&6
  12982. else
  12983. cat >conftest.$ac_ext <<_ACEOF
  12984. /* confdefs.h. */
  12985. _ACEOF
  12986. cat confdefs.h >>conftest.$ac_ext
  12987. cat >>conftest.$ac_ext <<_ACEOF
  12988. /* end confdefs.h. */
  12989. #include <alloca.h>
  12990. int
  12991. main ()
  12992. {
  12993. char *p = (char *) alloca (2 * sizeof (int));
  12994. if (p) return 0;
  12995. ;
  12996. return 0;
  12997. }
  12998. _ACEOF
  12999. rm -f conftest.$ac_objext conftest$ac_exeext
  13000. if { (ac_try="$ac_link"
  13001. case "(($ac_try" in
  13002. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13003. *) ac_try_echo=$ac_try;;
  13004. esac
  13005. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13006. (eval "$ac_link") 2>conftest.er1
  13007. ac_status=$?
  13008. grep -v '^ *+' conftest.er1 >conftest.err
  13009. rm -f conftest.er1
  13010. cat conftest.err >&5
  13011. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13012. (exit $ac_status); } && {
  13013. test -z "$ac_c_werror_flag" ||
  13014. test ! -s conftest.err
  13015. } && test -s conftest$ac_exeext &&
  13016. $as_test_x conftest$ac_exeext; then
  13017. ac_cv_working_alloca_h=yes
  13018. else
  13019. echo "$as_me: failed program was:" >&5
  13020. sed 's/^/| /' conftest.$ac_ext >&5
  13021. ac_cv_working_alloca_h=no
  13022. fi
  13023. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13024. conftest$ac_exeext conftest.$ac_ext
  13025. fi
  13026. { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
  13027. echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
  13028. if test $ac_cv_working_alloca_h = yes; then
  13029. cat >>confdefs.h <<\_ACEOF
  13030. #define HAVE_ALLOCA_H 1
  13031. _ACEOF
  13032. fi
  13033. { echo "$as_me:$LINENO: checking for alloca" >&5
  13034. echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
  13035. if test "${ac_cv_func_alloca_works+set}" = set; then
  13036. echo $ECHO_N "(cached) $ECHO_C" >&6
  13037. else
  13038. cat >conftest.$ac_ext <<_ACEOF
  13039. /* confdefs.h. */
  13040. _ACEOF
  13041. cat confdefs.h >>conftest.$ac_ext
  13042. cat >>conftest.$ac_ext <<_ACEOF
  13043. /* end confdefs.h. */
  13044. #ifdef __GNUC__
  13045. # define alloca __builtin_alloca
  13046. #else
  13047. # ifdef _MSC_VER
  13048. # include <malloc.h>
  13049. # define alloca _alloca
  13050. # else
  13051. # ifdef HAVE_ALLOCA_H
  13052. # include <alloca.h>
  13053. # else
  13054. # ifdef _AIX
  13055. #pragma alloca
  13056. # else
  13057. # ifndef alloca /* predefined by HP cc +Olibcalls */
  13058. char *alloca ();
  13059. # endif
  13060. # endif
  13061. # endif
  13062. # endif
  13063. #endif
  13064. int
  13065. main ()
  13066. {
  13067. char *p = (char *) alloca (1);
  13068. if (p) return 0;
  13069. ;
  13070. return 0;
  13071. }
  13072. _ACEOF
  13073. rm -f conftest.$ac_objext conftest$ac_exeext
  13074. if { (ac_try="$ac_link"
  13075. case "(($ac_try" in
  13076. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13077. *) ac_try_echo=$ac_try;;
  13078. esac
  13079. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13080. (eval "$ac_link") 2>conftest.er1
  13081. ac_status=$?
  13082. grep -v '^ *+' conftest.er1 >conftest.err
  13083. rm -f conftest.er1
  13084. cat conftest.err >&5
  13085. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13086. (exit $ac_status); } && {
  13087. test -z "$ac_c_werror_flag" ||
  13088. test ! -s conftest.err
  13089. } && test -s conftest$ac_exeext &&
  13090. $as_test_x conftest$ac_exeext; then
  13091. ac_cv_func_alloca_works=yes
  13092. else
  13093. echo "$as_me: failed program was:" >&5
  13094. sed 's/^/| /' conftest.$ac_ext >&5
  13095. ac_cv_func_alloca_works=no
  13096. fi
  13097. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13098. conftest$ac_exeext conftest.$ac_ext
  13099. fi
  13100. { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
  13101. echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
  13102. if test $ac_cv_func_alloca_works = yes; then
  13103. cat >>confdefs.h <<\_ACEOF
  13104. #define HAVE_ALLOCA 1
  13105. _ACEOF
  13106. else
  13107. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  13108. # that cause trouble. Some versions do not even contain alloca or
  13109. # contain a buggy version. If you still want to use their alloca,
  13110. # use ar to extract alloca.o from them instead of compiling alloca.c.
  13111. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  13112. cat >>confdefs.h <<\_ACEOF
  13113. #define C_ALLOCA 1
  13114. _ACEOF
  13115. { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
  13116. echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
  13117. if test "${ac_cv_os_cray+set}" = set; then
  13118. echo $ECHO_N "(cached) $ECHO_C" >&6
  13119. else
  13120. cat >conftest.$ac_ext <<_ACEOF
  13121. /* confdefs.h. */
  13122. _ACEOF
  13123. cat confdefs.h >>conftest.$ac_ext
  13124. cat >>conftest.$ac_ext <<_ACEOF
  13125. /* end confdefs.h. */
  13126. #if defined CRAY && ! defined CRAY2
  13127. webecray
  13128. #else
  13129. wenotbecray
  13130. #endif
  13131. _ACEOF
  13132. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13133. $EGREP "webecray" >/dev/null 2>&1; then
  13134. ac_cv_os_cray=yes
  13135. else
  13136. ac_cv_os_cray=no
  13137. fi
  13138. rm -f conftest*
  13139. fi
  13140. { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
  13141. echo "${ECHO_T}$ac_cv_os_cray" >&6; }
  13142. if test $ac_cv_os_cray = yes; then
  13143. for ac_func in _getb67 GETB67 getb67; do
  13144. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13145. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  13146. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  13147. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  13148. echo $ECHO_N "(cached) $ECHO_C" >&6
  13149. else
  13150. cat >conftest.$ac_ext <<_ACEOF
  13151. /* confdefs.h. */
  13152. _ACEOF
  13153. cat confdefs.h >>conftest.$ac_ext
  13154. cat >>conftest.$ac_ext <<_ACEOF
  13155. /* end confdefs.h. */
  13156. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  13157. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  13158. #define $ac_func innocuous_$ac_func
  13159. /* System header to define __stub macros and hopefully few prototypes,
  13160. which can conflict with char $ac_func (); below.
  13161. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  13162. <limits.h> exists even on freestanding compilers. */
  13163. #ifdef __STDC__
  13164. # include <limits.h>
  13165. #else
  13166. # include <assert.h>
  13167. #endif
  13168. #undef $ac_func
  13169. /* Override any GCC internal prototype to avoid an error.
  13170. Use char because int might match the return type of a GCC
  13171. builtin and then its argument prototype would still apply. */
  13172. #ifdef __cplusplus
  13173. extern "C"
  13174. #endif
  13175. char $ac_func ();
  13176. /* The GNU C library defines this for functions which it implements
  13177. to always fail with ENOSYS. Some functions are actually named
  13178. something starting with __ and the normal name is an alias. */
  13179. #if defined __stub_$ac_func || defined __stub___$ac_func
  13180. choke me
  13181. #endif
  13182. int
  13183. main ()
  13184. {
  13185. return $ac_func ();
  13186. ;
  13187. return 0;
  13188. }
  13189. _ACEOF
  13190. rm -f conftest.$ac_objext conftest$ac_exeext
  13191. if { (ac_try="$ac_link"
  13192. case "(($ac_try" in
  13193. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13194. *) ac_try_echo=$ac_try;;
  13195. esac
  13196. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13197. (eval "$ac_link") 2>conftest.er1
  13198. ac_status=$?
  13199. grep -v '^ *+' conftest.er1 >conftest.err
  13200. rm -f conftest.er1
  13201. cat conftest.err >&5
  13202. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13203. (exit $ac_status); } && {
  13204. test -z "$ac_c_werror_flag" ||
  13205. test ! -s conftest.err
  13206. } && test -s conftest$ac_exeext &&
  13207. $as_test_x conftest$ac_exeext; then
  13208. eval "$as_ac_var=yes"
  13209. else
  13210. echo "$as_me: failed program was:" >&5
  13211. sed 's/^/| /' conftest.$ac_ext >&5
  13212. eval "$as_ac_var=no"
  13213. fi
  13214. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13215. conftest$ac_exeext conftest.$ac_ext
  13216. fi
  13217. ac_res=`eval echo '${'$as_ac_var'}'`
  13218. { echo "$as_me:$LINENO: result: $ac_res" >&5
  13219. echo "${ECHO_T}$ac_res" >&6; }
  13220. if test `eval echo '${'$as_ac_var'}'` = yes; then
  13221. cat >>confdefs.h <<_ACEOF
  13222. #define CRAY_STACKSEG_END $ac_func
  13223. _ACEOF
  13224. break
  13225. fi
  13226. done
  13227. fi
  13228. { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
  13229. echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
  13230. if test "${ac_cv_c_stack_direction+set}" = set; then
  13231. echo $ECHO_N "(cached) $ECHO_C" >&6
  13232. else
  13233. if test "$cross_compiling" = yes; then
  13234. ac_cv_c_stack_direction=0
  13235. else
  13236. cat >conftest.$ac_ext <<_ACEOF
  13237. /* confdefs.h. */
  13238. _ACEOF
  13239. cat confdefs.h >>conftest.$ac_ext
  13240. cat >>conftest.$ac_ext <<_ACEOF
  13241. /* end confdefs.h. */
  13242. $ac_includes_default
  13243. int
  13244. find_stack_direction ()
  13245. {
  13246. static char *addr = 0;
  13247. auto char dummy;
  13248. if (addr == 0)
  13249. {
  13250. addr = &dummy;
  13251. return find_stack_direction ();
  13252. }
  13253. else
  13254. return (&dummy > addr) ? 1 : -1;
  13255. }
  13256. int
  13257. main ()
  13258. {
  13259. return find_stack_direction () < 0;
  13260. }
  13261. _ACEOF
  13262. rm -f conftest$ac_exeext
  13263. if { (ac_try="$ac_link"
  13264. case "(($ac_try" in
  13265. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13266. *) ac_try_echo=$ac_try;;
  13267. esac
  13268. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13269. (eval "$ac_link") 2>&5
  13270. ac_status=$?
  13271. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13272. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  13273. { (case "(($ac_try" in
  13274. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13275. *) ac_try_echo=$ac_try;;
  13276. esac
  13277. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13278. (eval "$ac_try") 2>&5
  13279. ac_status=$?
  13280. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13281. (exit $ac_status); }; }; then
  13282. ac_cv_c_stack_direction=1
  13283. else
  13284. echo "$as_me: program exited with status $ac_status" >&5
  13285. echo "$as_me: failed program was:" >&5
  13286. sed 's/^/| /' conftest.$ac_ext >&5
  13287. ( exit $ac_status )
  13288. ac_cv_c_stack_direction=-1
  13289. fi
  13290. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  13291. fi
  13292. fi
  13293. { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
  13294. echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
  13295. cat >>confdefs.h <<_ACEOF
  13296. #define STACK_DIRECTION $ac_cv_c_stack_direction
  13297. _ACEOF
  13298. fi
  13299. for ac_func in waitpid wait4 getcwd strdup chown chmod lchmod mknod mkfifo \
  13300. fchmod fstat ftruncate strchr readlink link utime utimes lutimes strftime \
  13301. memmove lchown vsnprintf snprintf vasprintf asprintf setsid strpbrk \
  13302. strlcat strlcpy strtol mallinfo getgroups setgroups geteuid getegid \
  13303. setlocale setmode open64 lseek64 mkstemp64 mtrace va_copy __va_copy \
  13304. strerror putenv iconv_open locale_charset nl_langinfo getxattr \
  13305. extattr_get_link sigaction sigprocmask setattrlist
  13306. do
  13307. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13308. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  13309. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  13310. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  13311. echo $ECHO_N "(cached) $ECHO_C" >&6
  13312. else
  13313. cat >conftest.$ac_ext <<_ACEOF
  13314. /* confdefs.h. */
  13315. _ACEOF
  13316. cat confdefs.h >>conftest.$ac_ext
  13317. cat >>conftest.$ac_ext <<_ACEOF
  13318. /* end confdefs.h. */
  13319. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  13320. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  13321. #define $ac_func innocuous_$ac_func
  13322. /* System header to define __stub macros and hopefully few prototypes,
  13323. which can conflict with char $ac_func (); below.
  13324. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  13325. <limits.h> exists even on freestanding compilers. */
  13326. #ifdef __STDC__
  13327. # include <limits.h>
  13328. #else
  13329. # include <assert.h>
  13330. #endif
  13331. #undef $ac_func
  13332. /* Override any GCC internal prototype to avoid an error.
  13333. Use char because int might match the return type of a GCC
  13334. builtin and then its argument prototype would still apply. */
  13335. #ifdef __cplusplus
  13336. extern "C"
  13337. #endif
  13338. char $ac_func ();
  13339. /* The GNU C library defines this for functions which it implements
  13340. to always fail with ENOSYS. Some functions are actually named
  13341. something starting with __ and the normal name is an alias. */
  13342. #if defined __stub_$ac_func || defined __stub___$ac_func
  13343. choke me
  13344. #endif
  13345. int
  13346. main ()
  13347. {
  13348. return $ac_func ();
  13349. ;
  13350. return 0;
  13351. }
  13352. _ACEOF
  13353. rm -f conftest.$ac_objext conftest$ac_exeext
  13354. if { (ac_try="$ac_link"
  13355. case "(($ac_try" in
  13356. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13357. *) ac_try_echo=$ac_try;;
  13358. esac
  13359. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13360. (eval "$ac_link") 2>conftest.er1
  13361. ac_status=$?
  13362. grep -v '^ *+' conftest.er1 >conftest.err
  13363. rm -f conftest.er1
  13364. cat conftest.err >&5
  13365. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13366. (exit $ac_status); } && {
  13367. test -z "$ac_c_werror_flag" ||
  13368. test ! -s conftest.err
  13369. } && test -s conftest$ac_exeext &&
  13370. $as_test_x conftest$ac_exeext; then
  13371. eval "$as_ac_var=yes"
  13372. else
  13373. echo "$as_me: failed program was:" >&5
  13374. sed 's/^/| /' conftest.$ac_ext >&5
  13375. eval "$as_ac_var=no"
  13376. fi
  13377. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13378. conftest$ac_exeext conftest.$ac_ext
  13379. fi
  13380. ac_res=`eval echo '${'$as_ac_var'}'`
  13381. { echo "$as_me:$LINENO: result: $ac_res" >&5
  13382. echo "${ECHO_T}$ac_res" >&6; }
  13383. if test `eval echo '${'$as_ac_var'}'` = yes; then
  13384. cat >>confdefs.h <<_ACEOF
  13385. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13386. _ACEOF
  13387. fi
  13388. done
  13389. if test x"$ac_cv_func_iconv_open" != x"yes"; then
  13390. { echo "$as_me:$LINENO: checking for libiconv_open" >&5
  13391. echo $ECHO_N "checking for libiconv_open... $ECHO_C" >&6; }
  13392. if test "${ac_cv_func_libiconv_open+set}" = set; then
  13393. echo $ECHO_N "(cached) $ECHO_C" >&6
  13394. else
  13395. cat >conftest.$ac_ext <<_ACEOF
  13396. /* confdefs.h. */
  13397. _ACEOF
  13398. cat confdefs.h >>conftest.$ac_ext
  13399. cat >>conftest.$ac_ext <<_ACEOF
  13400. /* end confdefs.h. */
  13401. /* Define libiconv_open to an innocuous variant, in case <limits.h> declares libiconv_open.
  13402. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  13403. #define libiconv_open innocuous_libiconv_open
  13404. /* System header to define __stub macros and hopefully few prototypes,
  13405. which can conflict with char libiconv_open (); below.
  13406. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  13407. <limits.h> exists even on freestanding compilers. */
  13408. #ifdef __STDC__
  13409. # include <limits.h>
  13410. #else
  13411. # include <assert.h>
  13412. #endif
  13413. #undef libiconv_open
  13414. /* Override any GCC internal prototype to avoid an error.
  13415. Use char because int might match the return type of a GCC
  13416. builtin and then its argument prototype would still apply. */
  13417. #ifdef __cplusplus
  13418. extern "C"
  13419. #endif
  13420. char libiconv_open ();
  13421. /* The GNU C library defines this for functions which it implements
  13422. to always fail with ENOSYS. Some functions are actually named
  13423. something starting with __ and the normal name is an alias. */
  13424. #if defined __stub_libiconv_open || defined __stub___libiconv_open
  13425. choke me
  13426. #endif
  13427. int
  13428. main ()
  13429. {
  13430. return libiconv_open ();
  13431. ;
  13432. return 0;
  13433. }
  13434. _ACEOF
  13435. rm -f conftest.$ac_objext conftest$ac_exeext
  13436. if { (ac_try="$ac_link"
  13437. case "(($ac_try" in
  13438. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13439. *) ac_try_echo=$ac_try;;
  13440. esac
  13441. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13442. (eval "$ac_link") 2>conftest.er1
  13443. ac_status=$?
  13444. grep -v '^ *+' conftest.er1 >conftest.err
  13445. rm -f conftest.er1
  13446. cat conftest.err >&5
  13447. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13448. (exit $ac_status); } && {
  13449. test -z "$ac_c_werror_flag" ||
  13450. test ! -s conftest.err
  13451. } && test -s conftest$ac_exeext &&
  13452. $as_test_x conftest$ac_exeext; then
  13453. ac_cv_func_libiconv_open=yes
  13454. else
  13455. echo "$as_me: failed program was:" >&5
  13456. sed 's/^/| /' conftest.$ac_ext >&5
  13457. ac_cv_func_libiconv_open=no
  13458. fi
  13459. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13460. conftest$ac_exeext conftest.$ac_ext
  13461. fi
  13462. { echo "$as_me:$LINENO: result: $ac_cv_func_libiconv_open" >&5
  13463. echo "${ECHO_T}$ac_cv_func_libiconv_open" >&6; }
  13464. if test $ac_cv_func_libiconv_open = yes; then
  13465. ac_cv_func_iconv_open=yes; cat >>confdefs.h <<\_ACEOF
  13466. #define HAVE_ICONV_OPEN 1
  13467. _ACEOF
  13468. fi
  13469. fi
  13470. for ac_func in getpgrp tcgetpgrp
  13471. do
  13472. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13473. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  13474. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  13475. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  13476. echo $ECHO_N "(cached) $ECHO_C" >&6
  13477. else
  13478. cat >conftest.$ac_ext <<_ACEOF
  13479. /* confdefs.h. */
  13480. _ACEOF
  13481. cat confdefs.h >>conftest.$ac_ext
  13482. cat >>conftest.$ac_ext <<_ACEOF
  13483. /* end confdefs.h. */
  13484. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  13485. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  13486. #define $ac_func innocuous_$ac_func
  13487. /* System header to define __stub macros and hopefully few prototypes,
  13488. which can conflict with char $ac_func (); below.
  13489. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  13490. <limits.h> exists even on freestanding compilers. */
  13491. #ifdef __STDC__
  13492. # include <limits.h>
  13493. #else
  13494. # include <assert.h>
  13495. #endif
  13496. #undef $ac_func
  13497. /* Override any GCC internal prototype to avoid an error.
  13498. Use char because int might match the return type of a GCC
  13499. builtin and then its argument prototype would still apply. */
  13500. #ifdef __cplusplus
  13501. extern "C"
  13502. #endif
  13503. char $ac_func ();
  13504. /* The GNU C library defines this for functions which it implements
  13505. to always fail with ENOSYS. Some functions are actually named
  13506. something starting with __ and the normal name is an alias. */
  13507. #if defined __stub_$ac_func || defined __stub___$ac_func
  13508. choke me
  13509. #endif
  13510. int
  13511. main ()
  13512. {
  13513. return $ac_func ();
  13514. ;
  13515. return 0;
  13516. }
  13517. _ACEOF
  13518. rm -f conftest.$ac_objext conftest$ac_exeext
  13519. if { (ac_try="$ac_link"
  13520. case "(($ac_try" in
  13521. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13522. *) ac_try_echo=$ac_try;;
  13523. esac
  13524. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13525. (eval "$ac_link") 2>conftest.er1
  13526. ac_status=$?
  13527. grep -v '^ *+' conftest.er1 >conftest.err
  13528. rm -f conftest.er1
  13529. cat conftest.err >&5
  13530. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13531. (exit $ac_status); } && {
  13532. test -z "$ac_c_werror_flag" ||
  13533. test ! -s conftest.err
  13534. } && test -s conftest$ac_exeext &&
  13535. $as_test_x conftest$ac_exeext; then
  13536. eval "$as_ac_var=yes"
  13537. else
  13538. echo "$as_me: failed program was:" >&5
  13539. sed 's/^/| /' conftest.$ac_ext >&5
  13540. eval "$as_ac_var=no"
  13541. fi
  13542. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13543. conftest$ac_exeext conftest.$ac_ext
  13544. fi
  13545. ac_res=`eval echo '${'$as_ac_var'}'`
  13546. { echo "$as_me:$LINENO: result: $ac_res" >&5
  13547. echo "${ECHO_T}$ac_res" >&6; }
  13548. if test `eval echo '${'$as_ac_var'}'` = yes; then
  13549. cat >>confdefs.h <<_ACEOF
  13550. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13551. _ACEOF
  13552. fi
  13553. done
  13554. if test $ac_cv_func_getpgrp = yes; then
  13555. { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
  13556. echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
  13557. if test "${ac_cv_func_getpgrp_void+set}" = set; then
  13558. echo $ECHO_N "(cached) $ECHO_C" >&6
  13559. else
  13560. # Use it with a single arg.
  13561. cat >conftest.$ac_ext <<_ACEOF
  13562. /* confdefs.h. */
  13563. _ACEOF
  13564. cat confdefs.h >>conftest.$ac_ext
  13565. cat >>conftest.$ac_ext <<_ACEOF
  13566. /* end confdefs.h. */
  13567. $ac_includes_default
  13568. int
  13569. main ()
  13570. {
  13571. getpgrp (0);
  13572. ;
  13573. return 0;
  13574. }
  13575. _ACEOF
  13576. rm -f conftest.$ac_objext
  13577. if { (ac_try="$ac_compile"
  13578. case "(($ac_try" in
  13579. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13580. *) ac_try_echo=$ac_try;;
  13581. esac
  13582. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13583. (eval "$ac_compile") 2>conftest.er1
  13584. ac_status=$?
  13585. grep -v '^ *+' conftest.er1 >conftest.err
  13586. rm -f conftest.er1
  13587. cat conftest.err >&5
  13588. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13589. (exit $ac_status); } && {
  13590. test -z "$ac_c_werror_flag" ||
  13591. test ! -s conftest.err
  13592. } && test -s conftest.$ac_objext; then
  13593. ac_cv_func_getpgrp_void=no
  13594. else
  13595. echo "$as_me: failed program was:" >&5
  13596. sed 's/^/| /' conftest.$ac_ext >&5
  13597. ac_cv_func_getpgrp_void=yes
  13598. fi
  13599. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13600. fi
  13601. { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
  13602. echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
  13603. if test $ac_cv_func_getpgrp_void = yes; then
  13604. cat >>confdefs.h <<\_ACEOF
  13605. #define GETPGRP_VOID 1
  13606. _ACEOF
  13607. fi
  13608. fi
  13609. # Check whether --enable-iconv was given.
  13610. if test "${enable_iconv+set}" = set; then
  13611. enableval=$enable_iconv;
  13612. else
  13613. enable_iconv=$ac_cv_func_iconv_open
  13614. fi
  13615. if test x"$enable_iconv" != x"no"; then
  13616. if test x"$enable_iconv" = x"yes"; then
  13617. cat >>confdefs.h <<\_ACEOF
  13618. #define ICONV_OPTION NULL
  13619. _ACEOF
  13620. else
  13621. cat >>confdefs.h <<_ACEOF
  13622. #define ICONV_OPTION "$enable_iconv"
  13623. _ACEOF
  13624. fi
  13625. cat >>confdefs.h <<\_ACEOF
  13626. #define UTF8_CHARSET "UTF-8"
  13627. _ACEOF
  13628. fi
  13629. { echo "$as_me:$LINENO: checking whether chown() modifies symlinks" >&5
  13630. echo $ECHO_N "checking whether chown() modifies symlinks... $ECHO_C" >&6; }
  13631. if test "${rsync_cv_chown_modifies_symlink+set}" = set; then
  13632. echo $ECHO_N "(cached) $ECHO_C" >&6
  13633. else
  13634. if test "$cross_compiling" = yes; then
  13635. rsync_cv_chown_modifies_symlink=no
  13636. else
  13637. cat >conftest.$ac_ext <<_ACEOF
  13638. /* confdefs.h. */
  13639. _ACEOF
  13640. cat confdefs.h >>conftest.$ac_ext
  13641. cat >>conftest.$ac_ext <<_ACEOF
  13642. /* end confdefs.h. */
  13643. #if HAVE_UNISTD_H
  13644. # include <unistd.h>
  13645. #endif
  13646. #include <stdlib.h>
  13647. #include <errno.h>
  13648. main() {
  13649. char const *dangling_symlink = "conftest.dangle";
  13650. unlink(dangling_symlink);
  13651. if (symlink("conftest.no-such", dangling_symlink) < 0) abort();
  13652. if (chown(dangling_symlink, getuid(), getgid()) < 0 && errno == ENOENT) exit(1);
  13653. exit(0);
  13654. }
  13655. _ACEOF
  13656. rm -f conftest$ac_exeext
  13657. if { (ac_try="$ac_link"
  13658. case "(($ac_try" in
  13659. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13660. *) ac_try_echo=$ac_try;;
  13661. esac
  13662. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13663. (eval "$ac_link") 2>&5
  13664. ac_status=$?
  13665. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13666. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  13667. { (case "(($ac_try" in
  13668. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13669. *) ac_try_echo=$ac_try;;
  13670. esac
  13671. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13672. (eval "$ac_try") 2>&5
  13673. ac_status=$?
  13674. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13675. (exit $ac_status); }; }; then
  13676. rsync_cv_chown_modifies_symlink=yes
  13677. else
  13678. echo "$as_me: program exited with status $ac_status" >&5
  13679. echo "$as_me: failed program was:" >&5
  13680. sed 's/^/| /' conftest.$ac_ext >&5
  13681. ( exit $ac_status )
  13682. rsync_cv_chown_modifies_symlink=no
  13683. fi
  13684. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  13685. fi
  13686. fi
  13687. { echo "$as_me:$LINENO: result: $rsync_cv_chown_modifies_symlink" >&5
  13688. echo "${ECHO_T}$rsync_cv_chown_modifies_symlink" >&6; }
  13689. if test $rsync_cv_chown_modifies_symlink = yes; then
  13690. cat >>confdefs.h <<\_ACEOF
  13691. #define CHOWN_MODIFIES_SYMLINK 1
  13692. _ACEOF
  13693. fi
  13694. { echo "$as_me:$LINENO: checking whether link() can hard-link symlinks" >&5
  13695. echo $ECHO_N "checking whether link() can hard-link symlinks... $ECHO_C" >&6; }
  13696. if test "${rsync_cv_can_hardlink_symlink+set}" = set; then
  13697. echo $ECHO_N "(cached) $ECHO_C" >&6
  13698. else
  13699. if test "$cross_compiling" = yes; then
  13700. rsync_cv_can_hardlink_symlink=no
  13701. else
  13702. cat >conftest.$ac_ext <<_ACEOF
  13703. /* confdefs.h. */
  13704. _ACEOF
  13705. cat confdefs.h >>conftest.$ac_ext
  13706. cat >>conftest.$ac_ext <<_ACEOF
  13707. /* end confdefs.h. */
  13708. #if HAVE_UNISTD_H
  13709. # include <unistd.h>
  13710. #endif
  13711. #include <stdlib.h>
  13712. #include <errno.h>
  13713. #define FILENAME "conftest.dangle"
  13714. main() {
  13715. unlink(FILENAME);
  13716. if (symlink("conftest.no-such", FILENAME) < 0) abort();
  13717. if (link(FILENAME, FILENAME "2") < 0) exit(1);
  13718. exit(0);
  13719. }
  13720. _ACEOF
  13721. rm -f conftest$ac_exeext
  13722. if { (ac_try="$ac_link"
  13723. case "(($ac_try" in
  13724. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13725. *) ac_try_echo=$ac_try;;
  13726. esac
  13727. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13728. (eval "$ac_link") 2>&5
  13729. ac_status=$?
  13730. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13731. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  13732. { (case "(($ac_try" in
  13733. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13734. *) ac_try_echo=$ac_try;;
  13735. esac
  13736. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13737. (eval "$ac_try") 2>&5
  13738. ac_status=$?
  13739. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13740. (exit $ac_status); }; }; then
  13741. rsync_cv_can_hardlink_symlink=yes
  13742. else
  13743. echo "$as_me: program exited with status $ac_status" >&5
  13744. echo "$as_me: failed program was:" >&5
  13745. sed 's/^/| /' conftest.$ac_ext >&5
  13746. ( exit $ac_status )
  13747. rsync_cv_can_hardlink_symlink=no
  13748. fi
  13749. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  13750. fi
  13751. fi
  13752. { echo "$as_me:$LINENO: result: $rsync_cv_can_hardlink_symlink" >&5
  13753. echo "${ECHO_T}$rsync_cv_can_hardlink_symlink" >&6; }
  13754. if test $rsync_cv_can_hardlink_symlink = yes; then
  13755. cat >>confdefs.h <<\_ACEOF
  13756. #define CAN_HARDLINK_SYMLINK 1
  13757. _ACEOF
  13758. fi
  13759. { echo "$as_me:$LINENO: checking whether link() can hard-link special files" >&5
  13760. echo $ECHO_N "checking whether link() can hard-link special files... $ECHO_C" >&6; }
  13761. if test "${rsync_cv_can_hardlink_special+set}" = set; then
  13762. echo $ECHO_N "(cached) $ECHO_C" >&6
  13763. else
  13764. if test "$cross_compiling" = yes; then
  13765. rsync_cv_can_hardlink_special=no
  13766. else
  13767. cat >conftest.$ac_ext <<_ACEOF
  13768. /* confdefs.h. */
  13769. _ACEOF
  13770. cat confdefs.h >>conftest.$ac_ext
  13771. cat >>conftest.$ac_ext <<_ACEOF
  13772. /* end confdefs.h. */
  13773. #if HAVE_UNISTD_H
  13774. # include <unistd.h>
  13775. #endif
  13776. #include <stdlib.h>
  13777. #include <errno.h>
  13778. #define FILENAME "conftest.fifi"
  13779. main() {
  13780. unlink(FILENAME);
  13781. if (mkfifo(FILENAME, 0777) < 0) abort();
  13782. if (link(FILENAME, FILENAME "2") < 0) exit(1);
  13783. exit(0);
  13784. }
  13785. _ACEOF
  13786. rm -f conftest$ac_exeext
  13787. if { (ac_try="$ac_link"
  13788. case "(($ac_try" in
  13789. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13790. *) ac_try_echo=$ac_try;;
  13791. esac
  13792. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13793. (eval "$ac_link") 2>&5
  13794. ac_status=$?
  13795. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13796. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  13797. { (case "(($ac_try" in
  13798. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13799. *) ac_try_echo=$ac_try;;
  13800. esac
  13801. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13802. (eval "$ac_try") 2>&5
  13803. ac_status=$?
  13804. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13805. (exit $ac_status); }; }; then
  13806. rsync_cv_can_hardlink_special=yes
  13807. else
  13808. echo "$as_me: program exited with status $ac_status" >&5
  13809. echo "$as_me: failed program was:" >&5
  13810. sed 's/^/| /' conftest.$ac_ext >&5
  13811. ( exit $ac_status )
  13812. rsync_cv_can_hardlink_special=no
  13813. fi
  13814. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  13815. fi
  13816. fi
  13817. { echo "$as_me:$LINENO: result: $rsync_cv_can_hardlink_special" >&5
  13818. echo "${ECHO_T}$rsync_cv_can_hardlink_special" >&6; }
  13819. if test $rsync_cv_can_hardlink_special = yes; then
  13820. cat >>confdefs.h <<\_ACEOF
  13821. #define CAN_HARDLINK_SPECIAL 1
  13822. _ACEOF
  13823. fi
  13824. { echo "$as_me:$LINENO: checking for working socketpair" >&5
  13825. echo $ECHO_N "checking for working socketpair... $ECHO_C" >&6; }
  13826. if test "${rsync_cv_HAVE_SOCKETPAIR+set}" = set; then
  13827. echo $ECHO_N "(cached) $ECHO_C" >&6
  13828. else
  13829. if test "$cross_compiling" = yes; then
  13830. rsync_cv_HAVE_SOCKETPAIR=cross
  13831. else
  13832. cat >conftest.$ac_ext <<_ACEOF
  13833. /* confdefs.h. */
  13834. _ACEOF
  13835. cat confdefs.h >>conftest.$ac_ext
  13836. cat >>conftest.$ac_ext <<_ACEOF
  13837. /* end confdefs.h. */
  13838. #include <sys/types.h>
  13839. #include <sys/socket.h>
  13840. main() {
  13841. int fd[2];
  13842. exit((socketpair(AF_UNIX, SOCK_STREAM, 0, fd) != -1) ? 0 : 1);
  13843. }
  13844. _ACEOF
  13845. rm -f conftest$ac_exeext
  13846. if { (ac_try="$ac_link"
  13847. case "(($ac_try" in
  13848. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13849. *) ac_try_echo=$ac_try;;
  13850. esac
  13851. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13852. (eval "$ac_link") 2>&5
  13853. ac_status=$?
  13854. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13855. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  13856. { (case "(($ac_try" in
  13857. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13858. *) ac_try_echo=$ac_try;;
  13859. esac
  13860. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13861. (eval "$ac_try") 2>&5
  13862. ac_status=$?
  13863. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13864. (exit $ac_status); }; }; then
  13865. rsync_cv_HAVE_SOCKETPAIR=yes
  13866. else
  13867. echo "$as_me: program exited with status $ac_status" >&5
  13868. echo "$as_me: failed program was:" >&5
  13869. sed 's/^/| /' conftest.$ac_ext >&5
  13870. ( exit $ac_status )
  13871. rsync_cv_HAVE_SOCKETPAIR=no
  13872. fi
  13873. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  13874. fi
  13875. fi
  13876. { echo "$as_me:$LINENO: result: $rsync_cv_HAVE_SOCKETPAIR" >&5
  13877. echo "${ECHO_T}$rsync_cv_HAVE_SOCKETPAIR" >&6; }
  13878. if test x"$rsync_cv_HAVE_SOCKETPAIR" = x"yes"; then
  13879. cat >>confdefs.h <<\_ACEOF
  13880. #define HAVE_SOCKETPAIR 1
  13881. _ACEOF
  13882. fi
  13883. if test x"$with_included_popt" != x"yes"; then
  13884. { echo "$as_me:$LINENO: checking for poptGetContext in -lpopt" >&5
  13885. echo $ECHO_N "checking for poptGetContext in -lpopt... $ECHO_C" >&6; }
  13886. if test "${ac_cv_lib_popt_poptGetContext+set}" = set; then
  13887. echo $ECHO_N "(cached) $ECHO_C" >&6
  13888. else
  13889. ac_check_lib_save_LIBS=$LIBS
  13890. LIBS="-lpopt $LIBS"
  13891. cat >conftest.$ac_ext <<_ACEOF
  13892. /* confdefs.h. */
  13893. _ACEOF
  13894. cat confdefs.h >>conftest.$ac_ext
  13895. cat >>conftest.$ac_ext <<_ACEOF
  13896. /* end confdefs.h. */
  13897. /* Override any GCC internal prototype to avoid an error.
  13898. Use char because int might match the return type of a GCC
  13899. builtin and then its argument prototype would still apply. */
  13900. #ifdef __cplusplus
  13901. extern "C"
  13902. #endif
  13903. char poptGetContext ();
  13904. int
  13905. main ()
  13906. {
  13907. return poptGetContext ();
  13908. ;
  13909. return 0;
  13910. }
  13911. _ACEOF
  13912. rm -f conftest.$ac_objext conftest$ac_exeext
  13913. if { (ac_try="$ac_link"
  13914. case "(($ac_try" in
  13915. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13916. *) ac_try_echo=$ac_try;;
  13917. esac
  13918. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13919. (eval "$ac_link") 2>conftest.er1
  13920. ac_status=$?
  13921. grep -v '^ *+' conftest.er1 >conftest.err
  13922. rm -f conftest.er1
  13923. cat conftest.err >&5
  13924. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13925. (exit $ac_status); } && {
  13926. test -z "$ac_c_werror_flag" ||
  13927. test ! -s conftest.err
  13928. } && test -s conftest$ac_exeext &&
  13929. $as_test_x conftest$ac_exeext; then
  13930. ac_cv_lib_popt_poptGetContext=yes
  13931. else
  13932. echo "$as_me: failed program was:" >&5
  13933. sed 's/^/| /' conftest.$ac_ext >&5
  13934. ac_cv_lib_popt_poptGetContext=no
  13935. fi
  13936. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13937. conftest$ac_exeext conftest.$ac_ext
  13938. LIBS=$ac_check_lib_save_LIBS
  13939. fi
  13940. { echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptGetContext" >&5
  13941. echo "${ECHO_T}$ac_cv_lib_popt_poptGetContext" >&6; }
  13942. if test $ac_cv_lib_popt_poptGetContext = yes; then
  13943. cat >>confdefs.h <<_ACEOF
  13944. #define HAVE_LIBPOPT 1
  13945. _ACEOF
  13946. LIBS="-lpopt $LIBS"
  13947. else
  13948. with_included_popt=yes
  13949. fi
  13950. fi
  13951. if test x"$ac_cv_header_popt_popt_h" = x"yes"; then
  13952. # If the system has /usr/include/popt/popt.h, we enable the
  13953. # included popt because an attempt to "#include <popt/popt.h>"
  13954. # would use our included header file anyway (due to -I.), and
  13955. # might conflict with the system popt.
  13956. with_included_popt=yes
  13957. elif test x"$ac_cv_header_popt_h" != x"yes"; then
  13958. with_included_popt=yes
  13959. fi
  13960. { echo "$as_me:$LINENO: checking whether to use included libpopt" >&5
  13961. echo $ECHO_N "checking whether to use included libpopt... $ECHO_C" >&6; }
  13962. if test x"$with_included_popt" = x"yes"; then
  13963. { echo "$as_me:$LINENO: result: $srcdir/popt" >&5
  13964. echo "${ECHO_T}$srcdir/popt" >&6; }
  13965. BUILD_POPT='$(popt_OBJS)'
  13966. CFLAGS="$CFLAGS -I$srcdir/popt"
  13967. if test x"$ALLOCA" != x
  13968. then
  13969. # this can be removed when/if we add an included alloca.c;
  13970. # see autoconf documentation on AC_FUNC_ALLOCA
  13971. { echo "$as_me:$LINENO: WARNING: included libpopt will use malloc, not alloca (which wastes a small amount of memory)" >&5
  13972. echo "$as_me: WARNING: included libpopt will use malloc, not alloca (which wastes a small amount of memory)" >&2;}
  13973. fi
  13974. else
  13975. { echo "$as_me:$LINENO: result: no" >&5
  13976. echo "${ECHO_T}no" >&6; }
  13977. fi
  13978. { echo "$as_me:$LINENO: checking for unsigned char" >&5
  13979. echo $ECHO_N "checking for unsigned char... $ECHO_C" >&6; }
  13980. if test "${rsync_cv_SIGNED_CHAR_OK+set}" = set; then
  13981. echo $ECHO_N "(cached) $ECHO_C" >&6
  13982. else
  13983. cat >conftest.$ac_ext <<_ACEOF
  13984. /* confdefs.h. */
  13985. _ACEOF
  13986. cat confdefs.h >>conftest.$ac_ext
  13987. cat >>conftest.$ac_ext <<_ACEOF
  13988. /* end confdefs.h. */
  13989. int
  13990. main ()
  13991. {
  13992. signed char *s = ""
  13993. ;
  13994. return 0;
  13995. }
  13996. _ACEOF
  13997. rm -f conftest.$ac_objext
  13998. if { (ac_try="$ac_compile"
  13999. case "(($ac_try" in
  14000. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14001. *) ac_try_echo=$ac_try;;
  14002. esac
  14003. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14004. (eval "$ac_compile") 2>conftest.er1
  14005. ac_status=$?
  14006. grep -v '^ *+' conftest.er1 >conftest.err
  14007. rm -f conftest.er1
  14008. cat conftest.err >&5
  14009. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14010. (exit $ac_status); } && {
  14011. test -z "$ac_c_werror_flag" ||
  14012. test ! -s conftest.err
  14013. } && test -s conftest.$ac_objext; then
  14014. rsync_cv_SIGNED_CHAR_OK=yes
  14015. else
  14016. echo "$as_me: failed program was:" >&5
  14017. sed 's/^/| /' conftest.$ac_ext >&5
  14018. rsync_cv_SIGNED_CHAR_OK=no
  14019. fi
  14020. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14021. fi
  14022. { echo "$as_me:$LINENO: result: $rsync_cv_SIGNED_CHAR_OK" >&5
  14023. echo "${ECHO_T}$rsync_cv_SIGNED_CHAR_OK" >&6; }
  14024. if test x"$rsync_cv_SIGNED_CHAR_OK" = x"yes"; then
  14025. cat >>confdefs.h <<\_ACEOF
  14026. #define SIGNED_CHAR_OK 1
  14027. _ACEOF
  14028. fi
  14029. { echo "$as_me:$LINENO: checking for broken readdir" >&5
  14030. echo $ECHO_N "checking for broken readdir... $ECHO_C" >&6; }
  14031. if test "${rsync_cv_HAVE_BROKEN_READDIR+set}" = set; then
  14032. echo $ECHO_N "(cached) $ECHO_C" >&6
  14033. else
  14034. if test "$cross_compiling" = yes; then
  14035. rsync_cv_HAVE_BROKEN_READDIR=cross
  14036. else
  14037. cat >conftest.$ac_ext <<_ACEOF
  14038. /* confdefs.h. */
  14039. _ACEOF
  14040. cat confdefs.h >>conftest.$ac_ext
  14041. cat >>conftest.$ac_ext <<_ACEOF
  14042. /* end confdefs.h. */
  14043. #include <sys/types.h>
  14044. #include <dirent.h>
  14045. main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
  14046. if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
  14047. di->d_name[0] == 0) exit(0); exit(1);}
  14048. _ACEOF
  14049. rm -f conftest$ac_exeext
  14050. if { (ac_try="$ac_link"
  14051. case "(($ac_try" in
  14052. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14053. *) ac_try_echo=$ac_try;;
  14054. esac
  14055. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14056. (eval "$ac_link") 2>&5
  14057. ac_status=$?
  14058. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14059. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  14060. { (case "(($ac_try" in
  14061. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14062. *) ac_try_echo=$ac_try;;
  14063. esac
  14064. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14065. (eval "$ac_try") 2>&5
  14066. ac_status=$?
  14067. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14068. (exit $ac_status); }; }; then
  14069. rsync_cv_HAVE_BROKEN_READDIR=yes
  14070. else
  14071. echo "$as_me: program exited with status $ac_status" >&5
  14072. echo "$as_me: failed program was:" >&5
  14073. sed 's/^/| /' conftest.$ac_ext >&5
  14074. ( exit $ac_status )
  14075. rsync_cv_HAVE_BROKEN_READDIR=no
  14076. fi
  14077. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14078. fi
  14079. fi
  14080. { echo "$as_me:$LINENO: result: $rsync_cv_HAVE_BROKEN_READDIR" >&5
  14081. echo "${ECHO_T}$rsync_cv_HAVE_BROKEN_READDIR" >&6; }
  14082. if test x"$rsync_cv_HAVE_BROKEN_READDIR" = x"yes"; then
  14083. cat >>confdefs.h <<\_ACEOF
  14084. #define HAVE_BROKEN_READDIR 1
  14085. _ACEOF
  14086. fi
  14087. { echo "$as_me:$LINENO: checking for utimbuf" >&5
  14088. echo $ECHO_N "checking for utimbuf... $ECHO_C" >&6; }
  14089. if test "${rsync_cv_HAVE_STRUCT_UTIMBUF+set}" = set; then
  14090. echo $ECHO_N "(cached) $ECHO_C" >&6
  14091. else
  14092. cat >conftest.$ac_ext <<_ACEOF
  14093. /* confdefs.h. */
  14094. _ACEOF
  14095. cat confdefs.h >>conftest.$ac_ext
  14096. cat >>conftest.$ac_ext <<_ACEOF
  14097. /* end confdefs.h. */
  14098. #include <sys/types.h>
  14099. #include <utime.h>
  14100. int
  14101. main ()
  14102. {
  14103. struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
  14104. ;
  14105. return 0;
  14106. }
  14107. _ACEOF
  14108. rm -f conftest.$ac_objext
  14109. if { (ac_try="$ac_compile"
  14110. case "(($ac_try" in
  14111. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14112. *) ac_try_echo=$ac_try;;
  14113. esac
  14114. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14115. (eval "$ac_compile") 2>conftest.er1
  14116. ac_status=$?
  14117. grep -v '^ *+' conftest.er1 >conftest.err
  14118. rm -f conftest.er1
  14119. cat conftest.err >&5
  14120. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14121. (exit $ac_status); } && {
  14122. test -z "$ac_c_werror_flag" ||
  14123. test ! -s conftest.err
  14124. } && test -s conftest.$ac_objext; then
  14125. rsync_cv_HAVE_STRUCT_UTIMBUF=yes
  14126. else
  14127. echo "$as_me: failed program was:" >&5
  14128. sed 's/^/| /' conftest.$ac_ext >&5
  14129. rsync_cv_HAVE_STRUCT_UTIMBUF=no
  14130. fi
  14131. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14132. fi
  14133. { echo "$as_me:$LINENO: result: $rsync_cv_HAVE_STRUCT_UTIMBUF" >&5
  14134. echo "${ECHO_T}$rsync_cv_HAVE_STRUCT_UTIMBUF" >&6; }
  14135. if test x"$rsync_cv_HAVE_STRUCT_UTIMBUF" = x"yes"; then
  14136. cat >>confdefs.h <<\_ACEOF
  14137. #define HAVE_STRUCT_UTIMBUF 1
  14138. _ACEOF
  14139. fi
  14140. { echo "$as_me:$LINENO: checking if gettimeofday takes tz argument" >&5
  14141. echo $ECHO_N "checking if gettimeofday takes tz argument... $ECHO_C" >&6; }
  14142. if test "${rsync_cv_HAVE_GETTIMEOFDAY_TZ+set}" = set; then
  14143. echo $ECHO_N "(cached) $ECHO_C" >&6
  14144. else
  14145. cat >conftest.$ac_ext <<_ACEOF
  14146. /* confdefs.h. */
  14147. _ACEOF
  14148. cat confdefs.h >>conftest.$ac_ext
  14149. cat >>conftest.$ac_ext <<_ACEOF
  14150. /* end confdefs.h. */
  14151. #include <sys/time.h>
  14152. #include <unistd.h>
  14153. int
  14154. main ()
  14155. {
  14156. struct timeval tv; exit(gettimeofday(&tv, NULL));
  14157. ;
  14158. return 0;
  14159. }
  14160. _ACEOF
  14161. rm -f conftest.$ac_objext
  14162. if { (ac_try="$ac_compile"
  14163. case "(($ac_try" in
  14164. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14165. *) ac_try_echo=$ac_try;;
  14166. esac
  14167. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14168. (eval "$ac_compile") 2>conftest.er1
  14169. ac_status=$?
  14170. grep -v '^ *+' conftest.er1 >conftest.err
  14171. rm -f conftest.er1
  14172. cat conftest.err >&5
  14173. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14174. (exit $ac_status); } && {
  14175. test -z "$ac_c_werror_flag" ||
  14176. test ! -s conftest.err
  14177. } && test -s conftest.$ac_objext; then
  14178. rsync_cv_HAVE_GETTIMEOFDAY_TZ=yes
  14179. else
  14180. echo "$as_me: failed program was:" >&5
  14181. sed 's/^/| /' conftest.$ac_ext >&5
  14182. rsync_cv_HAVE_GETTIMEOFDAY_TZ=no
  14183. fi
  14184. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14185. fi
  14186. { echo "$as_me:$LINENO: result: $rsync_cv_HAVE_GETTIMEOFDAY_TZ" >&5
  14187. echo "${ECHO_T}$rsync_cv_HAVE_GETTIMEOFDAY_TZ" >&6; }
  14188. if test x"$rsync_cv_HAVE_GETTIMEOFDAY_TZ" != x"no"; then
  14189. cat >>confdefs.h <<\_ACEOF
  14190. #define HAVE_GETTIMEOFDAY_TZ 1
  14191. _ACEOF
  14192. fi
  14193. { echo "$as_me:$LINENO: checking for C99 vsnprintf" >&5
  14194. echo $ECHO_N "checking for C99 vsnprintf... $ECHO_C" >&6; }
  14195. if test "${rsync_cv_HAVE_C99_VSNPRINTF+set}" = set; then
  14196. echo $ECHO_N "(cached) $ECHO_C" >&6
  14197. else
  14198. if test "$cross_compiling" = yes; then
  14199. rsync_cv_HAVE_C99_VSNPRINTF=cross
  14200. else
  14201. cat >conftest.$ac_ext <<_ACEOF
  14202. /* confdefs.h. */
  14203. _ACEOF
  14204. cat confdefs.h >>conftest.$ac_ext
  14205. cat >>conftest.$ac_ext <<_ACEOF
  14206. /* end confdefs.h. */
  14207. #include <sys/types.h>
  14208. #include <stdarg.h>
  14209. void foo(const char *format, ...) {
  14210. va_list ap;
  14211. int len;
  14212. char buf[5];
  14213. va_start(ap, format);
  14214. len = vsnprintf(0, 0, format, ap);
  14215. va_end(ap);
  14216. if (len != 5) exit(1);
  14217. if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
  14218. exit(0);
  14219. }
  14220. main() { foo("hello"); }
  14221. _ACEOF
  14222. rm -f conftest$ac_exeext
  14223. if { (ac_try="$ac_link"
  14224. case "(($ac_try" in
  14225. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14226. *) ac_try_echo=$ac_try;;
  14227. esac
  14228. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14229. (eval "$ac_link") 2>&5
  14230. ac_status=$?
  14231. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14232. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  14233. { (case "(($ac_try" in
  14234. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14235. *) ac_try_echo=$ac_try;;
  14236. esac
  14237. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14238. (eval "$ac_try") 2>&5
  14239. ac_status=$?
  14240. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14241. (exit $ac_status); }; }; then
  14242. rsync_cv_HAVE_C99_VSNPRINTF=yes
  14243. else
  14244. echo "$as_me: program exited with status $ac_status" >&5
  14245. echo "$as_me: failed program was:" >&5
  14246. sed 's/^/| /' conftest.$ac_ext >&5
  14247. ( exit $ac_status )
  14248. rsync_cv_HAVE_C99_VSNPRINTF=no
  14249. fi
  14250. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14251. fi
  14252. fi
  14253. { echo "$as_me:$LINENO: result: $rsync_cv_HAVE_C99_VSNPRINTF" >&5
  14254. echo "${ECHO_T}$rsync_cv_HAVE_C99_VSNPRINTF" >&6; }
  14255. if test x"$rsync_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
  14256. cat >>confdefs.h <<\_ACEOF
  14257. #define HAVE_C99_VSNPRINTF 1
  14258. _ACEOF
  14259. fi
  14260. { echo "$as_me:$LINENO: checking for secure mkstemp" >&5
  14261. echo $ECHO_N "checking for secure mkstemp... $ECHO_C" >&6; }
  14262. if test "${rsync_cv_HAVE_SECURE_MKSTEMP+set}" = set; then
  14263. echo $ECHO_N "(cached) $ECHO_C" >&6
  14264. else
  14265. if test "$cross_compiling" = yes; then
  14266. rsync_cv_HAVE_SECURE_MKSTEMP=cross
  14267. else
  14268. cat >conftest.$ac_ext <<_ACEOF
  14269. /* confdefs.h. */
  14270. _ACEOF
  14271. cat confdefs.h >>conftest.$ac_ext
  14272. cat >>conftest.$ac_ext <<_ACEOF
  14273. /* end confdefs.h. */
  14274. #include <stdlib.h>
  14275. #include <sys/types.h>
  14276. #include <sys/stat.h>
  14277. #include <unistd.h>
  14278. main() {
  14279. struct stat st;
  14280. char tpl[20]="/tmp/test.XXXXXX";
  14281. int fd = mkstemp(tpl);
  14282. if (fd == -1) exit(1);
  14283. unlink(tpl);
  14284. if (fstat(fd, &st) != 0) exit(1);
  14285. if ((st.st_mode & 0777) != 0600) exit(1);
  14286. exit(0);
  14287. }
  14288. _ACEOF
  14289. rm -f conftest$ac_exeext
  14290. if { (ac_try="$ac_link"
  14291. case "(($ac_try" in
  14292. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14293. *) ac_try_echo=$ac_try;;
  14294. esac
  14295. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14296. (eval "$ac_link") 2>&5
  14297. ac_status=$?
  14298. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14299. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  14300. { (case "(($ac_try" in
  14301. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14302. *) ac_try_echo=$ac_try;;
  14303. esac
  14304. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14305. (eval "$ac_try") 2>&5
  14306. ac_status=$?
  14307. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14308. (exit $ac_status); }; }; then
  14309. rsync_cv_HAVE_SECURE_MKSTEMP=yes
  14310. else
  14311. echo "$as_me: program exited with status $ac_status" >&5
  14312. echo "$as_me: failed program was:" >&5
  14313. sed 's/^/| /' conftest.$ac_ext >&5
  14314. ( exit $ac_status )
  14315. rsync_cv_HAVE_SECURE_MKSTEMP=no
  14316. fi
  14317. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14318. fi
  14319. fi
  14320. { echo "$as_me:$LINENO: result: $rsync_cv_HAVE_SECURE_MKSTEMP" >&5
  14321. echo "${ECHO_T}$rsync_cv_HAVE_SECURE_MKSTEMP" >&6; }
  14322. if test x"$rsync_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
  14323. case $target_os in
  14324. hpux*)
  14325. { echo "$as_me:$LINENO: WARNING: Skipping broken HP-UX mkstemp() -- using mktemp() instead" >&5
  14326. echo "$as_me: WARNING: Skipping broken HP-UX mkstemp() -- using mktemp() instead" >&2;}
  14327. ;;
  14328. *)
  14329. cat >>confdefs.h <<\_ACEOF
  14330. #define HAVE_SECURE_MKSTEMP 1
  14331. _ACEOF
  14332. ;;
  14333. esac
  14334. fi
  14335. { echo "$as_me:$LINENO: checking if mknod creates FIFOs" >&5
  14336. echo $ECHO_N "checking if mknod creates FIFOs... $ECHO_C" >&6; }
  14337. if test "${rsync_cv_MKNOD_CREATES_FIFOS+set}" = set; then
  14338. echo $ECHO_N "(cached) $ECHO_C" >&6
  14339. else
  14340. if test "$cross_compiling" = yes; then
  14341. rsync_cv_MKNOD_CREATES_FIFOS=cross
  14342. else
  14343. cat >conftest.$ac_ext <<_ACEOF
  14344. /* confdefs.h. */
  14345. _ACEOF
  14346. cat confdefs.h >>conftest.$ac_ext
  14347. cat >>conftest.$ac_ext <<_ACEOF
  14348. /* end confdefs.h. */
  14349. #include <stdio.h>
  14350. #include <sys/stat.h>
  14351. #include <errno.h>
  14352. main() { int rc, ec; char *fn = "fifo-test";
  14353. unlink(fn); rc = mknod(fn,S_IFIFO,0600); ec = errno; unlink(fn);
  14354. if (rc) {printf("(%d %d) ",rc,ec); return ec;}
  14355. return 0;}
  14356. _ACEOF
  14357. rm -f conftest$ac_exeext
  14358. if { (ac_try="$ac_link"
  14359. case "(($ac_try" in
  14360. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14361. *) ac_try_echo=$ac_try;;
  14362. esac
  14363. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14364. (eval "$ac_link") 2>&5
  14365. ac_status=$?
  14366. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14367. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  14368. { (case "(($ac_try" in
  14369. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14370. *) ac_try_echo=$ac_try;;
  14371. esac
  14372. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14373. (eval "$ac_try") 2>&5
  14374. ac_status=$?
  14375. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14376. (exit $ac_status); }; }; then
  14377. rsync_cv_MKNOD_CREATES_FIFOS=yes
  14378. else
  14379. echo "$as_me: program exited with status $ac_status" >&5
  14380. echo "$as_me: failed program was:" >&5
  14381. sed 's/^/| /' conftest.$ac_ext >&5
  14382. ( exit $ac_status )
  14383. rsync_cv_MKNOD_CREATES_FIFOS=no
  14384. fi
  14385. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14386. fi
  14387. fi
  14388. { echo "$as_me:$LINENO: result: $rsync_cv_MKNOD_CREATES_FIFOS" >&5
  14389. echo "${ECHO_T}$rsync_cv_MKNOD_CREATES_FIFOS" >&6; }
  14390. if test x"$rsync_cv_MKNOD_CREATES_FIFOS" = x"yes"; then
  14391. cat >>confdefs.h <<\_ACEOF
  14392. #define MKNOD_CREATES_FIFOS 1
  14393. _ACEOF
  14394. fi
  14395. { echo "$as_me:$LINENO: checking if mknod creates sockets" >&5
  14396. echo $ECHO_N "checking if mknod creates sockets... $ECHO_C" >&6; }
  14397. if test "${rsync_cv_MKNOD_CREATES_SOCKETS+set}" = set; then
  14398. echo $ECHO_N "(cached) $ECHO_C" >&6
  14399. else
  14400. if test "$cross_compiling" = yes; then
  14401. rsync_cv_MKNOD_CREATES_SOCKETS=cross
  14402. else
  14403. cat >conftest.$ac_ext <<_ACEOF
  14404. /* confdefs.h. */
  14405. _ACEOF
  14406. cat confdefs.h >>conftest.$ac_ext
  14407. cat >>conftest.$ac_ext <<_ACEOF
  14408. /* end confdefs.h. */
  14409. #include <stdio.h>
  14410. #include <sys/stat.h>
  14411. #include <errno.h>
  14412. main() { int rc, ec; char *fn = "sock-test";
  14413. unlink(fn); rc = mknod(fn,S_IFSOCK,0600); ec = errno; unlink(fn);
  14414. if (rc) {printf("(%d %d) ",rc,ec); return ec;}
  14415. return 0;}
  14416. _ACEOF
  14417. rm -f conftest$ac_exeext
  14418. if { (ac_try="$ac_link"
  14419. case "(($ac_try" in
  14420. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14421. *) ac_try_echo=$ac_try;;
  14422. esac
  14423. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14424. (eval "$ac_link") 2>&5
  14425. ac_status=$?
  14426. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14427. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  14428. { (case "(($ac_try" in
  14429. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14430. *) ac_try_echo=$ac_try;;
  14431. esac
  14432. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14433. (eval "$ac_try") 2>&5
  14434. ac_status=$?
  14435. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14436. (exit $ac_status); }; }; then
  14437. rsync_cv_MKNOD_CREATES_SOCKETS=yes
  14438. else
  14439. echo "$as_me: program exited with status $ac_status" >&5
  14440. echo "$as_me: failed program was:" >&5
  14441. sed 's/^/| /' conftest.$ac_ext >&5
  14442. ( exit $ac_status )
  14443. rsync_cv_MKNOD_CREATES_SOCKETS=no
  14444. fi
  14445. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14446. fi
  14447. fi
  14448. { echo "$as_me:$LINENO: result: $rsync_cv_MKNOD_CREATES_SOCKETS" >&5
  14449. echo "${ECHO_T}$rsync_cv_MKNOD_CREATES_SOCKETS" >&6; }
  14450. if test x"$rsync_cv_MKNOD_CREATES_SOCKETS" = x"yes"; then
  14451. cat >>confdefs.h <<\_ACEOF
  14452. #define MKNOD_CREATES_SOCKETS 1
  14453. _ACEOF
  14454. fi
  14455. #
  14456. # The following test was mostly taken from the tcl/tk plus patches
  14457. #
  14458. { echo "$as_me:$LINENO: checking whether -c -o works" >&5
  14459. echo $ECHO_N "checking whether -c -o works... $ECHO_C" >&6; }
  14460. if test "${rsync_cv_DASHC_WORKS_WITH_DASHO+set}" = set; then
  14461. echo $ECHO_N "(cached) $ECHO_C" >&6
  14462. else
  14463. rm -rf conftest*
  14464. cat > conftest.$ac_ext <<EOF
  14465. int main() { return 0; }
  14466. EOF
  14467. ${CC-cc} -c -o conftest..o conftest.$ac_ext
  14468. if test -f conftest..o; then
  14469. rsync_cv_DASHC_WORKS_WITH_DASHO=yes
  14470. else
  14471. rsync_cv_DASHC_WORKS_WITH_DASHO=no
  14472. fi
  14473. rm -rf conftest*
  14474. fi
  14475. { echo "$as_me:$LINENO: result: $rsync_cv_DASHC_WORKS_WITH_DASHO" >&5
  14476. echo "${ECHO_T}$rsync_cv_DASHC_WORKS_WITH_DASHO" >&6; }
  14477. if test x"$rsync_cv_DASHC_WORKS_WITH_DASHO" = x"yes"; then
  14478. OBJ_SAVE="#"
  14479. OBJ_RESTORE="#"
  14480. CC_SHOBJ_FLAG='-o $@'
  14481. else
  14482. OBJ_SAVE=' @b=`basename $@ .o`;rm -f $$b.o.sav;if test -f $$b.o; then mv $$b.o $$b.o.sav;fi;'
  14483. OBJ_RESTORE=' @b=`basename $@ .o`;if test "$$b.o" != "$@"; then mv $$b.o $@; if test -f $$b.o.sav; then mv $$b.o.sav $$b.o; fi; fi'
  14484. CC_SHOBJ_FLAG=""
  14485. fi
  14486. for ac_func in _acl __acl _facl __facl
  14487. do
  14488. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14489. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  14490. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  14491. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  14492. echo $ECHO_N "(cached) $ECHO_C" >&6
  14493. else
  14494. cat >conftest.$ac_ext <<_ACEOF
  14495. /* confdefs.h. */
  14496. _ACEOF
  14497. cat confdefs.h >>conftest.$ac_ext
  14498. cat >>conftest.$ac_ext <<_ACEOF
  14499. /* end confdefs.h. */
  14500. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  14501. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  14502. #define $ac_func innocuous_$ac_func
  14503. /* System header to define __stub macros and hopefully few prototypes,
  14504. which can conflict with char $ac_func (); below.
  14505. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  14506. <limits.h> exists even on freestanding compilers. */
  14507. #ifdef __STDC__
  14508. # include <limits.h>
  14509. #else
  14510. # include <assert.h>
  14511. #endif
  14512. #undef $ac_func
  14513. /* Override any GCC internal prototype to avoid an error.
  14514. Use char because int might match the return type of a GCC
  14515. builtin and then its argument prototype would still apply. */
  14516. #ifdef __cplusplus
  14517. extern "C"
  14518. #endif
  14519. char $ac_func ();
  14520. /* The GNU C library defines this for functions which it implements
  14521. to always fail with ENOSYS. Some functions are actually named
  14522. something starting with __ and the normal name is an alias. */
  14523. #if defined __stub_$ac_func || defined __stub___$ac_func
  14524. choke me
  14525. #endif
  14526. int
  14527. main ()
  14528. {
  14529. return $ac_func ();
  14530. ;
  14531. return 0;
  14532. }
  14533. _ACEOF
  14534. rm -f conftest.$ac_objext conftest$ac_exeext
  14535. if { (ac_try="$ac_link"
  14536. case "(($ac_try" in
  14537. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14538. *) ac_try_echo=$ac_try;;
  14539. esac
  14540. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14541. (eval "$ac_link") 2>conftest.er1
  14542. ac_status=$?
  14543. grep -v '^ *+' conftest.er1 >conftest.err
  14544. rm -f conftest.er1
  14545. cat conftest.err >&5
  14546. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14547. (exit $ac_status); } && {
  14548. test -z "$ac_c_werror_flag" ||
  14549. test ! -s conftest.err
  14550. } && test -s conftest$ac_exeext &&
  14551. $as_test_x conftest$ac_exeext; then
  14552. eval "$as_ac_var=yes"
  14553. else
  14554. echo "$as_me: failed program was:" >&5
  14555. sed 's/^/| /' conftest.$ac_ext >&5
  14556. eval "$as_ac_var=no"
  14557. fi
  14558. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14559. conftest$ac_exeext conftest.$ac_ext
  14560. fi
  14561. ac_res=`eval echo '${'$as_ac_var'}'`
  14562. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14563. echo "${ECHO_T}$ac_res" >&6; }
  14564. if test `eval echo '${'$as_ac_var'}'` = yes; then
  14565. cat >>confdefs.h <<_ACEOF
  14566. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14567. _ACEOF
  14568. fi
  14569. done
  14570. #################################################
  14571. # check for ACL support
  14572. { echo "$as_me:$LINENO: checking whether to support ACLs" >&5
  14573. echo $ECHO_N "checking whether to support ACLs... $ECHO_C" >&6; }
  14574. # Check whether --enable-acl-support was given.
  14575. if test "${enable_acl_support+set}" = set; then
  14576. enableval=$enable_acl_support;
  14577. fi
  14578. if test x"$enable_acl_support" = x"no"; then
  14579. { echo "$as_me:$LINENO: result: no" >&5
  14580. echo "${ECHO_T}no" >&6; }
  14581. else
  14582. case "$host_os" in
  14583. *sysv5*)
  14584. { echo "$as_me:$LINENO: result: Using UnixWare ACLs" >&5
  14585. echo "${ECHO_T}Using UnixWare ACLs" >&6; }
  14586. cat >>confdefs.h <<\_ACEOF
  14587. #define HAVE_UNIXWARE_ACLS 1
  14588. _ACEOF
  14589. cat >>confdefs.h <<\_ACEOF
  14590. #define SUPPORT_ACLS 1
  14591. _ACEOF
  14592. ;;
  14593. *solaris*|*cygwin*)
  14594. { echo "$as_me:$LINENO: result: Using solaris ACLs" >&5
  14595. echo "${ECHO_T}Using solaris ACLs" >&6; }
  14596. cat >>confdefs.h <<\_ACEOF
  14597. #define HAVE_SOLARIS_ACLS 1
  14598. _ACEOF
  14599. cat >>confdefs.h <<\_ACEOF
  14600. #define SUPPORT_ACLS 1
  14601. _ACEOF
  14602. ;;
  14603. *hpux*)
  14604. { echo "$as_me:$LINENO: result: Using HPUX ACLs" >&5
  14605. echo "${ECHO_T}Using HPUX ACLs" >&6; }
  14606. cat >>confdefs.h <<\_ACEOF
  14607. #define HAVE_HPUX_ACLS 1
  14608. _ACEOF
  14609. cat >>confdefs.h <<\_ACEOF
  14610. #define SUPPORT_ACLS 1
  14611. _ACEOF
  14612. ;;
  14613. *irix*)
  14614. { echo "$as_me:$LINENO: result: Using IRIX ACLs" >&5
  14615. echo "${ECHO_T}Using IRIX ACLs" >&6; }
  14616. cat >>confdefs.h <<\_ACEOF
  14617. #define HAVE_IRIX_ACLS 1
  14618. _ACEOF
  14619. cat >>confdefs.h <<\_ACEOF
  14620. #define SUPPORT_ACLS 1
  14621. _ACEOF
  14622. ;;
  14623. *aix*)
  14624. { echo "$as_me:$LINENO: result: Using AIX ACLs" >&5
  14625. echo "${ECHO_T}Using AIX ACLs" >&6; }
  14626. cat >>confdefs.h <<\_ACEOF
  14627. #define HAVE_AIX_ACLS 1
  14628. _ACEOF
  14629. cat >>confdefs.h <<\_ACEOF
  14630. #define SUPPORT_ACLS 1
  14631. _ACEOF
  14632. ;;
  14633. *osf*)
  14634. { echo "$as_me:$LINENO: result: Using Tru64 ACLs" >&5
  14635. echo "${ECHO_T}Using Tru64 ACLs" >&6; }
  14636. cat >>confdefs.h <<\_ACEOF
  14637. #define HAVE_TRU64_ACLS 1
  14638. _ACEOF
  14639. cat >>confdefs.h <<\_ACEOF
  14640. #define SUPPORT_ACLS 1
  14641. _ACEOF
  14642. LIBS="$LIBS -lpacl"
  14643. ;;
  14644. darwin*)
  14645. { echo "$as_me:$LINENO: result: Using OS X ACLs" >&5
  14646. echo "${ECHO_T}Using OS X ACLs" >&6; }
  14647. cat >>confdefs.h <<\_ACEOF
  14648. #define HAVE_OSX_ACLS 1
  14649. _ACEOF
  14650. cat >>confdefs.h <<\_ACEOF
  14651. #define SUPPORT_ACLS 1
  14652. _ACEOF
  14653. ;;
  14654. *)
  14655. { echo "$as_me:$LINENO: result: running tests:" >&5
  14656. echo "${ECHO_T}running tests:" >&6; }
  14657. { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
  14658. echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
  14659. if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
  14660. echo $ECHO_N "(cached) $ECHO_C" >&6
  14661. else
  14662. ac_check_lib_save_LIBS=$LIBS
  14663. LIBS="-lacl $LIBS"
  14664. cat >conftest.$ac_ext <<_ACEOF
  14665. /* confdefs.h. */
  14666. _ACEOF
  14667. cat confdefs.h >>conftest.$ac_ext
  14668. cat >>conftest.$ac_ext <<_ACEOF
  14669. /* end confdefs.h. */
  14670. /* Override any GCC internal prototype to avoid an error.
  14671. Use char because int might match the return type of a GCC
  14672. builtin and then its argument prototype would still apply. */
  14673. #ifdef __cplusplus
  14674. extern "C"
  14675. #endif
  14676. char acl_get_file ();
  14677. int
  14678. main ()
  14679. {
  14680. return acl_get_file ();
  14681. ;
  14682. return 0;
  14683. }
  14684. _ACEOF
  14685. rm -f conftest.$ac_objext conftest$ac_exeext
  14686. if { (ac_try="$ac_link"
  14687. case "(($ac_try" in
  14688. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14689. *) ac_try_echo=$ac_try;;
  14690. esac
  14691. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14692. (eval "$ac_link") 2>conftest.er1
  14693. ac_status=$?
  14694. grep -v '^ *+' conftest.er1 >conftest.err
  14695. rm -f conftest.er1
  14696. cat conftest.err >&5
  14697. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14698. (exit $ac_status); } && {
  14699. test -z "$ac_c_werror_flag" ||
  14700. test ! -s conftest.err
  14701. } && test -s conftest$ac_exeext &&
  14702. $as_test_x conftest$ac_exeext; then
  14703. ac_cv_lib_acl_acl_get_file=yes
  14704. else
  14705. echo "$as_me: failed program was:" >&5
  14706. sed 's/^/| /' conftest.$ac_ext >&5
  14707. ac_cv_lib_acl_acl_get_file=no
  14708. fi
  14709. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14710. conftest$ac_exeext conftest.$ac_ext
  14711. LIBS=$ac_check_lib_save_LIBS
  14712. fi
  14713. { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
  14714. echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
  14715. if test $ac_cv_lib_acl_acl_get_file = yes; then
  14716. cat >>confdefs.h <<_ACEOF
  14717. #define HAVE_LIBACL 1
  14718. _ACEOF
  14719. LIBS="-lacl $LIBS"
  14720. fi
  14721. { echo "$as_me:$LINENO: checking for ACL support" >&5
  14722. echo $ECHO_N "checking for ACL support... $ECHO_C" >&6; }
  14723. if test "${samba_cv_HAVE_POSIX_ACLS+set}" = set; then
  14724. echo $ECHO_N "(cached) $ECHO_C" >&6
  14725. else
  14726. cat >conftest.$ac_ext <<_ACEOF
  14727. /* confdefs.h. */
  14728. _ACEOF
  14729. cat confdefs.h >>conftest.$ac_ext
  14730. cat >>conftest.$ac_ext <<_ACEOF
  14731. /* end confdefs.h. */
  14732. #include <sys/types.h>
  14733. #include <sys/acl.h>
  14734. int
  14735. main ()
  14736. {
  14737. acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
  14738. ;
  14739. return 0;
  14740. }
  14741. _ACEOF
  14742. rm -f conftest.$ac_objext conftest$ac_exeext
  14743. if { (ac_try="$ac_link"
  14744. case "(($ac_try" in
  14745. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14746. *) ac_try_echo=$ac_try;;
  14747. esac
  14748. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14749. (eval "$ac_link") 2>conftest.er1
  14750. ac_status=$?
  14751. grep -v '^ *+' conftest.er1 >conftest.err
  14752. rm -f conftest.er1
  14753. cat conftest.err >&5
  14754. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14755. (exit $ac_status); } && {
  14756. test -z "$ac_c_werror_flag" ||
  14757. test ! -s conftest.err
  14758. } && test -s conftest$ac_exeext &&
  14759. $as_test_x conftest$ac_exeext; then
  14760. samba_cv_HAVE_POSIX_ACLS=yes
  14761. else
  14762. echo "$as_me: failed program was:" >&5
  14763. sed 's/^/| /' conftest.$ac_ext >&5
  14764. samba_cv_HAVE_POSIX_ACLS=no
  14765. fi
  14766. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14767. conftest$ac_exeext conftest.$ac_ext
  14768. fi
  14769. { echo "$as_me:$LINENO: result: $samba_cv_HAVE_POSIX_ACLS" >&5
  14770. echo "${ECHO_T}$samba_cv_HAVE_POSIX_ACLS" >&6; }
  14771. { echo "$as_me:$LINENO: checking ACL test results" >&5
  14772. echo $ECHO_N "checking ACL test results... $ECHO_C" >&6; }
  14773. if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
  14774. { echo "$as_me:$LINENO: result: Using posix ACLs" >&5
  14775. echo "${ECHO_T}Using posix ACLs" >&6; }
  14776. cat >>confdefs.h <<\_ACEOF
  14777. #define HAVE_POSIX_ACLS 1
  14778. _ACEOF
  14779. cat >>confdefs.h <<\_ACEOF
  14780. #define SUPPORT_ACLS 1
  14781. _ACEOF
  14782. { echo "$as_me:$LINENO: checking for acl_get_perm_np" >&5
  14783. echo $ECHO_N "checking for acl_get_perm_np... $ECHO_C" >&6; }
  14784. if test "${samba_cv_HAVE_ACL_GET_PERM_NP+set}" = set; then
  14785. echo $ECHO_N "(cached) $ECHO_C" >&6
  14786. else
  14787. cat >conftest.$ac_ext <<_ACEOF
  14788. /* confdefs.h. */
  14789. _ACEOF
  14790. cat confdefs.h >>conftest.$ac_ext
  14791. cat >>conftest.$ac_ext <<_ACEOF
  14792. /* end confdefs.h. */
  14793. #include <sys/types.h>
  14794. #include <sys/acl.h>
  14795. int
  14796. main ()
  14797. {
  14798. acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
  14799. ;
  14800. return 0;
  14801. }
  14802. _ACEOF
  14803. rm -f conftest.$ac_objext conftest$ac_exeext
  14804. if { (ac_try="$ac_link"
  14805. case "(($ac_try" in
  14806. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14807. *) ac_try_echo=$ac_try;;
  14808. esac
  14809. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14810. (eval "$ac_link") 2>conftest.er1
  14811. ac_status=$?
  14812. grep -v '^ *+' conftest.er1 >conftest.err
  14813. rm -f conftest.er1
  14814. cat conftest.err >&5
  14815. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14816. (exit $ac_status); } && {
  14817. test -z "$ac_c_werror_flag" ||
  14818. test ! -s conftest.err
  14819. } && test -s conftest$ac_exeext &&
  14820. $as_test_x conftest$ac_exeext; then
  14821. samba_cv_HAVE_ACL_GET_PERM_NP=yes
  14822. else
  14823. echo "$as_me: failed program was:" >&5
  14824. sed 's/^/| /' conftest.$ac_ext >&5
  14825. samba_cv_HAVE_ACL_GET_PERM_NP=no
  14826. fi
  14827. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14828. conftest$ac_exeext conftest.$ac_ext
  14829. fi
  14830. { echo "$as_me:$LINENO: result: $samba_cv_HAVE_ACL_GET_PERM_NP" >&5
  14831. echo "${ECHO_T}$samba_cv_HAVE_ACL_GET_PERM_NP" >&6; }
  14832. if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
  14833. cat >>confdefs.h <<\_ACEOF
  14834. #define HAVE_ACL_GET_PERM_NP 1
  14835. _ACEOF
  14836. fi
  14837. else
  14838. if test x"$enable_acl_support" = x"yes"; then
  14839. { { echo "$as_me:$LINENO: error: Failed to find ACL support" >&5
  14840. echo "$as_me: error: Failed to find ACL support" >&2;}
  14841. { (exit 1); exit 1; }; }
  14842. else
  14843. { echo "$as_me:$LINENO: result: No ACL support found" >&5
  14844. echo "${ECHO_T}No ACL support found" >&6; }
  14845. fi
  14846. fi
  14847. ;;
  14848. esac
  14849. fi
  14850. #################################################
  14851. # check for extended attribute support
  14852. { echo "$as_me:$LINENO: checking whether to support extended attributes" >&5
  14853. echo $ECHO_N "checking whether to support extended attributes... $ECHO_C" >&6; }
  14854. # Check whether --enable-xattr-support was given.
  14855. if test "${enable_xattr_support+set}" = set; then
  14856. enableval=$enable_xattr_support;
  14857. else
  14858. case "$ac_cv_func_getxattr$ac_cv_func_extattr_get_link" in
  14859. *yes*) enable_xattr_support=maybe ;;
  14860. *) enable_xattr_support=no ;;
  14861. esac
  14862. fi
  14863. if test x"$enable_xattr_support" = x"no"; then
  14864. { echo "$as_me:$LINENO: result: no" >&5
  14865. echo "${ECHO_T}no" >&6; }
  14866. else
  14867. case "$host_os" in
  14868. *linux*)
  14869. { echo "$as_me:$LINENO: result: Using Linux xattrs" >&5
  14870. echo "${ECHO_T}Using Linux xattrs" >&6; }
  14871. cat >>confdefs.h <<\_ACEOF
  14872. #define HAVE_LINUX_XATTRS 1
  14873. _ACEOF
  14874. cat >>confdefs.h <<\_ACEOF
  14875. #define SUPPORT_XATTRS 1
  14876. _ACEOF
  14877. ;;
  14878. darwin*)
  14879. { echo "$as_me:$LINENO: result: Using OS X xattrs" >&5
  14880. echo "${ECHO_T}Using OS X xattrs" >&6; }
  14881. cat >>confdefs.h <<\_ACEOF
  14882. #define HAVE_OSX_XATTRS 1
  14883. _ACEOF
  14884. cat >>confdefs.h <<\_ACEOF
  14885. #define SUPPORT_XATTRS 1
  14886. _ACEOF
  14887. ;;
  14888. freebsd*)
  14889. { echo "$as_me:$LINENO: result: Using FreeBSD extattrs" >&5
  14890. echo "${ECHO_T}Using FreeBSD extattrs" >&6; }
  14891. cat >>confdefs.h <<\_ACEOF
  14892. #define HAVE_FREEBSD_XATTRS 1
  14893. _ACEOF
  14894. cat >>confdefs.h <<\_ACEOF
  14895. #define SUPPORT_XATTRS 1
  14896. _ACEOF
  14897. ;;
  14898. *)
  14899. if test x"$enable_xattr_support" = x"yes"; then
  14900. { { echo "$as_me:$LINENO: error: Failed to find extended attribute support" >&5
  14901. echo "$as_me: error: Failed to find extended attribute support" >&2;}
  14902. { (exit 1); exit 1; }; }
  14903. else
  14904. { echo "$as_me:$LINENO: result: No extended attribute support found" >&5
  14905. echo "${ECHO_T}No extended attribute support found" >&6; }
  14906. fi
  14907. ;;
  14908. esac
  14909. fi
  14910. if test x"$enable_acl_support" = x"no" -o x"$enable_xattr_support" = x"no" -o x"$enable_iconv" = x"no"; then
  14911. { echo "$as_me:$LINENO: checking whether $CC supports -Wno-unused-parameter" >&5
  14912. echo $ECHO_N "checking whether $CC supports -Wno-unused-parameter... $ECHO_C" >&6; }
  14913. OLD_CFLAGS="$CFLAGS"
  14914. CFLAGS="$CFLAGS -Wno-unused-parameter"
  14915. cat >conftest.$ac_ext <<_ACEOF
  14916. _ACEOF
  14917. rm -f conftest.$ac_objext
  14918. if { (ac_try="$ac_compile"
  14919. case "(($ac_try" in
  14920. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14921. *) ac_try_echo=$ac_try;;
  14922. esac
  14923. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14924. (eval "$ac_compile") 2>conftest.er1
  14925. ac_status=$?
  14926. grep -v '^ *+' conftest.er1 >conftest.err
  14927. rm -f conftest.er1
  14928. cat conftest.err >&5
  14929. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14930. (exit $ac_status); } && {
  14931. test -z "$ac_c_werror_flag" ||
  14932. test ! -s conftest.err
  14933. } && test -s conftest.$ac_objext; then
  14934. rsync_warn_flag=yes
  14935. else
  14936. echo "$as_me: failed program was:" >&5
  14937. sed 's/^/| /' conftest.$ac_ext >&5
  14938. rsync_warn_flag=no
  14939. fi
  14940. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14941. { echo "$as_me:$LINENO: result: $rsync_warn_flag" >&5
  14942. echo "${ECHO_T}$rsync_warn_flag" >&6; }
  14943. if test x"$rsync_warn_flag" = x"no"; then
  14944. CFLAGS="$OLD_CFLAGS"
  14945. fi
  14946. fi
  14947. case "$CC" in
  14948. ' checker'*|checker*)
  14949. cat >>confdefs.h <<\_ACEOF
  14950. #define FORCE_FD_ZERO_MEMSET 1
  14951. _ACEOF
  14952. ;;
  14953. esac
  14954. ac_config_files="$ac_config_files Makefile lib/dummy zlib/dummy popt/dummy shconfig"
  14955. cat >confcache <<\_ACEOF
  14956. # This file is a shell script that caches the results of configure
  14957. # tests run on this system so they can be shared between configure
  14958. # scripts and configure runs, see configure's option --config-cache.
  14959. # It is not useful on other systems. If it contains results you don't
  14960. # want to keep, you may remove or edit it.
  14961. #
  14962. # config.status only pays attention to the cache file if you give it
  14963. # the --recheck option to rerun configure.
  14964. #
  14965. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  14966. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  14967. # following values.
  14968. _ACEOF
  14969. # The following way of writing the cache mishandles newlines in values,
  14970. # but we know of no workaround that is simple, portable, and efficient.
  14971. # So, we kill variables containing newlines.
  14972. # Ultrix sh set writes to stderr and can't be redirected directly,
  14973. # and sets the high bit in the cache file unless we assign to the vars.
  14974. (
  14975. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  14976. eval ac_val=\$$ac_var
  14977. case $ac_val in #(
  14978. *${as_nl}*)
  14979. case $ac_var in #(
  14980. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  14981. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  14982. esac
  14983. case $ac_var in #(
  14984. _ | IFS | as_nl) ;; #(
  14985. *) $as_unset $ac_var ;;
  14986. esac ;;
  14987. esac
  14988. done
  14989. (set) 2>&1 |
  14990. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  14991. *${as_nl}ac_space=\ *)
  14992. # `set' does not quote correctly, so add quotes (double-quote
  14993. # substitution turns \\\\ into \\, and sed turns \\ into \).
  14994. sed -n \
  14995. "s/'/'\\\\''/g;
  14996. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  14997. ;; #(
  14998. *)
  14999. # `set' quotes correctly as required by POSIX, so do not add quotes.
  15000. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  15001. ;;
  15002. esac |
  15003. sort
  15004. ) |
  15005. sed '
  15006. /^ac_cv_env_/b end
  15007. t clear
  15008. :clear
  15009. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  15010. t end
  15011. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  15012. :end' >>confcache
  15013. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  15014. if test -w "$cache_file"; then
  15015. test "x$cache_file" != "x/dev/null" &&
  15016. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  15017. echo "$as_me: updating cache $cache_file" >&6;}
  15018. cat confcache >$cache_file
  15019. else
  15020. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  15021. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  15022. fi
  15023. fi
  15024. rm -f confcache
  15025. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  15026. # Let make expand exec_prefix.
  15027. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  15028. DEFS=-DHAVE_CONFIG_H
  15029. ac_libobjs=
  15030. ac_ltlibobjs=
  15031. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  15032. # 1. Remove the extension, and $U if already installed.
  15033. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  15034. ac_i=`echo "$ac_i" | sed "$ac_script"`
  15035. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  15036. # will be set to the directory where LIBOBJS objects are built.
  15037. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  15038. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  15039. done
  15040. LIBOBJS=$ac_libobjs
  15041. LTLIBOBJS=$ac_ltlibobjs
  15042. : ${CONFIG_STATUS=./config.status}
  15043. ac_clean_files_save=$ac_clean_files
  15044. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  15045. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  15046. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  15047. cat >$CONFIG_STATUS <<_ACEOF
  15048. #! $SHELL
  15049. # Generated by $as_me.
  15050. # Run this file to recreate the current configuration.
  15051. # Compiler output produced by configure, useful for debugging
  15052. # configure, is in config.log if it exists.
  15053. debug=false
  15054. ac_cs_recheck=false
  15055. ac_cs_silent=false
  15056. SHELL=\${CONFIG_SHELL-$SHELL}
  15057. _ACEOF
  15058. cat >>$CONFIG_STATUS <<\_ACEOF
  15059. ## --------------------- ##
  15060. ## M4sh Initialization. ##
  15061. ## --------------------- ##
  15062. # Be more Bourne compatible
  15063. DUALCASE=1; export DUALCASE # for MKS sh
  15064. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  15065. emulate sh
  15066. NULLCMD=:
  15067. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  15068. # is contrary to our usage. Disable this feature.
  15069. alias -g '${1+"$@"}'='"$@"'
  15070. setopt NO_GLOB_SUBST
  15071. else
  15072. case `(set -o) 2>/dev/null` in
  15073. *posix*) set -o posix ;;
  15074. esac
  15075. fi
  15076. # PATH needs CR
  15077. # Avoid depending upon Character Ranges.
  15078. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  15079. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  15080. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  15081. as_cr_digits='0123456789'
  15082. as_cr_alnum=$as_cr_Letters$as_cr_digits
  15083. # The user is always right.
  15084. if test "${PATH_SEPARATOR+set}" != set; then
  15085. echo "#! /bin/sh" >conf$$.sh
  15086. echo "exit 0" >>conf$$.sh
  15087. chmod +x conf$$.sh
  15088. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  15089. PATH_SEPARATOR=';'
  15090. else
  15091. PATH_SEPARATOR=:
  15092. fi
  15093. rm -f conf$$.sh
  15094. fi
  15095. # Support unset when possible.
  15096. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  15097. as_unset=unset
  15098. else
  15099. as_unset=false
  15100. fi
  15101. # IFS
  15102. # We need space, tab and new line, in precisely that order. Quoting is
  15103. # there to prevent editors from complaining about space-tab.
  15104. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  15105. # splitting by setting IFS to empty value.)
  15106. as_nl='
  15107. '
  15108. IFS=" "" $as_nl"
  15109. # Find who we are. Look in the path if we contain no directory separator.
  15110. case $0 in
  15111. *[\\/]* ) as_myself=$0 ;;
  15112. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15113. for as_dir in $PATH
  15114. do
  15115. IFS=$as_save_IFS
  15116. test -z "$as_dir" && as_dir=.
  15117. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  15118. done
  15119. IFS=$as_save_IFS
  15120. ;;
  15121. esac
  15122. # We did not find ourselves, most probably we were run as `sh COMMAND'
  15123. # in which case we are not to be found in the path.
  15124. if test "x$as_myself" = x; then
  15125. as_myself=$0
  15126. fi
  15127. if test ! -f "$as_myself"; then
  15128. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  15129. { (exit 1); exit 1; }
  15130. fi
  15131. # Work around bugs in pre-3.0 UWIN ksh.
  15132. for as_var in ENV MAIL MAILPATH
  15133. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  15134. done
  15135. PS1='$ '
  15136. PS2='> '
  15137. PS4='+ '
  15138. # NLS nuisances.
  15139. for as_var in \
  15140. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  15141. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  15142. LC_TELEPHONE LC_TIME
  15143. do
  15144. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  15145. eval $as_var=C; export $as_var
  15146. else
  15147. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  15148. fi
  15149. done
  15150. # Required to use basename.
  15151. if expr a : '\(a\)' >/dev/null 2>&1 &&
  15152. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  15153. as_expr=expr
  15154. else
  15155. as_expr=false
  15156. fi
  15157. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  15158. as_basename=basename
  15159. else
  15160. as_basename=false
  15161. fi
  15162. # Name of the executable.
  15163. as_me=`$as_basename -- "$0" ||
  15164. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  15165. X"$0" : 'X\(//\)$' \| \
  15166. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  15167. echo X/"$0" |
  15168. sed '/^.*\/\([^/][^/]*\)\/*$/{
  15169. s//\1/
  15170. q
  15171. }
  15172. /^X\/\(\/\/\)$/{
  15173. s//\1/
  15174. q
  15175. }
  15176. /^X\/\(\/\).*/{
  15177. s//\1/
  15178. q
  15179. }
  15180. s/.*/./; q'`
  15181. # CDPATH.
  15182. $as_unset CDPATH
  15183. as_lineno_1=$LINENO
  15184. as_lineno_2=$LINENO
  15185. test "x$as_lineno_1" != "x$as_lineno_2" &&
  15186. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  15187. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  15188. # uniformly replaced by the line number. The first 'sed' inserts a
  15189. # line-number line after each line using $LINENO; the second 'sed'
  15190. # does the real work. The second script uses 'N' to pair each
  15191. # line-number line with the line containing $LINENO, and appends
  15192. # trailing '-' during substitution so that $LINENO is not a special
  15193. # case at line end.
  15194. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  15195. # scripts with optimization help from Paolo Bonzini. Blame Lee
  15196. # E. McMahon (1931-1989) for sed's syntax. :-)
  15197. sed -n '
  15198. p
  15199. /[$]LINENO/=
  15200. ' <$as_myself |
  15201. sed '
  15202. s/[$]LINENO.*/&-/
  15203. t lineno
  15204. b
  15205. :lineno
  15206. N
  15207. :loop
  15208. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  15209. t loop
  15210. s/-\n.*//
  15211. ' >$as_me.lineno &&
  15212. chmod +x "$as_me.lineno" ||
  15213. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  15214. { (exit 1); exit 1; }; }
  15215. # Don't try to exec as it changes $[0], causing all sort of problems
  15216. # (the dirname of $[0] is not the place where we might find the
  15217. # original and so on. Autoconf is especially sensitive to this).
  15218. . "./$as_me.lineno"
  15219. # Exit status is that of the last command.
  15220. exit
  15221. }
  15222. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  15223. as_dirname=dirname
  15224. else
  15225. as_dirname=false
  15226. fi
  15227. ECHO_C= ECHO_N= ECHO_T=
  15228. case `echo -n x` in
  15229. -n*)
  15230. case `echo 'x\c'` in
  15231. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  15232. *) ECHO_C='\c';;
  15233. esac;;
  15234. *)
  15235. ECHO_N='-n';;
  15236. esac
  15237. if expr a : '\(a\)' >/dev/null 2>&1 &&
  15238. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  15239. as_expr=expr
  15240. else
  15241. as_expr=false
  15242. fi
  15243. rm -f conf$$ conf$$.exe conf$$.file
  15244. if test -d conf$$.dir; then
  15245. rm -f conf$$.dir/conf$$.file
  15246. else
  15247. rm -f conf$$.dir
  15248. mkdir conf$$.dir
  15249. fi
  15250. echo >conf$$.file
  15251. if ln -s conf$$.file conf$$ 2>/dev/null; then
  15252. as_ln_s='ln -s'
  15253. # ... but there are two gotchas:
  15254. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  15255. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  15256. # In both cases, we have to default to `cp -p'.
  15257. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  15258. as_ln_s='cp -p'
  15259. elif ln conf$$.file conf$$ 2>/dev/null; then
  15260. as_ln_s=ln
  15261. else
  15262. as_ln_s='cp -p'
  15263. fi
  15264. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  15265. rmdir conf$$.dir 2>/dev/null
  15266. if mkdir -p . 2>/dev/null; then
  15267. as_mkdir_p=:
  15268. else
  15269. test -d ./-p && rmdir ./-p
  15270. as_mkdir_p=false
  15271. fi
  15272. if test -x / >/dev/null 2>&1; then
  15273. as_test_x='test -x'
  15274. else
  15275. if ls -dL / >/dev/null 2>&1; then
  15276. as_ls_L_option=L
  15277. else
  15278. as_ls_L_option=
  15279. fi
  15280. as_test_x='
  15281. eval sh -c '\''
  15282. if test -d "$1"; then
  15283. test -d "$1/.";
  15284. else
  15285. case $1 in
  15286. -*)set "./$1";;
  15287. esac;
  15288. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  15289. ???[sx]*):;;*)false;;esac;fi
  15290. '\'' sh
  15291. '
  15292. fi
  15293. as_executable_p=$as_test_x
  15294. # Sed expression to map a string onto a valid CPP name.
  15295. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  15296. # Sed expression to map a string onto a valid variable name.
  15297. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  15298. exec 6>&1
  15299. # Save the log message, to keep $[0] and so on meaningful, and to
  15300. # report actual input values of CONFIG_FILES etc. instead of their
  15301. # values after options handling.
  15302. ac_log="
  15303. This file was extended by $as_me, which was
  15304. generated by GNU Autoconf 2.61. Invocation command line was
  15305. CONFIG_FILES = $CONFIG_FILES
  15306. CONFIG_HEADERS = $CONFIG_HEADERS
  15307. CONFIG_LINKS = $CONFIG_LINKS
  15308. CONFIG_COMMANDS = $CONFIG_COMMANDS
  15309. $ $0 $@
  15310. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  15311. "
  15312. _ACEOF
  15313. cat >>$CONFIG_STATUS <<_ACEOF
  15314. # Files that config.status was made for.
  15315. config_files="$ac_config_files"
  15316. config_headers="$ac_config_headers"
  15317. _ACEOF
  15318. cat >>$CONFIG_STATUS <<\_ACEOF
  15319. ac_cs_usage="\
  15320. \`$as_me' instantiates files from templates according to the
  15321. current configuration.
  15322. Usage: $0 [OPTIONS] [FILE]...
  15323. -h, --help print this help, then exit
  15324. -V, --version print version number and configuration settings, then exit
  15325. -q, --quiet do not print progress messages
  15326. -d, --debug don't remove temporary files
  15327. --recheck update $as_me by reconfiguring in the same conditions
  15328. --file=FILE[:TEMPLATE]
  15329. instantiate the configuration file FILE
  15330. --header=FILE[:TEMPLATE]
  15331. instantiate the configuration header FILE
  15332. Configuration files:
  15333. $config_files
  15334. Configuration headers:
  15335. $config_headers
  15336. Report bugs to <bug-autoconf@gnu.org>."
  15337. _ACEOF
  15338. cat >>$CONFIG_STATUS <<_ACEOF
  15339. ac_cs_version="\\
  15340. config.status
  15341. configured by $0, generated by GNU Autoconf 2.61,
  15342. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  15343. Copyright (C) 2006 Free Software Foundation, Inc.
  15344. This config.status script is free software; the Free Software Foundation
  15345. gives unlimited permission to copy, distribute and modify it."
  15346. ac_pwd='$ac_pwd'
  15347. srcdir='$srcdir'
  15348. INSTALL='$INSTALL'
  15349. _ACEOF
  15350. cat >>$CONFIG_STATUS <<\_ACEOF
  15351. # If no file are specified by the user, then we need to provide default
  15352. # value. By we need to know if files were specified by the user.
  15353. ac_need_defaults=:
  15354. while test $# != 0
  15355. do
  15356. case $1 in
  15357. --*=*)
  15358. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  15359. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  15360. ac_shift=:
  15361. ;;
  15362. *)
  15363. ac_option=$1
  15364. ac_optarg=$2
  15365. ac_shift=shift
  15366. ;;
  15367. esac
  15368. case $ac_option in
  15369. # Handling of the options.
  15370. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  15371. ac_cs_recheck=: ;;
  15372. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  15373. echo "$ac_cs_version"; exit ;;
  15374. --debug | --debu | --deb | --de | --d | -d )
  15375. debug=: ;;
  15376. --file | --fil | --fi | --f )
  15377. $ac_shift
  15378. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  15379. ac_need_defaults=false;;
  15380. --header | --heade | --head | --hea )
  15381. $ac_shift
  15382. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  15383. ac_need_defaults=false;;
  15384. --he | --h)
  15385. # Conflict between --help and --header
  15386. { echo "$as_me: error: ambiguous option: $1
  15387. Try \`$0 --help' for more information." >&2
  15388. { (exit 1); exit 1; }; };;
  15389. --help | --hel | -h )
  15390. echo "$ac_cs_usage"; exit ;;
  15391. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  15392. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  15393. ac_cs_silent=: ;;
  15394. # This is an error.
  15395. -*) { echo "$as_me: error: unrecognized option: $1
  15396. Try \`$0 --help' for more information." >&2
  15397. { (exit 1); exit 1; }; } ;;
  15398. *) ac_config_targets="$ac_config_targets $1"
  15399. ac_need_defaults=false ;;
  15400. esac
  15401. shift
  15402. done
  15403. ac_configure_extra_args=
  15404. if $ac_cs_silent; then
  15405. exec 6>/dev/null
  15406. ac_configure_extra_args="$ac_configure_extra_args --silent"
  15407. fi
  15408. _ACEOF
  15409. cat >>$CONFIG_STATUS <<_ACEOF
  15410. if \$ac_cs_recheck; then
  15411. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  15412. CONFIG_SHELL=$SHELL
  15413. export CONFIG_SHELL
  15414. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  15415. fi
  15416. _ACEOF
  15417. cat >>$CONFIG_STATUS <<\_ACEOF
  15418. exec 5>>config.log
  15419. {
  15420. echo
  15421. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  15422. ## Running $as_me. ##
  15423. _ASBOX
  15424. echo "$ac_log"
  15425. } >&5
  15426. _ACEOF
  15427. cat >>$CONFIG_STATUS <<_ACEOF
  15428. _ACEOF
  15429. cat >>$CONFIG_STATUS <<\_ACEOF
  15430. # Handling of arguments.
  15431. for ac_config_target in $ac_config_targets
  15432. do
  15433. case $ac_config_target in
  15434. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  15435. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  15436. "lib/dummy") CONFIG_FILES="$CONFIG_FILES lib/dummy" ;;
  15437. "zlib/dummy") CONFIG_FILES="$CONFIG_FILES zlib/dummy" ;;
  15438. "popt/dummy") CONFIG_FILES="$CONFIG_FILES popt/dummy" ;;
  15439. "shconfig") CONFIG_FILES="$CONFIG_FILES shconfig" ;;
  15440. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  15441. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  15442. { (exit 1); exit 1; }; };;
  15443. esac
  15444. done
  15445. # If the user did not use the arguments to specify the items to instantiate,
  15446. # then the envvar interface is used. Set only those that are not.
  15447. # We use the long form for the default assignment because of an extremely
  15448. # bizarre bug on SunOS 4.1.3.
  15449. if $ac_need_defaults; then
  15450. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  15451. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  15452. fi
  15453. # Have a temporary directory for convenience. Make it in the build tree
  15454. # simply because there is no reason against having it here, and in addition,
  15455. # creating and moving files from /tmp can sometimes cause problems.
  15456. # Hook for its removal unless debugging.
  15457. # Note that there is a small window in which the directory will not be cleaned:
  15458. # after its creation but before its name has been assigned to `$tmp'.
  15459. $debug ||
  15460. {
  15461. tmp=
  15462. trap 'exit_status=$?
  15463. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  15464. ' 0
  15465. trap '{ (exit 1); exit 1; }' 1 2 13 15
  15466. }
  15467. # Create a (secure) tmp directory for tmp files.
  15468. {
  15469. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  15470. test -n "$tmp" && test -d "$tmp"
  15471. } ||
  15472. {
  15473. tmp=./conf$$-$RANDOM
  15474. (umask 077 && mkdir "$tmp")
  15475. } ||
  15476. {
  15477. echo "$me: cannot create a temporary directory in ." >&2
  15478. { (exit 1); exit 1; }
  15479. }
  15480. #
  15481. # Set up the sed scripts for CONFIG_FILES section.
  15482. #
  15483. # No need to generate the scripts if there are no CONFIG_FILES.
  15484. # This happens for instance when ./config.status config.h
  15485. if test -n "$CONFIG_FILES"; then
  15486. _ACEOF
  15487. ac_delim='%!_!# '
  15488. for ac_last_try in false false false false false :; do
  15489. cat >conf$$subs.sed <<_ACEOF
  15490. SHELL!$SHELL$ac_delim
  15491. PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  15492. PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  15493. PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  15494. PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  15495. PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  15496. PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  15497. exec_prefix!$exec_prefix$ac_delim
  15498. prefix!$prefix$ac_delim
  15499. program_transform_name!$program_transform_name$ac_delim
  15500. bindir!$bindir$ac_delim
  15501. sbindir!$sbindir$ac_delim
  15502. libexecdir!$libexecdir$ac_delim
  15503. datarootdir!$datarootdir$ac_delim
  15504. datadir!$datadir$ac_delim
  15505. sysconfdir!$sysconfdir$ac_delim
  15506. sharedstatedir!$sharedstatedir$ac_delim
  15507. localstatedir!$localstatedir$ac_delim
  15508. includedir!$includedir$ac_delim
  15509. oldincludedir!$oldincludedir$ac_delim
  15510. docdir!$docdir$ac_delim
  15511. infodir!$infodir$ac_delim
  15512. htmldir!$htmldir$ac_delim
  15513. dvidir!$dvidir$ac_delim
  15514. pdfdir!$pdfdir$ac_delim
  15515. psdir!$psdir$ac_delim
  15516. libdir!$libdir$ac_delim
  15517. localedir!$localedir$ac_delim
  15518. mandir!$mandir$ac_delim
  15519. DEFS!$DEFS$ac_delim
  15520. ECHO_C!$ECHO_C$ac_delim
  15521. ECHO_N!$ECHO_N$ac_delim
  15522. ECHO_T!$ECHO_T$ac_delim
  15523. LIBS!$LIBS$ac_delim
  15524. build_alias!$build_alias$ac_delim
  15525. host_alias!$host_alias$ac_delim
  15526. target_alias!$target_alias$ac_delim
  15527. RSYNC_VERSION!$RSYNC_VERSION$ac_delim
  15528. build!$build$ac_delim
  15529. build_cpu!$build_cpu$ac_delim
  15530. build_vendor!$build_vendor$ac_delim
  15531. build_os!$build_os$ac_delim
  15532. host!$host$ac_delim
  15533. host_cpu!$host_cpu$ac_delim
  15534. host_vendor!$host_vendor$ac_delim
  15535. host_os!$host_os$ac_delim
  15536. target!$target$ac_delim
  15537. target_cpu!$target_cpu$ac_delim
  15538. target_vendor!$target_vendor$ac_delim
  15539. target_os!$target_os$ac_delim
  15540. CC!$CC$ac_delim
  15541. CFLAGS!$CFLAGS$ac_delim
  15542. LDFLAGS!$LDFLAGS$ac_delim
  15543. CPPFLAGS!$CPPFLAGS$ac_delim
  15544. ac_ct_CC!$ac_ct_CC$ac_delim
  15545. EXEEXT!$EXEEXT$ac_delim
  15546. OBJEXT!$OBJEXT$ac_delim
  15547. CPP!$CPP$ac_delim
  15548. GREP!$GREP$ac_delim
  15549. EGREP!$EGREP$ac_delim
  15550. INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  15551. INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  15552. INSTALL_DATA!$INSTALL_DATA$ac_delim
  15553. HAVE_REMSH!$HAVE_REMSH$ac_delim
  15554. HAVE_YODL2MAN!$HAVE_YODL2MAN$ac_delim
  15555. LIBOBJS!$LIBOBJS$ac_delim
  15556. ALLOCA!$ALLOCA$ac_delim
  15557. OBJ_SAVE!$OBJ_SAVE$ac_delim
  15558. OBJ_RESTORE!$OBJ_RESTORE$ac_delim
  15559. CC_SHOBJ_FLAG!$CC_SHOBJ_FLAG$ac_delim
  15560. BUILD_POPT!$BUILD_POPT$ac_delim
  15561. MAKE_MAN!$MAKE_MAN$ac_delim
  15562. LTLIBOBJS!$LTLIBOBJS$ac_delim
  15563. _ACEOF
  15564. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 73; then
  15565. break
  15566. elif $ac_last_try; then
  15567. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  15568. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  15569. { (exit 1); exit 1; }; }
  15570. else
  15571. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15572. fi
  15573. done
  15574. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  15575. if test -n "$ac_eof"; then
  15576. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  15577. ac_eof=`expr $ac_eof + 1`
  15578. fi
  15579. cat >>$CONFIG_STATUS <<_ACEOF
  15580. cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  15581. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  15582. _ACEOF
  15583. sed '
  15584. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  15585. s/^/s,@/; s/!/@,|#_!!_#|/
  15586. :n
  15587. t n
  15588. s/'"$ac_delim"'$/,g/; t
  15589. s/$/\\/; p
  15590. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  15591. ' >>$CONFIG_STATUS <conf$$subs.sed
  15592. rm -f conf$$subs.sed
  15593. cat >>$CONFIG_STATUS <<_ACEOF
  15594. :end
  15595. s/|#_!!_#|//g
  15596. CEOF$ac_eof
  15597. _ACEOF
  15598. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  15599. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  15600. # trailing colons and then remove the whole line if VPATH becomes empty
  15601. # (actually we leave an empty line to preserve line numbers).
  15602. if test "x$srcdir" = x.; then
  15603. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  15604. s/:*\$(srcdir):*/:/
  15605. s/:*\${srcdir}:*/:/
  15606. s/:*@srcdir@:*/:/
  15607. s/^\([^=]*=[ ]*\):*/\1/
  15608. s/:*$//
  15609. s/^[^=]*=[ ]*$//
  15610. }'
  15611. fi
  15612. cat >>$CONFIG_STATUS <<\_ACEOF
  15613. fi # test -n "$CONFIG_FILES"
  15614. for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
  15615. do
  15616. case $ac_tag in
  15617. :[FHLC]) ac_mode=$ac_tag; continue;;
  15618. esac
  15619. case $ac_mode$ac_tag in
  15620. :[FHL]*:*);;
  15621. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  15622. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  15623. { (exit 1); exit 1; }; };;
  15624. :[FH]-) ac_tag=-:-;;
  15625. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  15626. esac
  15627. ac_save_IFS=$IFS
  15628. IFS=:
  15629. set x $ac_tag
  15630. IFS=$ac_save_IFS
  15631. shift
  15632. ac_file=$1
  15633. shift
  15634. case $ac_mode in
  15635. :L) ac_source=$1;;
  15636. :[FH])
  15637. ac_file_inputs=
  15638. for ac_f
  15639. do
  15640. case $ac_f in
  15641. -) ac_f="$tmp/stdin";;
  15642. *) # Look for the file first in the build tree, then in the source tree
  15643. # (if the path is not absolute). The absolute path cannot be DOS-style,
  15644. # because $ac_f cannot contain `:'.
  15645. test -f "$ac_f" ||
  15646. case $ac_f in
  15647. [\\/$]*) false;;
  15648. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  15649. esac ||
  15650. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  15651. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  15652. { (exit 1); exit 1; }; };;
  15653. esac
  15654. ac_file_inputs="$ac_file_inputs $ac_f"
  15655. done
  15656. # Let's still pretend it is `configure' which instantiates (i.e., don't
  15657. # use $as_me), people would be surprised to read:
  15658. # /* config.h. Generated by config.status. */
  15659. configure_input="Generated from "`IFS=:
  15660. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  15661. if test x"$ac_file" != x-; then
  15662. configure_input="$ac_file. $configure_input"
  15663. { echo "$as_me:$LINENO: creating $ac_file" >&5
  15664. echo "$as_me: creating $ac_file" >&6;}
  15665. fi
  15666. case $ac_tag in
  15667. *:-:* | *:-) cat >"$tmp/stdin";;
  15668. esac
  15669. ;;
  15670. esac
  15671. ac_dir=`$as_dirname -- "$ac_file" ||
  15672. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15673. X"$ac_file" : 'X\(//\)[^/]' \| \
  15674. X"$ac_file" : 'X\(//\)$' \| \
  15675. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  15676. echo X"$ac_file" |
  15677. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15678. s//\1/
  15679. q
  15680. }
  15681. /^X\(\/\/\)[^/].*/{
  15682. s//\1/
  15683. q
  15684. }
  15685. /^X\(\/\/\)$/{
  15686. s//\1/
  15687. q
  15688. }
  15689. /^X\(\/\).*/{
  15690. s//\1/
  15691. q
  15692. }
  15693. s/.*/./; q'`
  15694. { as_dir="$ac_dir"
  15695. case $as_dir in #(
  15696. -*) as_dir=./$as_dir;;
  15697. esac
  15698. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  15699. as_dirs=
  15700. while :; do
  15701. case $as_dir in #(
  15702. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  15703. *) as_qdir=$as_dir;;
  15704. esac
  15705. as_dirs="'$as_qdir' $as_dirs"
  15706. as_dir=`$as_dirname -- "$as_dir" ||
  15707. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15708. X"$as_dir" : 'X\(//\)[^/]' \| \
  15709. X"$as_dir" : 'X\(//\)$' \| \
  15710. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  15711. echo X"$as_dir" |
  15712. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15713. s//\1/
  15714. q
  15715. }
  15716. /^X\(\/\/\)[^/].*/{
  15717. s//\1/
  15718. q
  15719. }
  15720. /^X\(\/\/\)$/{
  15721. s//\1/
  15722. q
  15723. }
  15724. /^X\(\/\).*/{
  15725. s//\1/
  15726. q
  15727. }
  15728. s/.*/./; q'`
  15729. test -d "$as_dir" && break
  15730. done
  15731. test -z "$as_dirs" || eval "mkdir $as_dirs"
  15732. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  15733. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  15734. { (exit 1); exit 1; }; }; }
  15735. ac_builddir=.
  15736. case "$ac_dir" in
  15737. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15738. *)
  15739. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  15740. # A ".." for each directory in $ac_dir_suffix.
  15741. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  15742. case $ac_top_builddir_sub in
  15743. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15744. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  15745. esac ;;
  15746. esac
  15747. ac_abs_top_builddir=$ac_pwd
  15748. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  15749. # for backward compatibility:
  15750. ac_top_builddir=$ac_top_build_prefix
  15751. case $srcdir in
  15752. .) # We are building in place.
  15753. ac_srcdir=.
  15754. ac_top_srcdir=$ac_top_builddir_sub
  15755. ac_abs_top_srcdir=$ac_pwd ;;
  15756. [\\/]* | ?:[\\/]* ) # Absolute name.
  15757. ac_srcdir=$srcdir$ac_dir_suffix;
  15758. ac_top_srcdir=$srcdir
  15759. ac_abs_top_srcdir=$srcdir ;;
  15760. *) # Relative name.
  15761. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  15762. ac_top_srcdir=$ac_top_build_prefix$srcdir
  15763. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  15764. esac
  15765. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  15766. case $ac_mode in
  15767. :F)
  15768. #
  15769. # CONFIG_FILE
  15770. #
  15771. case $INSTALL in
  15772. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  15773. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  15774. esac
  15775. _ACEOF
  15776. cat >>$CONFIG_STATUS <<\_ACEOF
  15777. # If the template does not know about datarootdir, expand it.
  15778. # FIXME: This hack should be removed a few years after 2.60.
  15779. ac_datarootdir_hack=; ac_datarootdir_seen=
  15780. case `sed -n '/datarootdir/ {
  15781. p
  15782. q
  15783. }
  15784. /@datadir@/p
  15785. /@docdir@/p
  15786. /@infodir@/p
  15787. /@localedir@/p
  15788. /@mandir@/p
  15789. ' $ac_file_inputs` in
  15790. *datarootdir*) ac_datarootdir_seen=yes;;
  15791. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  15792. { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  15793. echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  15794. _ACEOF
  15795. cat >>$CONFIG_STATUS <<_ACEOF
  15796. ac_datarootdir_hack='
  15797. s&@datadir@&$datadir&g
  15798. s&@docdir@&$docdir&g
  15799. s&@infodir@&$infodir&g
  15800. s&@localedir@&$localedir&g
  15801. s&@mandir@&$mandir&g
  15802. s&\\\${datarootdir}&$datarootdir&g' ;;
  15803. esac
  15804. _ACEOF
  15805. # Neutralize VPATH when `$srcdir' = `.'.
  15806. # Shell code in configure.ac might set extrasub.
  15807. # FIXME: do we really want to maintain this feature?
  15808. cat >>$CONFIG_STATUS <<_ACEOF
  15809. sed "$ac_vpsub
  15810. $extrasub
  15811. _ACEOF
  15812. cat >>$CONFIG_STATUS <<\_ACEOF
  15813. :t
  15814. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  15815. s&@configure_input@&$configure_input&;t t
  15816. s&@top_builddir@&$ac_top_builddir_sub&;t t
  15817. s&@srcdir@&$ac_srcdir&;t t
  15818. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  15819. s&@top_srcdir@&$ac_top_srcdir&;t t
  15820. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  15821. s&@builddir@&$ac_builddir&;t t
  15822. s&@abs_builddir@&$ac_abs_builddir&;t t
  15823. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  15824. s&@INSTALL@&$ac_INSTALL&;t t
  15825. $ac_datarootdir_hack
  15826. " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
  15827. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  15828. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  15829. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  15830. { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15831. which seems to be undefined. Please make sure it is defined." >&5
  15832. echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15833. which seems to be undefined. Please make sure it is defined." >&2;}
  15834. rm -f "$tmp/stdin"
  15835. case $ac_file in
  15836. -) cat "$tmp/out"; rm -f "$tmp/out";;
  15837. *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  15838. esac
  15839. ;;
  15840. :H)
  15841. #
  15842. # CONFIG_HEADER
  15843. #
  15844. _ACEOF
  15845. # Transform confdefs.h into a sed script `conftest.defines', that
  15846. # substitutes the proper values into config.h.in to produce config.h.
  15847. rm -f conftest.defines conftest.tail
  15848. # First, append a space to every undef/define line, to ease matching.
  15849. echo 's/$/ /' >conftest.defines
  15850. # Then, protect against being on the right side of a sed subst, or in
  15851. # an unquoted here document, in config.status. If some macros were
  15852. # called several times there might be several #defines for the same
  15853. # symbol, which is useless. But do not sort them, since the last
  15854. # AC_DEFINE must be honored.
  15855. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  15856. # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  15857. # NAME is the cpp macro being defined, VALUE is the value it is being given.
  15858. # PARAMS is the parameter list in the macro definition--in most cases, it's
  15859. # just an empty string.
  15860. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  15861. ac_dB='\\)[ (].*,\\1define\\2'
  15862. ac_dC=' '
  15863. ac_dD=' ,'
  15864. uniq confdefs.h |
  15865. sed -n '
  15866. t rset
  15867. :rset
  15868. s/^[ ]*#[ ]*define[ ][ ]*//
  15869. t ok
  15870. d
  15871. :ok
  15872. s/[\\&,]/\\&/g
  15873. s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  15874. s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  15875. ' >>conftest.defines
  15876. # Remove the space that was appended to ease matching.
  15877. # Then replace #undef with comments. This is necessary, for
  15878. # example, in the case of _POSIX_SOURCE, which is predefined and required
  15879. # on some systems where configure will not decide to define it.
  15880. # (The regexp can be short, since the line contains either #define or #undef.)
  15881. echo 's/ $//
  15882. s,^[ #]*u.*,/* & */,' >>conftest.defines
  15883. # Break up conftest.defines:
  15884. ac_max_sed_lines=50
  15885. # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  15886. # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  15887. # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  15888. # et cetera.
  15889. ac_in='$ac_file_inputs'
  15890. ac_out='"$tmp/out1"'
  15891. ac_nxt='"$tmp/out2"'
  15892. while :
  15893. do
  15894. # Write a here document:
  15895. cat >>$CONFIG_STATUS <<_ACEOF
  15896. # First, check the format of the line:
  15897. cat >"\$tmp/defines.sed" <<\\CEOF
  15898. /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  15899. /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  15900. b
  15901. :def
  15902. _ACEOF
  15903. sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  15904. echo 'CEOF
  15905. sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  15906. ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  15907. sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  15908. grep . conftest.tail >/dev/null || break
  15909. rm -f conftest.defines
  15910. mv conftest.tail conftest.defines
  15911. done
  15912. rm -f conftest.defines conftest.tail
  15913. echo "ac_result=$ac_in" >>$CONFIG_STATUS
  15914. cat >>$CONFIG_STATUS <<\_ACEOF
  15915. if test x"$ac_file" != x-; then
  15916. echo "/* $configure_input */" >"$tmp/config.h"
  15917. cat "$ac_result" >>"$tmp/config.h"
  15918. if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  15919. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  15920. echo "$as_me: $ac_file is unchanged" >&6;}
  15921. else
  15922. rm -f $ac_file
  15923. mv "$tmp/config.h" $ac_file
  15924. fi
  15925. else
  15926. echo "/* $configure_input */"
  15927. cat "$ac_result"
  15928. fi
  15929. rm -f "$tmp/out12"
  15930. ;;
  15931. esac
  15932. done # for ac_tag
  15933. { (exit 0); exit 0; }
  15934. _ACEOF
  15935. chmod +x $CONFIG_STATUS
  15936. ac_clean_files=$ac_clean_files_save
  15937. # configure is writing to config.log, and then calls config.status.
  15938. # config.status does its own redirection, appending to config.log.
  15939. # Unfortunately, on DOS this fails, as config.log is still kept open
  15940. # by configure, so config.status won't be able to write to it; its
  15941. # output is simply discarded. So we exec the FD to /dev/null,
  15942. # effectively closing config.log, so it can be properly (re)opened and
  15943. # appended to by config.status. When coming back to configure, we
  15944. # need to make the FD available again.
  15945. if test "$no_create" != yes; then
  15946. ac_cs_success=:
  15947. ac_config_status_args=
  15948. test "$silent" = yes &&
  15949. ac_config_status_args="$ac_config_status_args --quiet"
  15950. exec 5>/dev/null
  15951. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  15952. exec 5>>config.log
  15953. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  15954. # would make configure fail if this is the last instruction.
  15955. $ac_cs_success || { (exit 1); exit 1; }
  15956. fi
  15957. { echo "$as_me:$LINENO: result: " >&5
  15958. echo "${ECHO_T}" >&6; }
  15959. { echo "$as_me:$LINENO: result: rsync ${RSYNC_VERSION} configuration successful" >&5
  15960. echo "${ECHO_T} rsync ${RSYNC_VERSION} configuration successful" >&6; }
  15961. { echo "$as_me:$LINENO: result: " >&5
  15962. echo "${ECHO_T}" >&6; }