configure 220 KB

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