configure 214 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for logrotate 3.15.1.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test \$(( 1 + 1 )) = 2 || exit 1"
  186. if (eval "$as_required") 2>/dev/null; then :
  187. as_have_required=yes
  188. else
  189. as_have_required=no
  190. fi
  191. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  192. else
  193. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  194. as_found=false
  195. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  196. do
  197. IFS=$as_save_IFS
  198. test -z "$as_dir" && as_dir=.
  199. as_found=:
  200. case $as_dir in #(
  201. /*)
  202. for as_base in sh bash ksh sh5; do
  203. # Try only shells that exist, to save several forks.
  204. as_shell=$as_dir/$as_base
  205. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  206. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  207. CONFIG_SHELL=$as_shell as_have_required=yes
  208. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  209. break 2
  210. fi
  211. fi
  212. done;;
  213. esac
  214. as_found=false
  215. done
  216. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  217. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  218. CONFIG_SHELL=$SHELL as_have_required=yes
  219. fi; }
  220. IFS=$as_save_IFS
  221. if test "x$CONFIG_SHELL" != x; then :
  222. export CONFIG_SHELL
  223. # We cannot yet assume a decent shell, so we have to provide a
  224. # neutralization value for shells without unset; and this also
  225. # works around shells that cannot unset nonexistent variables.
  226. # Preserve -v and -x to the replacement shell.
  227. BASH_ENV=/dev/null
  228. ENV=/dev/null
  229. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  230. case $- in # ((((
  231. *v*x* | *x*v* ) as_opts=-vx ;;
  232. *v* ) as_opts=-v ;;
  233. *x* ) as_opts=-x ;;
  234. * ) as_opts= ;;
  235. esac
  236. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  237. # Admittedly, this is quite paranoid, since all the known shells bail
  238. # out after a failed `exec'.
  239. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  240. exit 255
  241. fi
  242. if test x$as_have_required = xno; then :
  243. $as_echo "$0: This script requires a shell more modern than all"
  244. $as_echo "$0: the shells that I found on your system."
  245. if test x${ZSH_VERSION+set} = xset ; then
  246. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  247. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  248. else
  249. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  250. $0: including any error possibly output before this
  251. $0: message. Then install a modern shell, or manually run
  252. $0: the script under such a shell if you do have one."
  253. fi
  254. exit 1
  255. fi
  256. fi
  257. fi
  258. SHELL=${CONFIG_SHELL-/bin/sh}
  259. export SHELL
  260. # Unset more variables known to interfere with behavior of common tools.
  261. CLICOLOR_FORCE= GREP_OPTIONS=
  262. unset CLICOLOR_FORCE GREP_OPTIONS
  263. ## --------------------- ##
  264. ## M4sh Shell Functions. ##
  265. ## --------------------- ##
  266. # as_fn_unset VAR
  267. # ---------------
  268. # Portably unset VAR.
  269. as_fn_unset ()
  270. {
  271. { eval $1=; unset $1;}
  272. }
  273. as_unset=as_fn_unset
  274. # as_fn_set_status STATUS
  275. # -----------------------
  276. # Set $? to STATUS, without forking.
  277. as_fn_set_status ()
  278. {
  279. return $1
  280. } # as_fn_set_status
  281. # as_fn_exit STATUS
  282. # -----------------
  283. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  284. as_fn_exit ()
  285. {
  286. set +e
  287. as_fn_set_status $1
  288. exit $1
  289. } # as_fn_exit
  290. # as_fn_mkdir_p
  291. # -------------
  292. # Create "$as_dir" as a directory, including parents if necessary.
  293. as_fn_mkdir_p ()
  294. {
  295. case $as_dir in #(
  296. -*) as_dir=./$as_dir;;
  297. esac
  298. test -d "$as_dir" || eval $as_mkdir_p || {
  299. as_dirs=
  300. while :; do
  301. case $as_dir in #(
  302. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  303. *) as_qdir=$as_dir;;
  304. esac
  305. as_dirs="'$as_qdir' $as_dirs"
  306. as_dir=`$as_dirname -- "$as_dir" ||
  307. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  308. X"$as_dir" : 'X\(//\)[^/]' \| \
  309. X"$as_dir" : 'X\(//\)$' \| \
  310. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  311. $as_echo X"$as_dir" |
  312. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  313. s//\1/
  314. q
  315. }
  316. /^X\(\/\/\)[^/].*/{
  317. s//\1/
  318. q
  319. }
  320. /^X\(\/\/\)$/{
  321. s//\1/
  322. q
  323. }
  324. /^X\(\/\).*/{
  325. s//\1/
  326. q
  327. }
  328. s/.*/./; q'`
  329. test -d "$as_dir" && break
  330. done
  331. test -z "$as_dirs" || eval "mkdir $as_dirs"
  332. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  333. } # as_fn_mkdir_p
  334. # as_fn_executable_p FILE
  335. # -----------------------
  336. # Test if FILE is an executable regular file.
  337. as_fn_executable_p ()
  338. {
  339. test -f "$1" && test -x "$1"
  340. } # as_fn_executable_p
  341. # as_fn_append VAR VALUE
  342. # ----------------------
  343. # Append the text in VALUE to the end of the definition contained in VAR. Take
  344. # advantage of any shell optimizations that allow amortized linear growth over
  345. # repeated appends, instead of the typical quadratic growth present in naive
  346. # implementations.
  347. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  348. eval 'as_fn_append ()
  349. {
  350. eval $1+=\$2
  351. }'
  352. else
  353. as_fn_append ()
  354. {
  355. eval $1=\$$1\$2
  356. }
  357. fi # as_fn_append
  358. # as_fn_arith ARG...
  359. # ------------------
  360. # Perform arithmetic evaluation on the ARGs, and store the result in the
  361. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  362. # must be portable across $(()) and expr.
  363. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  364. eval 'as_fn_arith ()
  365. {
  366. as_val=$(( $* ))
  367. }'
  368. else
  369. as_fn_arith ()
  370. {
  371. as_val=`expr "$@" || test $? -eq 1`
  372. }
  373. fi # as_fn_arith
  374. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  375. # ----------------------------------------
  376. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  377. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  378. # script with STATUS, using 1 if that was 0.
  379. as_fn_error ()
  380. {
  381. as_status=$1; test $as_status -eq 0 && as_status=1
  382. if test "$4"; then
  383. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  384. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  385. fi
  386. $as_echo "$as_me: error: $2" >&2
  387. as_fn_exit $as_status
  388. } # as_fn_error
  389. if expr a : '\(a\)' >/dev/null 2>&1 &&
  390. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  391. as_expr=expr
  392. else
  393. as_expr=false
  394. fi
  395. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  396. as_basename=basename
  397. else
  398. as_basename=false
  399. fi
  400. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  401. as_dirname=dirname
  402. else
  403. as_dirname=false
  404. fi
  405. as_me=`$as_basename -- "$0" ||
  406. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  407. X"$0" : 'X\(//\)$' \| \
  408. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  409. $as_echo X/"$0" |
  410. sed '/^.*\/\([^/][^/]*\)\/*$/{
  411. s//\1/
  412. q
  413. }
  414. /^X\/\(\/\/\)$/{
  415. s//\1/
  416. q
  417. }
  418. /^X\/\(\/\).*/{
  419. s//\1/
  420. q
  421. }
  422. s/.*/./; q'`
  423. # Avoid depending upon Character Ranges.
  424. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  425. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  426. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  427. as_cr_digits='0123456789'
  428. as_cr_alnum=$as_cr_Letters$as_cr_digits
  429. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  430. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  431. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  432. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  433. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  434. sed -n '
  435. p
  436. /[$]LINENO/=
  437. ' <$as_myself |
  438. sed '
  439. s/[$]LINENO.*/&-/
  440. t lineno
  441. b
  442. :lineno
  443. N
  444. :loop
  445. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  446. t loop
  447. s/-\n.*//
  448. ' >$as_me.lineno &&
  449. chmod +x "$as_me.lineno" ||
  450. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  451. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  452. # already done that, so ensure we don't try to do so again and fall
  453. # in an infinite loop. This has already happened in practice.
  454. _as_can_reexec=no; export _as_can_reexec
  455. # Don't try to exec as it changes $[0], causing all sort of problems
  456. # (the dirname of $[0] is not the place where we might find the
  457. # original and so on. Autoconf is especially sensitive to this).
  458. . "./$as_me.lineno"
  459. # Exit status is that of the last command.
  460. exit
  461. }
  462. ECHO_C= ECHO_N= ECHO_T=
  463. case `echo -n x` in #(((((
  464. -n*)
  465. case `echo 'xy\c'` in
  466. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  467. xy) ECHO_C='\c';;
  468. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  469. ECHO_T=' ';;
  470. esac;;
  471. *)
  472. ECHO_N='-n';;
  473. esac
  474. rm -f conf$$ conf$$.exe conf$$.file
  475. if test -d conf$$.dir; then
  476. rm -f conf$$.dir/conf$$.file
  477. else
  478. rm -f conf$$.dir
  479. mkdir conf$$.dir 2>/dev/null
  480. fi
  481. if (echo >conf$$.file) 2>/dev/null; then
  482. if ln -s conf$$.file conf$$ 2>/dev/null; then
  483. as_ln_s='ln -s'
  484. # ... but there are two gotchas:
  485. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  486. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  487. # In both cases, we have to default to `cp -pR'.
  488. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  489. as_ln_s='cp -pR'
  490. elif ln conf$$.file conf$$ 2>/dev/null; then
  491. as_ln_s=ln
  492. else
  493. as_ln_s='cp -pR'
  494. fi
  495. else
  496. as_ln_s='cp -pR'
  497. fi
  498. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  499. rmdir conf$$.dir 2>/dev/null
  500. if mkdir -p . 2>/dev/null; then
  501. as_mkdir_p='mkdir -p "$as_dir"'
  502. else
  503. test -d ./-p && rmdir ./-p
  504. as_mkdir_p=false
  505. fi
  506. as_test_x='test -x'
  507. as_executable_p=as_fn_executable_p
  508. # Sed expression to map a string onto a valid CPP name.
  509. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  510. # Sed expression to map a string onto a valid variable name.
  511. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  512. test -n "$DJDIR" || exec 7<&0 </dev/null
  513. exec 6>&1
  514. # Name of the host.
  515. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  516. # so uname gets run too.
  517. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  518. #
  519. # Initializations.
  520. #
  521. ac_default_prefix=/usr/local
  522. ac_clean_files=
  523. ac_config_libobj_dir=.
  524. LIBOBJS=
  525. cross_compiling=no
  526. subdirs=
  527. MFLAGS=
  528. MAKEFLAGS=
  529. # Identity of this package.
  530. PACKAGE_NAME='logrotate'
  531. PACKAGE_TARNAME='logrotate'
  532. PACKAGE_VERSION='3.15.1'
  533. PACKAGE_STRING='logrotate 3.15.1'
  534. PACKAGE_BUGREPORT=''
  535. PACKAGE_URL='https://github.com/logrotate/logrotate'
  536. # Factoring default headers for most tests.
  537. ac_includes_default="\
  538. #include <stdio.h>
  539. #ifdef HAVE_SYS_TYPES_H
  540. # include <sys/types.h>
  541. #endif
  542. #ifdef HAVE_SYS_STAT_H
  543. # include <sys/stat.h>
  544. #endif
  545. #ifdef STDC_HEADERS
  546. # include <stdlib.h>
  547. # include <stddef.h>
  548. #else
  549. # ifdef HAVE_STDLIB_H
  550. # include <stdlib.h>
  551. # endif
  552. #endif
  553. #ifdef HAVE_STRING_H
  554. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  555. # include <memory.h>
  556. # endif
  557. # include <string.h>
  558. #endif
  559. #ifdef HAVE_STRINGS_H
  560. # include <strings.h>
  561. #endif
  562. #ifdef HAVE_INTTYPES_H
  563. # include <inttypes.h>
  564. #endif
  565. #ifdef HAVE_STDINT_H
  566. # include <stdint.h>
  567. #endif
  568. #ifdef HAVE_UNISTD_H
  569. # include <unistd.h>
  570. #endif"
  571. ac_subst_vars='am__EXEEXT_FALSE
  572. am__EXEEXT_TRUE
  573. LTLIBOBJS
  574. AM_CFLAGS
  575. ROOT_UID
  576. COMPRESS_EXT
  577. UNCOMPRESS_COMMAND
  578. COMPRESS_COMMAND
  579. DEFAULT_MAIL_COMMAND
  580. STATE_FILE_PATH
  581. host_os
  582. host_vendor
  583. host_cpu
  584. host
  585. build_os
  586. build_vendor
  587. build_cpu
  588. build
  589. LIBOBJS
  590. EGREP
  591. GREP
  592. CPP
  593. am__fastdepCC_FALSE
  594. am__fastdepCC_TRUE
  595. CCDEPMODE
  596. am__nodep
  597. AMDEPBACKSLASH
  598. AMDEP_FALSE
  599. AMDEP_TRUE
  600. am__quote
  601. am__include
  602. DEPDIR
  603. OBJEXT
  604. EXEEXT
  605. ac_ct_CC
  606. CPPFLAGS
  607. LDFLAGS
  608. CFLAGS
  609. CC
  610. AM_BACKSLASH
  611. AM_DEFAULT_VERBOSITY
  612. AM_DEFAULT_V
  613. AM_V
  614. am__untar
  615. am__tar
  616. AMTAR
  617. am__leading_dot
  618. SET_MAKE
  619. AWK
  620. mkdir_p
  621. MKDIR_P
  622. INSTALL_STRIP_PROGRAM
  623. STRIP
  624. install_sh
  625. MAKEINFO
  626. AUTOHEADER
  627. AUTOMAKE
  628. AUTOCONF
  629. ACLOCAL
  630. VERSION
  631. PACKAGE
  632. CYGPATH_W
  633. am__isrc
  634. INSTALL_DATA
  635. INSTALL_SCRIPT
  636. INSTALL_PROGRAM
  637. target_alias
  638. host_alias
  639. build_alias
  640. LIBS
  641. ECHO_T
  642. ECHO_N
  643. ECHO_C
  644. DEFS
  645. mandir
  646. localedir
  647. libdir
  648. psdir
  649. pdfdir
  650. dvidir
  651. htmldir
  652. infodir
  653. docdir
  654. oldincludedir
  655. includedir
  656. runstatedir
  657. localstatedir
  658. sharedstatedir
  659. sysconfdir
  660. datadir
  661. datarootdir
  662. libexecdir
  663. sbindir
  664. bindir
  665. program_transform_name
  666. prefix
  667. exec_prefix
  668. PACKAGE_URL
  669. PACKAGE_BUGREPORT
  670. PACKAGE_STRING
  671. PACKAGE_VERSION
  672. PACKAGE_TARNAME
  673. PACKAGE_NAME
  674. PATH_SEPARATOR
  675. SHELL'
  676. ac_subst_files=''
  677. ac_user_opts='
  678. enable_option_checking
  679. enable_silent_rules
  680. enable_dependency_tracking
  681. enable_largefile
  682. with_selinux
  683. with_acl
  684. with_state_file_path
  685. with_default_mail_command
  686. with_compress_command
  687. with_uncompress_command
  688. with_compress_extension
  689. enable_werror
  690. '
  691. ac_precious_vars='build_alias
  692. host_alias
  693. target_alias
  694. CC
  695. CFLAGS
  696. LDFLAGS
  697. LIBS
  698. CPPFLAGS
  699. CPP'
  700. # Initialize some variables set by options.
  701. ac_init_help=
  702. ac_init_version=false
  703. ac_unrecognized_opts=
  704. ac_unrecognized_sep=
  705. # The variables have the same names as the options, with
  706. # dashes changed to underlines.
  707. cache_file=/dev/null
  708. exec_prefix=NONE
  709. no_create=
  710. no_recursion=
  711. prefix=NONE
  712. program_prefix=NONE
  713. program_suffix=NONE
  714. program_transform_name=s,x,x,
  715. silent=
  716. site=
  717. srcdir=
  718. verbose=
  719. x_includes=NONE
  720. x_libraries=NONE
  721. # Installation directory options.
  722. # These are left unexpanded so users can "make install exec_prefix=/foo"
  723. # and all the variables that are supposed to be based on exec_prefix
  724. # by default will actually change.
  725. # Use braces instead of parens because sh, perl, etc. also accept them.
  726. # (The list follows the same order as the GNU Coding Standards.)
  727. bindir='${exec_prefix}/bin'
  728. sbindir='${exec_prefix}/sbin'
  729. libexecdir='${exec_prefix}/libexec'
  730. datarootdir='${prefix}/share'
  731. datadir='${datarootdir}'
  732. sysconfdir='${prefix}/etc'
  733. sharedstatedir='${prefix}/com'
  734. localstatedir='${prefix}/var'
  735. runstatedir='${localstatedir}/run'
  736. includedir='${prefix}/include'
  737. oldincludedir='/usr/include'
  738. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  739. infodir='${datarootdir}/info'
  740. htmldir='${docdir}'
  741. dvidir='${docdir}'
  742. pdfdir='${docdir}'
  743. psdir='${docdir}'
  744. libdir='${exec_prefix}/lib'
  745. localedir='${datarootdir}/locale'
  746. mandir='${datarootdir}/man'
  747. ac_prev=
  748. ac_dashdash=
  749. for ac_option
  750. do
  751. # If the previous option needs an argument, assign it.
  752. if test -n "$ac_prev"; then
  753. eval $ac_prev=\$ac_option
  754. ac_prev=
  755. continue
  756. fi
  757. case $ac_option in
  758. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  759. *=) ac_optarg= ;;
  760. *) ac_optarg=yes ;;
  761. esac
  762. # Accept the important Cygnus configure options, so we can diagnose typos.
  763. case $ac_dashdash$ac_option in
  764. --)
  765. ac_dashdash=yes ;;
  766. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  767. ac_prev=bindir ;;
  768. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  769. bindir=$ac_optarg ;;
  770. -build | --build | --buil | --bui | --bu)
  771. ac_prev=build_alias ;;
  772. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  773. build_alias=$ac_optarg ;;
  774. -cache-file | --cache-file | --cache-fil | --cache-fi \
  775. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  776. ac_prev=cache_file ;;
  777. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  778. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  779. cache_file=$ac_optarg ;;
  780. --config-cache | -C)
  781. cache_file=config.cache ;;
  782. -datadir | --datadir | --datadi | --datad)
  783. ac_prev=datadir ;;
  784. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  785. datadir=$ac_optarg ;;
  786. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  787. | --dataroo | --dataro | --datar)
  788. ac_prev=datarootdir ;;
  789. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  790. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  791. datarootdir=$ac_optarg ;;
  792. -disable-* | --disable-*)
  793. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  794. # Reject names that are not valid shell variable names.
  795. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  796. as_fn_error $? "invalid feature name: $ac_useropt"
  797. ac_useropt_orig=$ac_useropt
  798. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  799. case $ac_user_opts in
  800. *"
  801. "enable_$ac_useropt"
  802. "*) ;;
  803. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  804. ac_unrecognized_sep=', ';;
  805. esac
  806. eval enable_$ac_useropt=no ;;
  807. -docdir | --docdir | --docdi | --doc | --do)
  808. ac_prev=docdir ;;
  809. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  810. docdir=$ac_optarg ;;
  811. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  812. ac_prev=dvidir ;;
  813. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  814. dvidir=$ac_optarg ;;
  815. -enable-* | --enable-*)
  816. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  817. # Reject names that are not valid shell variable names.
  818. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  819. as_fn_error $? "invalid feature name: $ac_useropt"
  820. ac_useropt_orig=$ac_useropt
  821. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  822. case $ac_user_opts in
  823. *"
  824. "enable_$ac_useropt"
  825. "*) ;;
  826. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  827. ac_unrecognized_sep=', ';;
  828. esac
  829. eval enable_$ac_useropt=\$ac_optarg ;;
  830. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  831. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  832. | --exec | --exe | --ex)
  833. ac_prev=exec_prefix ;;
  834. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  835. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  836. | --exec=* | --exe=* | --ex=*)
  837. exec_prefix=$ac_optarg ;;
  838. -gas | --gas | --ga | --g)
  839. # Obsolete; use --with-gas.
  840. with_gas=yes ;;
  841. -help | --help | --hel | --he | -h)
  842. ac_init_help=long ;;
  843. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  844. ac_init_help=recursive ;;
  845. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  846. ac_init_help=short ;;
  847. -host | --host | --hos | --ho)
  848. ac_prev=host_alias ;;
  849. -host=* | --host=* | --hos=* | --ho=*)
  850. host_alias=$ac_optarg ;;
  851. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  852. ac_prev=htmldir ;;
  853. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  854. | --ht=*)
  855. htmldir=$ac_optarg ;;
  856. -includedir | --includedir | --includedi | --included | --include \
  857. | --includ | --inclu | --incl | --inc)
  858. ac_prev=includedir ;;
  859. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  860. | --includ=* | --inclu=* | --incl=* | --inc=*)
  861. includedir=$ac_optarg ;;
  862. -infodir | --infodir | --infodi | --infod | --info | --inf)
  863. ac_prev=infodir ;;
  864. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  865. infodir=$ac_optarg ;;
  866. -libdir | --libdir | --libdi | --libd)
  867. ac_prev=libdir ;;
  868. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  869. libdir=$ac_optarg ;;
  870. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  871. | --libexe | --libex | --libe)
  872. ac_prev=libexecdir ;;
  873. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  874. | --libexe=* | --libex=* | --libe=*)
  875. libexecdir=$ac_optarg ;;
  876. -localedir | --localedir | --localedi | --localed | --locale)
  877. ac_prev=localedir ;;
  878. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  879. localedir=$ac_optarg ;;
  880. -localstatedir | --localstatedir | --localstatedi | --localstated \
  881. | --localstate | --localstat | --localsta | --localst | --locals)
  882. ac_prev=localstatedir ;;
  883. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  884. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  885. localstatedir=$ac_optarg ;;
  886. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  887. ac_prev=mandir ;;
  888. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  889. mandir=$ac_optarg ;;
  890. -nfp | --nfp | --nf)
  891. # Obsolete; use --without-fp.
  892. with_fp=no ;;
  893. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  894. | --no-cr | --no-c | -n)
  895. no_create=yes ;;
  896. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  897. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  898. no_recursion=yes ;;
  899. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  900. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  901. | --oldin | --oldi | --old | --ol | --o)
  902. ac_prev=oldincludedir ;;
  903. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  904. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  905. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  906. oldincludedir=$ac_optarg ;;
  907. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  908. ac_prev=prefix ;;
  909. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  910. prefix=$ac_optarg ;;
  911. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  912. | --program-pre | --program-pr | --program-p)
  913. ac_prev=program_prefix ;;
  914. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  915. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  916. program_prefix=$ac_optarg ;;
  917. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  918. | --program-suf | --program-su | --program-s)
  919. ac_prev=program_suffix ;;
  920. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  921. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  922. program_suffix=$ac_optarg ;;
  923. -program-transform-name | --program-transform-name \
  924. | --program-transform-nam | --program-transform-na \
  925. | --program-transform-n | --program-transform- \
  926. | --program-transform | --program-transfor \
  927. | --program-transfo | --program-transf \
  928. | --program-trans | --program-tran \
  929. | --progr-tra | --program-tr | --program-t)
  930. ac_prev=program_transform_name ;;
  931. -program-transform-name=* | --program-transform-name=* \
  932. | --program-transform-nam=* | --program-transform-na=* \
  933. | --program-transform-n=* | --program-transform-=* \
  934. | --program-transform=* | --program-transfor=* \
  935. | --program-transfo=* | --program-transf=* \
  936. | --program-trans=* | --program-tran=* \
  937. | --progr-tra=* | --program-tr=* | --program-t=*)
  938. program_transform_name=$ac_optarg ;;
  939. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  940. ac_prev=pdfdir ;;
  941. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  942. pdfdir=$ac_optarg ;;
  943. -psdir | --psdir | --psdi | --psd | --ps)
  944. ac_prev=psdir ;;
  945. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  946. psdir=$ac_optarg ;;
  947. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  948. | -silent | --silent | --silen | --sile | --sil)
  949. silent=yes ;;
  950. -runstatedir | --runstatedir | --runstatedi | --runstated \
  951. | --runstate | --runstat | --runsta | --runst | --runs \
  952. | --run | --ru | --r)
  953. ac_prev=runstatedir ;;
  954. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  955. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  956. | --run=* | --ru=* | --r=*)
  957. runstatedir=$ac_optarg ;;
  958. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  959. ac_prev=sbindir ;;
  960. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  961. | --sbi=* | --sb=*)
  962. sbindir=$ac_optarg ;;
  963. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  964. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  965. | --sharedst | --shareds | --shared | --share | --shar \
  966. | --sha | --sh)
  967. ac_prev=sharedstatedir ;;
  968. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  969. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  970. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  971. | --sha=* | --sh=*)
  972. sharedstatedir=$ac_optarg ;;
  973. -site | --site | --sit)
  974. ac_prev=site ;;
  975. -site=* | --site=* | --sit=*)
  976. site=$ac_optarg ;;
  977. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  978. ac_prev=srcdir ;;
  979. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  980. srcdir=$ac_optarg ;;
  981. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  982. | --syscon | --sysco | --sysc | --sys | --sy)
  983. ac_prev=sysconfdir ;;
  984. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  985. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  986. sysconfdir=$ac_optarg ;;
  987. -target | --target | --targe | --targ | --tar | --ta | --t)
  988. ac_prev=target_alias ;;
  989. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  990. target_alias=$ac_optarg ;;
  991. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  992. verbose=yes ;;
  993. -version | --version | --versio | --versi | --vers | -V)
  994. ac_init_version=: ;;
  995. -with-* | --with-*)
  996. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  997. # Reject names that are not valid shell variable names.
  998. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  999. as_fn_error $? "invalid package name: $ac_useropt"
  1000. ac_useropt_orig=$ac_useropt
  1001. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1002. case $ac_user_opts in
  1003. *"
  1004. "with_$ac_useropt"
  1005. "*) ;;
  1006. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1007. ac_unrecognized_sep=', ';;
  1008. esac
  1009. eval with_$ac_useropt=\$ac_optarg ;;
  1010. -without-* | --without-*)
  1011. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1012. # Reject names that are not valid shell variable names.
  1013. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1014. as_fn_error $? "invalid package name: $ac_useropt"
  1015. ac_useropt_orig=$ac_useropt
  1016. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1017. case $ac_user_opts in
  1018. *"
  1019. "with_$ac_useropt"
  1020. "*) ;;
  1021. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1022. ac_unrecognized_sep=', ';;
  1023. esac
  1024. eval with_$ac_useropt=no ;;
  1025. --x)
  1026. # Obsolete; use --with-x.
  1027. with_x=yes ;;
  1028. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1029. | --x-incl | --x-inc | --x-in | --x-i)
  1030. ac_prev=x_includes ;;
  1031. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1032. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1033. x_includes=$ac_optarg ;;
  1034. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1035. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1036. ac_prev=x_libraries ;;
  1037. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1038. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1039. x_libraries=$ac_optarg ;;
  1040. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1041. Try \`$0 --help' for more information"
  1042. ;;
  1043. *=*)
  1044. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1045. # Reject names that are not valid shell variable names.
  1046. case $ac_envvar in #(
  1047. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1048. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1049. esac
  1050. eval $ac_envvar=\$ac_optarg
  1051. export $ac_envvar ;;
  1052. *)
  1053. # FIXME: should be removed in autoconf 3.0.
  1054. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1055. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1056. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1057. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1058. ;;
  1059. esac
  1060. done
  1061. if test -n "$ac_prev"; then
  1062. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1063. as_fn_error $? "missing argument to $ac_option"
  1064. fi
  1065. if test -n "$ac_unrecognized_opts"; then
  1066. case $enable_option_checking in
  1067. no) ;;
  1068. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1069. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1070. esac
  1071. fi
  1072. # Check all directory arguments for consistency.
  1073. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1074. datadir sysconfdir sharedstatedir localstatedir includedir \
  1075. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1076. libdir localedir mandir runstatedir
  1077. do
  1078. eval ac_val=\$$ac_var
  1079. # Remove trailing slashes.
  1080. case $ac_val in
  1081. */ )
  1082. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1083. eval $ac_var=\$ac_val;;
  1084. esac
  1085. # Be sure to have absolute directory names.
  1086. case $ac_val in
  1087. [\\/$]* | ?:[\\/]* ) continue;;
  1088. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1089. esac
  1090. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1091. done
  1092. # There might be people who depend on the old broken behavior: `$host'
  1093. # used to hold the argument of --host etc.
  1094. # FIXME: To remove some day.
  1095. build=$build_alias
  1096. host=$host_alias
  1097. target=$target_alias
  1098. # FIXME: To remove some day.
  1099. if test "x$host_alias" != x; then
  1100. if test "x$build_alias" = x; then
  1101. cross_compiling=maybe
  1102. elif test "x$build_alias" != "x$host_alias"; then
  1103. cross_compiling=yes
  1104. fi
  1105. fi
  1106. ac_tool_prefix=
  1107. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1108. test "$silent" = yes && exec 6>/dev/null
  1109. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1110. ac_ls_di=`ls -di .` &&
  1111. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1112. as_fn_error $? "working directory cannot be determined"
  1113. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1114. as_fn_error $? "pwd does not report name of working directory"
  1115. # Find the source files, if location was not specified.
  1116. if test -z "$srcdir"; then
  1117. ac_srcdir_defaulted=yes
  1118. # Try the directory containing this script, then the parent directory.
  1119. ac_confdir=`$as_dirname -- "$as_myself" ||
  1120. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1121. X"$as_myself" : 'X\(//\)[^/]' \| \
  1122. X"$as_myself" : 'X\(//\)$' \| \
  1123. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1124. $as_echo X"$as_myself" |
  1125. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1126. s//\1/
  1127. q
  1128. }
  1129. /^X\(\/\/\)[^/].*/{
  1130. s//\1/
  1131. q
  1132. }
  1133. /^X\(\/\/\)$/{
  1134. s//\1/
  1135. q
  1136. }
  1137. /^X\(\/\).*/{
  1138. s//\1/
  1139. q
  1140. }
  1141. s/.*/./; q'`
  1142. srcdir=$ac_confdir
  1143. if test ! -r "$srcdir/$ac_unique_file"; then
  1144. srcdir=..
  1145. fi
  1146. else
  1147. ac_srcdir_defaulted=no
  1148. fi
  1149. if test ! -r "$srcdir/$ac_unique_file"; then
  1150. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1151. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1152. fi
  1153. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1154. ac_abs_confdir=`(
  1155. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1156. pwd)`
  1157. # When building in place, set srcdir=.
  1158. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1159. srcdir=.
  1160. fi
  1161. # Remove unnecessary trailing slashes from srcdir.
  1162. # Double slashes in file names in object file debugging info
  1163. # mess up M-x gdb in Emacs.
  1164. case $srcdir in
  1165. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1166. esac
  1167. for ac_var in $ac_precious_vars; do
  1168. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1169. eval ac_env_${ac_var}_value=\$${ac_var}
  1170. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1171. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1172. done
  1173. #
  1174. # Report the --help message.
  1175. #
  1176. if test "$ac_init_help" = "long"; then
  1177. # Omit some internal or obsolete options to make the list less imposing.
  1178. # This message is too long to be a string in the A/UX 3.1 sh.
  1179. cat <<_ACEOF
  1180. \`configure' configures logrotate 3.15.1 to adapt to many kinds of systems.
  1181. Usage: $0 [OPTION]... [VAR=VALUE]...
  1182. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1183. VAR=VALUE. See below for descriptions of some of the useful variables.
  1184. Defaults for the options are specified in brackets.
  1185. Configuration:
  1186. -h, --help display this help and exit
  1187. --help=short display options specific to this package
  1188. --help=recursive display the short help of all the included packages
  1189. -V, --version display version information and exit
  1190. -q, --quiet, --silent do not print \`checking ...' messages
  1191. --cache-file=FILE cache test results in FILE [disabled]
  1192. -C, --config-cache alias for \`--cache-file=config.cache'
  1193. -n, --no-create do not create output files
  1194. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1195. Installation directories:
  1196. --prefix=PREFIX install architecture-independent files in PREFIX
  1197. [$ac_default_prefix]
  1198. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1199. [PREFIX]
  1200. By default, \`make install' will install all the files in
  1201. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1202. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1203. for instance \`--prefix=\$HOME'.
  1204. For better control, use the options below.
  1205. Fine tuning of the installation directories:
  1206. --bindir=DIR user executables [EPREFIX/bin]
  1207. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1208. --libexecdir=DIR program executables [EPREFIX/libexec]
  1209. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1210. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1211. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1212. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1213. --libdir=DIR object code libraries [EPREFIX/lib]
  1214. --includedir=DIR C header files [PREFIX/include]
  1215. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1216. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1217. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1218. --infodir=DIR info documentation [DATAROOTDIR/info]
  1219. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1220. --mandir=DIR man documentation [DATAROOTDIR/man]
  1221. --docdir=DIR documentation root [DATAROOTDIR/doc/logrotate]
  1222. --htmldir=DIR html documentation [DOCDIR]
  1223. --dvidir=DIR dvi documentation [DOCDIR]
  1224. --pdfdir=DIR pdf documentation [DOCDIR]
  1225. --psdir=DIR ps documentation [DOCDIR]
  1226. _ACEOF
  1227. cat <<\_ACEOF
  1228. Program names:
  1229. --program-prefix=PREFIX prepend PREFIX to installed program names
  1230. --program-suffix=SUFFIX append SUFFIX to installed program names
  1231. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1232. System types:
  1233. --build=BUILD configure for building on BUILD [guessed]
  1234. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1235. _ACEOF
  1236. fi
  1237. if test -n "$ac_init_help"; then
  1238. case $ac_init_help in
  1239. short | recursive ) echo "Configuration of logrotate 3.15.1:";;
  1240. esac
  1241. cat <<\_ACEOF
  1242. Optional Features:
  1243. --disable-option-checking ignore unrecognized --enable/--with options
  1244. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1245. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1246. --enable-silent-rules less verbose build output (undo: "make V=1")
  1247. --disable-silent-rules verbose build output (undo: "make V=0")
  1248. --enable-dependency-tracking
  1249. do not reject slow dependency extractors
  1250. --disable-dependency-tracking
  1251. speeds up one-time build
  1252. --disable-largefile omit support for large files
  1253. --enable-werror Treat warnings as errors (default: warnings are not
  1254. errors)
  1255. Optional Packages:
  1256. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1257. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1258. --with-selinux support handling SELinux contexts (yes,no,check)
  1259. [default=check]
  1260. --with-acl support handling ACL (yes,no,check) [default=check]
  1261. --with-state-file-path=PATH
  1262. path to state file (/var/lib/logrotate.status by
  1263. default)
  1264. --with-default-mail-command=COMMAND
  1265. default mail command (e.g. /bin/mail)
  1266. --with-compress-command=COMMAND
  1267. compress command (default: /bin/gzip)
  1268. --with-uncompress-command=COMMAND
  1269. uncompress command (default: /bin/gunzip)
  1270. --with-compress-extension=EXTENSION
  1271. compress extension (default: .gz)
  1272. Some influential environment variables:
  1273. CC C compiler command
  1274. CFLAGS C compiler flags
  1275. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1276. nonstandard directory <lib dir>
  1277. LIBS libraries to pass to the linker, e.g. -l<library>
  1278. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1279. you have headers in a nonstandard directory <include dir>
  1280. CPP C preprocessor
  1281. Use these variables to override the choices made by `configure' or to help
  1282. it to find libraries and programs with nonstandard names/locations.
  1283. Report bugs to the package provider.
  1284. logrotate home page: <https://github.com/logrotate/logrotate>.
  1285. _ACEOF
  1286. ac_status=$?
  1287. fi
  1288. if test "$ac_init_help" = "recursive"; then
  1289. # If there are subdirs, report their specific --help.
  1290. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1291. test -d "$ac_dir" ||
  1292. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1293. continue
  1294. ac_builddir=.
  1295. case "$ac_dir" in
  1296. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1297. *)
  1298. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1299. # A ".." for each directory in $ac_dir_suffix.
  1300. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1301. case $ac_top_builddir_sub in
  1302. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1303. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1304. esac ;;
  1305. esac
  1306. ac_abs_top_builddir=$ac_pwd
  1307. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1308. # for backward compatibility:
  1309. ac_top_builddir=$ac_top_build_prefix
  1310. case $srcdir in
  1311. .) # We are building in place.
  1312. ac_srcdir=.
  1313. ac_top_srcdir=$ac_top_builddir_sub
  1314. ac_abs_top_srcdir=$ac_pwd ;;
  1315. [\\/]* | ?:[\\/]* ) # Absolute name.
  1316. ac_srcdir=$srcdir$ac_dir_suffix;
  1317. ac_top_srcdir=$srcdir
  1318. ac_abs_top_srcdir=$srcdir ;;
  1319. *) # Relative name.
  1320. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1321. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1322. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1323. esac
  1324. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1325. cd "$ac_dir" || { ac_status=$?; continue; }
  1326. # Check for guested configure.
  1327. if test -f "$ac_srcdir/configure.gnu"; then
  1328. echo &&
  1329. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1330. elif test -f "$ac_srcdir/configure"; then
  1331. echo &&
  1332. $SHELL "$ac_srcdir/configure" --help=recursive
  1333. else
  1334. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1335. fi || ac_status=$?
  1336. cd "$ac_pwd" || { ac_status=$?; break; }
  1337. done
  1338. fi
  1339. test -n "$ac_init_help" && exit $ac_status
  1340. if $ac_init_version; then
  1341. cat <<\_ACEOF
  1342. logrotate configure 3.15.1
  1343. generated by GNU Autoconf 2.69
  1344. Copyright (C) 2012 Free Software Foundation, Inc.
  1345. This configure script is free software; the Free Software Foundation
  1346. gives unlimited permission to copy, distribute and modify it.
  1347. _ACEOF
  1348. exit
  1349. fi
  1350. ## ------------------------ ##
  1351. ## Autoconf initialization. ##
  1352. ## ------------------------ ##
  1353. # ac_fn_c_try_compile LINENO
  1354. # --------------------------
  1355. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1356. ac_fn_c_try_compile ()
  1357. {
  1358. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1359. rm -f conftest.$ac_objext
  1360. if { { ac_try="$ac_compile"
  1361. case "(($ac_try" in
  1362. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1363. *) ac_try_echo=$ac_try;;
  1364. esac
  1365. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1366. $as_echo "$ac_try_echo"; } >&5
  1367. (eval "$ac_compile") 2>conftest.err
  1368. ac_status=$?
  1369. if test -s conftest.err; then
  1370. grep -v '^ *+' conftest.err >conftest.er1
  1371. cat conftest.er1 >&5
  1372. mv -f conftest.er1 conftest.err
  1373. fi
  1374. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1375. test $ac_status = 0; } && {
  1376. test -z "$ac_c_werror_flag" ||
  1377. test ! -s conftest.err
  1378. } && test -s conftest.$ac_objext; then :
  1379. ac_retval=0
  1380. else
  1381. $as_echo "$as_me: failed program was:" >&5
  1382. sed 's/^/| /' conftest.$ac_ext >&5
  1383. ac_retval=1
  1384. fi
  1385. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1386. as_fn_set_status $ac_retval
  1387. } # ac_fn_c_try_compile
  1388. # ac_fn_c_try_cpp LINENO
  1389. # ----------------------
  1390. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1391. ac_fn_c_try_cpp ()
  1392. {
  1393. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1394. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1395. case "(($ac_try" in
  1396. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1397. *) ac_try_echo=$ac_try;;
  1398. esac
  1399. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1400. $as_echo "$ac_try_echo"; } >&5
  1401. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1402. ac_status=$?
  1403. if test -s conftest.err; then
  1404. grep -v '^ *+' conftest.err >conftest.er1
  1405. cat conftest.er1 >&5
  1406. mv -f conftest.er1 conftest.err
  1407. fi
  1408. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1409. test $ac_status = 0; } > conftest.i && {
  1410. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1411. test ! -s conftest.err
  1412. }; then :
  1413. ac_retval=0
  1414. else
  1415. $as_echo "$as_me: failed program was:" >&5
  1416. sed 's/^/| /' conftest.$ac_ext >&5
  1417. ac_retval=1
  1418. fi
  1419. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1420. as_fn_set_status $ac_retval
  1421. } # ac_fn_c_try_cpp
  1422. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1423. # -------------------------------------------------------
  1424. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1425. # the include files in INCLUDES and setting the cache variable VAR
  1426. # accordingly.
  1427. ac_fn_c_check_header_mongrel ()
  1428. {
  1429. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1430. if eval \${$3+:} false; then :
  1431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1432. $as_echo_n "checking for $2... " >&6; }
  1433. if eval \${$3+:} false; then :
  1434. $as_echo_n "(cached) " >&6
  1435. fi
  1436. eval ac_res=\$$3
  1437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1438. $as_echo "$ac_res" >&6; }
  1439. else
  1440. # Is the header compilable?
  1441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1442. $as_echo_n "checking $2 usability... " >&6; }
  1443. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1444. /* end confdefs.h. */
  1445. $4
  1446. #include <$2>
  1447. _ACEOF
  1448. if ac_fn_c_try_compile "$LINENO"; then :
  1449. ac_header_compiler=yes
  1450. else
  1451. ac_header_compiler=no
  1452. fi
  1453. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1455. $as_echo "$ac_header_compiler" >&6; }
  1456. # Is the header present?
  1457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1458. $as_echo_n "checking $2 presence... " >&6; }
  1459. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1460. /* end confdefs.h. */
  1461. #include <$2>
  1462. _ACEOF
  1463. if ac_fn_c_try_cpp "$LINENO"; then :
  1464. ac_header_preproc=yes
  1465. else
  1466. ac_header_preproc=no
  1467. fi
  1468. rm -f conftest.err conftest.i conftest.$ac_ext
  1469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1470. $as_echo "$ac_header_preproc" >&6; }
  1471. # So? What about this header?
  1472. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1473. yes:no: )
  1474. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1475. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1476. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1477. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1478. ;;
  1479. no:yes:* )
  1480. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1481. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1482. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1483. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1484. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1485. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1486. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1487. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1488. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1489. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1490. ;;
  1491. esac
  1492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1493. $as_echo_n "checking for $2... " >&6; }
  1494. if eval \${$3+:} false; then :
  1495. $as_echo_n "(cached) " >&6
  1496. else
  1497. eval "$3=\$ac_header_compiler"
  1498. fi
  1499. eval ac_res=\$$3
  1500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1501. $as_echo "$ac_res" >&6; }
  1502. fi
  1503. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1504. } # ac_fn_c_check_header_mongrel
  1505. # ac_fn_c_try_run LINENO
  1506. # ----------------------
  1507. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1508. # that executables *can* be run.
  1509. ac_fn_c_try_run ()
  1510. {
  1511. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1512. if { { ac_try="$ac_link"
  1513. case "(($ac_try" in
  1514. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1515. *) ac_try_echo=$ac_try;;
  1516. esac
  1517. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1518. $as_echo "$ac_try_echo"; } >&5
  1519. (eval "$ac_link") 2>&5
  1520. ac_status=$?
  1521. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1522. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1523. { { case "(($ac_try" in
  1524. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1525. *) ac_try_echo=$ac_try;;
  1526. esac
  1527. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1528. $as_echo "$ac_try_echo"; } >&5
  1529. (eval "$ac_try") 2>&5
  1530. ac_status=$?
  1531. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1532. test $ac_status = 0; }; }; then :
  1533. ac_retval=0
  1534. else
  1535. $as_echo "$as_me: program exited with status $ac_status" >&5
  1536. $as_echo "$as_me: failed program was:" >&5
  1537. sed 's/^/| /' conftest.$ac_ext >&5
  1538. ac_retval=$ac_status
  1539. fi
  1540. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1541. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1542. as_fn_set_status $ac_retval
  1543. } # ac_fn_c_try_run
  1544. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1545. # -------------------------------------------------------
  1546. # Tests whether HEADER exists and can be compiled using the include files in
  1547. # INCLUDES, setting the cache variable VAR accordingly.
  1548. ac_fn_c_check_header_compile ()
  1549. {
  1550. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1552. $as_echo_n "checking for $2... " >&6; }
  1553. if eval \${$3+:} false; then :
  1554. $as_echo_n "(cached) " >&6
  1555. else
  1556. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1557. /* end confdefs.h. */
  1558. $4
  1559. #include <$2>
  1560. _ACEOF
  1561. if ac_fn_c_try_compile "$LINENO"; then :
  1562. eval "$3=yes"
  1563. else
  1564. eval "$3=no"
  1565. fi
  1566. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1567. fi
  1568. eval ac_res=\$$3
  1569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1570. $as_echo "$ac_res" >&6; }
  1571. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1572. } # ac_fn_c_check_header_compile
  1573. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  1574. # ----------------------------------------------------
  1575. # Tries to find if the field MEMBER exists in type AGGR, after including
  1576. # INCLUDES, setting cache variable VAR accordingly.
  1577. ac_fn_c_check_member ()
  1578. {
  1579. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  1581. $as_echo_n "checking for $2.$3... " >&6; }
  1582. if eval \${$4+:} false; then :
  1583. $as_echo_n "(cached) " >&6
  1584. else
  1585. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1586. /* end confdefs.h. */
  1587. $5
  1588. int
  1589. main ()
  1590. {
  1591. static $2 ac_aggr;
  1592. if (ac_aggr.$3)
  1593. return 0;
  1594. ;
  1595. return 0;
  1596. }
  1597. _ACEOF
  1598. if ac_fn_c_try_compile "$LINENO"; then :
  1599. eval "$4=yes"
  1600. else
  1601. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1602. /* end confdefs.h. */
  1603. $5
  1604. int
  1605. main ()
  1606. {
  1607. static $2 ac_aggr;
  1608. if (sizeof ac_aggr.$3)
  1609. return 0;
  1610. ;
  1611. return 0;
  1612. }
  1613. _ACEOF
  1614. if ac_fn_c_try_compile "$LINENO"; then :
  1615. eval "$4=yes"
  1616. else
  1617. eval "$4=no"
  1618. fi
  1619. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1620. fi
  1621. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1622. fi
  1623. eval ac_res=\$$4
  1624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1625. $as_echo "$ac_res" >&6; }
  1626. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1627. } # ac_fn_c_check_member
  1628. # ac_fn_c_try_link LINENO
  1629. # -----------------------
  1630. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1631. ac_fn_c_try_link ()
  1632. {
  1633. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1634. rm -f conftest.$ac_objext conftest$ac_exeext
  1635. if { { ac_try="$ac_link"
  1636. case "(($ac_try" in
  1637. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1638. *) ac_try_echo=$ac_try;;
  1639. esac
  1640. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1641. $as_echo "$ac_try_echo"; } >&5
  1642. (eval "$ac_link") 2>conftest.err
  1643. ac_status=$?
  1644. if test -s conftest.err; then
  1645. grep -v '^ *+' conftest.err >conftest.er1
  1646. cat conftest.er1 >&5
  1647. mv -f conftest.er1 conftest.err
  1648. fi
  1649. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1650. test $ac_status = 0; } && {
  1651. test -z "$ac_c_werror_flag" ||
  1652. test ! -s conftest.err
  1653. } && test -s conftest$ac_exeext && {
  1654. test "$cross_compiling" = yes ||
  1655. test -x conftest$ac_exeext
  1656. }; then :
  1657. ac_retval=0
  1658. else
  1659. $as_echo "$as_me: failed program was:" >&5
  1660. sed 's/^/| /' conftest.$ac_ext >&5
  1661. ac_retval=1
  1662. fi
  1663. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1664. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1665. # interfere with the next link command; also delete a directory that is
  1666. # left behind by Apple's compiler. We do this before executing the actions.
  1667. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1668. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1669. as_fn_set_status $ac_retval
  1670. } # ac_fn_c_try_link
  1671. # ac_fn_c_check_func LINENO FUNC VAR
  1672. # ----------------------------------
  1673. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1674. ac_fn_c_check_func ()
  1675. {
  1676. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1678. $as_echo_n "checking for $2... " >&6; }
  1679. if eval \${$3+:} false; then :
  1680. $as_echo_n "(cached) " >&6
  1681. else
  1682. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1683. /* end confdefs.h. */
  1684. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1685. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1686. #define $2 innocuous_$2
  1687. /* System header to define __stub macros and hopefully few prototypes,
  1688. which can conflict with char $2 (); below.
  1689. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1690. <limits.h> exists even on freestanding compilers. */
  1691. #ifdef __STDC__
  1692. # include <limits.h>
  1693. #else
  1694. # include <assert.h>
  1695. #endif
  1696. #undef $2
  1697. /* Override any GCC internal prototype to avoid an error.
  1698. Use char because int might match the return type of a GCC
  1699. builtin and then its argument prototype would still apply. */
  1700. #ifdef __cplusplus
  1701. extern "C"
  1702. #endif
  1703. char $2 ();
  1704. /* The GNU C library defines this for functions which it implements
  1705. to always fail with ENOSYS. Some functions are actually named
  1706. something starting with __ and the normal name is an alias. */
  1707. #if defined __stub_$2 || defined __stub___$2
  1708. choke me
  1709. #endif
  1710. int
  1711. main ()
  1712. {
  1713. return $2 ();
  1714. ;
  1715. return 0;
  1716. }
  1717. _ACEOF
  1718. if ac_fn_c_try_link "$LINENO"; then :
  1719. eval "$3=yes"
  1720. else
  1721. eval "$3=no"
  1722. fi
  1723. rm -f core conftest.err conftest.$ac_objext \
  1724. conftest$ac_exeext conftest.$ac_ext
  1725. fi
  1726. eval ac_res=\$$3
  1727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1728. $as_echo "$ac_res" >&6; }
  1729. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1730. } # ac_fn_c_check_func
  1731. cat >config.log <<_ACEOF
  1732. This file contains any messages produced by compilers while
  1733. running configure, to aid debugging if configure makes a mistake.
  1734. It was created by logrotate $as_me 3.15.1, which was
  1735. generated by GNU Autoconf 2.69. Invocation command line was
  1736. $ $0 $@
  1737. _ACEOF
  1738. exec 5>>config.log
  1739. {
  1740. cat <<_ASUNAME
  1741. ## --------- ##
  1742. ## Platform. ##
  1743. ## --------- ##
  1744. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1745. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1746. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1747. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1748. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1749. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1750. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1751. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1752. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1753. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1754. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1755. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1756. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1757. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1758. _ASUNAME
  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. $as_echo "PATH: $as_dir"
  1765. done
  1766. IFS=$as_save_IFS
  1767. } >&5
  1768. cat >&5 <<_ACEOF
  1769. ## ----------- ##
  1770. ## Core tests. ##
  1771. ## ----------- ##
  1772. _ACEOF
  1773. # Keep a trace of the command line.
  1774. # Strip out --no-create and --no-recursion so they do not pile up.
  1775. # Strip out --silent because we don't want to record it for future runs.
  1776. # Also quote any args containing shell meta-characters.
  1777. # Make two passes to allow for proper duplicate-argument suppression.
  1778. ac_configure_args=
  1779. ac_configure_args0=
  1780. ac_configure_args1=
  1781. ac_must_keep_next=false
  1782. for ac_pass in 1 2
  1783. do
  1784. for ac_arg
  1785. do
  1786. case $ac_arg in
  1787. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1788. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1789. | -silent | --silent | --silen | --sile | --sil)
  1790. continue ;;
  1791. *\'*)
  1792. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1793. esac
  1794. case $ac_pass in
  1795. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1796. 2)
  1797. as_fn_append ac_configure_args1 " '$ac_arg'"
  1798. if test $ac_must_keep_next = true; then
  1799. ac_must_keep_next=false # Got value, back to normal.
  1800. else
  1801. case $ac_arg in
  1802. *=* | --config-cache | -C | -disable-* | --disable-* \
  1803. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1804. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1805. | -with-* | --with-* | -without-* | --without-* | --x)
  1806. case "$ac_configure_args0 " in
  1807. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1808. esac
  1809. ;;
  1810. -* ) ac_must_keep_next=true ;;
  1811. esac
  1812. fi
  1813. as_fn_append ac_configure_args " '$ac_arg'"
  1814. ;;
  1815. esac
  1816. done
  1817. done
  1818. { ac_configure_args0=; unset ac_configure_args0;}
  1819. { ac_configure_args1=; unset ac_configure_args1;}
  1820. # When interrupted or exit'd, cleanup temporary files, and complete
  1821. # config.log. We remove comments because anyway the quotes in there
  1822. # would cause problems or look ugly.
  1823. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1824. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1825. trap 'exit_status=$?
  1826. # Save into config.log some information that might help in debugging.
  1827. {
  1828. echo
  1829. $as_echo "## ---------------- ##
  1830. ## Cache variables. ##
  1831. ## ---------------- ##"
  1832. echo
  1833. # The following way of writing the cache mishandles newlines in values,
  1834. (
  1835. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1836. eval ac_val=\$$ac_var
  1837. case $ac_val in #(
  1838. *${as_nl}*)
  1839. case $ac_var in #(
  1840. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1841. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1842. esac
  1843. case $ac_var in #(
  1844. _ | IFS | as_nl) ;; #(
  1845. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1846. *) { eval $ac_var=; unset $ac_var;} ;;
  1847. esac ;;
  1848. esac
  1849. done
  1850. (set) 2>&1 |
  1851. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1852. *${as_nl}ac_space=\ *)
  1853. sed -n \
  1854. "s/'\''/'\''\\\\'\'''\''/g;
  1855. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1856. ;; #(
  1857. *)
  1858. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1859. ;;
  1860. esac |
  1861. sort
  1862. )
  1863. echo
  1864. $as_echo "## ----------------- ##
  1865. ## Output variables. ##
  1866. ## ----------------- ##"
  1867. echo
  1868. for ac_var in $ac_subst_vars
  1869. do
  1870. eval ac_val=\$$ac_var
  1871. case $ac_val in
  1872. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1873. esac
  1874. $as_echo "$ac_var='\''$ac_val'\''"
  1875. done | sort
  1876. echo
  1877. if test -n "$ac_subst_files"; then
  1878. $as_echo "## ------------------- ##
  1879. ## File substitutions. ##
  1880. ## ------------------- ##"
  1881. echo
  1882. for ac_var in $ac_subst_files
  1883. do
  1884. eval ac_val=\$$ac_var
  1885. case $ac_val in
  1886. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1887. esac
  1888. $as_echo "$ac_var='\''$ac_val'\''"
  1889. done | sort
  1890. echo
  1891. fi
  1892. if test -s confdefs.h; then
  1893. $as_echo "## ----------- ##
  1894. ## confdefs.h. ##
  1895. ## ----------- ##"
  1896. echo
  1897. cat confdefs.h
  1898. echo
  1899. fi
  1900. test "$ac_signal" != 0 &&
  1901. $as_echo "$as_me: caught signal $ac_signal"
  1902. $as_echo "$as_me: exit $exit_status"
  1903. } >&5
  1904. rm -f core *.core core.conftest.* &&
  1905. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1906. exit $exit_status
  1907. ' 0
  1908. for ac_signal in 1 2 13 15; do
  1909. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1910. done
  1911. ac_signal=0
  1912. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1913. rm -f -r conftest* confdefs.h
  1914. $as_echo "/* confdefs.h */" > confdefs.h
  1915. # Predefined preprocessor variables.
  1916. cat >>confdefs.h <<_ACEOF
  1917. #define PACKAGE_NAME "$PACKAGE_NAME"
  1918. _ACEOF
  1919. cat >>confdefs.h <<_ACEOF
  1920. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1921. _ACEOF
  1922. cat >>confdefs.h <<_ACEOF
  1923. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1924. _ACEOF
  1925. cat >>confdefs.h <<_ACEOF
  1926. #define PACKAGE_STRING "$PACKAGE_STRING"
  1927. _ACEOF
  1928. cat >>confdefs.h <<_ACEOF
  1929. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1930. _ACEOF
  1931. cat >>confdefs.h <<_ACEOF
  1932. #define PACKAGE_URL "$PACKAGE_URL"
  1933. _ACEOF
  1934. # Let the site file select an alternate cache file if it wants to.
  1935. # Prefer an explicitly selected file to automatically selected ones.
  1936. ac_site_file1=NONE
  1937. ac_site_file2=NONE
  1938. if test -n "$CONFIG_SITE"; then
  1939. # We do not want a PATH search for config.site.
  1940. case $CONFIG_SITE in #((
  1941. -*) ac_site_file1=./$CONFIG_SITE;;
  1942. */*) ac_site_file1=$CONFIG_SITE;;
  1943. *) ac_site_file1=./$CONFIG_SITE;;
  1944. esac
  1945. elif test "x$prefix" != xNONE; then
  1946. ac_site_file1=$prefix/share/config.site
  1947. ac_site_file2=$prefix/etc/config.site
  1948. else
  1949. ac_site_file1=$ac_default_prefix/share/config.site
  1950. ac_site_file2=$ac_default_prefix/etc/config.site
  1951. fi
  1952. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1953. do
  1954. test "x$ac_site_file" = xNONE && continue
  1955. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  1956. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1957. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1958. sed 's/^/| /' "$ac_site_file" >&5
  1959. . "$ac_site_file" \
  1960. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1961. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1962. as_fn_error $? "failed to load site script $ac_site_file
  1963. See \`config.log' for more details" "$LINENO" 5; }
  1964. fi
  1965. done
  1966. if test -r "$cache_file"; then
  1967. # Some versions of bash will fail to source /dev/null (special files
  1968. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  1969. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  1970. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1971. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1972. case $cache_file in
  1973. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1974. *) . "./$cache_file";;
  1975. esac
  1976. fi
  1977. else
  1978. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1979. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1980. >$cache_file
  1981. fi
  1982. # Check that the precious variables saved in the cache have kept the same
  1983. # value.
  1984. ac_cache_corrupted=false
  1985. for ac_var in $ac_precious_vars; do
  1986. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1987. eval ac_new_set=\$ac_env_${ac_var}_set
  1988. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1989. eval ac_new_val=\$ac_env_${ac_var}_value
  1990. case $ac_old_set,$ac_new_set in
  1991. set,)
  1992. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1993. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1994. ac_cache_corrupted=: ;;
  1995. ,set)
  1996. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1997. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1998. ac_cache_corrupted=: ;;
  1999. ,);;
  2000. *)
  2001. if test "x$ac_old_val" != "x$ac_new_val"; then
  2002. # differences in whitespace do not lead to failure.
  2003. ac_old_val_w=`echo x $ac_old_val`
  2004. ac_new_val_w=`echo x $ac_new_val`
  2005. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2006. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2007. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2008. ac_cache_corrupted=:
  2009. else
  2010. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2011. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2012. eval $ac_var=\$ac_old_val
  2013. fi
  2014. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2015. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2016. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2017. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2018. fi;;
  2019. esac
  2020. # Pass precious variables to config.status.
  2021. if test "$ac_new_set" = set; then
  2022. case $ac_new_val in
  2023. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2024. *) ac_arg=$ac_var=$ac_new_val ;;
  2025. esac
  2026. case " $ac_configure_args " in
  2027. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2028. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2029. esac
  2030. fi
  2031. done
  2032. if $ac_cache_corrupted; then
  2033. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2034. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2035. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2036. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2037. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2038. fi
  2039. ## -------------------- ##
  2040. ## Main body of script. ##
  2041. ## -------------------- ##
  2042. ac_ext=c
  2043. ac_cpp='$CPP $CPPFLAGS'
  2044. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2045. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2046. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2047. am__api_version='1.15'
  2048. ac_aux_dir=
  2049. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2050. if test -f "$ac_dir/install-sh"; then
  2051. ac_aux_dir=$ac_dir
  2052. ac_install_sh="$ac_aux_dir/install-sh -c"
  2053. break
  2054. elif test -f "$ac_dir/install.sh"; then
  2055. ac_aux_dir=$ac_dir
  2056. ac_install_sh="$ac_aux_dir/install.sh -c"
  2057. break
  2058. elif test -f "$ac_dir/shtool"; then
  2059. ac_aux_dir=$ac_dir
  2060. ac_install_sh="$ac_aux_dir/shtool install -c"
  2061. break
  2062. fi
  2063. done
  2064. if test -z "$ac_aux_dir"; then
  2065. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2066. fi
  2067. # These three variables are undocumented and unsupported,
  2068. # and are intended to be withdrawn in a future Autoconf release.
  2069. # They can cause serious problems if a builder's source tree is in a directory
  2070. # whose full name contains unusual characters.
  2071. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2072. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2073. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2074. # Find a good install program. We prefer a C program (faster),
  2075. # so one script is as good as another. But avoid the broken or
  2076. # incompatible versions:
  2077. # SysV /etc/install, /usr/sbin/install
  2078. # SunOS /usr/etc/install
  2079. # IRIX /sbin/install
  2080. # AIX /bin/install
  2081. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2082. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2083. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2084. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2085. # OS/2's system install, which has a completely different semantic
  2086. # ./install, which can be erroneously created by make from ./install.sh.
  2087. # Reject install programs that cannot install multiple files.
  2088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2089. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2090. if test -z "$INSTALL"; then
  2091. if ${ac_cv_path_install+:} false; then :
  2092. $as_echo_n "(cached) " >&6
  2093. else
  2094. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2095. for as_dir in $PATH
  2096. do
  2097. IFS=$as_save_IFS
  2098. test -z "$as_dir" && as_dir=.
  2099. # Account for people who put trailing slashes in PATH elements.
  2100. case $as_dir/ in #((
  2101. ./ | .// | /[cC]/* | \
  2102. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2103. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2104. /usr/ucb/* ) ;;
  2105. *)
  2106. # OSF1 and SCO ODT 3.0 have their own names for install.
  2107. # Don't use installbsd from OSF since it installs stuff as root
  2108. # by default.
  2109. for ac_prog in ginstall scoinst install; do
  2110. for ac_exec_ext in '' $ac_executable_extensions; do
  2111. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2112. if test $ac_prog = install &&
  2113. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2114. # AIX install. It has an incompatible calling convention.
  2115. :
  2116. elif test $ac_prog = install &&
  2117. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2118. # program-specific install script used by HP pwplus--don't use.
  2119. :
  2120. else
  2121. rm -rf conftest.one conftest.two conftest.dir
  2122. echo one > conftest.one
  2123. echo two > conftest.two
  2124. mkdir conftest.dir
  2125. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2126. test -s conftest.one && test -s conftest.two &&
  2127. test -s conftest.dir/conftest.one &&
  2128. test -s conftest.dir/conftest.two
  2129. then
  2130. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2131. break 3
  2132. fi
  2133. fi
  2134. fi
  2135. done
  2136. done
  2137. ;;
  2138. esac
  2139. done
  2140. IFS=$as_save_IFS
  2141. rm -rf conftest.one conftest.two conftest.dir
  2142. fi
  2143. if test "${ac_cv_path_install+set}" = set; then
  2144. INSTALL=$ac_cv_path_install
  2145. else
  2146. # As a last resort, use the slow shell script. Don't cache a
  2147. # value for INSTALL within a source directory, because that will
  2148. # break other packages using the cache if that directory is
  2149. # removed, or if the value is a relative name.
  2150. INSTALL=$ac_install_sh
  2151. fi
  2152. fi
  2153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2154. $as_echo "$INSTALL" >&6; }
  2155. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2156. # It thinks the first close brace ends the variable substitution.
  2157. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2158. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2159. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2161. $as_echo_n "checking whether build environment is sane... " >&6; }
  2162. # Reject unsafe characters in $srcdir or the absolute working directory
  2163. # name. Accept space and tab only in the latter.
  2164. am_lf='
  2165. '
  2166. case `pwd` in
  2167. *[\\\"\#\$\&\'\`$am_lf]*)
  2168. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2169. esac
  2170. case $srcdir in
  2171. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2172. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2173. esac
  2174. # Do 'set' in a subshell so we don't clobber the current shell's
  2175. # arguments. Must try -L first in case configure is actually a
  2176. # symlink; some systems play weird games with the mod time of symlinks
  2177. # (eg FreeBSD returns the mod time of the symlink's containing
  2178. # directory).
  2179. if (
  2180. am_has_slept=no
  2181. for am_try in 1 2; do
  2182. echo "timestamp, slept: $am_has_slept" > conftest.file
  2183. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2184. if test "$*" = "X"; then
  2185. # -L didn't work.
  2186. set X `ls -t "$srcdir/configure" conftest.file`
  2187. fi
  2188. if test "$*" != "X $srcdir/configure conftest.file" \
  2189. && test "$*" != "X conftest.file $srcdir/configure"; then
  2190. # If neither matched, then we have a broken ls. This can happen
  2191. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2192. # broken ls alias from the environment. This has actually
  2193. # happened. Such a system could not be considered "sane".
  2194. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2195. alias in your environment" "$LINENO" 5
  2196. fi
  2197. if test "$2" = conftest.file || test $am_try -eq 2; then
  2198. break
  2199. fi
  2200. # Just in case.
  2201. sleep 1
  2202. am_has_slept=yes
  2203. done
  2204. test "$2" = conftest.file
  2205. )
  2206. then
  2207. # Ok.
  2208. :
  2209. else
  2210. as_fn_error $? "newly created file is older than distributed files!
  2211. Check your system clock" "$LINENO" 5
  2212. fi
  2213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2214. $as_echo "yes" >&6; }
  2215. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2216. # generated files are strictly newer.
  2217. am_sleep_pid=
  2218. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2219. ( sleep 1 ) &
  2220. am_sleep_pid=$!
  2221. fi
  2222. rm -f conftest.file
  2223. test "$program_prefix" != NONE &&
  2224. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2225. # Use a double $ so make ignores it.
  2226. test "$program_suffix" != NONE &&
  2227. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2228. # Double any \ or $.
  2229. # By default was `s,x,x', remove it if useless.
  2230. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2231. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2232. # Expand $ac_aux_dir to an absolute path.
  2233. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2234. if test x"${MISSING+set}" != xset; then
  2235. case $am_aux_dir in
  2236. *\ * | *\ *)
  2237. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2238. *)
  2239. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2240. esac
  2241. fi
  2242. # Use eval to expand $SHELL
  2243. if eval "$MISSING --is-lightweight"; then
  2244. am_missing_run="$MISSING "
  2245. else
  2246. am_missing_run=
  2247. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2248. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2249. fi
  2250. if test x"${install_sh+set}" != xset; then
  2251. case $am_aux_dir in
  2252. *\ * | *\ *)
  2253. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2254. *)
  2255. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2256. esac
  2257. fi
  2258. # Installed binaries are usually stripped using 'strip' when the user
  2259. # run "make install-strip". However 'strip' might not be the right
  2260. # tool to use in cross-compilation environments, therefore Automake
  2261. # will honor the 'STRIP' environment variable to overrule this program.
  2262. if test "$cross_compiling" != no; then
  2263. if test -n "$ac_tool_prefix"; then
  2264. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2265. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2267. $as_echo_n "checking for $ac_word... " >&6; }
  2268. if ${ac_cv_prog_STRIP+:} false; then :
  2269. $as_echo_n "(cached) " >&6
  2270. else
  2271. if test -n "$STRIP"; then
  2272. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2273. else
  2274. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2275. for as_dir in $PATH
  2276. do
  2277. IFS=$as_save_IFS
  2278. test -z "$as_dir" && as_dir=.
  2279. for ac_exec_ext in '' $ac_executable_extensions; do
  2280. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2281. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2282. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2283. break 2
  2284. fi
  2285. done
  2286. done
  2287. IFS=$as_save_IFS
  2288. fi
  2289. fi
  2290. STRIP=$ac_cv_prog_STRIP
  2291. if test -n "$STRIP"; then
  2292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2293. $as_echo "$STRIP" >&6; }
  2294. else
  2295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2296. $as_echo "no" >&6; }
  2297. fi
  2298. fi
  2299. if test -z "$ac_cv_prog_STRIP"; then
  2300. ac_ct_STRIP=$STRIP
  2301. # Extract the first word of "strip", so it can be a program name with args.
  2302. set dummy strip; ac_word=$2
  2303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2304. $as_echo_n "checking for $ac_word... " >&6; }
  2305. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2306. $as_echo_n "(cached) " >&6
  2307. else
  2308. if test -n "$ac_ct_STRIP"; then
  2309. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2310. else
  2311. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2312. for as_dir in $PATH
  2313. do
  2314. IFS=$as_save_IFS
  2315. test -z "$as_dir" && as_dir=.
  2316. for ac_exec_ext in '' $ac_executable_extensions; do
  2317. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2318. ac_cv_prog_ac_ct_STRIP="strip"
  2319. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2320. break 2
  2321. fi
  2322. done
  2323. done
  2324. IFS=$as_save_IFS
  2325. fi
  2326. fi
  2327. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2328. if test -n "$ac_ct_STRIP"; then
  2329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2330. $as_echo "$ac_ct_STRIP" >&6; }
  2331. else
  2332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2333. $as_echo "no" >&6; }
  2334. fi
  2335. if test "x$ac_ct_STRIP" = x; then
  2336. STRIP=":"
  2337. else
  2338. case $cross_compiling:$ac_tool_warned in
  2339. yes:)
  2340. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2341. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2342. ac_tool_warned=yes ;;
  2343. esac
  2344. STRIP=$ac_ct_STRIP
  2345. fi
  2346. else
  2347. STRIP="$ac_cv_prog_STRIP"
  2348. fi
  2349. fi
  2350. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2352. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2353. if test -z "$MKDIR_P"; then
  2354. if ${ac_cv_path_mkdir+:} false; then :
  2355. $as_echo_n "(cached) " >&6
  2356. else
  2357. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2358. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2359. do
  2360. IFS=$as_save_IFS
  2361. test -z "$as_dir" && as_dir=.
  2362. for ac_prog in mkdir gmkdir; do
  2363. for ac_exec_ext in '' $ac_executable_extensions; do
  2364. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2365. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2366. 'mkdir (GNU coreutils) '* | \
  2367. 'mkdir (coreutils) '* | \
  2368. 'mkdir (fileutils) '4.1*)
  2369. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2370. break 3;;
  2371. esac
  2372. done
  2373. done
  2374. done
  2375. IFS=$as_save_IFS
  2376. fi
  2377. test -d ./--version && rmdir ./--version
  2378. if test "${ac_cv_path_mkdir+set}" = set; then
  2379. MKDIR_P="$ac_cv_path_mkdir -p"
  2380. else
  2381. # As a last resort, use the slow shell script. Don't cache a
  2382. # value for MKDIR_P within a source directory, because that will
  2383. # break other packages using the cache if that directory is
  2384. # removed, or if the value is a relative name.
  2385. MKDIR_P="$ac_install_sh -d"
  2386. fi
  2387. fi
  2388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2389. $as_echo "$MKDIR_P" >&6; }
  2390. for ac_prog in gawk mawk nawk awk
  2391. do
  2392. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2393. set dummy $ac_prog; ac_word=$2
  2394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2395. $as_echo_n "checking for $ac_word... " >&6; }
  2396. if ${ac_cv_prog_AWK+:} false; then :
  2397. $as_echo_n "(cached) " >&6
  2398. else
  2399. if test -n "$AWK"; then
  2400. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2401. else
  2402. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2403. for as_dir in $PATH
  2404. do
  2405. IFS=$as_save_IFS
  2406. test -z "$as_dir" && as_dir=.
  2407. for ac_exec_ext in '' $ac_executable_extensions; do
  2408. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2409. ac_cv_prog_AWK="$ac_prog"
  2410. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2411. break 2
  2412. fi
  2413. done
  2414. done
  2415. IFS=$as_save_IFS
  2416. fi
  2417. fi
  2418. AWK=$ac_cv_prog_AWK
  2419. if test -n "$AWK"; then
  2420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2421. $as_echo "$AWK" >&6; }
  2422. else
  2423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2424. $as_echo "no" >&6; }
  2425. fi
  2426. test -n "$AWK" && break
  2427. done
  2428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2429. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2430. set x ${MAKE-make}
  2431. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2432. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2433. $as_echo_n "(cached) " >&6
  2434. else
  2435. cat >conftest.make <<\_ACEOF
  2436. SHELL = /bin/sh
  2437. all:
  2438. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2439. _ACEOF
  2440. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2441. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2442. *@@@%%%=?*=@@@%%%*)
  2443. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2444. *)
  2445. eval ac_cv_prog_make_${ac_make}_set=no;;
  2446. esac
  2447. rm -f conftest.make
  2448. fi
  2449. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2451. $as_echo "yes" >&6; }
  2452. SET_MAKE=
  2453. else
  2454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2455. $as_echo "no" >&6; }
  2456. SET_MAKE="MAKE=${MAKE-make}"
  2457. fi
  2458. rm -rf .tst 2>/dev/null
  2459. mkdir .tst 2>/dev/null
  2460. if test -d .tst; then
  2461. am__leading_dot=.
  2462. else
  2463. am__leading_dot=_
  2464. fi
  2465. rmdir .tst 2>/dev/null
  2466. # Check whether --enable-silent-rules was given.
  2467. if test "${enable_silent_rules+set}" = set; then :
  2468. enableval=$enable_silent_rules;
  2469. fi
  2470. case $enable_silent_rules in # (((
  2471. yes) AM_DEFAULT_VERBOSITY=0;;
  2472. no) AM_DEFAULT_VERBOSITY=1;;
  2473. *) AM_DEFAULT_VERBOSITY=1;;
  2474. esac
  2475. am_make=${MAKE-make}
  2476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2477. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2478. if ${am_cv_make_support_nested_variables+:} false; then :
  2479. $as_echo_n "(cached) " >&6
  2480. else
  2481. if $as_echo 'TRUE=$(BAR$(V))
  2482. BAR0=false
  2483. BAR1=true
  2484. V=1
  2485. am__doit:
  2486. @$(TRUE)
  2487. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2488. am_cv_make_support_nested_variables=yes
  2489. else
  2490. am_cv_make_support_nested_variables=no
  2491. fi
  2492. fi
  2493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2494. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2495. if test $am_cv_make_support_nested_variables = yes; then
  2496. AM_V='$(V)'
  2497. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2498. else
  2499. AM_V=$AM_DEFAULT_VERBOSITY
  2500. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2501. fi
  2502. AM_BACKSLASH='\'
  2503. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2504. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2505. # is not polluted with repeated "-I."
  2506. am__isrc=' -I$(srcdir)'
  2507. # test to see if srcdir already configured
  2508. if test -f $srcdir/config.status; then
  2509. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2510. fi
  2511. fi
  2512. # test whether we have cygpath
  2513. if test -z "$CYGPATH_W"; then
  2514. if (cygpath --version) >/dev/null 2>/dev/null; then
  2515. CYGPATH_W='cygpath -w'
  2516. else
  2517. CYGPATH_W=echo
  2518. fi
  2519. fi
  2520. # Define the identity of the package.
  2521. PACKAGE='logrotate'
  2522. VERSION='3.15.1'
  2523. cat >>confdefs.h <<_ACEOF
  2524. #define PACKAGE "$PACKAGE"
  2525. _ACEOF
  2526. cat >>confdefs.h <<_ACEOF
  2527. #define VERSION "$VERSION"
  2528. _ACEOF
  2529. # Some tools Automake needs.
  2530. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2531. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2532. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2533. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2534. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2535. # For better backward compatibility. To be removed once Automake 1.9.x
  2536. # dies out for good. For more background, see:
  2537. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2538. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2539. mkdir_p='$(MKDIR_P)'
  2540. # We need awk for the "check" target (and possibly the TAP driver). The
  2541. # system "awk" is bad on some platforms.
  2542. # Always define AMTAR for backward compatibility. Yes, it's still used
  2543. # in the wild :-( We should find a proper way to deprecate it ...
  2544. AMTAR='$${TAR-tar}'
  2545. # We'll loop over all known methods to create a tar archive until one works.
  2546. _am_tools='gnutar pax cpio none'
  2547. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2548. # POSIX will say in a future version that running "rm -f" with no argument
  2549. # is OK; and we want to be able to make that assumption in our Makefile
  2550. # recipes. So use an aggressive probe to check that the usage we want is
  2551. # actually supported "in the wild" to an acceptable degree.
  2552. # See automake bug#10828.
  2553. # To make any issue more visible, cause the running configure to be aborted
  2554. # by default if the 'rm' program in use doesn't match our expectations; the
  2555. # user can still override this though.
  2556. if rm -f && rm -fr && rm -rf; then : OK; else
  2557. cat >&2 <<'END'
  2558. Oops!
  2559. Your 'rm' program seems unable to run without file operands specified
  2560. on the command line, even when the '-f' option is present. This is contrary
  2561. to the behaviour of most rm programs out there, and not conforming with
  2562. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  2563. Please tell bug-automake@gnu.org about your system, including the value
  2564. of your $PATH and any error possibly output before this message. This
  2565. can help us improve future automake versions.
  2566. END
  2567. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  2568. echo 'Configuration will proceed anyway, since you have set the' >&2
  2569. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  2570. echo >&2
  2571. else
  2572. cat >&2 <<'END'
  2573. Aborting the configuration process, to ensure you take notice of the issue.
  2574. You can download and install GNU coreutils to get an 'rm' implementation
  2575. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  2576. If you want to complete the configuration process using your problematic
  2577. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  2578. to "yes", and re-run configure.
  2579. END
  2580. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  2581. fi
  2582. fi
  2583. # --enable-silent-rules
  2584. # Check whether --enable-silent-rules was given.
  2585. if test "${enable_silent_rules+set}" = set; then :
  2586. enableval=$enable_silent_rules;
  2587. fi
  2588. case $enable_silent_rules in # (((
  2589. yes) AM_DEFAULT_VERBOSITY=0;;
  2590. no) AM_DEFAULT_VERBOSITY=1;;
  2591. *) AM_DEFAULT_VERBOSITY=0;;
  2592. esac
  2593. am_make=${MAKE-make}
  2594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2595. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2596. if ${am_cv_make_support_nested_variables+:} false; then :
  2597. $as_echo_n "(cached) " >&6
  2598. else
  2599. if $as_echo 'TRUE=$(BAR$(V))
  2600. BAR0=false
  2601. BAR1=true
  2602. V=1
  2603. am__doit:
  2604. @$(TRUE)
  2605. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2606. am_cv_make_support_nested_variables=yes
  2607. else
  2608. am_cv_make_support_nested_variables=no
  2609. fi
  2610. fi
  2611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2612. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2613. if test $am_cv_make_support_nested_variables = yes; then
  2614. AM_V='$(V)'
  2615. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2616. else
  2617. AM_V=$AM_DEFAULT_VERBOSITY
  2618. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2619. fi
  2620. AM_BACKSLASH='\'
  2621. DEPDIR="${am__leading_dot}deps"
  2622. ac_config_commands="$ac_config_commands depfiles"
  2623. am_make=${MAKE-make}
  2624. cat > confinc << 'END'
  2625. am__doit:
  2626. @echo this is the am__doit target
  2627. .PHONY: am__doit
  2628. END
  2629. # If we don't find an include directive, just comment out the code.
  2630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  2631. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  2632. am__include="#"
  2633. am__quote=
  2634. _am_result=none
  2635. # First try GNU make style include.
  2636. echo "include confinc" > confmf
  2637. # Ignore all kinds of additional output from 'make'.
  2638. case `$am_make -s -f confmf 2> /dev/null` in #(
  2639. *the\ am__doit\ target*)
  2640. am__include=include
  2641. am__quote=
  2642. _am_result=GNU
  2643. ;;
  2644. esac
  2645. # Now try BSD make style include.
  2646. if test "$am__include" = "#"; then
  2647. echo '.include "confinc"' > confmf
  2648. case `$am_make -s -f confmf 2> /dev/null` in #(
  2649. *the\ am__doit\ target*)
  2650. am__include=.include
  2651. am__quote="\""
  2652. _am_result=BSD
  2653. ;;
  2654. esac
  2655. fi
  2656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  2657. $as_echo "$_am_result" >&6; }
  2658. rm -f confinc confmf
  2659. # Check whether --enable-dependency-tracking was given.
  2660. if test "${enable_dependency_tracking+set}" = set; then :
  2661. enableval=$enable_dependency_tracking;
  2662. fi
  2663. if test "x$enable_dependency_tracking" != xno; then
  2664. am_depcomp="$ac_aux_dir/depcomp"
  2665. AMDEPBACKSLASH='\'
  2666. am__nodep='_no'
  2667. fi
  2668. if test "x$enable_dependency_tracking" != xno; then
  2669. AMDEP_TRUE=
  2670. AMDEP_FALSE='#'
  2671. else
  2672. AMDEP_TRUE='#'
  2673. AMDEP_FALSE=
  2674. fi
  2675. ac_ext=c
  2676. ac_cpp='$CPP $CPPFLAGS'
  2677. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2678. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2679. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2680. if test -n "$ac_tool_prefix"; then
  2681. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2682. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2684. $as_echo_n "checking for $ac_word... " >&6; }
  2685. if ${ac_cv_prog_CC+:} false; then :
  2686. $as_echo_n "(cached) " >&6
  2687. else
  2688. if test -n "$CC"; then
  2689. ac_cv_prog_CC="$CC" # Let the user override the test.
  2690. else
  2691. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2692. for as_dir in $PATH
  2693. do
  2694. IFS=$as_save_IFS
  2695. test -z "$as_dir" && as_dir=.
  2696. for ac_exec_ext in '' $ac_executable_extensions; do
  2697. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2698. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2699. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2700. break 2
  2701. fi
  2702. done
  2703. done
  2704. IFS=$as_save_IFS
  2705. fi
  2706. fi
  2707. CC=$ac_cv_prog_CC
  2708. if test -n "$CC"; then
  2709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2710. $as_echo "$CC" >&6; }
  2711. else
  2712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2713. $as_echo "no" >&6; }
  2714. fi
  2715. fi
  2716. if test -z "$ac_cv_prog_CC"; then
  2717. ac_ct_CC=$CC
  2718. # Extract the first word of "gcc", so it can be a program name with args.
  2719. set dummy gcc; ac_word=$2
  2720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2721. $as_echo_n "checking for $ac_word... " >&6; }
  2722. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2723. $as_echo_n "(cached) " >&6
  2724. else
  2725. if test -n "$ac_ct_CC"; then
  2726. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2727. else
  2728. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2729. for as_dir in $PATH
  2730. do
  2731. IFS=$as_save_IFS
  2732. test -z "$as_dir" && as_dir=.
  2733. for ac_exec_ext in '' $ac_executable_extensions; do
  2734. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2735. ac_cv_prog_ac_ct_CC="gcc"
  2736. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2737. break 2
  2738. fi
  2739. done
  2740. done
  2741. IFS=$as_save_IFS
  2742. fi
  2743. fi
  2744. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2745. if test -n "$ac_ct_CC"; then
  2746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2747. $as_echo "$ac_ct_CC" >&6; }
  2748. else
  2749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2750. $as_echo "no" >&6; }
  2751. fi
  2752. if test "x$ac_ct_CC" = x; then
  2753. CC=""
  2754. else
  2755. case $cross_compiling:$ac_tool_warned in
  2756. yes:)
  2757. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2758. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2759. ac_tool_warned=yes ;;
  2760. esac
  2761. CC=$ac_ct_CC
  2762. fi
  2763. else
  2764. CC="$ac_cv_prog_CC"
  2765. fi
  2766. if test -z "$CC"; then
  2767. if test -n "$ac_tool_prefix"; then
  2768. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2769. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2771. $as_echo_n "checking for $ac_word... " >&6; }
  2772. if ${ac_cv_prog_CC+:} false; then :
  2773. $as_echo_n "(cached) " >&6
  2774. else
  2775. if test -n "$CC"; then
  2776. ac_cv_prog_CC="$CC" # Let the user override the test.
  2777. else
  2778. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2779. for as_dir in $PATH
  2780. do
  2781. IFS=$as_save_IFS
  2782. test -z "$as_dir" && as_dir=.
  2783. for ac_exec_ext in '' $ac_executable_extensions; do
  2784. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2785. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2786. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2787. break 2
  2788. fi
  2789. done
  2790. done
  2791. IFS=$as_save_IFS
  2792. fi
  2793. fi
  2794. CC=$ac_cv_prog_CC
  2795. if test -n "$CC"; then
  2796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2797. $as_echo "$CC" >&6; }
  2798. else
  2799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2800. $as_echo "no" >&6; }
  2801. fi
  2802. fi
  2803. fi
  2804. if test -z "$CC"; then
  2805. # Extract the first word of "cc", so it can be a program name with args.
  2806. set dummy cc; ac_word=$2
  2807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2808. $as_echo_n "checking for $ac_word... " >&6; }
  2809. if ${ac_cv_prog_CC+:} false; then :
  2810. $as_echo_n "(cached) " >&6
  2811. else
  2812. if test -n "$CC"; then
  2813. ac_cv_prog_CC="$CC" # Let the user override the test.
  2814. else
  2815. ac_prog_rejected=no
  2816. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2817. for as_dir in $PATH
  2818. do
  2819. IFS=$as_save_IFS
  2820. test -z "$as_dir" && as_dir=.
  2821. for ac_exec_ext in '' $ac_executable_extensions; do
  2822. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2823. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2824. ac_prog_rejected=yes
  2825. continue
  2826. fi
  2827. ac_cv_prog_CC="cc"
  2828. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2829. break 2
  2830. fi
  2831. done
  2832. done
  2833. IFS=$as_save_IFS
  2834. if test $ac_prog_rejected = yes; then
  2835. # We found a bogon in the path, so make sure we never use it.
  2836. set dummy $ac_cv_prog_CC
  2837. shift
  2838. if test $# != 0; then
  2839. # We chose a different compiler from the bogus one.
  2840. # However, it has the same basename, so the bogon will be chosen
  2841. # first if we set CC to just the basename; use the full file name.
  2842. shift
  2843. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2844. fi
  2845. fi
  2846. fi
  2847. fi
  2848. CC=$ac_cv_prog_CC
  2849. if test -n "$CC"; then
  2850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2851. $as_echo "$CC" >&6; }
  2852. else
  2853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2854. $as_echo "no" >&6; }
  2855. fi
  2856. fi
  2857. if test -z "$CC"; then
  2858. if test -n "$ac_tool_prefix"; then
  2859. for ac_prog in cl.exe
  2860. do
  2861. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2862. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2864. $as_echo_n "checking for $ac_word... " >&6; }
  2865. if ${ac_cv_prog_CC+:} false; then :
  2866. $as_echo_n "(cached) " >&6
  2867. else
  2868. if test -n "$CC"; then
  2869. ac_cv_prog_CC="$CC" # Let the user override the test.
  2870. else
  2871. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2872. for as_dir in $PATH
  2873. do
  2874. IFS=$as_save_IFS
  2875. test -z "$as_dir" && as_dir=.
  2876. for ac_exec_ext in '' $ac_executable_extensions; do
  2877. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2878. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2879. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2880. break 2
  2881. fi
  2882. done
  2883. done
  2884. IFS=$as_save_IFS
  2885. fi
  2886. fi
  2887. CC=$ac_cv_prog_CC
  2888. if test -n "$CC"; then
  2889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2890. $as_echo "$CC" >&6; }
  2891. else
  2892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2893. $as_echo "no" >&6; }
  2894. fi
  2895. test -n "$CC" && break
  2896. done
  2897. fi
  2898. if test -z "$CC"; then
  2899. ac_ct_CC=$CC
  2900. for ac_prog in cl.exe
  2901. do
  2902. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2903. set dummy $ac_prog; ac_word=$2
  2904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2905. $as_echo_n "checking for $ac_word... " >&6; }
  2906. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2907. $as_echo_n "(cached) " >&6
  2908. else
  2909. if test -n "$ac_ct_CC"; then
  2910. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2911. else
  2912. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2913. for as_dir in $PATH
  2914. do
  2915. IFS=$as_save_IFS
  2916. test -z "$as_dir" && as_dir=.
  2917. for ac_exec_ext in '' $ac_executable_extensions; do
  2918. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2919. ac_cv_prog_ac_ct_CC="$ac_prog"
  2920. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2921. break 2
  2922. fi
  2923. done
  2924. done
  2925. IFS=$as_save_IFS
  2926. fi
  2927. fi
  2928. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2929. if test -n "$ac_ct_CC"; then
  2930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2931. $as_echo "$ac_ct_CC" >&6; }
  2932. else
  2933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2934. $as_echo "no" >&6; }
  2935. fi
  2936. test -n "$ac_ct_CC" && break
  2937. done
  2938. if test "x$ac_ct_CC" = x; then
  2939. CC=""
  2940. else
  2941. case $cross_compiling:$ac_tool_warned in
  2942. yes:)
  2943. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2944. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2945. ac_tool_warned=yes ;;
  2946. esac
  2947. CC=$ac_ct_CC
  2948. fi
  2949. fi
  2950. fi
  2951. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2952. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2953. as_fn_error $? "no acceptable C compiler found in \$PATH
  2954. See \`config.log' for more details" "$LINENO" 5; }
  2955. # Provide some information about the compiler.
  2956. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2957. set X $ac_compile
  2958. ac_compiler=$2
  2959. for ac_option in --version -v -V -qversion; do
  2960. { { ac_try="$ac_compiler $ac_option >&5"
  2961. case "(($ac_try" in
  2962. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2963. *) ac_try_echo=$ac_try;;
  2964. esac
  2965. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2966. $as_echo "$ac_try_echo"; } >&5
  2967. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2968. ac_status=$?
  2969. if test -s conftest.err; then
  2970. sed '10a\
  2971. ... rest of stderr output deleted ...
  2972. 10q' conftest.err >conftest.er1
  2973. cat conftest.er1 >&5
  2974. fi
  2975. rm -f conftest.er1 conftest.err
  2976. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2977. test $ac_status = 0; }
  2978. done
  2979. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2980. /* end confdefs.h. */
  2981. int
  2982. main ()
  2983. {
  2984. ;
  2985. return 0;
  2986. }
  2987. _ACEOF
  2988. ac_clean_files_save=$ac_clean_files
  2989. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2990. # Try to create an executable without -o first, disregard a.out.
  2991. # It will help us diagnose broken compilers, and finding out an intuition
  2992. # of exeext.
  2993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2994. $as_echo_n "checking whether the C compiler works... " >&6; }
  2995. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2996. # The possible output files:
  2997. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2998. ac_rmfiles=
  2999. for ac_file in $ac_files
  3000. do
  3001. case $ac_file in
  3002. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3003. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3004. esac
  3005. done
  3006. rm -f $ac_rmfiles
  3007. if { { ac_try="$ac_link_default"
  3008. case "(($ac_try" in
  3009. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3010. *) ac_try_echo=$ac_try;;
  3011. esac
  3012. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3013. $as_echo "$ac_try_echo"; } >&5
  3014. (eval "$ac_link_default") 2>&5
  3015. ac_status=$?
  3016. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3017. test $ac_status = 0; }; then :
  3018. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3019. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3020. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3021. # so that the user can short-circuit this test for compilers unknown to
  3022. # Autoconf.
  3023. for ac_file in $ac_files ''
  3024. do
  3025. test -f "$ac_file" || continue
  3026. case $ac_file in
  3027. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3028. ;;
  3029. [ab].out )
  3030. # We found the default executable, but exeext='' is most
  3031. # certainly right.
  3032. break;;
  3033. *.* )
  3034. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3035. then :; else
  3036. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3037. fi
  3038. # We set ac_cv_exeext here because the later test for it is not
  3039. # safe: cross compilers may not add the suffix if given an `-o'
  3040. # argument, so we may need to know it at that point already.
  3041. # Even if this section looks crufty: it has the advantage of
  3042. # actually working.
  3043. break;;
  3044. * )
  3045. break;;
  3046. esac
  3047. done
  3048. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3049. else
  3050. ac_file=''
  3051. fi
  3052. if test -z "$ac_file"; then :
  3053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3054. $as_echo "no" >&6; }
  3055. $as_echo "$as_me: failed program was:" >&5
  3056. sed 's/^/| /' conftest.$ac_ext >&5
  3057. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3058. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3059. as_fn_error 77 "C compiler cannot create executables
  3060. See \`config.log' for more details" "$LINENO" 5; }
  3061. else
  3062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3063. $as_echo "yes" >&6; }
  3064. fi
  3065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3066. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3068. $as_echo "$ac_file" >&6; }
  3069. ac_exeext=$ac_cv_exeext
  3070. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3071. ac_clean_files=$ac_clean_files_save
  3072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3073. $as_echo_n "checking for suffix of executables... " >&6; }
  3074. if { { ac_try="$ac_link"
  3075. case "(($ac_try" in
  3076. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3077. *) ac_try_echo=$ac_try;;
  3078. esac
  3079. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3080. $as_echo "$ac_try_echo"; } >&5
  3081. (eval "$ac_link") 2>&5
  3082. ac_status=$?
  3083. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3084. test $ac_status = 0; }; then :
  3085. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3086. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3087. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3088. # `rm'.
  3089. for ac_file in conftest.exe conftest conftest.*; do
  3090. test -f "$ac_file" || continue
  3091. case $ac_file in
  3092. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3093. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3094. break;;
  3095. * ) break;;
  3096. esac
  3097. done
  3098. else
  3099. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3100. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3101. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3102. See \`config.log' for more details" "$LINENO" 5; }
  3103. fi
  3104. rm -f conftest conftest$ac_cv_exeext
  3105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3106. $as_echo "$ac_cv_exeext" >&6; }
  3107. rm -f conftest.$ac_ext
  3108. EXEEXT=$ac_cv_exeext
  3109. ac_exeext=$EXEEXT
  3110. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3111. /* end confdefs.h. */
  3112. #include <stdio.h>
  3113. int
  3114. main ()
  3115. {
  3116. FILE *f = fopen ("conftest.out", "w");
  3117. return ferror (f) || fclose (f) != 0;
  3118. ;
  3119. return 0;
  3120. }
  3121. _ACEOF
  3122. ac_clean_files="$ac_clean_files conftest.out"
  3123. # Check that the compiler produces executables we can run. If not, either
  3124. # the compiler is broken, or we cross compile.
  3125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3126. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3127. if test "$cross_compiling" != yes; then
  3128. { { ac_try="$ac_link"
  3129. case "(($ac_try" in
  3130. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3131. *) ac_try_echo=$ac_try;;
  3132. esac
  3133. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3134. $as_echo "$ac_try_echo"; } >&5
  3135. (eval "$ac_link") 2>&5
  3136. ac_status=$?
  3137. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3138. test $ac_status = 0; }
  3139. if { ac_try='./conftest$ac_cv_exeext'
  3140. { { case "(($ac_try" in
  3141. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3142. *) ac_try_echo=$ac_try;;
  3143. esac
  3144. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3145. $as_echo "$ac_try_echo"; } >&5
  3146. (eval "$ac_try") 2>&5
  3147. ac_status=$?
  3148. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3149. test $ac_status = 0; }; }; then
  3150. cross_compiling=no
  3151. else
  3152. if test "$cross_compiling" = maybe; then
  3153. cross_compiling=yes
  3154. else
  3155. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3156. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3157. as_fn_error $? "cannot run C compiled programs.
  3158. If you meant to cross compile, use \`--host'.
  3159. See \`config.log' for more details" "$LINENO" 5; }
  3160. fi
  3161. fi
  3162. fi
  3163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3164. $as_echo "$cross_compiling" >&6; }
  3165. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3166. ac_clean_files=$ac_clean_files_save
  3167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3168. $as_echo_n "checking for suffix of object files... " >&6; }
  3169. if ${ac_cv_objext+:} false; then :
  3170. $as_echo_n "(cached) " >&6
  3171. else
  3172. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3173. /* end confdefs.h. */
  3174. int
  3175. main ()
  3176. {
  3177. ;
  3178. return 0;
  3179. }
  3180. _ACEOF
  3181. rm -f conftest.o conftest.obj
  3182. if { { ac_try="$ac_compile"
  3183. case "(($ac_try" in
  3184. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3185. *) ac_try_echo=$ac_try;;
  3186. esac
  3187. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3188. $as_echo "$ac_try_echo"; } >&5
  3189. (eval "$ac_compile") 2>&5
  3190. ac_status=$?
  3191. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3192. test $ac_status = 0; }; then :
  3193. for ac_file in conftest.o conftest.obj conftest.*; do
  3194. test -f "$ac_file" || continue;
  3195. case $ac_file in
  3196. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3197. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3198. break;;
  3199. esac
  3200. done
  3201. else
  3202. $as_echo "$as_me: failed program was:" >&5
  3203. sed 's/^/| /' conftest.$ac_ext >&5
  3204. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3205. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3206. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3207. See \`config.log' for more details" "$LINENO" 5; }
  3208. fi
  3209. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3210. fi
  3211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3212. $as_echo "$ac_cv_objext" >&6; }
  3213. OBJEXT=$ac_cv_objext
  3214. ac_objext=$OBJEXT
  3215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3216. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3217. if ${ac_cv_c_compiler_gnu+:} false; then :
  3218. $as_echo_n "(cached) " >&6
  3219. else
  3220. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3221. /* end confdefs.h. */
  3222. int
  3223. main ()
  3224. {
  3225. #ifndef __GNUC__
  3226. choke me
  3227. #endif
  3228. ;
  3229. return 0;
  3230. }
  3231. _ACEOF
  3232. if ac_fn_c_try_compile "$LINENO"; then :
  3233. ac_compiler_gnu=yes
  3234. else
  3235. ac_compiler_gnu=no
  3236. fi
  3237. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3238. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3239. fi
  3240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3241. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3242. if test $ac_compiler_gnu = yes; then
  3243. GCC=yes
  3244. else
  3245. GCC=
  3246. fi
  3247. ac_test_CFLAGS=${CFLAGS+set}
  3248. ac_save_CFLAGS=$CFLAGS
  3249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3250. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3251. if ${ac_cv_prog_cc_g+:} false; then :
  3252. $as_echo_n "(cached) " >&6
  3253. else
  3254. ac_save_c_werror_flag=$ac_c_werror_flag
  3255. ac_c_werror_flag=yes
  3256. ac_cv_prog_cc_g=no
  3257. CFLAGS="-g"
  3258. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3259. /* end confdefs.h. */
  3260. int
  3261. main ()
  3262. {
  3263. ;
  3264. return 0;
  3265. }
  3266. _ACEOF
  3267. if ac_fn_c_try_compile "$LINENO"; then :
  3268. ac_cv_prog_cc_g=yes
  3269. else
  3270. CFLAGS=""
  3271. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3272. /* end confdefs.h. */
  3273. int
  3274. main ()
  3275. {
  3276. ;
  3277. return 0;
  3278. }
  3279. _ACEOF
  3280. if ac_fn_c_try_compile "$LINENO"; then :
  3281. else
  3282. ac_c_werror_flag=$ac_save_c_werror_flag
  3283. CFLAGS="-g"
  3284. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3285. /* end confdefs.h. */
  3286. int
  3287. main ()
  3288. {
  3289. ;
  3290. return 0;
  3291. }
  3292. _ACEOF
  3293. if ac_fn_c_try_compile "$LINENO"; then :
  3294. ac_cv_prog_cc_g=yes
  3295. fi
  3296. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3297. fi
  3298. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3299. fi
  3300. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3301. ac_c_werror_flag=$ac_save_c_werror_flag
  3302. fi
  3303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3304. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3305. if test "$ac_test_CFLAGS" = set; then
  3306. CFLAGS=$ac_save_CFLAGS
  3307. elif test $ac_cv_prog_cc_g = yes; then
  3308. if test "$GCC" = yes; then
  3309. CFLAGS="-g -O2"
  3310. else
  3311. CFLAGS="-g"
  3312. fi
  3313. else
  3314. if test "$GCC" = yes; then
  3315. CFLAGS="-O2"
  3316. else
  3317. CFLAGS=
  3318. fi
  3319. fi
  3320. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3321. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3322. if ${ac_cv_prog_cc_c89+:} false; then :
  3323. $as_echo_n "(cached) " >&6
  3324. else
  3325. ac_cv_prog_cc_c89=no
  3326. ac_save_CC=$CC
  3327. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3328. /* end confdefs.h. */
  3329. #include <stdarg.h>
  3330. #include <stdio.h>
  3331. struct stat;
  3332. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3333. struct buf { int x; };
  3334. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3335. static char *e (p, i)
  3336. char **p;
  3337. int i;
  3338. {
  3339. return p[i];
  3340. }
  3341. static char *f (char * (*g) (char **, int), char **p, ...)
  3342. {
  3343. char *s;
  3344. va_list v;
  3345. va_start (v,p);
  3346. s = g (p, va_arg (v,int));
  3347. va_end (v);
  3348. return s;
  3349. }
  3350. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3351. function prototypes and stuff, but not '\xHH' hex character constants.
  3352. These don't provoke an error unfortunately, instead are silently treated
  3353. as 'x'. The following induces an error, until -std is added to get
  3354. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3355. array size at least. It's necessary to write '\x00'==0 to get something
  3356. that's true only with -std. */
  3357. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3358. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3359. inside strings and character constants. */
  3360. #define FOO(x) 'x'
  3361. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3362. int test (int i, double x);
  3363. struct s1 {int (*f) (int a);};
  3364. struct s2 {int (*f) (double a);};
  3365. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3366. int argc;
  3367. char **argv;
  3368. int
  3369. main ()
  3370. {
  3371. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3372. ;
  3373. return 0;
  3374. }
  3375. _ACEOF
  3376. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3377. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3378. do
  3379. CC="$ac_save_CC $ac_arg"
  3380. if ac_fn_c_try_compile "$LINENO"; then :
  3381. ac_cv_prog_cc_c89=$ac_arg
  3382. fi
  3383. rm -f core conftest.err conftest.$ac_objext
  3384. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3385. done
  3386. rm -f conftest.$ac_ext
  3387. CC=$ac_save_CC
  3388. fi
  3389. # AC_CACHE_VAL
  3390. case "x$ac_cv_prog_cc_c89" in
  3391. x)
  3392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3393. $as_echo "none needed" >&6; } ;;
  3394. xno)
  3395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3396. $as_echo "unsupported" >&6; } ;;
  3397. *)
  3398. CC="$CC $ac_cv_prog_cc_c89"
  3399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3400. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3401. esac
  3402. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3403. fi
  3404. ac_ext=c
  3405. ac_cpp='$CPP $CPPFLAGS'
  3406. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3407. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3408. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3409. ac_ext=c
  3410. ac_cpp='$CPP $CPPFLAGS'
  3411. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3412. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3413. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3415. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3416. if ${am_cv_prog_cc_c_o+:} false; then :
  3417. $as_echo_n "(cached) " >&6
  3418. else
  3419. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3420. /* end confdefs.h. */
  3421. int
  3422. main ()
  3423. {
  3424. ;
  3425. return 0;
  3426. }
  3427. _ACEOF
  3428. # Make sure it works both with $CC and with simple cc.
  3429. # Following AC_PROG_CC_C_O, we do the test twice because some
  3430. # compilers refuse to overwrite an existing .o file with -o,
  3431. # though they will create one.
  3432. am_cv_prog_cc_c_o=yes
  3433. for am_i in 1 2; do
  3434. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3435. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3436. ac_status=$?
  3437. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3438. (exit $ac_status); } \
  3439. && test -f conftest2.$ac_objext; then
  3440. : OK
  3441. else
  3442. am_cv_prog_cc_c_o=no
  3443. break
  3444. fi
  3445. done
  3446. rm -f core conftest*
  3447. unset am_i
  3448. fi
  3449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3450. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3451. if test "$am_cv_prog_cc_c_o" != yes; then
  3452. # Losing compiler, so override with the script.
  3453. # FIXME: It is wrong to rewrite CC.
  3454. # But if we don't then we get into trouble of one sort or another.
  3455. # A longer-term fix would be to have automake use am__CC in this case,
  3456. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3457. CC="$am_aux_dir/compile $CC"
  3458. fi
  3459. ac_ext=c
  3460. ac_cpp='$CPP $CPPFLAGS'
  3461. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3462. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3463. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3464. depcc="$CC" am_compiler_list=
  3465. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3466. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3467. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3468. $as_echo_n "(cached) " >&6
  3469. else
  3470. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3471. # We make a subdir and do the tests there. Otherwise we can end up
  3472. # making bogus files that we don't know about and never remove. For
  3473. # instance it was reported that on HP-UX the gcc test will end up
  3474. # making a dummy file named 'D' -- because '-MD' means "put the output
  3475. # in D".
  3476. rm -rf conftest.dir
  3477. mkdir conftest.dir
  3478. # Copy depcomp to subdir because otherwise we won't find it if we're
  3479. # using a relative directory.
  3480. cp "$am_depcomp" conftest.dir
  3481. cd conftest.dir
  3482. # We will build objects and dependencies in a subdirectory because
  3483. # it helps to detect inapplicable dependency modes. For instance
  3484. # both Tru64's cc and ICC support -MD to output dependencies as a
  3485. # side effect of compilation, but ICC will put the dependencies in
  3486. # the current directory while Tru64 will put them in the object
  3487. # directory.
  3488. mkdir sub
  3489. am_cv_CC_dependencies_compiler_type=none
  3490. if test "$am_compiler_list" = ""; then
  3491. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3492. fi
  3493. am__universal=false
  3494. case " $depcc " in #(
  3495. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3496. esac
  3497. for depmode in $am_compiler_list; do
  3498. # Setup a source with many dependencies, because some compilers
  3499. # like to wrap large dependency lists on column 80 (with \), and
  3500. # we should not choose a depcomp mode which is confused by this.
  3501. #
  3502. # We need to recreate these files for each test, as the compiler may
  3503. # overwrite some of them when testing with obscure command lines.
  3504. # This happens at least with the AIX C compiler.
  3505. : > sub/conftest.c
  3506. for i in 1 2 3 4 5 6; do
  3507. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3508. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3509. # Solaris 10 /bin/sh.
  3510. echo '/* dummy */' > sub/conftst$i.h
  3511. done
  3512. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3513. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3514. # mode. It turns out that the SunPro C++ compiler does not properly
  3515. # handle '-M -o', and we need to detect this. Also, some Intel
  3516. # versions had trouble with output in subdirs.
  3517. am__obj=sub/conftest.${OBJEXT-o}
  3518. am__minus_obj="-o $am__obj"
  3519. case $depmode in
  3520. gcc)
  3521. # This depmode causes a compiler race in universal mode.
  3522. test "$am__universal" = false || continue
  3523. ;;
  3524. nosideeffect)
  3525. # After this tag, mechanisms are not by side-effect, so they'll
  3526. # only be used when explicitly requested.
  3527. if test "x$enable_dependency_tracking" = xyes; then
  3528. continue
  3529. else
  3530. break
  3531. fi
  3532. ;;
  3533. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3534. # This compiler won't grok '-c -o', but also, the minuso test has
  3535. # not run yet. These depmodes are late enough in the game, and
  3536. # so weak that their functioning should not be impacted.
  3537. am__obj=conftest.${OBJEXT-o}
  3538. am__minus_obj=
  3539. ;;
  3540. none) break ;;
  3541. esac
  3542. if depmode=$depmode \
  3543. source=sub/conftest.c object=$am__obj \
  3544. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3545. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3546. >/dev/null 2>conftest.err &&
  3547. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3548. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3549. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3550. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3551. # icc doesn't choke on unknown options, it will just issue warnings
  3552. # or remarks (even with -Werror). So we grep stderr for any message
  3553. # that says an option was ignored or not supported.
  3554. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3555. # icc: Command line warning: ignoring option '-M'; no argument required
  3556. # The diagnosis changed in icc 8.0:
  3557. # icc: Command line remark: option '-MP' not supported
  3558. if (grep 'ignoring option' conftest.err ||
  3559. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3560. am_cv_CC_dependencies_compiler_type=$depmode
  3561. break
  3562. fi
  3563. fi
  3564. done
  3565. cd ..
  3566. rm -rf conftest.dir
  3567. else
  3568. am_cv_CC_dependencies_compiler_type=none
  3569. fi
  3570. fi
  3571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3572. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3573. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3574. if
  3575. test "x$enable_dependency_tracking" != xno \
  3576. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3577. am__fastdepCC_TRUE=
  3578. am__fastdepCC_FALSE='#'
  3579. else
  3580. am__fastdepCC_TRUE='#'
  3581. am__fastdepCC_FALSE=
  3582. fi
  3583. ac_ext=c
  3584. ac_cpp='$CPP $CPPFLAGS'
  3585. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3586. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3587. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3589. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3590. # On Suns, sometimes $CPP names a directory.
  3591. if test -n "$CPP" && test -d "$CPP"; then
  3592. CPP=
  3593. fi
  3594. if test -z "$CPP"; then
  3595. if ${ac_cv_prog_CPP+:} false; then :
  3596. $as_echo_n "(cached) " >&6
  3597. else
  3598. # Double quotes because CPP needs to be expanded
  3599. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3600. do
  3601. ac_preproc_ok=false
  3602. for ac_c_preproc_warn_flag in '' yes
  3603. do
  3604. # Use a header file that comes with gcc, so configuring glibc
  3605. # with a fresh cross-compiler works.
  3606. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3607. # <limits.h> exists even on freestanding compilers.
  3608. # On the NeXT, cc -E runs the code through the compiler's parser,
  3609. # not just through cpp. "Syntax error" is here to catch this case.
  3610. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3611. /* end confdefs.h. */
  3612. #ifdef __STDC__
  3613. # include <limits.h>
  3614. #else
  3615. # include <assert.h>
  3616. #endif
  3617. Syntax error
  3618. _ACEOF
  3619. if ac_fn_c_try_cpp "$LINENO"; then :
  3620. else
  3621. # Broken: fails on valid input.
  3622. continue
  3623. fi
  3624. rm -f conftest.err conftest.i conftest.$ac_ext
  3625. # OK, works on sane cases. Now check whether nonexistent headers
  3626. # can be detected and how.
  3627. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3628. /* end confdefs.h. */
  3629. #include <ac_nonexistent.h>
  3630. _ACEOF
  3631. if ac_fn_c_try_cpp "$LINENO"; then :
  3632. # Broken: success on invalid input.
  3633. continue
  3634. else
  3635. # Passes both tests.
  3636. ac_preproc_ok=:
  3637. break
  3638. fi
  3639. rm -f conftest.err conftest.i conftest.$ac_ext
  3640. done
  3641. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3642. rm -f conftest.i conftest.err conftest.$ac_ext
  3643. if $ac_preproc_ok; then :
  3644. break
  3645. fi
  3646. done
  3647. ac_cv_prog_CPP=$CPP
  3648. fi
  3649. CPP=$ac_cv_prog_CPP
  3650. else
  3651. ac_cv_prog_CPP=$CPP
  3652. fi
  3653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3654. $as_echo "$CPP" >&6; }
  3655. ac_preproc_ok=false
  3656. for ac_c_preproc_warn_flag in '' yes
  3657. do
  3658. # Use a header file that comes with gcc, so configuring glibc
  3659. # with a fresh cross-compiler works.
  3660. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3661. # <limits.h> exists even on freestanding compilers.
  3662. # On the NeXT, cc -E runs the code through the compiler's parser,
  3663. # not just through cpp. "Syntax error" is here to catch this case.
  3664. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3665. /* end confdefs.h. */
  3666. #ifdef __STDC__
  3667. # include <limits.h>
  3668. #else
  3669. # include <assert.h>
  3670. #endif
  3671. Syntax error
  3672. _ACEOF
  3673. if ac_fn_c_try_cpp "$LINENO"; then :
  3674. else
  3675. # Broken: fails on valid input.
  3676. continue
  3677. fi
  3678. rm -f conftest.err conftest.i conftest.$ac_ext
  3679. # OK, works on sane cases. Now check whether nonexistent headers
  3680. # can be detected and how.
  3681. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3682. /* end confdefs.h. */
  3683. #include <ac_nonexistent.h>
  3684. _ACEOF
  3685. if ac_fn_c_try_cpp "$LINENO"; then :
  3686. # Broken: success on invalid input.
  3687. continue
  3688. else
  3689. # Passes both tests.
  3690. ac_preproc_ok=:
  3691. break
  3692. fi
  3693. rm -f conftest.err conftest.i conftest.$ac_ext
  3694. done
  3695. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3696. rm -f conftest.i conftest.err conftest.$ac_ext
  3697. if $ac_preproc_ok; then :
  3698. else
  3699. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3700. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3701. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3702. See \`config.log' for more details" "$LINENO" 5; }
  3703. fi
  3704. ac_ext=c
  3705. ac_cpp='$CPP $CPPFLAGS'
  3706. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3707. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3708. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3710. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3711. if ${ac_cv_path_GREP+:} false; then :
  3712. $as_echo_n "(cached) " >&6
  3713. else
  3714. if test -z "$GREP"; then
  3715. ac_path_GREP_found=false
  3716. # Loop through the user's path and test for each of PROGNAME-LIST
  3717. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3718. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3719. do
  3720. IFS=$as_save_IFS
  3721. test -z "$as_dir" && as_dir=.
  3722. for ac_prog in grep ggrep; do
  3723. for ac_exec_ext in '' $ac_executable_extensions; do
  3724. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3725. as_fn_executable_p "$ac_path_GREP" || continue
  3726. # Check for GNU ac_path_GREP and select it if it is found.
  3727. # Check for GNU $ac_path_GREP
  3728. case `"$ac_path_GREP" --version 2>&1` in
  3729. *GNU*)
  3730. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3731. *)
  3732. ac_count=0
  3733. $as_echo_n 0123456789 >"conftest.in"
  3734. while :
  3735. do
  3736. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3737. mv "conftest.tmp" "conftest.in"
  3738. cp "conftest.in" "conftest.nl"
  3739. $as_echo 'GREP' >> "conftest.nl"
  3740. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3741. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3742. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3743. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3744. # Best one so far, save it but keep looking for a better one
  3745. ac_cv_path_GREP="$ac_path_GREP"
  3746. ac_path_GREP_max=$ac_count
  3747. fi
  3748. # 10*(2^10) chars as input seems more than enough
  3749. test $ac_count -gt 10 && break
  3750. done
  3751. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3752. esac
  3753. $ac_path_GREP_found && break 3
  3754. done
  3755. done
  3756. done
  3757. IFS=$as_save_IFS
  3758. if test -z "$ac_cv_path_GREP"; then
  3759. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3760. fi
  3761. else
  3762. ac_cv_path_GREP=$GREP
  3763. fi
  3764. fi
  3765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3766. $as_echo "$ac_cv_path_GREP" >&6; }
  3767. GREP="$ac_cv_path_GREP"
  3768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3769. $as_echo_n "checking for egrep... " >&6; }
  3770. if ${ac_cv_path_EGREP+:} false; then :
  3771. $as_echo_n "(cached) " >&6
  3772. else
  3773. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3774. then ac_cv_path_EGREP="$GREP -E"
  3775. else
  3776. if test -z "$EGREP"; then
  3777. ac_path_EGREP_found=false
  3778. # Loop through the user's path and test for each of PROGNAME-LIST
  3779. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3780. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3781. do
  3782. IFS=$as_save_IFS
  3783. test -z "$as_dir" && as_dir=.
  3784. for ac_prog in egrep; do
  3785. for ac_exec_ext in '' $ac_executable_extensions; do
  3786. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3787. as_fn_executable_p "$ac_path_EGREP" || continue
  3788. # Check for GNU ac_path_EGREP and select it if it is found.
  3789. # Check for GNU $ac_path_EGREP
  3790. case `"$ac_path_EGREP" --version 2>&1` in
  3791. *GNU*)
  3792. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3793. *)
  3794. ac_count=0
  3795. $as_echo_n 0123456789 >"conftest.in"
  3796. while :
  3797. do
  3798. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3799. mv "conftest.tmp" "conftest.in"
  3800. cp "conftest.in" "conftest.nl"
  3801. $as_echo 'EGREP' >> "conftest.nl"
  3802. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3803. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3804. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3805. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3806. # Best one so far, save it but keep looking for a better one
  3807. ac_cv_path_EGREP="$ac_path_EGREP"
  3808. ac_path_EGREP_max=$ac_count
  3809. fi
  3810. # 10*(2^10) chars as input seems more than enough
  3811. test $ac_count -gt 10 && break
  3812. done
  3813. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3814. esac
  3815. $ac_path_EGREP_found && break 3
  3816. done
  3817. done
  3818. done
  3819. IFS=$as_save_IFS
  3820. if test -z "$ac_cv_path_EGREP"; then
  3821. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3822. fi
  3823. else
  3824. ac_cv_path_EGREP=$EGREP
  3825. fi
  3826. fi
  3827. fi
  3828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3829. $as_echo "$ac_cv_path_EGREP" >&6; }
  3830. EGREP="$ac_cv_path_EGREP"
  3831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3832. $as_echo_n "checking for ANSI C header files... " >&6; }
  3833. if ${ac_cv_header_stdc+:} false; then :
  3834. $as_echo_n "(cached) " >&6
  3835. else
  3836. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3837. /* end confdefs.h. */
  3838. #include <stdlib.h>
  3839. #include <stdarg.h>
  3840. #include <string.h>
  3841. #include <float.h>
  3842. int
  3843. main ()
  3844. {
  3845. ;
  3846. return 0;
  3847. }
  3848. _ACEOF
  3849. if ac_fn_c_try_compile "$LINENO"; then :
  3850. ac_cv_header_stdc=yes
  3851. else
  3852. ac_cv_header_stdc=no
  3853. fi
  3854. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3855. if test $ac_cv_header_stdc = yes; then
  3856. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3857. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3858. /* end confdefs.h. */
  3859. #include <string.h>
  3860. _ACEOF
  3861. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3862. $EGREP "memchr" >/dev/null 2>&1; then :
  3863. else
  3864. ac_cv_header_stdc=no
  3865. fi
  3866. rm -f conftest*
  3867. fi
  3868. if test $ac_cv_header_stdc = yes; then
  3869. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3870. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3871. /* end confdefs.h. */
  3872. #include <stdlib.h>
  3873. _ACEOF
  3874. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3875. $EGREP "free" >/dev/null 2>&1; then :
  3876. else
  3877. ac_cv_header_stdc=no
  3878. fi
  3879. rm -f conftest*
  3880. fi
  3881. if test $ac_cv_header_stdc = yes; then
  3882. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3883. if test "$cross_compiling" = yes; then :
  3884. :
  3885. else
  3886. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3887. /* end confdefs.h. */
  3888. #include <ctype.h>
  3889. #include <stdlib.h>
  3890. #if ((' ' & 0x0FF) == 0x020)
  3891. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3892. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3893. #else
  3894. # define ISLOWER(c) \
  3895. (('a' <= (c) && (c) <= 'i') \
  3896. || ('j' <= (c) && (c) <= 'r') \
  3897. || ('s' <= (c) && (c) <= 'z'))
  3898. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3899. #endif
  3900. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3901. int
  3902. main ()
  3903. {
  3904. int i;
  3905. for (i = 0; i < 256; i++)
  3906. if (XOR (islower (i), ISLOWER (i))
  3907. || toupper (i) != TOUPPER (i))
  3908. return 2;
  3909. return 0;
  3910. }
  3911. _ACEOF
  3912. if ac_fn_c_try_run "$LINENO"; then :
  3913. else
  3914. ac_cv_header_stdc=no
  3915. fi
  3916. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3917. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3918. fi
  3919. fi
  3920. fi
  3921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3922. $as_echo "$ac_cv_header_stdc" >&6; }
  3923. if test $ac_cv_header_stdc = yes; then
  3924. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  3925. fi
  3926. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3927. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3928. inttypes.h stdint.h unistd.h
  3929. do :
  3930. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3931. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3932. "
  3933. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3934. cat >>confdefs.h <<_ACEOF
  3935. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3936. _ACEOF
  3937. fi
  3938. done
  3939. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  3940. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  3941. MINIX=yes
  3942. else
  3943. MINIX=
  3944. fi
  3945. if test "$MINIX" = yes; then
  3946. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  3947. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  3948. $as_echo "#define _MINIX 1" >>confdefs.h
  3949. fi
  3950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  3951. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  3952. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  3953. $as_echo_n "(cached) " >&6
  3954. else
  3955. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3956. /* end confdefs.h. */
  3957. # define __EXTENSIONS__ 1
  3958. $ac_includes_default
  3959. int
  3960. main ()
  3961. {
  3962. ;
  3963. return 0;
  3964. }
  3965. _ACEOF
  3966. if ac_fn_c_try_compile "$LINENO"; then :
  3967. ac_cv_safe_to_define___extensions__=yes
  3968. else
  3969. ac_cv_safe_to_define___extensions__=no
  3970. fi
  3971. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3972. fi
  3973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  3974. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  3975. test $ac_cv_safe_to_define___extensions__ = yes &&
  3976. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  3977. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  3978. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  3979. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  3980. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  3981. ac_ext=c
  3982. ac_cpp='$CPP $CPPFLAGS'
  3983. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3984. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3985. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3986. if test -n "$ac_tool_prefix"; then
  3987. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3988. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3990. $as_echo_n "checking for $ac_word... " >&6; }
  3991. if ${ac_cv_prog_CC+:} false; then :
  3992. $as_echo_n "(cached) " >&6
  3993. else
  3994. if test -n "$CC"; then
  3995. ac_cv_prog_CC="$CC" # Let the user override the test.
  3996. else
  3997. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3998. for as_dir in $PATH
  3999. do
  4000. IFS=$as_save_IFS
  4001. test -z "$as_dir" && as_dir=.
  4002. for ac_exec_ext in '' $ac_executable_extensions; do
  4003. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4004. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4005. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4006. break 2
  4007. fi
  4008. done
  4009. done
  4010. IFS=$as_save_IFS
  4011. fi
  4012. fi
  4013. CC=$ac_cv_prog_CC
  4014. if test -n "$CC"; then
  4015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4016. $as_echo "$CC" >&6; }
  4017. else
  4018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4019. $as_echo "no" >&6; }
  4020. fi
  4021. fi
  4022. if test -z "$ac_cv_prog_CC"; then
  4023. ac_ct_CC=$CC
  4024. # Extract the first word of "gcc", so it can be a program name with args.
  4025. set dummy gcc; ac_word=$2
  4026. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4027. $as_echo_n "checking for $ac_word... " >&6; }
  4028. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  4029. $as_echo_n "(cached) " >&6
  4030. else
  4031. if test -n "$ac_ct_CC"; then
  4032. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4033. else
  4034. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4035. for as_dir in $PATH
  4036. do
  4037. IFS=$as_save_IFS
  4038. test -z "$as_dir" && as_dir=.
  4039. for ac_exec_ext in '' $ac_executable_extensions; do
  4040. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4041. ac_cv_prog_ac_ct_CC="gcc"
  4042. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4043. break 2
  4044. fi
  4045. done
  4046. done
  4047. IFS=$as_save_IFS
  4048. fi
  4049. fi
  4050. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4051. if test -n "$ac_ct_CC"; then
  4052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4053. $as_echo "$ac_ct_CC" >&6; }
  4054. else
  4055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4056. $as_echo "no" >&6; }
  4057. fi
  4058. if test "x$ac_ct_CC" = x; then
  4059. CC=""
  4060. else
  4061. case $cross_compiling:$ac_tool_warned in
  4062. yes:)
  4063. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4064. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4065. ac_tool_warned=yes ;;
  4066. esac
  4067. CC=$ac_ct_CC
  4068. fi
  4069. else
  4070. CC="$ac_cv_prog_CC"
  4071. fi
  4072. if test -z "$CC"; then
  4073. if test -n "$ac_tool_prefix"; then
  4074. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4075. set dummy ${ac_tool_prefix}cc; ac_word=$2
  4076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4077. $as_echo_n "checking for $ac_word... " >&6; }
  4078. if ${ac_cv_prog_CC+:} false; then :
  4079. $as_echo_n "(cached) " >&6
  4080. else
  4081. if test -n "$CC"; then
  4082. ac_cv_prog_CC="$CC" # Let the user override the test.
  4083. else
  4084. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4085. for as_dir in $PATH
  4086. do
  4087. IFS=$as_save_IFS
  4088. test -z "$as_dir" && as_dir=.
  4089. for ac_exec_ext in '' $ac_executable_extensions; do
  4090. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4091. ac_cv_prog_CC="${ac_tool_prefix}cc"
  4092. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4093. break 2
  4094. fi
  4095. done
  4096. done
  4097. IFS=$as_save_IFS
  4098. fi
  4099. fi
  4100. CC=$ac_cv_prog_CC
  4101. if test -n "$CC"; then
  4102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4103. $as_echo "$CC" >&6; }
  4104. else
  4105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4106. $as_echo "no" >&6; }
  4107. fi
  4108. fi
  4109. fi
  4110. if test -z "$CC"; then
  4111. # Extract the first word of "cc", so it can be a program name with args.
  4112. set dummy cc; ac_word=$2
  4113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4114. $as_echo_n "checking for $ac_word... " >&6; }
  4115. if ${ac_cv_prog_CC+:} false; then :
  4116. $as_echo_n "(cached) " >&6
  4117. else
  4118. if test -n "$CC"; then
  4119. ac_cv_prog_CC="$CC" # Let the user override the test.
  4120. else
  4121. ac_prog_rejected=no
  4122. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4123. for as_dir in $PATH
  4124. do
  4125. IFS=$as_save_IFS
  4126. test -z "$as_dir" && as_dir=.
  4127. for ac_exec_ext in '' $ac_executable_extensions; do
  4128. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4129. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4130. ac_prog_rejected=yes
  4131. continue
  4132. fi
  4133. ac_cv_prog_CC="cc"
  4134. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4135. break 2
  4136. fi
  4137. done
  4138. done
  4139. IFS=$as_save_IFS
  4140. if test $ac_prog_rejected = yes; then
  4141. # We found a bogon in the path, so make sure we never use it.
  4142. set dummy $ac_cv_prog_CC
  4143. shift
  4144. if test $# != 0; then
  4145. # We chose a different compiler from the bogus one.
  4146. # However, it has the same basename, so the bogon will be chosen
  4147. # first if we set CC to just the basename; use the full file name.
  4148. shift
  4149. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4150. fi
  4151. fi
  4152. fi
  4153. fi
  4154. CC=$ac_cv_prog_CC
  4155. if test -n "$CC"; then
  4156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4157. $as_echo "$CC" >&6; }
  4158. else
  4159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4160. $as_echo "no" >&6; }
  4161. fi
  4162. fi
  4163. if test -z "$CC"; then
  4164. if test -n "$ac_tool_prefix"; then
  4165. for ac_prog in cl.exe
  4166. do
  4167. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4168. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4170. $as_echo_n "checking for $ac_word... " >&6; }
  4171. if ${ac_cv_prog_CC+:} false; then :
  4172. $as_echo_n "(cached) " >&6
  4173. else
  4174. if test -n "$CC"; then
  4175. ac_cv_prog_CC="$CC" # Let the user override the test.
  4176. else
  4177. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4178. for as_dir in $PATH
  4179. do
  4180. IFS=$as_save_IFS
  4181. test -z "$as_dir" && as_dir=.
  4182. for ac_exec_ext in '' $ac_executable_extensions; do
  4183. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4184. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4185. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4186. break 2
  4187. fi
  4188. done
  4189. done
  4190. IFS=$as_save_IFS
  4191. fi
  4192. fi
  4193. CC=$ac_cv_prog_CC
  4194. if test -n "$CC"; then
  4195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4196. $as_echo "$CC" >&6; }
  4197. else
  4198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4199. $as_echo "no" >&6; }
  4200. fi
  4201. test -n "$CC" && break
  4202. done
  4203. fi
  4204. if test -z "$CC"; then
  4205. ac_ct_CC=$CC
  4206. for ac_prog in cl.exe
  4207. do
  4208. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4209. set dummy $ac_prog; ac_word=$2
  4210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4211. $as_echo_n "checking for $ac_word... " >&6; }
  4212. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  4213. $as_echo_n "(cached) " >&6
  4214. else
  4215. if test -n "$ac_ct_CC"; then
  4216. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4217. else
  4218. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4219. for as_dir in $PATH
  4220. do
  4221. IFS=$as_save_IFS
  4222. test -z "$as_dir" && as_dir=.
  4223. for ac_exec_ext in '' $ac_executable_extensions; do
  4224. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4225. ac_cv_prog_ac_ct_CC="$ac_prog"
  4226. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4227. break 2
  4228. fi
  4229. done
  4230. done
  4231. IFS=$as_save_IFS
  4232. fi
  4233. fi
  4234. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4235. if test -n "$ac_ct_CC"; then
  4236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4237. $as_echo "$ac_ct_CC" >&6; }
  4238. else
  4239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4240. $as_echo "no" >&6; }
  4241. fi
  4242. test -n "$ac_ct_CC" && break
  4243. done
  4244. if test "x$ac_ct_CC" = x; then
  4245. CC=""
  4246. else
  4247. case $cross_compiling:$ac_tool_warned in
  4248. yes:)
  4249. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4250. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4251. ac_tool_warned=yes ;;
  4252. esac
  4253. CC=$ac_ct_CC
  4254. fi
  4255. fi
  4256. fi
  4257. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4258. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4259. as_fn_error $? "no acceptable C compiler found in \$PATH
  4260. See \`config.log' for more details" "$LINENO" 5; }
  4261. # Provide some information about the compiler.
  4262. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4263. set X $ac_compile
  4264. ac_compiler=$2
  4265. for ac_option in --version -v -V -qversion; do
  4266. { { ac_try="$ac_compiler $ac_option >&5"
  4267. case "(($ac_try" in
  4268. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4269. *) ac_try_echo=$ac_try;;
  4270. esac
  4271. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4272. $as_echo "$ac_try_echo"; } >&5
  4273. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4274. ac_status=$?
  4275. if test -s conftest.err; then
  4276. sed '10a\
  4277. ... rest of stderr output deleted ...
  4278. 10q' conftest.err >conftest.er1
  4279. cat conftest.er1 >&5
  4280. fi
  4281. rm -f conftest.er1 conftest.err
  4282. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4283. test $ac_status = 0; }
  4284. done
  4285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4286. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4287. if ${ac_cv_c_compiler_gnu+:} false; then :
  4288. $as_echo_n "(cached) " >&6
  4289. else
  4290. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4291. /* end confdefs.h. */
  4292. int
  4293. main ()
  4294. {
  4295. #ifndef __GNUC__
  4296. choke me
  4297. #endif
  4298. ;
  4299. return 0;
  4300. }
  4301. _ACEOF
  4302. if ac_fn_c_try_compile "$LINENO"; then :
  4303. ac_compiler_gnu=yes
  4304. else
  4305. ac_compiler_gnu=no
  4306. fi
  4307. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4308. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4309. fi
  4310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4311. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4312. if test $ac_compiler_gnu = yes; then
  4313. GCC=yes
  4314. else
  4315. GCC=
  4316. fi
  4317. ac_test_CFLAGS=${CFLAGS+set}
  4318. ac_save_CFLAGS=$CFLAGS
  4319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4320. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4321. if ${ac_cv_prog_cc_g+:} false; then :
  4322. $as_echo_n "(cached) " >&6
  4323. else
  4324. ac_save_c_werror_flag=$ac_c_werror_flag
  4325. ac_c_werror_flag=yes
  4326. ac_cv_prog_cc_g=no
  4327. CFLAGS="-g"
  4328. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4329. /* end confdefs.h. */
  4330. int
  4331. main ()
  4332. {
  4333. ;
  4334. return 0;
  4335. }
  4336. _ACEOF
  4337. if ac_fn_c_try_compile "$LINENO"; then :
  4338. ac_cv_prog_cc_g=yes
  4339. else
  4340. CFLAGS=""
  4341. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4342. /* end confdefs.h. */
  4343. int
  4344. main ()
  4345. {
  4346. ;
  4347. return 0;
  4348. }
  4349. _ACEOF
  4350. if ac_fn_c_try_compile "$LINENO"; then :
  4351. else
  4352. ac_c_werror_flag=$ac_save_c_werror_flag
  4353. CFLAGS="-g"
  4354. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4355. /* end confdefs.h. */
  4356. int
  4357. main ()
  4358. {
  4359. ;
  4360. return 0;
  4361. }
  4362. _ACEOF
  4363. if ac_fn_c_try_compile "$LINENO"; then :
  4364. ac_cv_prog_cc_g=yes
  4365. fi
  4366. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4367. fi
  4368. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4369. fi
  4370. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4371. ac_c_werror_flag=$ac_save_c_werror_flag
  4372. fi
  4373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4374. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4375. if test "$ac_test_CFLAGS" = set; then
  4376. CFLAGS=$ac_save_CFLAGS
  4377. elif test $ac_cv_prog_cc_g = yes; then
  4378. if test "$GCC" = yes; then
  4379. CFLAGS="-g -O2"
  4380. else
  4381. CFLAGS="-g"
  4382. fi
  4383. else
  4384. if test "$GCC" = yes; then
  4385. CFLAGS="-O2"
  4386. else
  4387. CFLAGS=
  4388. fi
  4389. fi
  4390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4391. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4392. if ${ac_cv_prog_cc_c89+:} false; then :
  4393. $as_echo_n "(cached) " >&6
  4394. else
  4395. ac_cv_prog_cc_c89=no
  4396. ac_save_CC=$CC
  4397. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4398. /* end confdefs.h. */
  4399. #include <stdarg.h>
  4400. #include <stdio.h>
  4401. struct stat;
  4402. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4403. struct buf { int x; };
  4404. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4405. static char *e (p, i)
  4406. char **p;
  4407. int i;
  4408. {
  4409. return p[i];
  4410. }
  4411. static char *f (char * (*g) (char **, int), char **p, ...)
  4412. {
  4413. char *s;
  4414. va_list v;
  4415. va_start (v,p);
  4416. s = g (p, va_arg (v,int));
  4417. va_end (v);
  4418. return s;
  4419. }
  4420. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4421. function prototypes and stuff, but not '\xHH' hex character constants.
  4422. These don't provoke an error unfortunately, instead are silently treated
  4423. as 'x'. The following induces an error, until -std is added to get
  4424. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4425. array size at least. It's necessary to write '\x00'==0 to get something
  4426. that's true only with -std. */
  4427. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4428. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4429. inside strings and character constants. */
  4430. #define FOO(x) 'x'
  4431. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4432. int test (int i, double x);
  4433. struct s1 {int (*f) (int a);};
  4434. struct s2 {int (*f) (double a);};
  4435. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4436. int argc;
  4437. char **argv;
  4438. int
  4439. main ()
  4440. {
  4441. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4442. ;
  4443. return 0;
  4444. }
  4445. _ACEOF
  4446. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4447. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4448. do
  4449. CC="$ac_save_CC $ac_arg"
  4450. if ac_fn_c_try_compile "$LINENO"; then :
  4451. ac_cv_prog_cc_c89=$ac_arg
  4452. fi
  4453. rm -f core conftest.err conftest.$ac_objext
  4454. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4455. done
  4456. rm -f conftest.$ac_ext
  4457. CC=$ac_save_CC
  4458. fi
  4459. # AC_CACHE_VAL
  4460. case "x$ac_cv_prog_cc_c89" in
  4461. x)
  4462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4463. $as_echo "none needed" >&6; } ;;
  4464. xno)
  4465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4466. $as_echo "unsupported" >&6; } ;;
  4467. *)
  4468. CC="$CC $ac_cv_prog_cc_c89"
  4469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4470. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4471. esac
  4472. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4473. fi
  4474. ac_ext=c
  4475. ac_cpp='$CPP $CPPFLAGS'
  4476. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4477. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4478. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4479. ac_ext=c
  4480. ac_cpp='$CPP $CPPFLAGS'
  4481. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4482. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4483. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  4485. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  4486. if ${am_cv_prog_cc_c_o+:} false; then :
  4487. $as_echo_n "(cached) " >&6
  4488. else
  4489. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4490. /* end confdefs.h. */
  4491. int
  4492. main ()
  4493. {
  4494. ;
  4495. return 0;
  4496. }
  4497. _ACEOF
  4498. # Make sure it works both with $CC and with simple cc.
  4499. # Following AC_PROG_CC_C_O, we do the test twice because some
  4500. # compilers refuse to overwrite an existing .o file with -o,
  4501. # though they will create one.
  4502. am_cv_prog_cc_c_o=yes
  4503. for am_i in 1 2; do
  4504. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  4505. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  4506. ac_status=$?
  4507. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4508. (exit $ac_status); } \
  4509. && test -f conftest2.$ac_objext; then
  4510. : OK
  4511. else
  4512. am_cv_prog_cc_c_o=no
  4513. break
  4514. fi
  4515. done
  4516. rm -f core conftest*
  4517. unset am_i
  4518. fi
  4519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  4520. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  4521. if test "$am_cv_prog_cc_c_o" != yes; then
  4522. # Losing compiler, so override with the script.
  4523. # FIXME: It is wrong to rewrite CC.
  4524. # But if we don't then we get into trouble of one sort or another.
  4525. # A longer-term fix would be to have automake use am__CC in this case,
  4526. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4527. CC="$am_aux_dir/compile $CC"
  4528. fi
  4529. ac_ext=c
  4530. ac_cpp='$CPP $CPPFLAGS'
  4531. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4532. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4533. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4534. depcc="$CC" am_compiler_list=
  4535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4536. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4537. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  4538. $as_echo_n "(cached) " >&6
  4539. else
  4540. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4541. # We make a subdir and do the tests there. Otherwise we can end up
  4542. # making bogus files that we don't know about and never remove. For
  4543. # instance it was reported that on HP-UX the gcc test will end up
  4544. # making a dummy file named 'D' -- because '-MD' means "put the output
  4545. # in D".
  4546. rm -rf conftest.dir
  4547. mkdir conftest.dir
  4548. # Copy depcomp to subdir because otherwise we won't find it if we're
  4549. # using a relative directory.
  4550. cp "$am_depcomp" conftest.dir
  4551. cd conftest.dir
  4552. # We will build objects and dependencies in a subdirectory because
  4553. # it helps to detect inapplicable dependency modes. For instance
  4554. # both Tru64's cc and ICC support -MD to output dependencies as a
  4555. # side effect of compilation, but ICC will put the dependencies in
  4556. # the current directory while Tru64 will put them in the object
  4557. # directory.
  4558. mkdir sub
  4559. am_cv_CC_dependencies_compiler_type=none
  4560. if test "$am_compiler_list" = ""; then
  4561. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4562. fi
  4563. am__universal=false
  4564. case " $depcc " in #(
  4565. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4566. esac
  4567. for depmode in $am_compiler_list; do
  4568. # Setup a source with many dependencies, because some compilers
  4569. # like to wrap large dependency lists on column 80 (with \), and
  4570. # we should not choose a depcomp mode which is confused by this.
  4571. #
  4572. # We need to recreate these files for each test, as the compiler may
  4573. # overwrite some of them when testing with obscure command lines.
  4574. # This happens at least with the AIX C compiler.
  4575. : > sub/conftest.c
  4576. for i in 1 2 3 4 5 6; do
  4577. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4578. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4579. # Solaris 10 /bin/sh.
  4580. echo '/* dummy */' > sub/conftst$i.h
  4581. done
  4582. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4583. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4584. # mode. It turns out that the SunPro C++ compiler does not properly
  4585. # handle '-M -o', and we need to detect this. Also, some Intel
  4586. # versions had trouble with output in subdirs.
  4587. am__obj=sub/conftest.${OBJEXT-o}
  4588. am__minus_obj="-o $am__obj"
  4589. case $depmode in
  4590. gcc)
  4591. # This depmode causes a compiler race in universal mode.
  4592. test "$am__universal" = false || continue
  4593. ;;
  4594. nosideeffect)
  4595. # After this tag, mechanisms are not by side-effect, so they'll
  4596. # only be used when explicitly requested.
  4597. if test "x$enable_dependency_tracking" = xyes; then
  4598. continue
  4599. else
  4600. break
  4601. fi
  4602. ;;
  4603. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4604. # This compiler won't grok '-c -o', but also, the minuso test has
  4605. # not run yet. These depmodes are late enough in the game, and
  4606. # so weak that their functioning should not be impacted.
  4607. am__obj=conftest.${OBJEXT-o}
  4608. am__minus_obj=
  4609. ;;
  4610. none) break ;;
  4611. esac
  4612. if depmode=$depmode \
  4613. source=sub/conftest.c object=$am__obj \
  4614. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4615. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4616. >/dev/null 2>conftest.err &&
  4617. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4618. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4619. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4620. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4621. # icc doesn't choke on unknown options, it will just issue warnings
  4622. # or remarks (even with -Werror). So we grep stderr for any message
  4623. # that says an option was ignored or not supported.
  4624. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4625. # icc: Command line warning: ignoring option '-M'; no argument required
  4626. # The diagnosis changed in icc 8.0:
  4627. # icc: Command line remark: option '-MP' not supported
  4628. if (grep 'ignoring option' conftest.err ||
  4629. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4630. am_cv_CC_dependencies_compiler_type=$depmode
  4631. break
  4632. fi
  4633. fi
  4634. done
  4635. cd ..
  4636. rm -rf conftest.dir
  4637. else
  4638. am_cv_CC_dependencies_compiler_type=none
  4639. fi
  4640. fi
  4641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4642. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4643. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4644. if
  4645. test "x$enable_dependency_tracking" != xno \
  4646. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4647. am__fastdepCC_TRUE=
  4648. am__fastdepCC_FALSE='#'
  4649. else
  4650. am__fastdepCC_TRUE='#'
  4651. am__fastdepCC_FALSE=
  4652. fi
  4653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
  4654. $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  4655. if ${ac_cv_prog_cc_c99+:} false; then :
  4656. $as_echo_n "(cached) " >&6
  4657. else
  4658. ac_cv_prog_cc_c99=no
  4659. ac_save_CC=$CC
  4660. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4661. /* end confdefs.h. */
  4662. #include <stdarg.h>
  4663. #include <stdbool.h>
  4664. #include <stdlib.h>
  4665. #include <wchar.h>
  4666. #include <stdio.h>
  4667. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  4668. #define debug(...) fprintf (stderr, __VA_ARGS__)
  4669. #define showlist(...) puts (#__VA_ARGS__)
  4670. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  4671. static void
  4672. test_varargs_macros (void)
  4673. {
  4674. int x = 1234;
  4675. int y = 5678;
  4676. debug ("Flag");
  4677. debug ("X = %d\n", x);
  4678. showlist (The first, second, and third items.);
  4679. report (x>y, "x is %d but y is %d", x, y);
  4680. }
  4681. // Check long long types.
  4682. #define BIG64 18446744073709551615ull
  4683. #define BIG32 4294967295ul
  4684. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  4685. #if !BIG_OK
  4686. your preprocessor is broken;
  4687. #endif
  4688. #if BIG_OK
  4689. #else
  4690. your preprocessor is broken;
  4691. #endif
  4692. static long long int bignum = -9223372036854775807LL;
  4693. static unsigned long long int ubignum = BIG64;
  4694. struct incomplete_array
  4695. {
  4696. int datasize;
  4697. double data[];
  4698. };
  4699. struct named_init {
  4700. int number;
  4701. const wchar_t *name;
  4702. double average;
  4703. };
  4704. typedef const char *ccp;
  4705. static inline int
  4706. test_restrict (ccp restrict text)
  4707. {
  4708. // See if C++-style comments work.
  4709. // Iterate through items via the restricted pointer.
  4710. // Also check for declarations in for loops.
  4711. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  4712. continue;
  4713. return 0;
  4714. }
  4715. // Check varargs and va_copy.
  4716. static void
  4717. test_varargs (const char *format, ...)
  4718. {
  4719. va_list args;
  4720. va_start (args, format);
  4721. va_list args_copy;
  4722. va_copy (args_copy, args);
  4723. const char *str;
  4724. int number;
  4725. float fnumber;
  4726. while (*format)
  4727. {
  4728. switch (*format++)
  4729. {
  4730. case 's': // string
  4731. str = va_arg (args_copy, const char *);
  4732. break;
  4733. case 'd': // int
  4734. number = va_arg (args_copy, int);
  4735. break;
  4736. case 'f': // float
  4737. fnumber = va_arg (args_copy, double);
  4738. break;
  4739. default:
  4740. break;
  4741. }
  4742. }
  4743. va_end (args_copy);
  4744. va_end (args);
  4745. }
  4746. int
  4747. main ()
  4748. {
  4749. // Check bool.
  4750. _Bool success = false;
  4751. // Check restrict.
  4752. if (test_restrict ("String literal") == 0)
  4753. success = true;
  4754. char *restrict newvar = "Another string";
  4755. // Check varargs.
  4756. test_varargs ("s, d' f .", "string", 65, 34.234);
  4757. test_varargs_macros ();
  4758. // Check flexible array members.
  4759. struct incomplete_array *ia =
  4760. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  4761. ia->datasize = 10;
  4762. for (int i = 0; i < ia->datasize; ++i)
  4763. ia->data[i] = i * 1.234;
  4764. // Check named initializers.
  4765. struct named_init ni = {
  4766. .number = 34,
  4767. .name = L"Test wide string",
  4768. .average = 543.34343,
  4769. };
  4770. ni.number = 58;
  4771. int dynamic_array[ni.number];
  4772. dynamic_array[ni.number - 1] = 543;
  4773. // work around unused variable warnings
  4774. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  4775. || dynamic_array[ni.number - 1] != 543);
  4776. ;
  4777. return 0;
  4778. }
  4779. _ACEOF
  4780. for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
  4781. do
  4782. CC="$ac_save_CC $ac_arg"
  4783. if ac_fn_c_try_compile "$LINENO"; then :
  4784. ac_cv_prog_cc_c99=$ac_arg
  4785. fi
  4786. rm -f core conftest.err conftest.$ac_objext
  4787. test "x$ac_cv_prog_cc_c99" != "xno" && break
  4788. done
  4789. rm -f conftest.$ac_ext
  4790. CC=$ac_save_CC
  4791. fi
  4792. # AC_CACHE_VAL
  4793. case "x$ac_cv_prog_cc_c99" in
  4794. x)
  4795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4796. $as_echo "none needed" >&6; } ;;
  4797. xno)
  4798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4799. $as_echo "unsupported" >&6; } ;;
  4800. *)
  4801. CC="$CC $ac_cv_prog_cc_c99"
  4802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  4803. $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  4804. esac
  4805. if test "x$ac_cv_prog_cc_c99" != xno; then :
  4806. fi
  4807. ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
  4808. if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
  4809. cat >>confdefs.h <<_ACEOF
  4810. #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
  4811. _ACEOF
  4812. $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
  4813. fi
  4814. ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
  4815. if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
  4816. cat >>confdefs.h <<_ACEOF
  4817. #define HAVE_STRUCT_STAT_ST_BLOCKS 1
  4818. _ACEOF
  4819. $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
  4820. else
  4821. case " $LIBOBJS " in
  4822. *" fileblocks.$ac_objext "* ) ;;
  4823. *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
  4824. ;;
  4825. esac
  4826. fi
  4827. # Make sure we can run config.sub.
  4828. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  4829. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  4830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  4831. $as_echo_n "checking build system type... " >&6; }
  4832. if ${ac_cv_build+:} false; then :
  4833. $as_echo_n "(cached) " >&6
  4834. else
  4835. ac_build_alias=$build_alias
  4836. test "x$ac_build_alias" = x &&
  4837. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  4838. test "x$ac_build_alias" = x &&
  4839. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  4840. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  4841. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  4842. fi
  4843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  4844. $as_echo "$ac_cv_build" >&6; }
  4845. case $ac_cv_build in
  4846. *-*-*) ;;
  4847. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  4848. esac
  4849. build=$ac_cv_build
  4850. ac_save_IFS=$IFS; IFS='-'
  4851. set x $ac_cv_build
  4852. shift
  4853. build_cpu=$1
  4854. build_vendor=$2
  4855. shift; shift
  4856. # Remember, the first character of IFS is used to create $*,
  4857. # except with old shells:
  4858. build_os=$*
  4859. IFS=$ac_save_IFS
  4860. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  4861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  4862. $as_echo_n "checking host system type... " >&6; }
  4863. if ${ac_cv_host+:} false; then :
  4864. $as_echo_n "(cached) " >&6
  4865. else
  4866. if test "x$host_alias" = x; then
  4867. ac_cv_host=$ac_cv_build
  4868. else
  4869. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  4870. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  4871. fi
  4872. fi
  4873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  4874. $as_echo "$ac_cv_host" >&6; }
  4875. case $ac_cv_host in
  4876. *-*-*) ;;
  4877. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  4878. esac
  4879. host=$ac_cv_host
  4880. ac_save_IFS=$IFS; IFS='-'
  4881. set x $ac_cv_host
  4882. shift
  4883. host_cpu=$1
  4884. host_vendor=$2
  4885. shift; shift
  4886. # Remember, the first character of IFS is used to create $*,
  4887. # except with old shells:
  4888. host_os=$*
  4889. IFS=$ac_save_IFS
  4890. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  4891. # Check whether --enable-largefile was given.
  4892. if test "${enable_largefile+set}" = set; then :
  4893. enableval=$enable_largefile;
  4894. fi
  4895. if test "$enable_largefile" != no; then
  4896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  4897. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  4898. if ${ac_cv_sys_largefile_CC+:} false; then :
  4899. $as_echo_n "(cached) " >&6
  4900. else
  4901. ac_cv_sys_largefile_CC=no
  4902. if test "$GCC" != yes; then
  4903. ac_save_CC=$CC
  4904. while :; do
  4905. # IRIX 6.2 and later do not support large files by default,
  4906. # so use the C compiler's -n32 option if that helps.
  4907. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4908. /* end confdefs.h. */
  4909. #include <sys/types.h>
  4910. /* Check that off_t can represent 2**63 - 1 correctly.
  4911. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  4912. since some C++ compilers masquerading as C compilers
  4913. incorrectly reject 9223372036854775807. */
  4914. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  4915. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  4916. && LARGE_OFF_T % 2147483647 == 1)
  4917. ? 1 : -1];
  4918. int
  4919. main ()
  4920. {
  4921. ;
  4922. return 0;
  4923. }
  4924. _ACEOF
  4925. if ac_fn_c_try_compile "$LINENO"; then :
  4926. break
  4927. fi
  4928. rm -f core conftest.err conftest.$ac_objext
  4929. CC="$CC -n32"
  4930. if ac_fn_c_try_compile "$LINENO"; then :
  4931. ac_cv_sys_largefile_CC=' -n32'; break
  4932. fi
  4933. rm -f core conftest.err conftest.$ac_objext
  4934. break
  4935. done
  4936. CC=$ac_save_CC
  4937. rm -f conftest.$ac_ext
  4938. fi
  4939. fi
  4940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  4941. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  4942. if test "$ac_cv_sys_largefile_CC" != no; then
  4943. CC=$CC$ac_cv_sys_largefile_CC
  4944. fi
  4945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  4946. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  4947. if ${ac_cv_sys_file_offset_bits+:} false; then :
  4948. $as_echo_n "(cached) " >&6
  4949. else
  4950. while :; do
  4951. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4952. /* end confdefs.h. */
  4953. #include <sys/types.h>
  4954. /* Check that off_t can represent 2**63 - 1 correctly.
  4955. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  4956. since some C++ compilers masquerading as C compilers
  4957. incorrectly reject 9223372036854775807. */
  4958. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  4959. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  4960. && LARGE_OFF_T % 2147483647 == 1)
  4961. ? 1 : -1];
  4962. int
  4963. main ()
  4964. {
  4965. ;
  4966. return 0;
  4967. }
  4968. _ACEOF
  4969. if ac_fn_c_try_compile "$LINENO"; then :
  4970. ac_cv_sys_file_offset_bits=no; break
  4971. fi
  4972. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4973. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4974. /* end confdefs.h. */
  4975. #define _FILE_OFFSET_BITS 64
  4976. #include <sys/types.h>
  4977. /* Check that off_t can represent 2**63 - 1 correctly.
  4978. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  4979. since some C++ compilers masquerading as C compilers
  4980. incorrectly reject 9223372036854775807. */
  4981. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  4982. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  4983. && LARGE_OFF_T % 2147483647 == 1)
  4984. ? 1 : -1];
  4985. int
  4986. main ()
  4987. {
  4988. ;
  4989. return 0;
  4990. }
  4991. _ACEOF
  4992. if ac_fn_c_try_compile "$LINENO"; then :
  4993. ac_cv_sys_file_offset_bits=64; break
  4994. fi
  4995. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4996. ac_cv_sys_file_offset_bits=unknown
  4997. break
  4998. done
  4999. fi
  5000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  5001. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  5002. case $ac_cv_sys_file_offset_bits in #(
  5003. no | unknown) ;;
  5004. *)
  5005. cat >>confdefs.h <<_ACEOF
  5006. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  5007. _ACEOF
  5008. ;;
  5009. esac
  5010. rm -rf conftest*
  5011. if test $ac_cv_sys_file_offset_bits = unknown; then
  5012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  5013. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  5014. if ${ac_cv_sys_large_files+:} false; then :
  5015. $as_echo_n "(cached) " >&6
  5016. else
  5017. while :; do
  5018. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5019. /* end confdefs.h. */
  5020. #include <sys/types.h>
  5021. /* Check that off_t can represent 2**63 - 1 correctly.
  5022. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  5023. since some C++ compilers masquerading as C compilers
  5024. incorrectly reject 9223372036854775807. */
  5025. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  5026. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  5027. && LARGE_OFF_T % 2147483647 == 1)
  5028. ? 1 : -1];
  5029. int
  5030. main ()
  5031. {
  5032. ;
  5033. return 0;
  5034. }
  5035. _ACEOF
  5036. if ac_fn_c_try_compile "$LINENO"; then :
  5037. ac_cv_sys_large_files=no; break
  5038. fi
  5039. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5040. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5041. /* end confdefs.h. */
  5042. #define _LARGE_FILES 1
  5043. #include <sys/types.h>
  5044. /* Check that off_t can represent 2**63 - 1 correctly.
  5045. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  5046. since some C++ compilers masquerading as C compilers
  5047. incorrectly reject 9223372036854775807. */
  5048. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  5049. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  5050. && LARGE_OFF_T % 2147483647 == 1)
  5051. ? 1 : -1];
  5052. int
  5053. main ()
  5054. {
  5055. ;
  5056. return 0;
  5057. }
  5058. _ACEOF
  5059. if ac_fn_c_try_compile "$LINENO"; then :
  5060. ac_cv_sys_large_files=1; break
  5061. fi
  5062. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5063. ac_cv_sys_large_files=unknown
  5064. break
  5065. done
  5066. fi
  5067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  5068. $as_echo "$ac_cv_sys_large_files" >&6; }
  5069. case $ac_cv_sys_large_files in #(
  5070. no | unknown) ;;
  5071. *)
  5072. cat >>confdefs.h <<_ACEOF
  5073. #define _LARGE_FILES $ac_cv_sys_large_files
  5074. _ACEOF
  5075. ;;
  5076. esac
  5077. rm -rf conftest*
  5078. fi
  5079. fi
  5080. for ac_header in libgen.h
  5081. do :
  5082. ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
  5083. if test "x$ac_cv_header_libgen_h" = xyes; then :
  5084. cat >>confdefs.h <<_ACEOF
  5085. #define HAVE_LIBGEN_H 1
  5086. _ACEOF
  5087. fi
  5088. done
  5089. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poptParseArgvString in -lpopt" >&5
  5090. $as_echo_n "checking for poptParseArgvString in -lpopt... " >&6; }
  5091. if ${ac_cv_lib_popt_poptParseArgvString+:} false; then :
  5092. $as_echo_n "(cached) " >&6
  5093. else
  5094. ac_check_lib_save_LIBS=$LIBS
  5095. LIBS="-lpopt $LIBS"
  5096. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5097. /* end confdefs.h. */
  5098. /* Override any GCC internal prototype to avoid an error.
  5099. Use char because int might match the return type of a GCC
  5100. builtin and then its argument prototype would still apply. */
  5101. #ifdef __cplusplus
  5102. extern "C"
  5103. #endif
  5104. char poptParseArgvString ();
  5105. int
  5106. main ()
  5107. {
  5108. return poptParseArgvString ();
  5109. ;
  5110. return 0;
  5111. }
  5112. _ACEOF
  5113. if ac_fn_c_try_link "$LINENO"; then :
  5114. ac_cv_lib_popt_poptParseArgvString=yes
  5115. else
  5116. ac_cv_lib_popt_poptParseArgvString=no
  5117. fi
  5118. rm -f core conftest.err conftest.$ac_objext \
  5119. conftest$ac_exeext conftest.$ac_ext
  5120. LIBS=$ac_check_lib_save_LIBS
  5121. fi
  5122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_popt_poptParseArgvString" >&5
  5123. $as_echo "$ac_cv_lib_popt_poptParseArgvString" >&6; }
  5124. if test "x$ac_cv_lib_popt_poptParseArgvString" = xyes; then :
  5125. cat >>confdefs.h <<_ACEOF
  5126. #define HAVE_LIBPOPT 1
  5127. _ACEOF
  5128. LIBS="-lpopt $LIBS"
  5129. else
  5130. as_fn_error $? "libpopt required but not found" "$LINENO" 5
  5131. fi
  5132. mkdir -p test
  5133. WITH_SELINUX="no"
  5134. # Check whether --with-selinux was given.
  5135. if test "${with_selinux+set}" = set; then :
  5136. withval=$with_selinux;
  5137. else
  5138. with_selinux=check
  5139. fi
  5140. case "$with_selinux" in #(
  5141. yes) :
  5142. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getfscreatecon_raw in -lselinux" >&5
  5143. $as_echo_n "checking for getfscreatecon_raw in -lselinux... " >&6; }
  5144. if ${ac_cv_lib_selinux_getfscreatecon_raw+:} false; then :
  5145. $as_echo_n "(cached) " >&6
  5146. else
  5147. ac_check_lib_save_LIBS=$LIBS
  5148. LIBS="-lselinux $LIBS"
  5149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5150. /* end confdefs.h. */
  5151. /* Override any GCC internal prototype to avoid an error.
  5152. Use char because int might match the return type of a GCC
  5153. builtin and then its argument prototype would still apply. */
  5154. #ifdef __cplusplus
  5155. extern "C"
  5156. #endif
  5157. char getfscreatecon_raw ();
  5158. int
  5159. main ()
  5160. {
  5161. return getfscreatecon_raw ();
  5162. ;
  5163. return 0;
  5164. }
  5165. _ACEOF
  5166. if ac_fn_c_try_link "$LINENO"; then :
  5167. ac_cv_lib_selinux_getfscreatecon_raw=yes
  5168. else
  5169. ac_cv_lib_selinux_getfscreatecon_raw=no
  5170. fi
  5171. rm -f core conftest.err conftest.$ac_objext \
  5172. conftest$ac_exeext conftest.$ac_ext
  5173. LIBS=$ac_check_lib_save_LIBS
  5174. fi
  5175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_getfscreatecon_raw" >&5
  5176. $as_echo "$ac_cv_lib_selinux_getfscreatecon_raw" >&6; }
  5177. if test "x$ac_cv_lib_selinux_getfscreatecon_raw" = xyes; then :
  5178. cat >>confdefs.h <<_ACEOF
  5179. #define HAVE_LIBSELINUX 1
  5180. _ACEOF
  5181. LIBS="-lselinux $LIBS"
  5182. fi
  5183. ;; #(
  5184. no) :
  5185. ;; #(
  5186. *) :
  5187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getfscreatecon_raw in -lselinux" >&5
  5188. $as_echo_n "checking for getfscreatecon_raw in -lselinux... " >&6; }
  5189. if ${ac_cv_lib_selinux_getfscreatecon_raw+:} false; then :
  5190. $as_echo_n "(cached) " >&6
  5191. else
  5192. ac_check_lib_save_LIBS=$LIBS
  5193. LIBS="-lselinux $LIBS"
  5194. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5195. /* end confdefs.h. */
  5196. /* Override any GCC internal prototype to avoid an error.
  5197. Use char because int might match the return type of a GCC
  5198. builtin and then its argument prototype would still apply. */
  5199. #ifdef __cplusplus
  5200. extern "C"
  5201. #endif
  5202. char getfscreatecon_raw ();
  5203. int
  5204. main ()
  5205. {
  5206. return getfscreatecon_raw ();
  5207. ;
  5208. return 0;
  5209. }
  5210. _ACEOF
  5211. if ac_fn_c_try_link "$LINENO"; then :
  5212. ac_cv_lib_selinux_getfscreatecon_raw=yes
  5213. else
  5214. ac_cv_lib_selinux_getfscreatecon_raw=no
  5215. fi
  5216. rm -f core conftest.err conftest.$ac_objext \
  5217. conftest$ac_exeext conftest.$ac_ext
  5218. LIBS=$ac_check_lib_save_LIBS
  5219. fi
  5220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_getfscreatecon_raw" >&5
  5221. $as_echo "$ac_cv_lib_selinux_getfscreatecon_raw" >&6; }
  5222. if test "x$ac_cv_lib_selinux_getfscreatecon_raw" = xyes; then :
  5223. cat >>confdefs.h <<_ACEOF
  5224. #define HAVE_LIBSELINUX 1
  5225. _ACEOF
  5226. LIBS="-lselinux $LIBS"
  5227. fi
  5228. ;;
  5229. esac
  5230. if test "$ac_cv_lib_selinux_getfscreatecon_raw" = yes; then :
  5231. echo "1" > ./test/test.SELINUX; WITH_SELINUX="yes";
  5232. else
  5233. echo "0" > ./test/test.SELINUX;
  5234. fi
  5235. WITH_ACL="no"
  5236. # Check whether --with-acl was given.
  5237. if test "${with_acl+set}" = set; then :
  5238. withval=$with_acl;
  5239. else
  5240. with_acl=check
  5241. fi
  5242. case "$with_acl" in #(
  5243. yes) :
  5244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
  5245. $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
  5246. if ${ac_cv_lib_acl_acl_get_file+:} false; then :
  5247. $as_echo_n "(cached) " >&6
  5248. else
  5249. ac_check_lib_save_LIBS=$LIBS
  5250. LIBS="-lacl $LIBS"
  5251. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5252. /* end confdefs.h. */
  5253. /* Override any GCC internal prototype to avoid an error.
  5254. Use char because int might match the return type of a GCC
  5255. builtin and then its argument prototype would still apply. */
  5256. #ifdef __cplusplus
  5257. extern "C"
  5258. #endif
  5259. char acl_get_file ();
  5260. int
  5261. main ()
  5262. {
  5263. return acl_get_file ();
  5264. ;
  5265. return 0;
  5266. }
  5267. _ACEOF
  5268. if ac_fn_c_try_link "$LINENO"; then :
  5269. ac_cv_lib_acl_acl_get_file=yes
  5270. else
  5271. ac_cv_lib_acl_acl_get_file=no
  5272. fi
  5273. rm -f core conftest.err conftest.$ac_objext \
  5274. conftest$ac_exeext conftest.$ac_ext
  5275. LIBS=$ac_check_lib_save_LIBS
  5276. fi
  5277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
  5278. $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
  5279. if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
  5280. cat >>confdefs.h <<_ACEOF
  5281. #define HAVE_LIBACL 1
  5282. _ACEOF
  5283. LIBS="-lacl $LIBS"
  5284. fi
  5285. ;; #(
  5286. no) :
  5287. ;; #(
  5288. *) :
  5289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
  5290. $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
  5291. if ${ac_cv_lib_acl_acl_get_file+:} false; then :
  5292. $as_echo_n "(cached) " >&6
  5293. else
  5294. ac_check_lib_save_LIBS=$LIBS
  5295. LIBS="-lacl $LIBS"
  5296. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5297. /* end confdefs.h. */
  5298. /* Override any GCC internal prototype to avoid an error.
  5299. Use char because int might match the return type of a GCC
  5300. builtin and then its argument prototype would still apply. */
  5301. #ifdef __cplusplus
  5302. extern "C"
  5303. #endif
  5304. char acl_get_file ();
  5305. int
  5306. main ()
  5307. {
  5308. return acl_get_file ();
  5309. ;
  5310. return 0;
  5311. }
  5312. _ACEOF
  5313. if ac_fn_c_try_link "$LINENO"; then :
  5314. ac_cv_lib_acl_acl_get_file=yes
  5315. else
  5316. ac_cv_lib_acl_acl_get_file=no
  5317. fi
  5318. rm -f core conftest.err conftest.$ac_objext \
  5319. conftest$ac_exeext conftest.$ac_ext
  5320. LIBS=$ac_check_lib_save_LIBS
  5321. fi
  5322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
  5323. $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
  5324. if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
  5325. cat >>confdefs.h <<_ACEOF
  5326. #define HAVE_LIBACL 1
  5327. _ACEOF
  5328. LIBS="-lacl $LIBS"
  5329. fi
  5330. ;;
  5331. esac
  5332. if test "$ac_cv_lib_acl_acl_get_file" = yes; then :
  5333. echo "1" > ./test/test.ACL; WITH_ACL="yes";
  5334. else
  5335. echo "0" > ./test/test.ACL;
  5336. fi
  5337. DEFAULT_MAIL_COMMAND="/bin/mail"
  5338. COMPRESS_COMMAND="/bin/gzip"
  5339. UNCOMPRESS_COMMAND="/bin/gunzip"
  5340. COMPRESS_EXT=".gz"
  5341. STATE_FILE_PATH="/var/lib/logrotate.status"
  5342. case "$host" in
  5343. *-hpux*)
  5344. DEFAULT_MAIL_COMMAND="/usr/bin/mailx"
  5345. COMPRESS_COMMAND="/usr/contrib/bin/gzip"
  5346. UNCOMPRESS_COMMAND="/usr/contrib/bin/gunzip"
  5347. ;;
  5348. *-solaris*|*-sunos*)
  5349. DEFAULT_MAIL_COMMAND="/usr/bin/mailx"
  5350. ;;
  5351. *-netbsd*)
  5352. DEFAULT_MAIL_COMMAND="/usr/bin/mail"
  5353. COMPRESS_COMMAND="/usr/bin/gzip"
  5354. UNCOMPRESS_COMMAND="/usr/bin/gunzip"
  5355. ;;
  5356. *-darwin*)
  5357. COMPRESS_COMMAND="/usr/bin/gzip"
  5358. UNCOMPRESS_COMMAND="/usr/bin/gunzip"
  5359. ;;
  5360. esac
  5361. # Check whether --with-state-file-path was given.
  5362. if test "${with_state_file_path+set}" = set; then :
  5363. withval=$with_state_file_path;
  5364. case "$withval" in
  5365. yes|no)
  5366. as_fn_error $? "--with-state-file-path=PATH requires a path to be specified" "$LINENO" 5
  5367. ;;
  5368. *)
  5369. STATE_FILE_PATH="$withval"
  5370. ;;
  5371. esac
  5372. fi
  5373. cat >>confdefs.h <<_ACEOF
  5374. #define STATEFILE "$STATE_FILE_PATH"
  5375. _ACEOF
  5376. # Check whether --with-default-mail-command was given.
  5377. if test "${with_default_mail_command+set}" = set; then :
  5378. withval=$with_default_mail_command;
  5379. case "$withval" in
  5380. yes|no)
  5381. as_fn_error $? "--with-default-mail-command=COMMAND requires a command to be specified" "$LINENO" 5
  5382. ;;
  5383. *)
  5384. DEFAULT_MAIL_COMMAND="$withval"
  5385. ;;
  5386. esac
  5387. fi
  5388. cat >>confdefs.h <<_ACEOF
  5389. #define DEFAULT_MAIL_COMMAND "$DEFAULT_MAIL_COMMAND"
  5390. _ACEOF
  5391. # Check whether --with-compress-command was given.
  5392. if test "${with_compress_command+set}" = set; then :
  5393. withval=$with_compress_command;
  5394. case "$withval" in
  5395. yes|no)
  5396. as_fn_error $? "--with-compress-command=COMMAND requires a command to be specified" "$LINENO" 5
  5397. ;;
  5398. *)
  5399. COMPRESS_COMMAND="$withval"
  5400. ;;
  5401. esac
  5402. fi
  5403. cat >>confdefs.h <<_ACEOF
  5404. #define COMPRESS_COMMAND "$COMPRESS_COMMAND"
  5405. _ACEOF
  5406. # Check whether --with-uncompress-command was given.
  5407. if test "${with_uncompress_command+set}" = set; then :
  5408. withval=$with_uncompress_command;
  5409. case "$withval" in
  5410. yes|no)
  5411. as_fn_error $? "--with-uncompress-command=COMMAND requires a command to be specified" "$LINENO" 5
  5412. ;;
  5413. *)
  5414. UNCOMPRESS_COMMAND="$withval"
  5415. ;;
  5416. esac
  5417. fi
  5418. cat >>confdefs.h <<_ACEOF
  5419. #define UNCOMPRESS_COMMAND "$UNCOMPRESS_COMMAND"
  5420. _ACEOF
  5421. # Check whether --with-compress-extension was given.
  5422. if test "${with_compress_extension+set}" = set; then :
  5423. withval=$with_compress_extension;
  5424. case "$withval" in
  5425. .*)
  5426. COMPRESS_EXT="$withval"
  5427. ;;
  5428. *)
  5429. as_fn_error $? "--with-compress-extension=EXTENSION must start with ." "$LINENO" 5
  5430. ;;
  5431. esac
  5432. fi
  5433. cat >>confdefs.h <<_ACEOF
  5434. #define COMPRESS_EXT "$COMPRESS_EXT"
  5435. _ACEOF
  5436. cat >>confdefs.h <<_ACEOF
  5437. #define ROOT_UID 0
  5438. _ACEOF
  5439. for ac_func in asprintf fork madvise qsort strndup strptime utimensat vfork vsyslog
  5440. do :
  5441. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5442. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  5443. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  5444. cat >>confdefs.h <<_ACEOF
  5445. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5446. _ACEOF
  5447. fi
  5448. done
  5449. ac_config_headers="$ac_config_headers config.h"
  5450. AM_CFLAGS="-Wall -Wextra -Wmissing-format-attribute -Wmissing-noreturn -Wpointer-arith -Wshadow -Wstrict-prototypes -Wundef -Wunused -Wwrite-strings"
  5451. # Check whether --enable-werror was given.
  5452. if test "${enable_werror+set}" = set; then :
  5453. enableval=$enable_werror; enable_werror="$enableval"
  5454. else
  5455. enable_werror=no
  5456. fi
  5457. if test "x$enable_werror" = "xyes"; then :
  5458. AM_CFLAGS="$AM_CFLAGS -Werror"
  5459. fi
  5460. ac_config_files="$ac_config_files Makefile test/Makefile logrotate.8 logrotate.spec"
  5461. cat >confcache <<\_ACEOF
  5462. # This file is a shell script that caches the results of configure
  5463. # tests run on this system so they can be shared between configure
  5464. # scripts and configure runs, see configure's option --config-cache.
  5465. # It is not useful on other systems. If it contains results you don't
  5466. # want to keep, you may remove or edit it.
  5467. #
  5468. # config.status only pays attention to the cache file if you give it
  5469. # the --recheck option to rerun configure.
  5470. #
  5471. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5472. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5473. # following values.
  5474. _ACEOF
  5475. # The following way of writing the cache mishandles newlines in values,
  5476. # but we know of no workaround that is simple, portable, and efficient.
  5477. # So, we kill variables containing newlines.
  5478. # Ultrix sh set writes to stderr and can't be redirected directly,
  5479. # and sets the high bit in the cache file unless we assign to the vars.
  5480. (
  5481. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  5482. eval ac_val=\$$ac_var
  5483. case $ac_val in #(
  5484. *${as_nl}*)
  5485. case $ac_var in #(
  5486. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  5487. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  5488. esac
  5489. case $ac_var in #(
  5490. _ | IFS | as_nl) ;; #(
  5491. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  5492. *) { eval $ac_var=; unset $ac_var;} ;;
  5493. esac ;;
  5494. esac
  5495. done
  5496. (set) 2>&1 |
  5497. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  5498. *${as_nl}ac_space=\ *)
  5499. # `set' does not quote correctly, so add quotes: double-quote
  5500. # substitution turns \\\\ into \\, and sed turns \\ into \.
  5501. sed -n \
  5502. "s/'/'\\\\''/g;
  5503. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5504. ;; #(
  5505. *)
  5506. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5507. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  5508. ;;
  5509. esac |
  5510. sort
  5511. ) |
  5512. sed '
  5513. /^ac_cv_env_/b end
  5514. t clear
  5515. :clear
  5516. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5517. t end
  5518. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5519. :end' >>confcache
  5520. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  5521. if test -w "$cache_file"; then
  5522. if test "x$cache_file" != "x/dev/null"; then
  5523. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  5524. $as_echo "$as_me: updating cache $cache_file" >&6;}
  5525. if test ! -f "$cache_file" || test -h "$cache_file"; then
  5526. cat confcache >"$cache_file"
  5527. else
  5528. case $cache_file in #(
  5529. */* | ?:*)
  5530. mv -f confcache "$cache_file"$$ &&
  5531. mv -f "$cache_file"$$ "$cache_file" ;; #(
  5532. *)
  5533. mv -f confcache "$cache_file" ;;
  5534. esac
  5535. fi
  5536. fi
  5537. else
  5538. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  5539. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  5540. fi
  5541. fi
  5542. rm -f confcache
  5543. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  5544. # Let make expand exec_prefix.
  5545. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  5546. DEFS=-DHAVE_CONFIG_H
  5547. ac_libobjs=
  5548. ac_ltlibobjs=
  5549. U=
  5550. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  5551. # 1. Remove the extension, and $U if already installed.
  5552. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  5553. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  5554. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  5555. # will be set to the directory where LIBOBJS objects are built.
  5556. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  5557. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  5558. done
  5559. LIBOBJS=$ac_libobjs
  5560. LTLIBOBJS=$ac_ltlibobjs
  5561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  5562. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  5563. if test -n "$am_sleep_pid"; then
  5564. # Hide warnings about reused PIDs.
  5565. wait $am_sleep_pid 2>/dev/null
  5566. fi
  5567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  5568. $as_echo "done" >&6; }
  5569. if test -n "$EXEEXT"; then
  5570. am__EXEEXT_TRUE=
  5571. am__EXEEXT_FALSE='#'
  5572. else
  5573. am__EXEEXT_TRUE='#'
  5574. am__EXEEXT_FALSE=
  5575. fi
  5576. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  5577. as_fn_error $? "conditional \"AMDEP\" was never defined.
  5578. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  5579. fi
  5580. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  5581. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  5582. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  5583. fi
  5584. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  5585. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  5586. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  5587. fi
  5588. : "${CONFIG_STATUS=./config.status}"
  5589. ac_write_fail=0
  5590. ac_clean_files_save=$ac_clean_files
  5591. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  5592. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  5593. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  5594. as_write_fail=0
  5595. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  5596. #! $SHELL
  5597. # Generated by $as_me.
  5598. # Run this file to recreate the current configuration.
  5599. # Compiler output produced by configure, useful for debugging
  5600. # configure, is in config.log if it exists.
  5601. debug=false
  5602. ac_cs_recheck=false
  5603. ac_cs_silent=false
  5604. SHELL=\${CONFIG_SHELL-$SHELL}
  5605. export SHELL
  5606. _ASEOF
  5607. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  5608. ## -------------------- ##
  5609. ## M4sh Initialization. ##
  5610. ## -------------------- ##
  5611. # Be more Bourne compatible
  5612. DUALCASE=1; export DUALCASE # for MKS sh
  5613. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  5614. emulate sh
  5615. NULLCMD=:
  5616. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  5617. # is contrary to our usage. Disable this feature.
  5618. alias -g '${1+"$@"}'='"$@"'
  5619. setopt NO_GLOB_SUBST
  5620. else
  5621. case `(set -o) 2>/dev/null` in #(
  5622. *posix*) :
  5623. set -o posix ;; #(
  5624. *) :
  5625. ;;
  5626. esac
  5627. fi
  5628. as_nl='
  5629. '
  5630. export as_nl
  5631. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  5632. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  5633. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  5634. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  5635. # Prefer a ksh shell builtin over an external printf program on Solaris,
  5636. # but without wasting forks for bash or zsh.
  5637. if test -z "$BASH_VERSION$ZSH_VERSION" \
  5638. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  5639. as_echo='print -r --'
  5640. as_echo_n='print -rn --'
  5641. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  5642. as_echo='printf %s\n'
  5643. as_echo_n='printf %s'
  5644. else
  5645. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  5646. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  5647. as_echo_n='/usr/ucb/echo -n'
  5648. else
  5649. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  5650. as_echo_n_body='eval
  5651. arg=$1;
  5652. case $arg in #(
  5653. *"$as_nl"*)
  5654. expr "X$arg" : "X\\(.*\\)$as_nl";
  5655. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  5656. esac;
  5657. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  5658. '
  5659. export as_echo_n_body
  5660. as_echo_n='sh -c $as_echo_n_body as_echo'
  5661. fi
  5662. export as_echo_body
  5663. as_echo='sh -c $as_echo_body as_echo'
  5664. fi
  5665. # The user is always right.
  5666. if test "${PATH_SEPARATOR+set}" != set; then
  5667. PATH_SEPARATOR=:
  5668. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  5669. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  5670. PATH_SEPARATOR=';'
  5671. }
  5672. fi
  5673. # IFS
  5674. # We need space, tab and new line, in precisely that order. Quoting is
  5675. # there to prevent editors from complaining about space-tab.
  5676. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  5677. # splitting by setting IFS to empty value.)
  5678. IFS=" "" $as_nl"
  5679. # Find who we are. Look in the path if we contain no directory separator.
  5680. as_myself=
  5681. case $0 in #((
  5682. *[\\/]* ) as_myself=$0 ;;
  5683. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5684. for as_dir in $PATH
  5685. do
  5686. IFS=$as_save_IFS
  5687. test -z "$as_dir" && as_dir=.
  5688. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  5689. done
  5690. IFS=$as_save_IFS
  5691. ;;
  5692. esac
  5693. # We did not find ourselves, most probably we were run as `sh COMMAND'
  5694. # in which case we are not to be found in the path.
  5695. if test "x$as_myself" = x; then
  5696. as_myself=$0
  5697. fi
  5698. if test ! -f "$as_myself"; then
  5699. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  5700. exit 1
  5701. fi
  5702. # Unset variables that we do not need and which cause bugs (e.g. in
  5703. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  5704. # suppresses any "Segmentation fault" message there. '((' could
  5705. # trigger a bug in pdksh 5.2.14.
  5706. for as_var in BASH_ENV ENV MAIL MAILPATH
  5707. do eval test x\${$as_var+set} = xset \
  5708. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  5709. done
  5710. PS1='$ '
  5711. PS2='> '
  5712. PS4='+ '
  5713. # NLS nuisances.
  5714. LC_ALL=C
  5715. export LC_ALL
  5716. LANGUAGE=C
  5717. export LANGUAGE
  5718. # CDPATH.
  5719. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  5720. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  5721. # ----------------------------------------
  5722. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  5723. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  5724. # script with STATUS, using 1 if that was 0.
  5725. as_fn_error ()
  5726. {
  5727. as_status=$1; test $as_status -eq 0 && as_status=1
  5728. if test "$4"; then
  5729. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  5730. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  5731. fi
  5732. $as_echo "$as_me: error: $2" >&2
  5733. as_fn_exit $as_status
  5734. } # as_fn_error
  5735. # as_fn_set_status STATUS
  5736. # -----------------------
  5737. # Set $? to STATUS, without forking.
  5738. as_fn_set_status ()
  5739. {
  5740. return $1
  5741. } # as_fn_set_status
  5742. # as_fn_exit STATUS
  5743. # -----------------
  5744. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  5745. as_fn_exit ()
  5746. {
  5747. set +e
  5748. as_fn_set_status $1
  5749. exit $1
  5750. } # as_fn_exit
  5751. # as_fn_unset VAR
  5752. # ---------------
  5753. # Portably unset VAR.
  5754. as_fn_unset ()
  5755. {
  5756. { eval $1=; unset $1;}
  5757. }
  5758. as_unset=as_fn_unset
  5759. # as_fn_append VAR VALUE
  5760. # ----------------------
  5761. # Append the text in VALUE to the end of the definition contained in VAR. Take
  5762. # advantage of any shell optimizations that allow amortized linear growth over
  5763. # repeated appends, instead of the typical quadratic growth present in naive
  5764. # implementations.
  5765. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  5766. eval 'as_fn_append ()
  5767. {
  5768. eval $1+=\$2
  5769. }'
  5770. else
  5771. as_fn_append ()
  5772. {
  5773. eval $1=\$$1\$2
  5774. }
  5775. fi # as_fn_append
  5776. # as_fn_arith ARG...
  5777. # ------------------
  5778. # Perform arithmetic evaluation on the ARGs, and store the result in the
  5779. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  5780. # must be portable across $(()) and expr.
  5781. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  5782. eval 'as_fn_arith ()
  5783. {
  5784. as_val=$(( $* ))
  5785. }'
  5786. else
  5787. as_fn_arith ()
  5788. {
  5789. as_val=`expr "$@" || test $? -eq 1`
  5790. }
  5791. fi # as_fn_arith
  5792. if expr a : '\(a\)' >/dev/null 2>&1 &&
  5793. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  5794. as_expr=expr
  5795. else
  5796. as_expr=false
  5797. fi
  5798. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  5799. as_basename=basename
  5800. else
  5801. as_basename=false
  5802. fi
  5803. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  5804. as_dirname=dirname
  5805. else
  5806. as_dirname=false
  5807. fi
  5808. as_me=`$as_basename -- "$0" ||
  5809. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  5810. X"$0" : 'X\(//\)$' \| \
  5811. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  5812. $as_echo X/"$0" |
  5813. sed '/^.*\/\([^/][^/]*\)\/*$/{
  5814. s//\1/
  5815. q
  5816. }
  5817. /^X\/\(\/\/\)$/{
  5818. s//\1/
  5819. q
  5820. }
  5821. /^X\/\(\/\).*/{
  5822. s//\1/
  5823. q
  5824. }
  5825. s/.*/./; q'`
  5826. # Avoid depending upon Character Ranges.
  5827. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  5828. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  5829. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  5830. as_cr_digits='0123456789'
  5831. as_cr_alnum=$as_cr_Letters$as_cr_digits
  5832. ECHO_C= ECHO_N= ECHO_T=
  5833. case `echo -n x` in #(((((
  5834. -n*)
  5835. case `echo 'xy\c'` in
  5836. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  5837. xy) ECHO_C='\c';;
  5838. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  5839. ECHO_T=' ';;
  5840. esac;;
  5841. *)
  5842. ECHO_N='-n';;
  5843. esac
  5844. rm -f conf$$ conf$$.exe conf$$.file
  5845. if test -d conf$$.dir; then
  5846. rm -f conf$$.dir/conf$$.file
  5847. else
  5848. rm -f conf$$.dir
  5849. mkdir conf$$.dir 2>/dev/null
  5850. fi
  5851. if (echo >conf$$.file) 2>/dev/null; then
  5852. if ln -s conf$$.file conf$$ 2>/dev/null; then
  5853. as_ln_s='ln -s'
  5854. # ... but there are two gotchas:
  5855. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  5856. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  5857. # In both cases, we have to default to `cp -pR'.
  5858. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  5859. as_ln_s='cp -pR'
  5860. elif ln conf$$.file conf$$ 2>/dev/null; then
  5861. as_ln_s=ln
  5862. else
  5863. as_ln_s='cp -pR'
  5864. fi
  5865. else
  5866. as_ln_s='cp -pR'
  5867. fi
  5868. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  5869. rmdir conf$$.dir 2>/dev/null
  5870. # as_fn_mkdir_p
  5871. # -------------
  5872. # Create "$as_dir" as a directory, including parents if necessary.
  5873. as_fn_mkdir_p ()
  5874. {
  5875. case $as_dir in #(
  5876. -*) as_dir=./$as_dir;;
  5877. esac
  5878. test -d "$as_dir" || eval $as_mkdir_p || {
  5879. as_dirs=
  5880. while :; do
  5881. case $as_dir in #(
  5882. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  5883. *) as_qdir=$as_dir;;
  5884. esac
  5885. as_dirs="'$as_qdir' $as_dirs"
  5886. as_dir=`$as_dirname -- "$as_dir" ||
  5887. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  5888. X"$as_dir" : 'X\(//\)[^/]' \| \
  5889. X"$as_dir" : 'X\(//\)$' \| \
  5890. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  5891. $as_echo X"$as_dir" |
  5892. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  5893. s//\1/
  5894. q
  5895. }
  5896. /^X\(\/\/\)[^/].*/{
  5897. s//\1/
  5898. q
  5899. }
  5900. /^X\(\/\/\)$/{
  5901. s//\1/
  5902. q
  5903. }
  5904. /^X\(\/\).*/{
  5905. s//\1/
  5906. q
  5907. }
  5908. s/.*/./; q'`
  5909. test -d "$as_dir" && break
  5910. done
  5911. test -z "$as_dirs" || eval "mkdir $as_dirs"
  5912. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  5913. } # as_fn_mkdir_p
  5914. if mkdir -p . 2>/dev/null; then
  5915. as_mkdir_p='mkdir -p "$as_dir"'
  5916. else
  5917. test -d ./-p && rmdir ./-p
  5918. as_mkdir_p=false
  5919. fi
  5920. # as_fn_executable_p FILE
  5921. # -----------------------
  5922. # Test if FILE is an executable regular file.
  5923. as_fn_executable_p ()
  5924. {
  5925. test -f "$1" && test -x "$1"
  5926. } # as_fn_executable_p
  5927. as_test_x='test -x'
  5928. as_executable_p=as_fn_executable_p
  5929. # Sed expression to map a string onto a valid CPP name.
  5930. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  5931. # Sed expression to map a string onto a valid variable name.
  5932. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  5933. exec 6>&1
  5934. ## ----------------------------------- ##
  5935. ## Main body of $CONFIG_STATUS script. ##
  5936. ## ----------------------------------- ##
  5937. _ASEOF
  5938. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  5939. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5940. # Save the log message, to keep $0 and so on meaningful, and to
  5941. # report actual input values of CONFIG_FILES etc. instead of their
  5942. # values after options handling.
  5943. ac_log="
  5944. This file was extended by logrotate $as_me 3.15.1, which was
  5945. generated by GNU Autoconf 2.69. Invocation command line was
  5946. CONFIG_FILES = $CONFIG_FILES
  5947. CONFIG_HEADERS = $CONFIG_HEADERS
  5948. CONFIG_LINKS = $CONFIG_LINKS
  5949. CONFIG_COMMANDS = $CONFIG_COMMANDS
  5950. $ $0 $@
  5951. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  5952. "
  5953. _ACEOF
  5954. case $ac_config_files in *"
  5955. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  5956. esac
  5957. case $ac_config_headers in *"
  5958. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  5959. esac
  5960. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5961. # Files that config.status was made for.
  5962. config_files="$ac_config_files"
  5963. config_headers="$ac_config_headers"
  5964. config_commands="$ac_config_commands"
  5965. _ACEOF
  5966. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5967. ac_cs_usage="\
  5968. \`$as_me' instantiates files and other configuration actions
  5969. from templates according to the current configuration. Unless the files
  5970. and actions are specified as TAGs, all are instantiated by default.
  5971. Usage: $0 [OPTION]... [TAG]...
  5972. -h, --help print this help, then exit
  5973. -V, --version print version number and configuration settings, then exit
  5974. --config print configuration, then exit
  5975. -q, --quiet, --silent
  5976. do not print progress messages
  5977. -d, --debug don't remove temporary files
  5978. --recheck update $as_me by reconfiguring in the same conditions
  5979. --file=FILE[:TEMPLATE]
  5980. instantiate the configuration file FILE
  5981. --header=FILE[:TEMPLATE]
  5982. instantiate the configuration header FILE
  5983. Configuration files:
  5984. $config_files
  5985. Configuration headers:
  5986. $config_headers
  5987. Configuration commands:
  5988. $config_commands
  5989. Report bugs to the package provider.
  5990. logrotate home page: <https://github.com/logrotate/logrotate>."
  5991. _ACEOF
  5992. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5993. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  5994. ac_cs_version="\\
  5995. logrotate config.status 3.15.1
  5996. configured by $0, generated by GNU Autoconf 2.69,
  5997. with options \\"\$ac_cs_config\\"
  5998. Copyright (C) 2012 Free Software Foundation, Inc.
  5999. This config.status script is free software; the Free Software Foundation
  6000. gives unlimited permission to copy, distribute and modify it."
  6001. ac_pwd='$ac_pwd'
  6002. srcdir='$srcdir'
  6003. INSTALL='$INSTALL'
  6004. MKDIR_P='$MKDIR_P'
  6005. AWK='$AWK'
  6006. test -n "\$AWK" || AWK=awk
  6007. _ACEOF
  6008. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6009. # The default lists apply if the user does not specify any file.
  6010. ac_need_defaults=:
  6011. while test $# != 0
  6012. do
  6013. case $1 in
  6014. --*=?*)
  6015. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  6016. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  6017. ac_shift=:
  6018. ;;
  6019. --*=)
  6020. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  6021. ac_optarg=
  6022. ac_shift=:
  6023. ;;
  6024. *)
  6025. ac_option=$1
  6026. ac_optarg=$2
  6027. ac_shift=shift
  6028. ;;
  6029. esac
  6030. case $ac_option in
  6031. # Handling of the options.
  6032. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  6033. ac_cs_recheck=: ;;
  6034. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  6035. $as_echo "$ac_cs_version"; exit ;;
  6036. --config | --confi | --conf | --con | --co | --c )
  6037. $as_echo "$ac_cs_config"; exit ;;
  6038. --debug | --debu | --deb | --de | --d | -d )
  6039. debug=: ;;
  6040. --file | --fil | --fi | --f )
  6041. $ac_shift
  6042. case $ac_optarg in
  6043. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  6044. '') as_fn_error $? "missing file argument" ;;
  6045. esac
  6046. as_fn_append CONFIG_FILES " '$ac_optarg'"
  6047. ac_need_defaults=false;;
  6048. --header | --heade | --head | --hea )
  6049. $ac_shift
  6050. case $ac_optarg in
  6051. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  6052. esac
  6053. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  6054. ac_need_defaults=false;;
  6055. --he | --h)
  6056. # Conflict between --help and --header
  6057. as_fn_error $? "ambiguous option: \`$1'
  6058. Try \`$0 --help' for more information.";;
  6059. --help | --hel | -h )
  6060. $as_echo "$ac_cs_usage"; exit ;;
  6061. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  6062. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  6063. ac_cs_silent=: ;;
  6064. # This is an error.
  6065. -*) as_fn_error $? "unrecognized option: \`$1'
  6066. Try \`$0 --help' for more information." ;;
  6067. *) as_fn_append ac_config_targets " $1"
  6068. ac_need_defaults=false ;;
  6069. esac
  6070. shift
  6071. done
  6072. ac_configure_extra_args=
  6073. if $ac_cs_silent; then
  6074. exec 6>/dev/null
  6075. ac_configure_extra_args="$ac_configure_extra_args --silent"
  6076. fi
  6077. _ACEOF
  6078. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6079. if \$ac_cs_recheck; then
  6080. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  6081. shift
  6082. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  6083. CONFIG_SHELL='$SHELL'
  6084. export CONFIG_SHELL
  6085. exec "\$@"
  6086. fi
  6087. _ACEOF
  6088. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6089. exec 5>>config.log
  6090. {
  6091. echo
  6092. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  6093. ## Running $as_me. ##
  6094. _ASBOX
  6095. $as_echo "$ac_log"
  6096. } >&5
  6097. _ACEOF
  6098. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6099. #
  6100. # INIT-COMMANDS
  6101. #
  6102. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  6103. _ACEOF
  6104. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6105. # Handling of arguments.
  6106. for ac_config_target in $ac_config_targets
  6107. do
  6108. case $ac_config_target in
  6109. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  6110. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  6111. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  6112. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  6113. "logrotate.8") CONFIG_FILES="$CONFIG_FILES logrotate.8" ;;
  6114. "logrotate.spec") CONFIG_FILES="$CONFIG_FILES logrotate.spec" ;;
  6115. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  6116. esac
  6117. done
  6118. # If the user did not use the arguments to specify the items to instantiate,
  6119. # then the envvar interface is used. Set only those that are not.
  6120. # We use the long form for the default assignment because of an extremely
  6121. # bizarre bug on SunOS 4.1.3.
  6122. if $ac_need_defaults; then
  6123. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  6124. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  6125. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  6126. fi
  6127. # Have a temporary directory for convenience. Make it in the build tree
  6128. # simply because there is no reason against having it here, and in addition,
  6129. # creating and moving files from /tmp can sometimes cause problems.
  6130. # Hook for its removal unless debugging.
  6131. # Note that there is a small window in which the directory will not be cleaned:
  6132. # after its creation but before its name has been assigned to `$tmp'.
  6133. $debug ||
  6134. {
  6135. tmp= ac_tmp=
  6136. trap 'exit_status=$?
  6137. : "${ac_tmp:=$tmp}"
  6138. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  6139. ' 0
  6140. trap 'as_fn_exit 1' 1 2 13 15
  6141. }
  6142. # Create a (secure) tmp directory for tmp files.
  6143. {
  6144. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  6145. test -d "$tmp"
  6146. } ||
  6147. {
  6148. tmp=./conf$$-$RANDOM
  6149. (umask 077 && mkdir "$tmp")
  6150. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  6151. ac_tmp=$tmp
  6152. # Set up the scripts for CONFIG_FILES section.
  6153. # No need to generate them if there are no CONFIG_FILES.
  6154. # This happens for instance with `./config.status config.h'.
  6155. if test -n "$CONFIG_FILES"; then
  6156. ac_cr=`echo X | tr X '\015'`
  6157. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  6158. # But we know of no other shell where ac_cr would be empty at this
  6159. # point, so we can use a bashism as a fallback.
  6160. if test "x$ac_cr" = x; then
  6161. eval ac_cr=\$\'\\r\'
  6162. fi
  6163. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  6164. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  6165. ac_cs_awk_cr='\\r'
  6166. else
  6167. ac_cs_awk_cr=$ac_cr
  6168. fi
  6169. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  6170. _ACEOF
  6171. {
  6172. echo "cat >conf$$subs.awk <<_ACEOF" &&
  6173. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  6174. echo "_ACEOF"
  6175. } >conf$$subs.sh ||
  6176. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  6177. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  6178. ac_delim='%!_!# '
  6179. for ac_last_try in false false false false false :; do
  6180. . ./conf$$subs.sh ||
  6181. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  6182. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  6183. if test $ac_delim_n = $ac_delim_num; then
  6184. break
  6185. elif $ac_last_try; then
  6186. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  6187. else
  6188. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  6189. fi
  6190. done
  6191. rm -f conf$$subs.sh
  6192. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6193. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  6194. _ACEOF
  6195. sed -n '
  6196. h
  6197. s/^/S["/; s/!.*/"]=/
  6198. p
  6199. g
  6200. s/^[^!]*!//
  6201. :repl
  6202. t repl
  6203. s/'"$ac_delim"'$//
  6204. t delim
  6205. :nl
  6206. h
  6207. s/\(.\{148\}\)..*/\1/
  6208. t more1
  6209. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  6210. p
  6211. n
  6212. b repl
  6213. :more1
  6214. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  6215. p
  6216. g
  6217. s/.\{148\}//
  6218. t nl
  6219. :delim
  6220. h
  6221. s/\(.\{148\}\)..*/\1/
  6222. t more2
  6223. s/["\\]/\\&/g; s/^/"/; s/$/"/
  6224. p
  6225. b
  6226. :more2
  6227. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  6228. p
  6229. g
  6230. s/.\{148\}//
  6231. t delim
  6232. ' <conf$$subs.awk | sed '
  6233. /^[^""]/{
  6234. N
  6235. s/\n//
  6236. }
  6237. ' >>$CONFIG_STATUS || ac_write_fail=1
  6238. rm -f conf$$subs.awk
  6239. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6240. _ACAWK
  6241. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  6242. for (key in S) S_is_set[key] = 1
  6243. FS = ""
  6244. }
  6245. {
  6246. line = $ 0
  6247. nfields = split(line, field, "@")
  6248. substed = 0
  6249. len = length(field[1])
  6250. for (i = 2; i < nfields; i++) {
  6251. key = field[i]
  6252. keylen = length(key)
  6253. if (S_is_set[key]) {
  6254. value = S[key]
  6255. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  6256. len += length(value) + length(field[++i])
  6257. substed = 1
  6258. } else
  6259. len += 1 + keylen
  6260. }
  6261. print line
  6262. }
  6263. _ACAWK
  6264. _ACEOF
  6265. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6266. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  6267. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  6268. else
  6269. cat
  6270. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  6271. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  6272. _ACEOF
  6273. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  6274. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  6275. # trailing colons and then remove the whole line if VPATH becomes empty
  6276. # (actually we leave an empty line to preserve line numbers).
  6277. if test "x$srcdir" = x.; then
  6278. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  6279. h
  6280. s///
  6281. s/^/:/
  6282. s/[ ]*$/:/
  6283. s/:\$(srcdir):/:/g
  6284. s/:\${srcdir}:/:/g
  6285. s/:@srcdir@:/:/g
  6286. s/^:*//
  6287. s/:*$//
  6288. x
  6289. s/\(=[ ]*\).*/\1/
  6290. G
  6291. s/\n//
  6292. s/^[^=]*=[ ]*$//
  6293. }'
  6294. fi
  6295. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6296. fi # test -n "$CONFIG_FILES"
  6297. # Set up the scripts for CONFIG_HEADERS section.
  6298. # No need to generate them if there are no CONFIG_HEADERS.
  6299. # This happens for instance with `./config.status Makefile'.
  6300. if test -n "$CONFIG_HEADERS"; then
  6301. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  6302. BEGIN {
  6303. _ACEOF
  6304. # Transform confdefs.h into an awk script `defines.awk', embedded as
  6305. # here-document in config.status, that substitutes the proper values into
  6306. # config.h.in to produce config.h.
  6307. # Create a delimiter string that does not exist in confdefs.h, to ease
  6308. # handling of long lines.
  6309. ac_delim='%!_!# '
  6310. for ac_last_try in false false :; do
  6311. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  6312. if test -z "$ac_tt"; then
  6313. break
  6314. elif $ac_last_try; then
  6315. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  6316. else
  6317. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  6318. fi
  6319. done
  6320. # For the awk script, D is an array of macro values keyed by name,
  6321. # likewise P contains macro parameters if any. Preserve backslash
  6322. # newline sequences.
  6323. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  6324. sed -n '
  6325. s/.\{148\}/&'"$ac_delim"'/g
  6326. t rset
  6327. :rset
  6328. s/^[ ]*#[ ]*define[ ][ ]*/ /
  6329. t def
  6330. d
  6331. :def
  6332. s/\\$//
  6333. t bsnl
  6334. s/["\\]/\\&/g
  6335. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  6336. D["\1"]=" \3"/p
  6337. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  6338. d
  6339. :bsnl
  6340. s/["\\]/\\&/g
  6341. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  6342. D["\1"]=" \3\\\\\\n"\\/p
  6343. t cont
  6344. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  6345. t cont
  6346. d
  6347. :cont
  6348. n
  6349. s/.\{148\}/&'"$ac_delim"'/g
  6350. t clear
  6351. :clear
  6352. s/\\$//
  6353. t bsnlc
  6354. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  6355. d
  6356. :bsnlc
  6357. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  6358. b cont
  6359. ' <confdefs.h | sed '
  6360. s/'"$ac_delim"'/"\\\
  6361. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  6362. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6363. for (key in D) D_is_set[key] = 1
  6364. FS = ""
  6365. }
  6366. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  6367. line = \$ 0
  6368. split(line, arg, " ")
  6369. if (arg[1] == "#") {
  6370. defundef = arg[2]
  6371. mac1 = arg[3]
  6372. } else {
  6373. defundef = substr(arg[1], 2)
  6374. mac1 = arg[2]
  6375. }
  6376. split(mac1, mac2, "(") #)
  6377. macro = mac2[1]
  6378. prefix = substr(line, 1, index(line, defundef) - 1)
  6379. if (D_is_set[macro]) {
  6380. # Preserve the white space surrounding the "#".
  6381. print prefix "define", macro P[macro] D[macro]
  6382. next
  6383. } else {
  6384. # Replace #undef with comments. This is necessary, for example,
  6385. # in the case of _POSIX_SOURCE, which is predefined and required
  6386. # on some systems where configure will not decide to define it.
  6387. if (defundef == "undef") {
  6388. print "/*", prefix defundef, macro, "*/"
  6389. next
  6390. }
  6391. }
  6392. }
  6393. { print }
  6394. _ACAWK
  6395. _ACEOF
  6396. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6397. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  6398. fi # test -n "$CONFIG_HEADERS"
  6399. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  6400. shift
  6401. for ac_tag
  6402. do
  6403. case $ac_tag in
  6404. :[FHLC]) ac_mode=$ac_tag; continue;;
  6405. esac
  6406. case $ac_mode$ac_tag in
  6407. :[FHL]*:*);;
  6408. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  6409. :[FH]-) ac_tag=-:-;;
  6410. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  6411. esac
  6412. ac_save_IFS=$IFS
  6413. IFS=:
  6414. set x $ac_tag
  6415. IFS=$ac_save_IFS
  6416. shift
  6417. ac_file=$1
  6418. shift
  6419. case $ac_mode in
  6420. :L) ac_source=$1;;
  6421. :[FH])
  6422. ac_file_inputs=
  6423. for ac_f
  6424. do
  6425. case $ac_f in
  6426. -) ac_f="$ac_tmp/stdin";;
  6427. *) # Look for the file first in the build tree, then in the source tree
  6428. # (if the path is not absolute). The absolute path cannot be DOS-style,
  6429. # because $ac_f cannot contain `:'.
  6430. test -f "$ac_f" ||
  6431. case $ac_f in
  6432. [\\/$]*) false;;
  6433. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  6434. esac ||
  6435. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  6436. esac
  6437. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  6438. as_fn_append ac_file_inputs " '$ac_f'"
  6439. done
  6440. # Let's still pretend it is `configure' which instantiates (i.e., don't
  6441. # use $as_me), people would be surprised to read:
  6442. # /* config.h. Generated by config.status. */
  6443. configure_input='Generated from '`
  6444. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  6445. `' by configure.'
  6446. if test x"$ac_file" != x-; then
  6447. configure_input="$ac_file. $configure_input"
  6448. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  6449. $as_echo "$as_me: creating $ac_file" >&6;}
  6450. fi
  6451. # Neutralize special characters interpreted by sed in replacement strings.
  6452. case $configure_input in #(
  6453. *\&* | *\|* | *\\* )
  6454. ac_sed_conf_input=`$as_echo "$configure_input" |
  6455. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  6456. *) ac_sed_conf_input=$configure_input;;
  6457. esac
  6458. case $ac_tag in
  6459. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  6460. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  6461. esac
  6462. ;;
  6463. esac
  6464. ac_dir=`$as_dirname -- "$ac_file" ||
  6465. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  6466. X"$ac_file" : 'X\(//\)[^/]' \| \
  6467. X"$ac_file" : 'X\(//\)$' \| \
  6468. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  6469. $as_echo X"$ac_file" |
  6470. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  6471. s//\1/
  6472. q
  6473. }
  6474. /^X\(\/\/\)[^/].*/{
  6475. s//\1/
  6476. q
  6477. }
  6478. /^X\(\/\/\)$/{
  6479. s//\1/
  6480. q
  6481. }
  6482. /^X\(\/\).*/{
  6483. s//\1/
  6484. q
  6485. }
  6486. s/.*/./; q'`
  6487. as_dir="$ac_dir"; as_fn_mkdir_p
  6488. ac_builddir=.
  6489. case "$ac_dir" in
  6490. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  6491. *)
  6492. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  6493. # A ".." for each directory in $ac_dir_suffix.
  6494. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  6495. case $ac_top_builddir_sub in
  6496. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  6497. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  6498. esac ;;
  6499. esac
  6500. ac_abs_top_builddir=$ac_pwd
  6501. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  6502. # for backward compatibility:
  6503. ac_top_builddir=$ac_top_build_prefix
  6504. case $srcdir in
  6505. .) # We are building in place.
  6506. ac_srcdir=.
  6507. ac_top_srcdir=$ac_top_builddir_sub
  6508. ac_abs_top_srcdir=$ac_pwd ;;
  6509. [\\/]* | ?:[\\/]* ) # Absolute name.
  6510. ac_srcdir=$srcdir$ac_dir_suffix;
  6511. ac_top_srcdir=$srcdir
  6512. ac_abs_top_srcdir=$srcdir ;;
  6513. *) # Relative name.
  6514. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  6515. ac_top_srcdir=$ac_top_build_prefix$srcdir
  6516. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  6517. esac
  6518. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  6519. case $ac_mode in
  6520. :F)
  6521. #
  6522. # CONFIG_FILE
  6523. #
  6524. case $INSTALL in
  6525. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  6526. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  6527. esac
  6528. ac_MKDIR_P=$MKDIR_P
  6529. case $MKDIR_P in
  6530. [\\/$]* | ?:[\\/]* ) ;;
  6531. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  6532. esac
  6533. _ACEOF
  6534. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6535. # If the template does not know about datarootdir, expand it.
  6536. # FIXME: This hack should be removed a few years after 2.60.
  6537. ac_datarootdir_hack=; ac_datarootdir_seen=
  6538. ac_sed_dataroot='
  6539. /datarootdir/ {
  6540. p
  6541. q
  6542. }
  6543. /@datadir@/p
  6544. /@docdir@/p
  6545. /@infodir@/p
  6546. /@localedir@/p
  6547. /@mandir@/p'
  6548. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  6549. *datarootdir*) ac_datarootdir_seen=yes;;
  6550. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  6551. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  6552. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  6553. _ACEOF
  6554. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6555. ac_datarootdir_hack='
  6556. s&@datadir@&$datadir&g
  6557. s&@docdir@&$docdir&g
  6558. s&@infodir@&$infodir&g
  6559. s&@localedir@&$localedir&g
  6560. s&@mandir@&$mandir&g
  6561. s&\\\${datarootdir}&$datarootdir&g' ;;
  6562. esac
  6563. _ACEOF
  6564. # Neutralize VPATH when `$srcdir' = `.'.
  6565. # Shell code in configure.ac might set extrasub.
  6566. # FIXME: do we really want to maintain this feature?
  6567. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6568. ac_sed_extra="$ac_vpsub
  6569. $extrasub
  6570. _ACEOF
  6571. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6572. :t
  6573. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  6574. s|@configure_input@|$ac_sed_conf_input|;t t
  6575. s&@top_builddir@&$ac_top_builddir_sub&;t t
  6576. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  6577. s&@srcdir@&$ac_srcdir&;t t
  6578. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  6579. s&@top_srcdir@&$ac_top_srcdir&;t t
  6580. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  6581. s&@builddir@&$ac_builddir&;t t
  6582. s&@abs_builddir@&$ac_abs_builddir&;t t
  6583. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  6584. s&@INSTALL@&$ac_INSTALL&;t t
  6585. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  6586. $ac_datarootdir_hack
  6587. "
  6588. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  6589. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  6590. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  6591. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  6592. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  6593. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  6594. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  6595. which seems to be undefined. Please make sure it is defined" >&5
  6596. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  6597. which seems to be undefined. Please make sure it is defined" >&2;}
  6598. rm -f "$ac_tmp/stdin"
  6599. case $ac_file in
  6600. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  6601. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  6602. esac \
  6603. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  6604. ;;
  6605. :H)
  6606. #
  6607. # CONFIG_HEADER
  6608. #
  6609. if test x"$ac_file" != x-; then
  6610. {
  6611. $as_echo "/* $configure_input */" \
  6612. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  6613. } >"$ac_tmp/config.h" \
  6614. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  6615. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  6616. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  6617. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  6618. else
  6619. rm -f "$ac_file"
  6620. mv "$ac_tmp/config.h" "$ac_file" \
  6621. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  6622. fi
  6623. else
  6624. $as_echo "/* $configure_input */" \
  6625. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  6626. || as_fn_error $? "could not create -" "$LINENO" 5
  6627. fi
  6628. # Compute "$ac_file"'s index in $config_headers.
  6629. _am_arg="$ac_file"
  6630. _am_stamp_count=1
  6631. for _am_header in $config_headers :; do
  6632. case $_am_header in
  6633. $_am_arg | $_am_arg:* )
  6634. break ;;
  6635. * )
  6636. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  6637. esac
  6638. done
  6639. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  6640. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  6641. X"$_am_arg" : 'X\(//\)[^/]' \| \
  6642. X"$_am_arg" : 'X\(//\)$' \| \
  6643. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  6644. $as_echo X"$_am_arg" |
  6645. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  6646. s//\1/
  6647. q
  6648. }
  6649. /^X\(\/\/\)[^/].*/{
  6650. s//\1/
  6651. q
  6652. }
  6653. /^X\(\/\/\)$/{
  6654. s//\1/
  6655. q
  6656. }
  6657. /^X\(\/\).*/{
  6658. s//\1/
  6659. q
  6660. }
  6661. s/.*/./; q'`/stamp-h$_am_stamp_count
  6662. ;;
  6663. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  6664. $as_echo "$as_me: executing $ac_file commands" >&6;}
  6665. ;;
  6666. esac
  6667. case $ac_file$ac_mode in
  6668. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  6669. # Older Autoconf quotes --file arguments for eval, but not when files
  6670. # are listed without --file. Let's play safe and only enable the eval
  6671. # if we detect the quoting.
  6672. case $CONFIG_FILES in
  6673. *\'*) eval set x "$CONFIG_FILES" ;;
  6674. *) set x $CONFIG_FILES ;;
  6675. esac
  6676. shift
  6677. for mf
  6678. do
  6679. # Strip MF so we end up with the name of the file.
  6680. mf=`echo "$mf" | sed -e 's/:.*$//'`
  6681. # Check whether this is an Automake generated Makefile or not.
  6682. # We used to match only the files named 'Makefile.in', but
  6683. # some people rename them; so instead we look at the file content.
  6684. # Grep'ing the first line is not enough: some people post-process
  6685. # each Makefile.in and add a new line on top of each file to say so.
  6686. # Grep'ing the whole file is not good either: AIX grep has a line
  6687. # limit of 2048, but all sed's we know have understand at least 4000.
  6688. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  6689. dirpart=`$as_dirname -- "$mf" ||
  6690. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  6691. X"$mf" : 'X\(//\)[^/]' \| \
  6692. X"$mf" : 'X\(//\)$' \| \
  6693. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  6694. $as_echo X"$mf" |
  6695. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  6696. s//\1/
  6697. q
  6698. }
  6699. /^X\(\/\/\)[^/].*/{
  6700. s//\1/
  6701. q
  6702. }
  6703. /^X\(\/\/\)$/{
  6704. s//\1/
  6705. q
  6706. }
  6707. /^X\(\/\).*/{
  6708. s//\1/
  6709. q
  6710. }
  6711. s/.*/./; q'`
  6712. else
  6713. continue
  6714. fi
  6715. # Extract the definition of DEPDIR, am__include, and am__quote
  6716. # from the Makefile without running 'make'.
  6717. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  6718. test -z "$DEPDIR" && continue
  6719. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  6720. test -z "$am__include" && continue
  6721. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  6722. # Find all dependency output files, they are included files with
  6723. # $(DEPDIR) in their names. We invoke sed twice because it is the
  6724. # simplest approach to changing $(DEPDIR) to its actual value in the
  6725. # expansion.
  6726. for file in `sed -n "
  6727. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  6728. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  6729. # Make sure the directory exists.
  6730. test -f "$dirpart/$file" && continue
  6731. fdir=`$as_dirname -- "$file" ||
  6732. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  6733. X"$file" : 'X\(//\)[^/]' \| \
  6734. X"$file" : 'X\(//\)$' \| \
  6735. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  6736. $as_echo X"$file" |
  6737. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  6738. s//\1/
  6739. q
  6740. }
  6741. /^X\(\/\/\)[^/].*/{
  6742. s//\1/
  6743. q
  6744. }
  6745. /^X\(\/\/\)$/{
  6746. s//\1/
  6747. q
  6748. }
  6749. /^X\(\/\).*/{
  6750. s//\1/
  6751. q
  6752. }
  6753. s/.*/./; q'`
  6754. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  6755. # echo "creating $dirpart/$file"
  6756. echo '# dummy' > "$dirpart/$file"
  6757. done
  6758. done
  6759. }
  6760. ;;
  6761. esac
  6762. done # for ac_tag
  6763. as_fn_exit 0
  6764. _ACEOF
  6765. ac_clean_files=$ac_clean_files_save
  6766. test $ac_write_fail = 0 ||
  6767. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  6768. # configure is writing to config.log, and then calls config.status.
  6769. # config.status does its own redirection, appending to config.log.
  6770. # Unfortunately, on DOS this fails, as config.log is still kept open
  6771. # by configure, so config.status won't be able to write to it; its
  6772. # output is simply discarded. So we exec the FD to /dev/null,
  6773. # effectively closing config.log, so it can be properly (re)opened and
  6774. # appended to by config.status. When coming back to configure, we
  6775. # need to make the FD available again.
  6776. if test "$no_create" != yes; then
  6777. ac_cs_success=:
  6778. ac_config_status_args=
  6779. test "$silent" = yes &&
  6780. ac_config_status_args="$ac_config_status_args --quiet"
  6781. exec 5>/dev/null
  6782. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  6783. exec 5>>config.log
  6784. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  6785. # would make configure fail if this is the last instruction.
  6786. $ac_cs_success || as_fn_exit 1
  6787. fi
  6788. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  6789. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  6790. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  6791. fi
  6792. { $as_echo "$as_me:${as_lineno-$LINENO}: result:
  6793. ${PACKAGE_NAME} ${VERSION}
  6794. SELinux support: ${WITH_SELINUX}
  6795. ACL support: ${WITH_ACL}
  6796. default mail command: ${DEFAULT_MAIL_COMMAND}
  6797. compress command: ${COMPRESS_COMMAND}
  6798. uncompress command: ${UNCOMPRESS_COMMAND}
  6799. compress extension: ${COMPRESS_EXT}
  6800. statefile path: ${STATE_FILE_PATH}
  6801. " >&5
  6802. $as_echo "
  6803. ${PACKAGE_NAME} ${VERSION}
  6804. SELinux support: ${WITH_SELINUX}
  6805. ACL support: ${WITH_ACL}
  6806. default mail command: ${DEFAULT_MAIL_COMMAND}
  6807. compress command: ${COMPRESS_COMMAND}
  6808. uncompress command: ${UNCOMPRESS_COMMAND}
  6809. compress extension: ${COMPRESS_EXT}
  6810. statefile path: ${STATE_FILE_PATH}
  6811. " >&6; }