configure 177 KB

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