You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

configure 360KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.61.
  4. #
  5. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  6. # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9. ## --------------------- ##
  10. ## M4sh Initialization. ##
  11. ## --------------------- ##
  12. # Be more Bourne compatible
  13. DUALCASE=1; export DUALCASE # for MKS sh
  14. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  15. emulate sh
  16. NULLCMD=:
  17. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  18. # is contrary to our usage. Disable this feature.
  19. alias -g '${1+"$@"}'='"$@"'
  20. setopt NO_GLOB_SUBST
  21. else
  22. case `(set -o) 2>/dev/null` in
  23. *posix*) set -o posix ;;
  24. esac
  25. fi
  26. # PATH needs CR
  27. # Avoid depending upon Character Ranges.
  28. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  29. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  30. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  31. as_cr_digits='0123456789'
  32. as_cr_alnum=$as_cr_Letters$as_cr_digits
  33. # The user is always right.
  34. if test "${PATH_SEPARATOR+set}" != set; then
  35. echo "#! /bin/sh" >conf$$.sh
  36. echo "exit 0" >>conf$$.sh
  37. chmod +x conf$$.sh
  38. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  39. PATH_SEPARATOR=';'
  40. else
  41. PATH_SEPARATOR=:
  42. fi
  43. rm -f conf$$.sh
  44. fi
  45. # Support unset when possible.
  46. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  47. as_unset=unset
  48. else
  49. as_unset=false
  50. fi
  51. # IFS
  52. # We need space, tab and new line, in precisely that order. Quoting is
  53. # there to prevent editors from complaining about space-tab.
  54. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  55. # splitting by setting IFS to empty value.)
  56. as_nl='
  57. '
  58. IFS=" "" $as_nl"
  59. # Find who we are. Look in the path if we contain no directory separator.
  60. case $0 in
  61. *[\\/]* ) as_myself=$0 ;;
  62. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  63. for as_dir in $PATH
  64. do
  65. IFS=$as_save_IFS
  66. test -z "$as_dir" && as_dir=.
  67. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  68. done
  69. IFS=$as_save_IFS
  70. ;;
  71. esac
  72. # We did not find ourselves, most probably we were run as `sh COMMAND'
  73. # in which case we are not to be found in the path.
  74. if test "x$as_myself" = x; then
  75. as_myself=$0
  76. fi
  77. if test ! -f "$as_myself"; then
  78. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  79. { (exit 1); exit 1; }
  80. fi
  81. # Work around bugs in pre-3.0 UWIN ksh.
  82. for as_var in ENV MAIL MAILPATH
  83. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  84. done
  85. PS1='$ '
  86. PS2='> '
  87. PS4='+ '
  88. # NLS nuisances.
  89. for as_var in \
  90. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  91. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  92. LC_TELEPHONE LC_TIME
  93. do
  94. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  95. eval $as_var=C; export $as_var
  96. else
  97. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  98. fi
  99. done
  100. # Required to use basename.
  101. if expr a : '\(a\)' >/dev/null 2>&1 &&
  102. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  103. as_expr=expr
  104. else
  105. as_expr=false
  106. fi
  107. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  108. as_basename=basename
  109. else
  110. as_basename=false
  111. fi
  112. # Name of the executable.
  113. as_me=`$as_basename -- "$0" ||
  114. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  115. X"$0" : 'X\(//\)$' \| \
  116. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  117. echo X/"$0" |
  118. sed '/^.*\/\([^/][^/]*\)\/*$/{
  119. s//\1/
  120. q
  121. }
  122. /^X\/\(\/\/\)$/{
  123. s//\1/
  124. q
  125. }
  126. /^X\/\(\/\).*/{
  127. s//\1/
  128. q
  129. }
  130. s/.*/./; q'`
  131. # CDPATH.
  132. $as_unset CDPATH
  133. if test "x$CONFIG_SHELL" = x; then
  134. if (eval ":") 2>/dev/null; then
  135. as_have_required=yes
  136. else
  137. as_have_required=no
  138. fi
  139. if test $as_have_required = yes && (eval ":
  140. (as_func_return () {
  141. (exit \$1)
  142. }
  143. as_func_success () {
  144. as_func_return 0
  145. }
  146. as_func_failure () {
  147. as_func_return 1
  148. }
  149. as_func_ret_success () {
  150. return 0
  151. }
  152. as_func_ret_failure () {
  153. return 1
  154. }
  155. exitcode=0
  156. if as_func_success; then
  157. :
  158. else
  159. exitcode=1
  160. echo as_func_success failed.
  161. fi
  162. if as_func_failure; then
  163. exitcode=1
  164. echo as_func_failure succeeded.
  165. fi
  166. if as_func_ret_success; then
  167. :
  168. else
  169. exitcode=1
  170. echo as_func_ret_success failed.
  171. fi
  172. if as_func_ret_failure; then
  173. exitcode=1
  174. echo as_func_ret_failure succeeded.
  175. fi
  176. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  177. :
  178. else
  179. exitcode=1
  180. echo positional parameters were not saved.
  181. fi
  182. test \$exitcode = 0) || { (exit 1); exit 1; }
  183. (
  184. as_lineno_1=\$LINENO
  185. as_lineno_2=\$LINENO
  186. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  187. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  188. ") 2> /dev/null; then
  189. :
  190. else
  191. as_candidate_shells=
  192. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  193. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  194. do
  195. IFS=$as_save_IFS
  196. test -z "$as_dir" && as_dir=.
  197. case $as_dir in
  198. /*)
  199. for as_base in sh bash ksh sh5; do
  200. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  201. done;;
  202. esac
  203. done
  204. IFS=$as_save_IFS
  205. for as_shell in $as_candidate_shells $SHELL; do
  206. # Try only shells that exist, to save several forks.
  207. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  208. { ("$as_shell") 2> /dev/null <<\_ASEOF
  209. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  210. emulate sh
  211. NULLCMD=:
  212. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  213. # is contrary to our usage. Disable this feature.
  214. alias -g '${1+"$@"}'='"$@"'
  215. setopt NO_GLOB_SUBST
  216. else
  217. case `(set -o) 2>/dev/null` in
  218. *posix*) set -o posix ;;
  219. esac
  220. fi
  221. :
  222. _ASEOF
  223. }; then
  224. CONFIG_SHELL=$as_shell
  225. as_have_required=yes
  226. if { "$as_shell" 2> /dev/null <<\_ASEOF
  227. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  228. emulate sh
  229. NULLCMD=:
  230. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  231. # is contrary to our usage. Disable this feature.
  232. alias -g '${1+"$@"}'='"$@"'
  233. setopt NO_GLOB_SUBST
  234. else
  235. case `(set -o) 2>/dev/null` in
  236. *posix*) set -o posix ;;
  237. esac
  238. fi
  239. :
  240. (as_func_return () {
  241. (exit $1)
  242. }
  243. as_func_success () {
  244. as_func_return 0
  245. }
  246. as_func_failure () {
  247. as_func_return 1
  248. }
  249. as_func_ret_success () {
  250. return 0
  251. }
  252. as_func_ret_failure () {
  253. return 1
  254. }
  255. exitcode=0
  256. if as_func_success; then
  257. :
  258. else
  259. exitcode=1
  260. echo as_func_success failed.
  261. fi
  262. if as_func_failure; then
  263. exitcode=1
  264. echo as_func_failure succeeded.
  265. fi
  266. if as_func_ret_success; then
  267. :
  268. else
  269. exitcode=1
  270. echo as_func_ret_success failed.
  271. fi
  272. if as_func_ret_failure; then
  273. exitcode=1
  274. echo as_func_ret_failure succeeded.
  275. fi
  276. if ( set x; as_func_ret_success y && test x = "$1" ); then
  277. :
  278. else
  279. exitcode=1
  280. echo positional parameters were not saved.
  281. fi
  282. test $exitcode = 0) || { (exit 1); exit 1; }
  283. (
  284. as_lineno_1=$LINENO
  285. as_lineno_2=$LINENO
  286. test "x$as_lineno_1" != "x$as_lineno_2" &&
  287. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  288. _ASEOF
  289. }; then
  290. break
  291. fi
  292. fi
  293. done
  294. if test "x$CONFIG_SHELL" != x; then
  295. for as_var in BASH_ENV ENV
  296. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  297. done
  298. export CONFIG_SHELL
  299. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  300. fi
  301. if test $as_have_required = no; then
  302. echo This script requires a shell more modern than all the
  303. echo shells that I found on your system. Please install a
  304. echo modern shell, or manually run the script under such a
  305. echo shell if you do have one.
  306. { (exit 1); exit 1; }
  307. fi
  308. fi
  309. fi
  310. (eval "as_func_return () {
  311. (exit \$1)
  312. }
  313. as_func_success () {
  314. as_func_return 0
  315. }
  316. as_func_failure () {
  317. as_func_return 1
  318. }
  319. as_func_ret_success () {
  320. return 0
  321. }
  322. as_func_ret_failure () {
  323. return 1
  324. }
  325. exitcode=0
  326. if as_func_success; then
  327. :
  328. else
  329. exitcode=1
  330. echo as_func_success failed.
  331. fi
  332. if as_func_failure; then
  333. exitcode=1
  334. echo as_func_failure succeeded.
  335. fi
  336. if as_func_ret_success; then
  337. :
  338. else
  339. exitcode=1
  340. echo as_func_ret_success failed.
  341. fi
  342. if as_func_ret_failure; then
  343. exitcode=1
  344. echo as_func_ret_failure succeeded.
  345. fi
  346. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  347. :
  348. else
  349. exitcode=1
  350. echo positional parameters were not saved.
  351. fi
  352. test \$exitcode = 0") || {
  353. echo No shell found that supports shell functions.
  354. echo Please tell autoconf@gnu.org about your system,
  355. echo including any error possibly output before this
  356. echo message
  357. }
  358. as_lineno_1=$LINENO
  359. as_lineno_2=$LINENO
  360. test "x$as_lineno_1" != "x$as_lineno_2" &&
  361. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  362. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  363. # uniformly replaced by the line number. The first 'sed' inserts a
  364. # line-number line after each line using $LINENO; the second 'sed'
  365. # does the real work. The second script uses 'N' to pair each
  366. # line-number line with the line containing $LINENO, and appends
  367. # trailing '-' during substitution so that $LINENO is not a special
  368. # case at line end.
  369. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  370. # scripts with optimization help from Paolo Bonzini. Blame Lee
  371. # E. McMahon (1931-1989) for sed's syntax. :-)
  372. sed -n '
  373. p
  374. /[$]LINENO/=
  375. ' <$as_myself |
  376. sed '
  377. s/[$]LINENO.*/&-/
  378. t lineno
  379. b
  380. :lineno
  381. N
  382. :loop
  383. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  384. t loop
  385. s/-\n.*//
  386. ' >$as_me.lineno &&
  387. chmod +x "$as_me.lineno" ||
  388. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  389. { (exit 1); exit 1; }; }
  390. # Don't try to exec as it changes $[0], causing all sort of problems
  391. # (the dirname of $[0] is not the place where we might find the
  392. # original and so on. Autoconf is especially sensitive to this).
  393. . "./$as_me.lineno"
  394. # Exit status is that of the last command.
  395. exit
  396. }
  397. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  398. as_dirname=dirname
  399. else
  400. as_dirname=false
  401. fi
  402. ECHO_C= ECHO_N= ECHO_T=
  403. case `echo -n x` in
  404. -n*)
  405. case `echo 'x\c'` in
  406. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  407. *) ECHO_C='\c';;
  408. esac;;
  409. *)
  410. ECHO_N='-n';;
  411. esac
  412. if expr a : '\(a\)' >/dev/null 2>&1 &&
  413. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  414. as_expr=expr
  415. else
  416. as_expr=false
  417. fi
  418. rm -f conf$$ conf$$.exe conf$$.file
  419. if test -d conf$$.dir; then
  420. rm -f conf$$.dir/conf$$.file
  421. else
  422. rm -f conf$$.dir
  423. mkdir conf$$.dir
  424. fi
  425. echo >conf$$.file
  426. if ln -s conf$$.file conf$$ 2>/dev/null; then
  427. as_ln_s='ln -s'
  428. # ... but there are two gotchas:
  429. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  430. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  431. # In both cases, we have to default to `cp -p'.
  432. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  433. as_ln_s='cp -p'
  434. elif ln conf$$.file conf$$ 2>/dev/null; then
  435. as_ln_s=ln
  436. else
  437. as_ln_s='cp -p'
  438. fi
  439. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  440. rmdir conf$$.dir 2>/dev/null
  441. if mkdir -p . 2>/dev/null; then
  442. as_mkdir_p=:
  443. else
  444. test -d ./-p && rmdir ./-p
  445. as_mkdir_p=false
  446. fi
  447. if test -x / >/dev/null 2>&1; then
  448. as_test_x='test -x'
  449. else
  450. if ls -dL / >/dev/null 2>&1; then
  451. as_ls_L_option=L
  452. else
  453. as_ls_L_option=
  454. fi
  455. as_test_x='
  456. eval sh -c '\''
  457. if test -d "$1"; then
  458. test -d "$1/.";
  459. else
  460. case $1 in
  461. -*)set "./$1";;
  462. esac;
  463. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  464. ???[sx]*):;;*)false;;esac;fi
  465. '\'' sh
  466. '
  467. fi
  468. as_executable_p=$as_test_x
  469. # Sed expression to map a string onto a valid CPP name.
  470. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  471. # Sed expression to map a string onto a valid variable name.
  472. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  473. exec 7<&0 </dev/null 6>&1
  474. # Name of the host.
  475. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  476. # so uname gets run too.
  477. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  478. #
  479. # Initializations.
  480. #
  481. ac_default_prefix=/usr/local
  482. ac_clean_files=
  483. ac_config_libobj_dir=.
  484. LIBOBJS=
  485. cross_compiling=no
  486. subdirs=
  487. MFLAGS=
  488. MAKEFLAGS=
  489. SHELL=${CONFIG_SHELL-/bin/sh}
  490. # Identity of this package.
  491. PACKAGE_NAME=
  492. PACKAGE_TARNAME=
  493. PACKAGE_VERSION=
  494. PACKAGE_STRING=
  495. PACKAGE_BUGREPORT=
  496. ac_unique_file="vncviewer/vncviewer.cxx"
  497. # Factoring default headers for most tests.
  498. ac_includes_default="\
  499. #include <stdio.h>
  500. #ifdef HAVE_SYS_TYPES_H
  501. # include <sys/types.h>
  502. #endif
  503. #ifdef HAVE_SYS_STAT_H
  504. # include <sys/stat.h>
  505. #endif
  506. #ifdef STDC_HEADERS
  507. # include <stdlib.h>
  508. # include <stddef.h>
  509. #else
  510. # ifdef HAVE_STDLIB_H
  511. # include <stdlib.h>
  512. # endif
  513. #endif
  514. #ifdef HAVE_STRING_H
  515. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  516. # include <memory.h>
  517. # endif
  518. # include <string.h>
  519. #endif
  520. #ifdef HAVE_STRINGS_H
  521. # include <strings.h>
  522. #endif
  523. #ifdef HAVE_INTTYPES_H
  524. # include <inttypes.h>
  525. #endif
  526. #ifdef HAVE_STDINT_H
  527. # include <stdint.h>
  528. #endif
  529. #ifdef HAVE_UNISTD_H
  530. # include <unistd.h>
  531. #endif"
  532. ac_subst_vars='SHELL
  533. PATH_SEPARATOR
  534. PACKAGE_NAME
  535. PACKAGE_TARNAME
  536. PACKAGE_VERSION
  537. PACKAGE_STRING
  538. PACKAGE_BUGREPORT
  539. exec_prefix
  540. prefix
  541. program_transform_name
  542. bindir
  543. sbindir
  544. libexecdir
  545. datarootdir
  546. datadir
  547. sysconfdir
  548. sharedstatedir
  549. localstatedir
  550. includedir
  551. oldincludedir
  552. docdir
  553. infodir
  554. htmldir
  555. dvidir
  556. pdfdir
  557. psdir
  558. libdir
  559. localedir
  560. mandir
  561. DEFS
  562. ECHO_C
  563. ECHO_N
  564. ECHO_T
  565. LIBS
  566. build_alias
  567. host_alias
  568. target_alias
  569. PACKAGE
  570. VERSION
  571. CC
  572. CFLAGS
  573. LDFLAGS
  574. CPPFLAGS
  575. ac_ct_CC
  576. EXEEXT
  577. OBJEXT
  578. CXX
  579. CXXFLAGS
  580. ac_ct_CXX
  581. RANLIB
  582. SET_MAKE
  583. MITSHM_DEFINE
  584. CL_LIB
  585. DMEDIA_LIB
  586. XMKMF
  587. CXXCPP
  588. X_CFLAGS
  589. X_PRE_LIBS
  590. X_LIBS
  591. X_EXTRA_LIBS
  592. ZLIB_DIR
  593. ZLIB_INCLUDE
  594. ZLIB_LIB
  595. JPEG_DIR
  596. JPEG_INCLUDE
  597. JPEG_LIB
  598. VNCCONFIG_DIR
  599. XTEST_DEFINE
  600. XTEST_LIB
  601. READDISPLAY_DEFINE
  602. INET_LIB
  603. INSTALL_PROGRAM
  604. INSTALL_SCRIPT
  605. INSTALL_DATA
  606. MKINSTALLDIRS
  607. USE_NLS
  608. MSGFMT
  609. GMSGFMT
  610. XGETTEXT
  611. MSGMERGE
  612. build
  613. build_cpu
  614. build_vendor
  615. build_os
  616. host
  617. host_cpu
  618. host_vendor
  619. host_os
  620. GREP
  621. EGREP
  622. ALLOCA
  623. GLIBC21
  624. HAVE_POSIX_PRINTF
  625. HAVE_ASPRINTF
  626. HAVE_SNPRINTF
  627. HAVE_WPRINTF
  628. LIBICONV
  629. LTLIBICONV
  630. INTLBISON
  631. BUILD_INCLUDED_LIBINTL
  632. USE_INCLUDED_LIBINTL
  633. CATOBJEXT
  634. DATADIRNAME
  635. INSTOBJEXT
  636. GENCAT
  637. INTLOBJS
  638. INTL_LIBTOOL_SUFFIX_PREFIX
  639. INTLLIBS
  640. LIBINTL
  641. LTLIBINTL
  642. POSUB
  643. LIBOBJS
  644. LTLIBOBJS'
  645. ac_subst_files=''
  646. ac_precious_vars='build_alias
  647. host_alias
  648. target_alias
  649. CC
  650. CFLAGS
  651. LDFLAGS
  652. LIBS
  653. CPPFLAGS
  654. CXX
  655. CXXFLAGS
  656. CCC
  657. XMKMF
  658. CXXCPP'
  659. # Initialize some variables set by options.
  660. ac_init_help=
  661. ac_init_version=false
  662. # The variables have the same names as the options, with
  663. # dashes changed to underlines.
  664. cache_file=/dev/null
  665. exec_prefix=NONE
  666. no_create=
  667. no_recursion=
  668. prefix=NONE
  669. program_prefix=NONE
  670. program_suffix=NONE
  671. program_transform_name=s,x,x,
  672. silent=
  673. site=
  674. srcdir=
  675. verbose=
  676. x_includes=NONE
  677. x_libraries=NONE
  678. # Installation directory options.
  679. # These are left unexpanded so users can "make install exec_prefix=/foo"
  680. # and all the variables that are supposed to be based on exec_prefix
  681. # by default will actually change.
  682. # Use braces instead of parens because sh, perl, etc. also accept them.
  683. # (The list follows the same order as the GNU Coding Standards.)
  684. bindir='${exec_prefix}/bin'
  685. sbindir='${exec_prefix}/sbin'
  686. libexecdir='${exec_prefix}/libexec'
  687. datarootdir='${prefix}/share'
  688. datadir='${datarootdir}'
  689. sysconfdir='${prefix}/etc'
  690. sharedstatedir='${prefix}/com'
  691. localstatedir='${prefix}/var'
  692. includedir='${prefix}/include'
  693. oldincludedir='/usr/include'
  694. docdir='${datarootdir}/doc/${PACKAGE}'
  695. infodir='${datarootdir}/info'
  696. htmldir='${docdir}'
  697. dvidir='${docdir}'
  698. pdfdir='${docdir}'
  699. psdir='${docdir}'
  700. libdir='${exec_prefix}/lib'
  701. localedir='${datarootdir}/locale'
  702. mandir='${datarootdir}/man'
  703. ac_prev=
  704. ac_dashdash=
  705. for ac_option
  706. do
  707. # If the previous option needs an argument, assign it.
  708. if test -n "$ac_prev"; then
  709. eval $ac_prev=\$ac_option
  710. ac_prev=
  711. continue
  712. fi
  713. case $ac_option in
  714. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  715. *) ac_optarg=yes ;;
  716. esac
  717. # Accept the important Cygnus configure options, so we can diagnose typos.
  718. case $ac_dashdash$ac_option in
  719. --)
  720. ac_dashdash=yes ;;
  721. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  722. ac_prev=bindir ;;
  723. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  724. bindir=$ac_optarg ;;
  725. -build | --build | --buil | --bui | --bu)
  726. ac_prev=build_alias ;;
  727. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  728. build_alias=$ac_optarg ;;
  729. -cache-file | --cache-file | --cache-fil | --cache-fi \
  730. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  731. ac_prev=cache_file ;;
  732. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  733. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  734. cache_file=$ac_optarg ;;
  735. --config-cache | -C)
  736. cache_file=config.cache ;;
  737. -datadir | --datadir | --datadi | --datad)
  738. ac_prev=datadir ;;
  739. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  740. datadir=$ac_optarg ;;
  741. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  742. | --dataroo | --dataro | --datar)
  743. ac_prev=datarootdir ;;
  744. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  745. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  746. datarootdir=$ac_optarg ;;
  747. -disable-* | --disable-*)
  748. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  749. # Reject names that are not valid shell variable names.
  750. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  751. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  752. { (exit 1); exit 1; }; }
  753. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  754. eval enable_$ac_feature=no ;;
  755. -docdir | --docdir | --docdi | --doc | --do)
  756. ac_prev=docdir ;;
  757. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  758. docdir=$ac_optarg ;;
  759. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  760. ac_prev=dvidir ;;
  761. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  762. dvidir=$ac_optarg ;;
  763. -enable-* | --enable-*)
  764. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  765. # Reject names that are not valid shell variable names.
  766. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  767. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  768. { (exit 1); exit 1; }; }
  769. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  770. eval enable_$ac_feature=\$ac_optarg ;;
  771. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  772. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  773. | --exec | --exe | --ex)
  774. ac_prev=exec_prefix ;;
  775. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  776. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  777. | --exec=* | --exe=* | --ex=*)
  778. exec_prefix=$ac_optarg ;;
  779. -gas | --gas | --ga | --g)
  780. # Obsolete; use --with-gas.
  781. with_gas=yes ;;
  782. -help | --help | --hel | --he | -h)
  783. ac_init_help=long ;;
  784. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  785. ac_init_help=recursive ;;
  786. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  787. ac_init_help=short ;;
  788. -host | --host | --hos | --ho)
  789. ac_prev=host_alias ;;
  790. -host=* | --host=* | --hos=* | --ho=*)
  791. host_alias=$ac_optarg ;;
  792. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  793. ac_prev=htmldir ;;
  794. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  795. | --ht=*)
  796. htmldir=$ac_optarg ;;
  797. -includedir | --includedir | --includedi | --included | --include \
  798. | --includ | --inclu | --incl | --inc)
  799. ac_prev=includedir ;;
  800. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  801. | --includ=* | --inclu=* | --incl=* | --inc=*)
  802. includedir=$ac_optarg ;;
  803. -infodir | --infodir | --infodi | --infod | --info | --inf)
  804. ac_prev=infodir ;;
  805. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  806. infodir=$ac_optarg ;;
  807. -libdir | --libdir | --libdi | --libd)
  808. ac_prev=libdir ;;
  809. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  810. libdir=$ac_optarg ;;
  811. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  812. | --libexe | --libex | --libe)
  813. ac_prev=libexecdir ;;
  814. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  815. | --libexe=* | --libex=* | --libe=*)
  816. libexecdir=$ac_optarg ;;
  817. -localedir | --localedir | --localedi | --localed | --locale)
  818. ac_prev=localedir ;;
  819. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  820. localedir=$ac_optarg ;;
  821. -localstatedir | --localstatedir | --localstatedi | --localstated \
  822. | --localstate | --localstat | --localsta | --localst | --locals)
  823. ac_prev=localstatedir ;;
  824. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  825. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  826. localstatedir=$ac_optarg ;;
  827. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  828. ac_prev=mandir ;;
  829. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  830. mandir=$ac_optarg ;;
  831. -nfp | --nfp | --nf)
  832. # Obsolete; use --without-fp.
  833. with_fp=no ;;
  834. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  835. | --no-cr | --no-c | -n)
  836. no_create=yes ;;
  837. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  838. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  839. no_recursion=yes ;;
  840. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  841. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  842. | --oldin | --oldi | --old | --ol | --o)
  843. ac_prev=oldincludedir ;;
  844. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  845. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  846. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  847. oldincludedir=$ac_optarg ;;
  848. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  849. ac_prev=prefix ;;
  850. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  851. prefix=$ac_optarg ;;
  852. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  853. | --program-pre | --program-pr | --program-p)
  854. ac_prev=program_prefix ;;
  855. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  856. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  857. program_prefix=$ac_optarg ;;
  858. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  859. | --program-suf | --program-su | --program-s)
  860. ac_prev=program_suffix ;;
  861. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  862. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  863. program_suffix=$ac_optarg ;;
  864. -program-transform-name | --program-transform-name \
  865. | --program-transform-nam | --program-transform-na \
  866. | --program-transform-n | --program-transform- \
  867. | --program-transform | --program-transfor \
  868. | --program-transfo | --program-transf \
  869. | --program-trans | --program-tran \
  870. | --progr-tra | --program-tr | --program-t)
  871. ac_prev=program_transform_name ;;
  872. -program-transform-name=* | --program-transform-name=* \
  873. | --program-transform-nam=* | --program-transform-na=* \
  874. | --program-transform-n=* | --program-transform-=* \
  875. | --program-transform=* | --program-transfor=* \
  876. | --program-transfo=* | --program-transf=* \
  877. | --program-trans=* | --program-tran=* \
  878. | --progr-tra=* | --program-tr=* | --program-t=*)
  879. program_transform_name=$ac_optarg ;;
  880. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  881. ac_prev=pdfdir ;;
  882. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  883. pdfdir=$ac_optarg ;;
  884. -psdir | --psdir | --psdi | --psd | --ps)
  885. ac_prev=psdir ;;
  886. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  887. psdir=$ac_optarg ;;
  888. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  889. | -silent | --silent | --silen | --sile | --sil)
  890. silent=yes ;;
  891. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  892. ac_prev=sbindir ;;
  893. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  894. | --sbi=* | --sb=*)
  895. sbindir=$ac_optarg ;;
  896. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  897. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  898. | --sharedst | --shareds | --shared | --share | --shar \
  899. | --sha | --sh)
  900. ac_prev=sharedstatedir ;;
  901. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  902. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  903. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  904. | --sha=* | --sh=*)
  905. sharedstatedir=$ac_optarg ;;
  906. -site | --site | --sit)
  907. ac_prev=site ;;
  908. -site=* | --site=* | --sit=*)
  909. site=$ac_optarg ;;
  910. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  911. ac_prev=srcdir ;;
  912. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  913. srcdir=$ac_optarg ;;
  914. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  915. | --syscon | --sysco | --sysc | --sys | --sy)
  916. ac_prev=sysconfdir ;;
  917. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  918. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  919. sysconfdir=$ac_optarg ;;
  920. -target | --target | --targe | --targ | --tar | --ta | --t)
  921. ac_prev=target_alias ;;
  922. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  923. target_alias=$ac_optarg ;;
  924. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  925. verbose=yes ;;
  926. -version | --version | --versio | --versi | --vers | -V)
  927. ac_init_version=: ;;
  928. -with-* | --with-*)
  929. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  930. # Reject names that are not valid shell variable names.
  931. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  932. { echo "$as_me: error: invalid package name: $ac_package" >&2
  933. { (exit 1); exit 1; }; }
  934. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  935. eval with_$ac_package=\$ac_optarg ;;
  936. -without-* | --without-*)
  937. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  938. # Reject names that are not valid shell variable names.
  939. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  940. { echo "$as_me: error: invalid package name: $ac_package" >&2
  941. { (exit 1); exit 1; }; }
  942. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  943. eval with_$ac_package=no ;;
  944. --x)
  945. # Obsolete; use --with-x.
  946. with_x=yes ;;
  947. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  948. | --x-incl | --x-inc | --x-in | --x-i)
  949. ac_prev=x_includes ;;
  950. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  951. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  952. x_includes=$ac_optarg ;;
  953. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  954. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  955. ac_prev=x_libraries ;;
  956. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  957. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  958. x_libraries=$ac_optarg ;;
  959. -*) { echo "$as_me: error: unrecognized option: $ac_option
  960. Try \`$0 --help' for more information." >&2
  961. { (exit 1); exit 1; }; }
  962. ;;
  963. *=*)
  964. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  965. # Reject names that are not valid shell variable names.
  966. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  967. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  968. { (exit 1); exit 1; }; }
  969. eval $ac_envvar=\$ac_optarg
  970. export $ac_envvar ;;
  971. *)
  972. # FIXME: should be removed in autoconf 3.0.
  973. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  974. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  975. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  976. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  977. ;;
  978. esac
  979. done
  980. if test -n "$ac_prev"; then
  981. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  982. { echo "$as_me: error: missing argument to $ac_option" >&2
  983. { (exit 1); exit 1; }; }
  984. fi
  985. # Be sure to have absolute directory names.
  986. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  987. datadir sysconfdir sharedstatedir localstatedir includedir \
  988. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  989. libdir localedir mandir
  990. do
  991. eval ac_val=\$$ac_var
  992. case $ac_val in
  993. [\\/$]* | ?:[\\/]* ) continue;;
  994. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  995. esac
  996. { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  997. { (exit 1); exit 1; }; }
  998. done
  999. # There might be people who depend on the old broken behavior: `$host'
  1000. # used to hold the argument of --host etc.
  1001. # FIXME: To remove some day.
  1002. build=$build_alias
  1003. host=$host_alias
  1004. target=$target_alias
  1005. # FIXME: To remove some day.
  1006. if test "x$host_alias" != x; then
  1007. if test "x$build_alias" = x; then
  1008. cross_compiling=maybe
  1009. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1010. If a cross compiler is detected then cross compile mode will be used." >&2
  1011. elif test "x$build_alias" != "x$host_alias"; then
  1012. cross_compiling=yes
  1013. fi
  1014. fi
  1015. ac_tool_prefix=
  1016. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1017. test "$silent" = yes && exec 6>/dev/null
  1018. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1019. ac_ls_di=`ls -di .` &&
  1020. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1021. { echo "$as_me: error: Working directory cannot be determined" >&2
  1022. { (exit 1); exit 1; }; }
  1023. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1024. { echo "$as_me: error: pwd does not report name of working directory" >&2
  1025. { (exit 1); exit 1; }; }
  1026. # Find the source files, if location was not specified.
  1027. if test -z "$srcdir"; then
  1028. ac_srcdir_defaulted=yes
  1029. # Try the directory containing this script, then the parent directory.
  1030. ac_confdir=`$as_dirname -- "$0" ||
  1031. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1032. X"$0" : 'X\(//\)[^/]' \| \
  1033. X"$0" : 'X\(//\)$' \| \
  1034. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1035. echo X"$0" |
  1036. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1037. s//\1/
  1038. q
  1039. }
  1040. /^X\(\/\/\)[^/].*/{
  1041. s//\1/
  1042. q
  1043. }
  1044. /^X\(\/\/\)$/{
  1045. s//\1/
  1046. q
  1047. }
  1048. /^X\(\/\).*/{
  1049. s//\1/
  1050. q
  1051. }
  1052. s/.*/./; q'`
  1053. srcdir=$ac_confdir
  1054. if test ! -r "$srcdir/$ac_unique_file"; then
  1055. srcdir=..
  1056. fi
  1057. else
  1058. ac_srcdir_defaulted=no
  1059. fi
  1060. if test ! -r "$srcdir/$ac_unique_file"; then
  1061. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1062. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1063. { (exit 1); exit 1; }; }
  1064. fi
  1065. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1066. ac_abs_confdir=`(
  1067. cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1068. { (exit 1); exit 1; }; }
  1069. pwd)`
  1070. # When building in place, set srcdir=.
  1071. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1072. srcdir=.
  1073. fi
  1074. # Remove unnecessary trailing slashes from srcdir.
  1075. # Double slashes in file names in object file debugging info
  1076. # mess up M-x gdb in Emacs.
  1077. case $srcdir in
  1078. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1079. esac
  1080. for ac_var in $ac_precious_vars; do
  1081. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1082. eval ac_env_${ac_var}_value=\$${ac_var}
  1083. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1084. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1085. done
  1086. #
  1087. # Report the --help message.
  1088. #
  1089. if test "$ac_init_help" = "long"; then
  1090. # Omit some internal or obsolete options to make the list less imposing.
  1091. # This message is too long to be a string in the A/UX 3.1 sh.
  1092. cat <<_ACEOF
  1093. \`configure' configures this package to adapt to many kinds of systems.
  1094. Usage: $0 [OPTION]... [VAR=VALUE]...
  1095. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1096. VAR=VALUE. See below for descriptions of some of the useful variables.
  1097. Defaults for the options are specified in brackets.
  1098. Configuration:
  1099. -h, --help display this help and exit
  1100. --help=short display options specific to this package
  1101. --help=recursive display the short help of all the included packages
  1102. -V, --version display version information and exit
  1103. -q, --quiet, --silent do not print \`checking...' messages
  1104. --cache-file=FILE cache test results in FILE [disabled]
  1105. -C, --config-cache alias for \`--cache-file=config.cache'
  1106. -n, --no-create do not create output files
  1107. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1108. Installation directories:
  1109. --prefix=PREFIX install architecture-independent files in PREFIX
  1110. [$ac_default_prefix]
  1111. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1112. [PREFIX]
  1113. By default, \`make install' will install all the files in
  1114. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1115. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1116. for instance \`--prefix=\$HOME'.
  1117. For better control, use the options below.
  1118. Fine tuning of the installation directories:
  1119. --bindir=DIR user executables [EPREFIX/bin]
  1120. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1121. --libexecdir=DIR program executables [EPREFIX/libexec]
  1122. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1123. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1124. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1125. --libdir=DIR object code libraries [EPREFIX/lib]
  1126. --includedir=DIR C header files [PREFIX/include]
  1127. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1128. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1129. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1130. --infodir=DIR info documentation [DATAROOTDIR/info]
  1131. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1132. --mandir=DIR man documentation [DATAROOTDIR/man]
  1133. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1134. --htmldir=DIR html documentation [DOCDIR]
  1135. --dvidir=DIR dvi documentation [DOCDIR]
  1136. --pdfdir=DIR pdf documentation [DOCDIR]
  1137. --psdir=DIR ps documentation [DOCDIR]
  1138. _ACEOF
  1139. cat <<\_ACEOF
  1140. X features:
  1141. --x-includes=DIR X include files are in DIR
  1142. --x-libraries=DIR X library files are in DIR
  1143. System types:
  1144. --build=BUILD configure for building on BUILD [guessed]
  1145. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1146. _ACEOF
  1147. fi
  1148. if test -n "$ac_init_help"; then
  1149. cat <<\_ACEOF
  1150. Optional Features:
  1151. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1152. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1153. --enable-vncconfig build the vncconfig utility (assumed by default),
  1154. use --disable-vncconfig to skip building vncconfig
  1155. --disable-nls do not use Native Language Support
  1156. --disable-rpath do not hardcode runtime library paths
  1157. Optional Packages:
  1158. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1159. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1160. --with-x use the X Window System
  1161. --with-installed-zlib use the version of zlib which is installed on the
  1162. system instead of the one distributed with VNC
  1163. --with-installed-jpeg use the version of jpeg which is installed on the
  1164. system instead of the one distributed with VNC
  1165. --with-gnu-ld assume the C compiler uses GNU ld default=no
  1166. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  1167. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  1168. --with-included-gettext use the GNU gettext library included here
  1169. --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
  1170. --without-libintl-prefix don't search for libintl in includedir and libdir
  1171. Some influential environment variables:
  1172. CC C compiler command
  1173. CFLAGS C compiler flags
  1174. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1175. nonstandard directory <lib dir>
  1176. LIBS libraries to pass to the linker, e.g. -l<library>
  1177. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1178. you have headers in a nonstandard directory <include dir>
  1179. CXX C++ compiler command
  1180. CXXFLAGS C++ compiler flags
  1181. XMKMF Path to xmkmf, Makefile generator for X Window System
  1182. CXXCPP C++ preprocessor
  1183. Use these variables to override the choices made by `configure' or to help
  1184. it to find libraries and programs with nonstandard names/locations.
  1185. _ACEOF
  1186. ac_status=$?
  1187. fi
  1188. if test "$ac_init_help" = "recursive"; then
  1189. # If there are subdirs, report their specific --help.
  1190. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1191. test -d "$ac_dir" || continue
  1192. ac_builddir=.
  1193. case "$ac_dir" in
  1194. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1195. *)
  1196. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1197. # A ".." for each directory in $ac_dir_suffix.
  1198. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1199. case $ac_top_builddir_sub in
  1200. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1201. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1202. esac ;;
  1203. esac
  1204. ac_abs_top_builddir=$ac_pwd
  1205. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1206. # for backward compatibility:
  1207. ac_top_builddir=$ac_top_build_prefix
  1208. case $srcdir in
  1209. .) # We are building in place.
  1210. ac_srcdir=.
  1211. ac_top_srcdir=$ac_top_builddir_sub
  1212. ac_abs_top_srcdir=$ac_pwd ;;
  1213. [\\/]* | ?:[\\/]* ) # Absolute name.
  1214. ac_srcdir=$srcdir$ac_dir_suffix;
  1215. ac_top_srcdir=$srcdir
  1216. ac_abs_top_srcdir=$srcdir ;;
  1217. *) # Relative name.
  1218. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1219. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1220. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1221. esac
  1222. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1223. cd "$ac_dir" || { ac_status=$?; continue; }
  1224. # Check for guested configure.
  1225. if test -f "$ac_srcdir/configure.gnu"; then
  1226. echo &&
  1227. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1228. elif test -f "$ac_srcdir/configure"; then
  1229. echo &&
  1230. $SHELL "$ac_srcdir/configure" --help=recursive
  1231. else
  1232. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1233. fi || ac_status=$?
  1234. cd "$ac_pwd" || { ac_status=$?; break; }
  1235. done
  1236. fi
  1237. test -n "$ac_init_help" && exit $ac_status
  1238. if $ac_init_version; then
  1239. cat <<\_ACEOF
  1240. configure
  1241. generated by GNU Autoconf 2.61
  1242. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1243. 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1244. This configure script is free software; the Free Software Foundation
  1245. gives unlimited permission to copy, distribute and modify it.
  1246. _ACEOF
  1247. exit
  1248. fi
  1249. cat >config.log <<_ACEOF
  1250. This file contains any messages produced by compilers while
  1251. running configure, to aid debugging if configure makes a mistake.
  1252. It was created by $as_me, which was
  1253. generated by GNU Autoconf 2.61. Invocation command line was
  1254. $ $0 $@
  1255. _ACEOF
  1256. exec 5>>config.log
  1257. {
  1258. cat <<_ASUNAME
  1259. ## --------- ##
  1260. ## Platform. ##
  1261. ## --------- ##
  1262. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1263. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1264. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1265. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1266. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1267. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1268. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1269. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1270. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1271. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1272. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1273. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1274. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1275. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1276. _ASUNAME
  1277. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1278. for as_dir in $PATH
  1279. do
  1280. IFS=$as_save_IFS
  1281. test -z "$as_dir" && as_dir=.
  1282. echo "PATH: $as_dir"
  1283. done
  1284. IFS=$as_save_IFS
  1285. } >&5
  1286. cat >&5 <<_ACEOF
  1287. ## ----------- ##
  1288. ## Core tests. ##
  1289. ## ----------- ##
  1290. _ACEOF
  1291. # Keep a trace of the command line.
  1292. # Strip out --no-create and --no-recursion so they do not pile up.
  1293. # Strip out --silent because we don't want to record it for future runs.
  1294. # Also quote any args containing shell meta-characters.
  1295. # Make two passes to allow for proper duplicate-argument suppression.
  1296. ac_configure_args=
  1297. ac_configure_args0=
  1298. ac_configure_args1=
  1299. ac_must_keep_next=false
  1300. for ac_pass in 1 2
  1301. do
  1302. for ac_arg
  1303. do
  1304. case $ac_arg in
  1305. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1306. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1307. | -silent | --silent | --silen | --sile | --sil)
  1308. continue ;;
  1309. *\'*)
  1310. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1311. esac
  1312. case $ac_pass in
  1313. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1314. 2)
  1315. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1316. if test $ac_must_keep_next = true; then
  1317. ac_must_keep_next=false # Got value, back to normal.
  1318. else
  1319. case $ac_arg in
  1320. *=* | --config-cache | -C | -disable-* | --disable-* \
  1321. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1322. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1323. | -with-* | --with-* | -without-* | --without-* | --x)
  1324. case "$ac_configure_args0 " in
  1325. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1326. esac
  1327. ;;
  1328. -* ) ac_must_keep_next=true ;;
  1329. esac
  1330. fi
  1331. ac_configure_args="$ac_configure_args '$ac_arg'"
  1332. ;;
  1333. esac
  1334. done
  1335. done
  1336. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1337. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1338. # When interrupted or exit'd, cleanup temporary files, and complete
  1339. # config.log. We remove comments because anyway the quotes in there
  1340. # would cause problems or look ugly.
  1341. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1342. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1343. trap 'exit_status=$?
  1344. # Save into config.log some information that might help in debugging.
  1345. {
  1346. echo
  1347. cat <<\_ASBOX
  1348. ## ---------------- ##
  1349. ## Cache variables. ##
  1350. ## ---------------- ##
  1351. _ASBOX
  1352. echo
  1353. # The following way of writing the cache mishandles newlines in values,
  1354. (
  1355. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1356. eval ac_val=\$$ac_var
  1357. case $ac_val in #(
  1358. *${as_nl}*)
  1359. case $ac_var in #(
  1360. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1361. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1362. esac
  1363. case $ac_var in #(
  1364. _ | IFS | as_nl) ;; #(
  1365. *) $as_unset $ac_var ;;
  1366. esac ;;
  1367. esac
  1368. done
  1369. (set) 2>&1 |
  1370. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1371. *${as_nl}ac_space=\ *)
  1372. sed -n \
  1373. "s/'\''/'\''\\\\'\'''\''/g;
  1374. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1375. ;; #(
  1376. *)
  1377. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1378. ;;
  1379. esac |
  1380. sort
  1381. )
  1382. echo
  1383. cat <<\_ASBOX
  1384. ## ----------------- ##
  1385. ## Output variables. ##
  1386. ## ----------------- ##
  1387. _ASBOX
  1388. echo
  1389. for ac_var in $ac_subst_vars
  1390. do
  1391. eval ac_val=\$$ac_var
  1392. case $ac_val in
  1393. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1394. esac
  1395. echo "$ac_var='\''$ac_val'\''"
  1396. done | sort
  1397. echo
  1398. if test -n "$ac_subst_files"; then
  1399. cat <<\_ASBOX
  1400. ## ------------------- ##
  1401. ## File substitutions. ##
  1402. ## ------------------- ##
  1403. _ASBOX
  1404. echo
  1405. for ac_var in $ac_subst_files
  1406. do
  1407. eval ac_val=\$$ac_var
  1408. case $ac_val in
  1409. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1410. esac
  1411. echo "$ac_var='\''$ac_val'\''"
  1412. done | sort
  1413. echo
  1414. fi
  1415. if test -s confdefs.h; then
  1416. cat <<\_ASBOX
  1417. ## ----------- ##
  1418. ## confdefs.h. ##
  1419. ## ----------- ##
  1420. _ASBOX
  1421. echo
  1422. cat confdefs.h
  1423. echo
  1424. fi
  1425. test "$ac_signal" != 0 &&
  1426. echo "$as_me: caught signal $ac_signal"
  1427. echo "$as_me: exit $exit_status"
  1428. } >&5
  1429. rm -f core *.core core.conftest.* &&
  1430. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1431. exit $exit_status
  1432. ' 0
  1433. for ac_signal in 1 2 13 15; do
  1434. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1435. done
  1436. ac_signal=0
  1437. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1438. rm -f -r conftest* confdefs.h
  1439. # Predefined preprocessor variables.
  1440. cat >>confdefs.h <<_ACEOF
  1441. #define PACKAGE_NAME "$PACKAGE_NAME"
  1442. _ACEOF
  1443. cat >>confdefs.h <<_ACEOF
  1444. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1445. _ACEOF
  1446. cat >>confdefs.h <<_ACEOF
  1447. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1448. _ACEOF
  1449. cat >>confdefs.h <<_ACEOF
  1450. #define PACKAGE_STRING "$PACKAGE_STRING"
  1451. _ACEOF
  1452. cat >>confdefs.h <<_ACEOF
  1453. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1454. _ACEOF
  1455. # Let the site file select an alternate cache file if it wants to.
  1456. # Prefer explicitly selected file to automatically selected ones.
  1457. if test -n "$CONFIG_SITE"; then
  1458. set x "$CONFIG_SITE"
  1459. elif test "x$prefix" != xNONE; then
  1460. set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1461. else
  1462. set x "$ac_default_prefix/share/config.site" \
  1463. "$ac_default_prefix/etc/config.site"
  1464. fi
  1465. shift
  1466. for ac_site_file
  1467. do
  1468. if test -r "$ac_site_file"; then
  1469. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1470. echo "$as_me: loading site script $ac_site_file" >&6;}
  1471. sed 's/^/| /' "$ac_site_file" >&5
  1472. . "$ac_site_file"
  1473. fi
  1474. done
  1475. if test -r "$cache_file"; then
  1476. # Some versions of bash will fail to source /dev/null (special
  1477. # files actually), so we avoid doing that.
  1478. if test -f "$cache_file"; then
  1479. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1480. echo "$as_me: loading cache $cache_file" >&6;}
  1481. case $cache_file in
  1482. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1483. *) . "./$cache_file";;
  1484. esac
  1485. fi
  1486. else
  1487. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1488. echo "$as_me: creating cache $cache_file" >&6;}
  1489. >$cache_file
  1490. fi
  1491. # Check that the precious variables saved in the cache have kept the same
  1492. # value.
  1493. ac_cache_corrupted=false
  1494. for ac_var in $ac_precious_vars; do
  1495. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1496. eval ac_new_set=\$ac_env_${ac_var}_set
  1497. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1498. eval ac_new_val=\$ac_env_${ac_var}_value
  1499. case $ac_old_set,$ac_new_set in
  1500. set,)
  1501. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1502. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1503. ac_cache_corrupted=: ;;
  1504. ,set)
  1505. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1506. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1507. ac_cache_corrupted=: ;;
  1508. ,);;
  1509. *)
  1510. if test "x$ac_old_val" != "x$ac_new_val"; then
  1511. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1512. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1513. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1514. echo "$as_me: former value: $ac_old_val" >&2;}
  1515. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1516. echo "$as_me: current value: $ac_new_val" >&2;}
  1517. ac_cache_corrupted=:
  1518. fi;;
  1519. esac
  1520. # Pass precious variables to config.status.
  1521. if test "$ac_new_set" = set; then
  1522. case $ac_new_val in
  1523. *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1524. *) ac_arg=$ac_var=$ac_new_val ;;
  1525. esac
  1526. case " $ac_configure_args " in
  1527. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1528. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1529. esac
  1530. fi
  1531. done
  1532. if $ac_cache_corrupted; then
  1533. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1534. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1535. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1536. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1537. { (exit 1); exit 1; }; }
  1538. fi
  1539. ac_ext=c
  1540. ac_cpp='$CPP $CPPFLAGS'
  1541. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1542. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1543. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1544. PACKAGE=tightvnc
  1545. VERSION=1.5.0
  1546. cat >>confdefs.h <<_ACEOF
  1547. #define PACKAGE "$PACKAGE"
  1548. _ACEOF
  1549. cat >>confdefs.h <<_ACEOF
  1550. #define VERSION "$VERSION"
  1551. _ACEOF
  1552. echo "configuring common..."
  1553. (cd ../common; ./configure $*)
  1554. echo "...done configuring common"
  1555. ac_cv_prog_cc_g=no
  1556. ac_cv_prog_cxx_g=no
  1557. ac_ext=c
  1558. ac_cpp='$CPP $CPPFLAGS'
  1559. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1560. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1561. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1562. if test -n "$ac_tool_prefix"; then
  1563. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1564. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1565. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1566. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1567. if test "${ac_cv_prog_CC+set}" = set; then
  1568. echo $ECHO_N "(cached) $ECHO_C" >&6
  1569. else
  1570. if test -n "$CC"; then
  1571. ac_cv_prog_CC="$CC" # Let the user override the test.
  1572. else
  1573. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1574. for as_dir in $PATH
  1575. do
  1576. IFS=$as_save_IFS
  1577. test -z "$as_dir" && as_dir=.
  1578. for ac_exec_ext in '' $ac_executable_extensions; do
  1579. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1580. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1581. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1582. break 2
  1583. fi
  1584. done
  1585. done
  1586. IFS=$as_save_IFS
  1587. fi
  1588. fi
  1589. CC=$ac_cv_prog_CC
  1590. if test -n "$CC"; then
  1591. { echo "$as_me:$LINENO: result: $CC" >&5
  1592. echo "${ECHO_T}$CC" >&6; }
  1593. else
  1594. { echo "$as_me:$LINENO: result: no" >&5
  1595. echo "${ECHO_T}no" >&6; }
  1596. fi
  1597. fi
  1598. if test -z "$ac_cv_prog_CC"; then
  1599. ac_ct_CC=$CC
  1600. # Extract the first word of "gcc", so it can be a program name with args.
  1601. set dummy gcc; ac_word=$2
  1602. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1603. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1604. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1605. echo $ECHO_N "(cached) $ECHO_C" >&6
  1606. else
  1607. if test -n "$ac_ct_CC"; then
  1608. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1609. else
  1610. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1611. for as_dir in $PATH
  1612. do
  1613. IFS=$as_save_IFS
  1614. test -z "$as_dir" && as_dir=.
  1615. for ac_exec_ext in '' $ac_executable_extensions; do
  1616. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1617. ac_cv_prog_ac_ct_CC="gcc"
  1618. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1619. break 2
  1620. fi
  1621. done
  1622. done
  1623. IFS=$as_save_IFS
  1624. fi
  1625. fi
  1626. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1627. if test -n "$ac_ct_CC"; then
  1628. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1629. echo "${ECHO_T}$ac_ct_CC" >&6; }
  1630. else
  1631. { echo "$as_me:$LINENO: result: no" >&5
  1632. echo "${ECHO_T}no" >&6; }
  1633. fi
  1634. if test "x$ac_ct_CC" = x; then
  1635. CC=""
  1636. else
  1637. case $cross_compiling:$ac_tool_warned in
  1638. yes:)
  1639. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  1640. whose name does not start with the host triplet. If you think this
  1641. configuration is useful to you, please write to autoconf@gnu.org." >&5
  1642. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  1643. whose name does not start with the host triplet. If you think this
  1644. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  1645. ac_tool_warned=yes ;;
  1646. esac
  1647. CC=$ac_ct_CC
  1648. fi
  1649. else
  1650. CC="$ac_cv_prog_CC"
  1651. fi
  1652. if test -z "$CC"; then
  1653. if test -n "$ac_tool_prefix"; then
  1654. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1655. set dummy ${ac_tool_prefix}cc; ac_word=$2
  1656. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1657. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1658. if test "${ac_cv_prog_CC+set}" = set; then
  1659. echo $ECHO_N "(cached) $ECHO_C" >&6
  1660. else
  1661. if test -n "$CC"; then
  1662. ac_cv_prog_CC="$CC" # Let the user override the test.
  1663. else
  1664. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1665. for as_dir in $PATH
  1666. do
  1667. IFS=$as_save_IFS
  1668. test -z "$as_dir" && as_dir=.
  1669. for ac_exec_ext in '' $ac_executable_extensions; do
  1670. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1671. ac_cv_prog_CC="${ac_tool_prefix}cc"
  1672. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1673. break 2
  1674. fi
  1675. done
  1676. done
  1677. IFS=$as_save_IFS
  1678. fi
  1679. fi
  1680. CC=$ac_cv_prog_CC
  1681. if test -n "$CC"; then
  1682. { echo "$as_me:$LINENO: result: $CC" >&5
  1683. echo "${ECHO_T}$CC" >&6; }
  1684. else
  1685. { echo "$as_me:$LINENO: result: no" >&5
  1686. echo "${ECHO_T}no" >&6; }
  1687. fi
  1688. fi
  1689. fi
  1690. if test -z "$CC"; then
  1691. # Extract the first word of "cc", so it can be a program name with args.
  1692. set dummy cc; ac_word=$2
  1693. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1694. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1695. if test "${ac_cv_prog_CC+set}" = set; then
  1696. echo $ECHO_N "(cached) $ECHO_C" >&6
  1697. else
  1698. if test -n "$CC"; then
  1699. ac_cv_prog_CC="$CC" # Let the user override the test.
  1700. else
  1701. ac_prog_rejected=no
  1702. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1703. for as_dir in $PATH
  1704. do
  1705. IFS=$as_save_IFS
  1706. test -z "$as_dir" && as_dir=.
  1707. for ac_exec_ext in '' $ac_executable_extensions; do
  1708. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1709. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  1710. ac_prog_rejected=yes
  1711. continue
  1712. fi
  1713. ac_cv_prog_CC="cc"
  1714. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1715. break 2
  1716. fi
  1717. done
  1718. done
  1719. IFS=$as_save_IFS
  1720. if test $ac_prog_rejected = yes; then
  1721. # We found a bogon in the path, so make sure we never use it.
  1722. set dummy $ac_cv_prog_CC
  1723. shift
  1724. if test $# != 0; then
  1725. # We chose a different compiler from the bogus one.
  1726. # However, it has the same basename, so the bogon will be chosen
  1727. # first if we set CC to just the basename; use the full file name.
  1728. shift
  1729. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  1730. fi
  1731. fi
  1732. fi
  1733. fi
  1734. CC=$ac_cv_prog_CC
  1735. if test -n "$CC"; then
  1736. { echo "$as_me:$LINENO: result: $CC" >&5
  1737. echo "${ECHO_T}$CC" >&6; }
  1738. else
  1739. { echo "$as_me:$LINENO: result: no" >&5
  1740. echo "${ECHO_T}no" >&6; }
  1741. fi
  1742. fi
  1743. if test -z "$CC"; then
  1744. if test -n "$ac_tool_prefix"; then
  1745. for ac_prog in cl.exe
  1746. do
  1747. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1748. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1749. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1750. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1751. if test "${ac_cv_prog_CC+set}" = set; then
  1752. echo $ECHO_N "(cached) $ECHO_C" >&6
  1753. else
  1754. if test -n "$CC"; then
  1755. ac_cv_prog_CC="$CC" # Let the user override the test.
  1756. else
  1757. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1758. for as_dir in $PATH
  1759. do
  1760. IFS=$as_save_IFS
  1761. test -z "$as_dir" && as_dir=.
  1762. for ac_exec_ext in '' $ac_executable_extensions; do
  1763. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1764. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1765. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1766. break 2
  1767. fi
  1768. done
  1769. done
  1770. IFS=$as_save_IFS
  1771. fi
  1772. fi
  1773. CC=$ac_cv_prog_CC
  1774. if test -n "$CC"; then
  1775. { echo "$as_me:$LINENO: result: $CC" >&5
  1776. echo "${ECHO_T}$CC" >&6; }
  1777. else
  1778. { echo "$as_me:$LINENO: result: no" >&5
  1779. echo "${ECHO_T}no" >&6; }
  1780. fi
  1781. test -n "$CC" && break
  1782. done
  1783. fi
  1784. if test -z "$CC"; then
  1785. ac_ct_CC=$CC
  1786. for ac_prog in cl.exe
  1787. do
  1788. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1789. set dummy $ac_prog; ac_word=$2
  1790. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1791. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1792. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1793. echo $ECHO_N "(cached) $ECHO_C" >&6
  1794. else
  1795. if test -n "$ac_ct_CC"; then
  1796. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1797. else
  1798. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1799. for as_dir in $PATH
  1800. do
  1801. IFS=$as_save_IFS
  1802. test -z "$as_dir" && as_dir=.
  1803. for ac_exec_ext in '' $ac_executable_extensions; do
  1804. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1805. ac_cv_prog_ac_ct_CC="$ac_prog"
  1806. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1807. break 2
  1808. fi
  1809. done
  1810. done
  1811. IFS=$as_save_IFS
  1812. fi
  1813. fi
  1814. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1815. if test -n "$ac_ct_CC"; then
  1816. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1817. echo "${ECHO_T}$ac_ct_CC" >&6; }
  1818. else
  1819. { echo "$as_me:$LINENO: result: no" >&5
  1820. echo "${ECHO_T}no" >&6; }
  1821. fi
  1822. test -n "$ac_ct_CC" && break
  1823. done
  1824. if test "x$ac_ct_CC" = x; then
  1825. CC=""
  1826. else
  1827. case $cross_compiling:$ac_tool_warned in
  1828. yes:)
  1829. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  1830. whose name does not start with the host triplet. If you think this
  1831. configuration is useful to you, please write to autoconf@gnu.org." >&5
  1832. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  1833. whose name does not start with the host triplet. If you think this
  1834. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  1835. ac_tool_warned=yes ;;
  1836. esac
  1837. CC=$ac_ct_CC
  1838. fi
  1839. fi
  1840. fi
  1841. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  1842. See \`config.log' for more details." >&5
  1843. echo "$as_me: error: no acceptable C compiler found in \$PATH
  1844. See \`config.log' for more details." >&2;}
  1845. { (exit 1); exit 1; }; }
  1846. # Provide some information about the compiler.
  1847. echo "$as_me:$LINENO: checking for C compiler version" >&5
  1848. ac_compiler=`set X $ac_compile; echo $2`
  1849. { (ac_try="$ac_compiler --version >&5"
  1850. case "(($ac_try" in
  1851. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1852. *) ac_try_echo=$ac_try;;
  1853. esac
  1854. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1855. (eval "$ac_compiler --version >&5") 2>&5
  1856. ac_status=$?
  1857. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1858. (exit $ac_status); }
  1859. { (ac_try="$ac_compiler -v >&5"
  1860. case "(($ac_try" in
  1861. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1862. *) ac_try_echo=$ac_try;;
  1863. esac
  1864. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1865. (eval "$ac_compiler -v >&5") 2>&5
  1866. ac_status=$?
  1867. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1868. (exit $ac_status); }
  1869. { (ac_try="$ac_compiler -V >&5"
  1870. case "(($ac_try" in
  1871. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1872. *) ac_try_echo=$ac_try;;
  1873. esac
  1874. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1875. (eval "$ac_compiler -V >&5") 2>&5
  1876. ac_status=$?
  1877. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1878. (exit $ac_status); }
  1879. cat >conftest.$ac_ext <<_ACEOF
  1880. /* confdefs.h. */
  1881. _ACEOF
  1882. cat confdefs.h >>conftest.$ac_ext
  1883. cat >>conftest.$ac_ext <<_ACEOF
  1884. /* end confdefs.h. */
  1885. int
  1886. main ()
  1887. {
  1888. ;
  1889. return 0;
  1890. }
  1891. _ACEOF
  1892. ac_clean_files_save=$ac_clean_files
  1893. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1894. # Try to create an executable without -o first, disregard a.out.
  1895. # It will help us diagnose broken compilers, and finding out an intuition
  1896. # of exeext.
  1897. { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  1898. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
  1899. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1900. #
  1901. # List of possible output files, starting from the most likely.
  1902. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  1903. # only as a last resort. b.out is created by i960 compilers.
  1904. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  1905. #
  1906. # The IRIX 6 linker writes into existing files which may not be
  1907. # executable, retaining their permissions. Remove them first so a
  1908. # subsequent execution test works.
  1909. ac_rmfiles=
  1910. for ac_file in $ac_files
  1911. do
  1912. case $ac_file in
  1913. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  1914. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  1915. esac
  1916. done
  1917. rm -f $ac_rmfiles
  1918. if { (ac_try="$ac_link_default"
  1919. case "(($ac_try" in
  1920. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1921. *) ac_try_echo=$ac_try;;
  1922. esac
  1923. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1924. (eval "$ac_link_default") 2>&5
  1925. ac_status=$?
  1926. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1927. (exit $ac_status); }; then
  1928. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  1929. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  1930. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  1931. # so that the user can short-circuit this test for compilers unknown to
  1932. # Autoconf.
  1933. for ac_file in $ac_files ''
  1934. do
  1935. test -f "$ac_file" || continue
  1936. case $ac_file in
  1937. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  1938. ;;
  1939. [ab].out )
  1940. # We found the default executable, but exeext='' is most
  1941. # certainly right.
  1942. break;;
  1943. *.* )
  1944. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  1945. then :; else
  1946. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1947. fi
  1948. # We set ac_cv_exeext here because the later test for it is not
  1949. # safe: cross compilers may not add the suffix if given an `-o'
  1950. # argument, so we may need to know it at that point already.
  1951. # Even if this section looks crufty: it has the advantage of
  1952. # actually working.
  1953. break;;
  1954. * )
  1955. break;;
  1956. esac
  1957. done
  1958. test "$ac_cv_exeext" = no && ac_cv_exeext=
  1959. else
  1960. ac_file=''
  1961. fi
  1962. { echo "$as_me:$LINENO: result: $ac_file" >&5
  1963. echo "${ECHO_T}$ac_file" >&6; }
  1964. if test -z "$ac_file"; then
  1965. echo "$as_me: failed program was:" >&5
  1966. sed 's/^/| /' conftest.$ac_ext >&5
  1967. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  1968. See \`config.log' for more details." >&5
  1969. echo "$as_me: error: C compiler cannot create executables
  1970. See \`config.log' for more details." >&2;}
  1971. { (exit 77); exit 77; }; }
  1972. fi
  1973. ac_exeext=$ac_cv_exeext
  1974. # Check that the compiler produces executables we can run. If not, either
  1975. # the compiler is broken, or we cross compile.
  1976. { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  1977. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
  1978. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1979. # If not cross compiling, check that we can run a simple program.
  1980. if test "$cross_compiling" != yes; then
  1981. if { ac_try='./$ac_file'
  1982. { (case "(($ac_try" in
  1983. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1984. *) ac_try_echo=$ac_try;;
  1985. esac
  1986. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1987. (eval "$ac_try") 2>&5
  1988. ac_status=$?
  1989. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1990. (exit $ac_status); }; }; then
  1991. cross_compiling=no
  1992. else
  1993. if test "$cross_compiling" = maybe; then
  1994. cross_compiling=yes
  1995. else
  1996. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  1997. If you meant to cross compile, use \`--host'.
  1998. See \`config.log' for more details." >&5
  1999. echo "$as_me: error: cannot run C compiled programs.
  2000. If you meant to cross compile, use \`--host'.
  2001. See \`config.log' for more details." >&2;}
  2002. { (exit 1); exit 1; }; }
  2003. fi
  2004. fi
  2005. fi
  2006. { echo "$as_me:$LINENO: result: yes" >&5
  2007. echo "${ECHO_T}yes" >&6; }
  2008. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2009. ac_clean_files=$ac_clean_files_save
  2010. # Check that the compiler produces executables we can run. If not, either
  2011. # the compiler is broken, or we cross compile.
  2012. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2013. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  2014. { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2015. echo "${ECHO_T}$cross_compiling" >&6; }
  2016. { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2017. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  2018. if { (ac_try="$ac_link"
  2019. case "(($ac_try" in
  2020. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2021. *) ac_try_echo=$ac_try;;
  2022. esac
  2023. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2024. (eval "$ac_link") 2>&5
  2025. ac_status=$?
  2026. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2027. (exit $ac_status); }; then
  2028. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2029. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2030. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2031. # `rm'.
  2032. for ac_file in conftest.exe conftest conftest.*; do
  2033. test -f "$ac_file" || continue
  2034. case $ac_file in
  2035. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2036. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2037. break;;
  2038. * ) break;;
  2039. esac
  2040. done
  2041. else
  2042. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2043. See \`config.log' for more details." >&5
  2044. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2045. See \`config.log' for more details." >&2;}
  2046. { (exit 1); exit 1; }; }
  2047. fi
  2048. rm -f conftest$ac_cv_exeext
  2049. { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2050. echo "${ECHO_T}$ac_cv_exeext" >&6; }
  2051. rm -f conftest.$ac_ext
  2052. EXEEXT=$ac_cv_exeext
  2053. ac_exeext=$EXEEXT
  2054. { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2055. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  2056. if test "${ac_cv_objext+set}" = set; then
  2057. echo $ECHO_N "(cached) $ECHO_C" >&6
  2058. else
  2059. cat >conftest.$ac_ext <<_ACEOF
  2060. /* confdefs.h. */
  2061. _ACEOF
  2062. cat confdefs.h >>conftest.$ac_ext
  2063. cat >>conftest.$ac_ext <<_ACEOF
  2064. /* end confdefs.h. */
  2065. int
  2066. main ()
  2067. {
  2068. ;
  2069. return 0;
  2070. }
  2071. _ACEOF
  2072. rm -f conftest.o conftest.obj
  2073. if { (ac_try="$ac_compile"
  2074. case "(($ac_try" in
  2075. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2076. *) ac_try_echo=$ac_try;;
  2077. esac
  2078. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2079. (eval "$ac_compile") 2>&5
  2080. ac_status=$?
  2081. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2082. (exit $ac_status); }; then
  2083. for ac_file in conftest.o conftest.obj conftest.*; do
  2084. test -f "$ac_file" || continue;
  2085. case $ac_file in
  2086. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  2087. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2088. break;;
  2089. esac
  2090. done
  2091. else
  2092. echo "$as_me: failed program was:" >&5
  2093. sed 's/^/| /' conftest.$ac_ext >&5
  2094. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2095. See \`config.log' for more details." >&5
  2096. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2097. See \`config.log' for more details." >&2;}
  2098. { (exit 1); exit 1; }; }
  2099. fi
  2100. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2101. fi
  2102. { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2103. echo "${ECHO_T}$ac_cv_objext" >&6; }
  2104. OBJEXT=$ac_cv_objext
  2105. ac_objext=$OBJEXT
  2106. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2107. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  2108. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2109. echo $ECHO_N "(cached) $ECHO_C" >&6
  2110. else
  2111. cat >conftest.$ac_ext <<_ACEOF
  2112. /* confdefs.h. */
  2113. _ACEOF
  2114. cat confdefs.h >>conftest.$ac_ext
  2115. cat >>conftest.$ac_ext <<_ACEOF
  2116. /* end confdefs.h. */
  2117. int
  2118. main ()
  2119. {
  2120. #ifndef __GNUC__
  2121. choke me
  2122. #endif
  2123. ;
  2124. return 0;
  2125. }
  2126. _ACEOF
  2127. rm -f conftest.$ac_objext
  2128. if { (ac_try="$ac_compile"
  2129. case "(($ac_try" in
  2130. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2131. *) ac_try_echo=$ac_try;;
  2132. esac
  2133. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2134. (eval "$ac_compile") 2>conftest.er1
  2135. ac_status=$?
  2136. grep -v '^ *+' conftest.er1 >conftest.err
  2137. rm -f conftest.er1
  2138. cat conftest.err >&5
  2139. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2140. (exit $ac_status); } && {
  2141. test -z "$ac_c_werror_flag" ||
  2142. test ! -s conftest.err
  2143. } && test -s conftest.$ac_objext; then
  2144. ac_compiler_gnu=yes
  2145. else
  2146. echo "$as_me: failed program was:" >&5
  2147. sed 's/^/| /' conftest.$ac_ext >&5
  2148. ac_compiler_gnu=no
  2149. fi
  2150. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2151. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2152. fi
  2153. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2154. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  2155. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2156. ac_test_CFLAGS=${CFLAGS+set}
  2157. ac_save_CFLAGS=$CFLAGS
  2158. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2159. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  2160. if test "${ac_cv_prog_cc_g+set}" = set; then
  2161. echo $ECHO_N "(cached) $ECHO_C" >&6
  2162. else
  2163. ac_save_c_werror_flag=$ac_c_werror_flag
  2164. ac_c_werror_flag=yes
  2165. ac_cv_prog_cc_g=no
  2166. CFLAGS="-g"
  2167. cat >conftest.$ac_ext <<_ACEOF
  2168. /* confdefs.h. */
  2169. _ACEOF
  2170. cat confdefs.h >>conftest.$ac_ext
  2171. cat >>conftest.$ac_ext <<_ACEOF
  2172. /* end confdefs.h. */
  2173. int
  2174. main ()
  2175. {
  2176. ;
  2177. return 0;
  2178. }
  2179. _ACEOF
  2180. rm -f conftest.$ac_objext
  2181. if { (ac_try="$ac_compile"
  2182. case "(($ac_try" in
  2183. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2184. *) ac_try_echo=$ac_try;;
  2185. esac
  2186. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2187. (eval "$ac_compile") 2>conftest.er1
  2188. ac_status=$?
  2189. grep -v '^ *+' conftest.er1 >conftest.err
  2190. rm -f conftest.er1
  2191. cat conftest.err >&5
  2192. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2193. (exit $ac_status); } && {
  2194. test -z "$ac_c_werror_flag" ||
  2195. test ! -s conftest.err
  2196. } && test -s conftest.$ac_objext; then
  2197. ac_cv_prog_cc_g=yes
  2198. else
  2199. echo "$as_me: failed program was:" >&5
  2200. sed 's/^/| /' conftest.$ac_ext >&5
  2201. CFLAGS=""
  2202. cat >conftest.$ac_ext <<_ACEOF
  2203. /* confdefs.h. */
  2204. _ACEOF
  2205. cat confdefs.h >>conftest.$ac_ext
  2206. cat >>conftest.$ac_ext <<_ACEOF
  2207. /* end confdefs.h. */
  2208. int
  2209. main ()
  2210. {
  2211. ;
  2212. return 0;
  2213. }
  2214. _ACEOF
  2215. rm -f conftest.$ac_objext
  2216. if { (ac_try="$ac_compile"
  2217. case "(($ac_try" in
  2218. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2219. *) ac_try_echo=$ac_try;;
  2220. esac
  2221. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2222. (eval "$ac_compile") 2>conftest.er1
  2223. ac_status=$?
  2224. grep -v '^ *+' conftest.er1 >conftest.err
  2225. rm -f conftest.er1
  2226. cat conftest.err >&5
  2227. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2228. (exit $ac_status); } && {
  2229. test -z "$ac_c_werror_flag" ||
  2230. test ! -s conftest.err
  2231. } && test -s conftest.$ac_objext; then
  2232. :
  2233. else
  2234. echo "$as_me: failed program was:" >&5
  2235. sed 's/^/| /' conftest.$ac_ext >&5
  2236. ac_c_werror_flag=$ac_save_c_werror_flag
  2237. CFLAGS="-g"
  2238. cat >conftest.$ac_ext <<_ACEOF
  2239. /* confdefs.h. */
  2240. _ACEOF
  2241. cat confdefs.h >>conftest.$ac_ext
  2242. cat >>conftest.$ac_ext <<_ACEOF
  2243. /* end confdefs.h. */
  2244. int
  2245. main ()
  2246. {
  2247. ;
  2248. return 0;
  2249. }
  2250. _ACEOF
  2251. rm -f conftest.$ac_objext
  2252. if { (ac_try="$ac_compile"
  2253. case "(($ac_try" in
  2254. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2255. *) ac_try_echo=$ac_try;;
  2256. esac
  2257. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2258. (eval "$ac_compile") 2>conftest.er1
  2259. ac_status=$?
  2260. grep -v '^ *+' conftest.er1 >conftest.err
  2261. rm -f conftest.er1
  2262. cat conftest.err >&5
  2263. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2264. (exit $ac_status); } && {
  2265. test -z "$ac_c_werror_flag" ||
  2266. test ! -s conftest.err
  2267. } && test -s conftest.$ac_objext; then
  2268. ac_cv_prog_cc_g=yes
  2269. else
  2270. echo "$as_me: failed program was:" >&5
  2271. sed 's/^/| /' conftest.$ac_ext >&5
  2272. fi
  2273. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2274. fi
  2275. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2276. fi
  2277. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2278. ac_c_werror_flag=$ac_save_c_werror_flag
  2279. fi
  2280. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2281. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  2282. if test "$ac_test_CFLAGS" = set; then
  2283. CFLAGS=$ac_save_CFLAGS
  2284. elif test $ac_cv_prog_cc_g = yes; then
  2285. if test "$GCC" = yes; then
  2286. CFLAGS="-g -O2"
  2287. else
  2288. CFLAGS="-g"
  2289. fi
  2290. else
  2291. if test "$GCC" = yes; then
  2292. CFLAGS="-O2"
  2293. else
  2294. CFLAGS=
  2295. fi
  2296. fi
  2297. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  2298. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  2299. if test "${ac_cv_prog_cc_c89+set}" = set; then
  2300. echo $ECHO_N "(cached) $ECHO_C" >&6
  2301. else
  2302. ac_cv_prog_cc_c89=no
  2303. ac_save_CC=$CC
  2304. cat >conftest.$ac_ext <<_ACEOF
  2305. /* confdefs.h. */
  2306. _ACEOF
  2307. cat confdefs.h >>conftest.$ac_ext
  2308. cat >>conftest.$ac_ext <<_ACEOF
  2309. /* end confdefs.h. */
  2310. #include <stdarg.h>
  2311. #include <stdio.h>
  2312. #include <sys/types.h>
  2313. #include <sys/stat.h>
  2314. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2315. struct buf { int x; };
  2316. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2317. static char *e (p, i)
  2318. char **p;
  2319. int i;
  2320. {
  2321. return p[i];
  2322. }
  2323. static char *f (char * (*g) (char **, int), char **p, ...)
  2324. {
  2325. char *s;
  2326. va_list v;
  2327. va_start (v,p);
  2328. s = g (p, va_arg (v,int));
  2329. va_end (v);
  2330. return s;
  2331. }
  2332. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2333. function prototypes and stuff, but not '\xHH' hex character constants.
  2334. These don't provoke an error unfortunately, instead are silently treated
  2335. as 'x'. The following induces an error, until -std is added to get
  2336. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2337. array size at least. It's necessary to write '\x00'==0 to get something
  2338. that's true only with -std. */
  2339. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2340. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2341. inside strings and character constants. */
  2342. #define FOO(x) 'x'
  2343. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2344. int test (int i, double x);
  2345. struct s1 {int (*f) (int a);};
  2346. struct s2 {int (*f) (double a);};
  2347. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2348. int argc;
  2349. char **argv;
  2350. int
  2351. main ()
  2352. {
  2353. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2354. ;
  2355. return 0;
  2356. }
  2357. _ACEOF
  2358. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2359. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2360. do
  2361. CC="$ac_save_CC $ac_arg"
  2362. rm -f conftest.$ac_objext
  2363. if { (ac_try="$ac_compile"
  2364. case "(($ac_try" in
  2365. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2366. *) ac_try_echo=$ac_try;;
  2367. esac
  2368. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2369. (eval "$ac_compile") 2>conftest.er1
  2370. ac_status=$?
  2371. grep -v '^ *+' conftest.er1 >conftest.err
  2372. rm -f conftest.er1
  2373. cat conftest.err >&5
  2374. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2375. (exit $ac_status); } && {
  2376. test -z "$ac_c_werror_flag" ||
  2377. test ! -s conftest.err
  2378. } && test -s conftest.$ac_objext; then
  2379. ac_cv_prog_cc_c89=$ac_arg
  2380. else
  2381. echo "$as_me: failed program was:" >&5
  2382. sed 's/^/| /' conftest.$ac_ext >&5
  2383. fi
  2384. rm -f core conftest.err conftest.$ac_objext
  2385. test "x$ac_cv_prog_cc_c89" != "xno" && break
  2386. done
  2387. rm -f conftest.$ac_ext
  2388. CC=$ac_save_CC
  2389. fi
  2390. # AC_CACHE_VAL
  2391. case "x$ac_cv_prog_cc_c89" in
  2392. x)
  2393. { echo "$as_me:$LINENO: result: none needed" >&5
  2394. echo "${ECHO_T}none needed" >&6; } ;;
  2395. xno)
  2396. { echo "$as_me:$LINENO: result: unsupported" >&5
  2397. echo "${ECHO_T}unsupported" >&6; } ;;
  2398. *)
  2399. CC="$CC $ac_cv_prog_cc_c89"
  2400. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  2401. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  2402. esac
  2403. ac_ext=c
  2404. ac_cpp='$CPP $CPPFLAGS'
  2405. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2406. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2407. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2408. ac_ext=cpp
  2409. ac_cpp='$CXXCPP $CPPFLAGS'
  2410. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2411. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2412. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2413. if test -z "$CXX"; then
  2414. if test -n "$CCC"; then
  2415. CXX=$CCC
  2416. else
  2417. if test -n "$ac_tool_prefix"; then
  2418. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2419. do
  2420. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2421. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2422. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2423. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2424. if test "${ac_cv_prog_CXX+set}" = set; then
  2425. echo $ECHO_N "(cached) $ECHO_C" >&6
  2426. else
  2427. if test -n "$CXX"; then
  2428. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2429. else
  2430. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2431. for as_dir in $PATH
  2432. do
  2433. IFS=$as_save_IFS
  2434. test -z "$as_dir" && as_dir=.
  2435. for ac_exec_ext in '' $ac_executable_extensions; do
  2436. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2437. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2438. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2439. break 2
  2440. fi
  2441. done
  2442. done
  2443. IFS=$as_save_IFS
  2444. fi
  2445. fi
  2446. CXX=$ac_cv_prog_CXX
  2447. if test -n "$CXX"; then
  2448. { echo "$as_me:$LINENO: result: $CXX" >&5
  2449. echo "${ECHO_T}$CXX" >&6; }
  2450. else
  2451. { echo "$as_me:$LINENO: result: no" >&5
  2452. echo "${ECHO_T}no" >&6; }
  2453. fi
  2454. test -n "$CXX" && break
  2455. done
  2456. fi
  2457. if test -z "$CXX"; then
  2458. ac_ct_CXX=$CXX
  2459. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2460. do
  2461. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2462. set dummy $ac_prog; ac_word=$2
  2463. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2464. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2465. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  2466. echo $ECHO_N "(cached) $ECHO_C" >&6
  2467. else
  2468. if test -n "$ac_ct_CXX"; then
  2469. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2470. else
  2471. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2472. for as_dir in $PATH
  2473. do
  2474. IFS=$as_save_IFS
  2475. test -z "$as_dir" && as_dir=.
  2476. for ac_exec_ext in '' $ac_executable_extensions; do
  2477. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2478. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2479. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2480. break 2
  2481. fi
  2482. done
  2483. done
  2484. IFS=$as_save_IFS
  2485. fi
  2486. fi
  2487. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2488. if test -n "$ac_ct_CXX"; then
  2489. { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  2490. echo "${ECHO_T}$ac_ct_CXX" >&6; }
  2491. else
  2492. { echo "$as_me:$LINENO: result: no" >&5
  2493. echo "${ECHO_T}no" >&6; }
  2494. fi
  2495. test -n "$ac_ct_CXX" && break
  2496. done
  2497. if test "x$ac_ct_CXX" = x; then
  2498. CXX="g++"
  2499. else
  2500. case $cross_compiling:$ac_tool_warned in
  2501. yes:)
  2502. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2503. whose name does not start with the host triplet. If you think this
  2504. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2505. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2506. whose name does not start with the host triplet. If you think this
  2507. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2508. ac_tool_warned=yes ;;
  2509. esac
  2510. CXX=$ac_ct_CXX
  2511. fi
  2512. fi
  2513. fi
  2514. fi
  2515. # Provide some information about the compiler.
  2516. echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  2517. ac_compiler=`set X $ac_compile; echo $2`
  2518. { (ac_try="$ac_compiler --version >&5"
  2519. case "(($ac_try" in
  2520. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2521. *) ac_try_echo=$ac_try;;
  2522. esac
  2523. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2524. (eval "$ac_compiler --version >&5") 2>&5
  2525. ac_status=$?
  2526. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2527. (exit $ac_status); }
  2528. { (ac_try="$ac_compiler -v >&5"
  2529. case "(($ac_try" in
  2530. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2531. *) ac_try_echo=$ac_try;;
  2532. esac
  2533. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2534. (eval "$ac_compiler -v >&5") 2>&5
  2535. ac_status=$?
  2536. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2537. (exit $ac_status); }
  2538. { (ac_try="$ac_compiler -V >&5"
  2539. case "(($ac_try" in
  2540. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2541. *) ac_try_echo=$ac_try;;
  2542. esac
  2543. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2544. (eval "$ac_compiler -V >&5") 2>&5
  2545. ac_status=$?
  2546. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2547. (exit $ac_status); }
  2548. { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  2549. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  2550. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  2551. echo $ECHO_N "(cached) $ECHO_C" >&6
  2552. else
  2553. cat >conftest.$ac_ext <<_ACEOF
  2554. /* confdefs.h. */
  2555. _ACEOF
  2556. cat confdefs.h >>conftest.$ac_ext
  2557. cat >>conftest.$ac_ext <<_ACEOF
  2558. /* end confdefs.h. */
  2559. int
  2560. main ()
  2561. {
  2562. #ifndef __GNUC__
  2563. choke me
  2564. #endif
  2565. ;
  2566. return 0;
  2567. }
  2568. _ACEOF
  2569. rm -f conftest.$ac_objext
  2570. if { (ac_try="$ac_compile"
  2571. case "(($ac_try" in
  2572. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2573. *) ac_try_echo=$ac_try;;
  2574. esac
  2575. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2576. (eval "$ac_compile") 2>conftest.er1
  2577. ac_status=$?
  2578. grep -v '^ *+' conftest.er1 >conftest.err
  2579. rm -f conftest.er1
  2580. cat conftest.err >&5
  2581. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2582. (exit $ac_status); } && {
  2583. test -z "$ac_cxx_werror_flag" ||
  2584. test ! -s conftest.err
  2585. } && test -s conftest.$ac_objext; then
  2586. ac_compiler_gnu=yes
  2587. else
  2588. echo "$as_me: failed program was:" >&5
  2589. sed 's/^/| /' conftest.$ac_ext >&5
  2590. ac_compiler_gnu=no
  2591. fi
  2592. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2593. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2594. fi
  2595. { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  2596. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  2597. GXX=`test $ac_compiler_gnu = yes && echo yes`
  2598. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2599. ac_save_CXXFLAGS=$CXXFLAGS
  2600. { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  2601. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  2602. if test "${ac_cv_prog_cxx_g+set}" = set; then
  2603. echo $ECHO_N "(cached) $ECHO_C" >&6
  2604. else
  2605. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  2606. ac_cxx_werror_flag=yes
  2607. ac_cv_prog_cxx_g=no
  2608. CXXFLAGS="-g"
  2609. cat >conftest.$ac_ext <<_ACEOF
  2610. /* confdefs.h. */
  2611. _ACEOF
  2612. cat confdefs.h >>conftest.$ac_ext
  2613. cat >>conftest.$ac_ext <<_ACEOF
  2614. /* end confdefs.h. */
  2615. int
  2616. main ()
  2617. {
  2618. ;
  2619. return 0;
  2620. }
  2621. _ACEOF
  2622. rm -f conftest.$ac_objext
  2623. if { (ac_try="$ac_compile"
  2624. case "(($ac_try" in
  2625. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2626. *) ac_try_echo=$ac_try;;
  2627. esac
  2628. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2629. (eval "$ac_compile") 2>conftest.er1
  2630. ac_status=$?
  2631. grep -v '^ *+' conftest.er1 >conftest.err
  2632. rm -f conftest.er1
  2633. cat conftest.err >&5
  2634. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2635. (exit $ac_status); } && {
  2636. test -z "$ac_cxx_werror_flag" ||
  2637. test ! -s conftest.err
  2638. } && test -s conftest.$ac_objext; then
  2639. ac_cv_prog_cxx_g=yes
  2640. else
  2641. echo "$as_me: failed program was:" >&5
  2642. sed 's/^/| /' conftest.$ac_ext >&5
  2643. CXXFLAGS=""
  2644. cat >conftest.$ac_ext <<_ACEOF
  2645. /* confdefs.h. */
  2646. _ACEOF
  2647. cat confdefs.h >>conftest.$ac_ext
  2648. cat >>conftest.$ac_ext <<_ACEOF
  2649. /* end confdefs.h. */
  2650. int
  2651. main ()
  2652. {
  2653. ;
  2654. return 0;
  2655. }
  2656. _ACEOF
  2657. rm -f conftest.$ac_objext
  2658. if { (ac_try="$ac_compile"
  2659. case "(($ac_try" in
  2660. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2661. *) ac_try_echo=$ac_try;;
  2662. esac
  2663. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2664. (eval "$ac_compile") 2>conftest.er1
  2665. ac_status=$?
  2666. grep -v '^ *+' conftest.er1 >conftest.err
  2667. rm -f conftest.er1
  2668. cat conftest.err >&5
  2669. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2670. (exit $ac_status); } && {
  2671. test -z "$ac_cxx_werror_flag" ||
  2672. test ! -s conftest.err
  2673. } && test -s conftest.$ac_objext; then
  2674. :
  2675. else
  2676. echo "$as_me: failed program was:" >&5
  2677. sed 's/^/| /' conftest.$ac_ext >&5
  2678. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2679. CXXFLAGS="-g"
  2680. cat >conftest.$ac_ext <<_ACEOF
  2681. /* confdefs.h. */
  2682. _ACEOF
  2683. cat confdefs.h >>conftest.$ac_ext
  2684. cat >>conftest.$ac_ext <<_ACEOF
  2685. /* end confdefs.h. */
  2686. int
  2687. main ()
  2688. {
  2689. ;
  2690. return 0;
  2691. }
  2692. _ACEOF
  2693. rm -f conftest.$ac_objext
  2694. if { (ac_try="$ac_compile"
  2695. case "(($ac_try" in
  2696. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2697. *) ac_try_echo=$ac_try;;
  2698. esac
  2699. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2700. (eval "$ac_compile") 2>conftest.er1
  2701. ac_status=$?
  2702. grep -v '^ *+' conftest.er1 >conftest.err
  2703. rm -f conftest.er1
  2704. cat conftest.err >&5
  2705. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2706. (exit $ac_status); } && {
  2707. test -z "$ac_cxx_werror_flag" ||
  2708. test ! -s conftest.err
  2709. } && test -s conftest.$ac_objext; then
  2710. ac_cv_prog_cxx_g=yes
  2711. else
  2712. echo "$as_me: failed program was:" >&5
  2713. sed 's/^/| /' conftest.$ac_ext >&5
  2714. fi
  2715. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2716. fi
  2717. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2718. fi
  2719. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2720. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2721. fi
  2722. { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2723. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  2724. if test "$ac_test_CXXFLAGS" = set; then
  2725. CXXFLAGS=$ac_save_CXXFLAGS
  2726. elif test $ac_cv_prog_cxx_g = yes; then
  2727. if test "$GXX" = yes; then
  2728. CXXFLAGS="-g -O2"
  2729. else
  2730. CXXFLAGS="-g"
  2731. fi
  2732. else
  2733. if test "$GXX" = yes; then
  2734. CXXFLAGS="-O2"
  2735. else
  2736. CXXFLAGS=
  2737. fi
  2738. fi
  2739. ac_ext=c
  2740. ac_cpp='$CPP $CPPFLAGS'
  2741. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2742. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2743. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2744. if test -n "$ac_tool_prefix"; then
  2745. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  2746. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  2747. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2748. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2749. if test "${ac_cv_prog_RANLIB+set}" = set; then
  2750. echo $ECHO_N "(cached) $ECHO_C" >&6
  2751. else
  2752. if test -n "$RANLIB"; then
  2753. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  2754. else
  2755. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2756. for as_dir in $PATH
  2757. do
  2758. IFS=$as_save_IFS
  2759. test -z "$as_dir" && as_dir=.
  2760. for ac_exec_ext in '' $ac_executable_extensions; do
  2761. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2762. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  2763. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2764. break 2
  2765. fi
  2766. done
  2767. done
  2768. IFS=$as_save_IFS
  2769. fi
  2770. fi
  2771. RANLIB=$ac_cv_prog_RANLIB
  2772. if test -n "$RANLIB"; then
  2773. { echo "$as_me:$LINENO: result: $RANLIB" >&5
  2774. echo "${ECHO_T}$RANLIB" >&6; }
  2775. else
  2776. { echo "$as_me:$LINENO: result: no" >&5
  2777. echo "${ECHO_T}no" >&6; }
  2778. fi
  2779. fi
  2780. if test -z "$ac_cv_prog_RANLIB"; then
  2781. ac_ct_RANLIB=$RANLIB
  2782. # Extract the first word of "ranlib", so it can be a program name with args.
  2783. set dummy ranlib; ac_word=$2
  2784. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2785. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2786. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  2787. echo $ECHO_N "(cached) $ECHO_C" >&6
  2788. else
  2789. if test -n "$ac_ct_RANLIB"; then
  2790. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  2791. else
  2792. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2793. for as_dir in $PATH
  2794. do
  2795. IFS=$as_save_IFS
  2796. test -z "$as_dir" && as_dir=.
  2797. for ac_exec_ext in '' $ac_executable_extensions; do
  2798. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2799. ac_cv_prog_ac_ct_RANLIB="ranlib"
  2800. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2801. break 2
  2802. fi
  2803. done
  2804. done
  2805. IFS=$as_save_IFS
  2806. fi
  2807. fi
  2808. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  2809. if test -n "$ac_ct_RANLIB"; then
  2810. { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  2811. echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  2812. else
  2813. { echo "$as_me:$LINENO: result: no" >&5
  2814. echo "${ECHO_T}no" >&6; }
  2815. fi
  2816. if test "x$ac_ct_RANLIB" = x; then
  2817. RANLIB=":"
  2818. else
  2819. case $cross_compiling:$ac_tool_warned in
  2820. yes:)
  2821. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2822. whose name does not start with the host triplet. If you think this
  2823. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2824. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2825. whose name does not start with the host triplet. If you think this
  2826. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2827. ac_tool_warned=yes ;;
  2828. esac
  2829. RANLIB=$ac_ct_RANLIB
  2830. fi
  2831. else
  2832. RANLIB="$ac_cv_prog_RANLIB"
  2833. fi
  2834. { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2835. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  2836. set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2837. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2838. echo $ECHO_N "(cached) $ECHO_C" >&6
  2839. else
  2840. cat >conftest.make <<\_ACEOF
  2841. SHELL = /bin/sh
  2842. all:
  2843. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2844. _ACEOF
  2845. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2846. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2847. *@@@%%%=?*=@@@%%%*)
  2848. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2849. *)
  2850. eval ac_cv_prog_make_${ac_make}_set=no;;
  2851. esac
  2852. rm -f conftest.make
  2853. fi
  2854. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2855. { echo "$as_me:$LINENO: result: yes" >&5
  2856. echo "${ECHO_T}yes" >&6; }
  2857. SET_MAKE=
  2858. else
  2859. { echo "$as_me:$LINENO: result: no" >&5
  2860. echo "${ECHO_T}no" >&6; }
  2861. SET_MAKE="MAKE=${MAKE-make}"
  2862. fi
  2863. ac_ext=cpp
  2864. ac_cpp='$CXXCPP $CPPFLAGS'
  2865. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2866. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2867. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2868. case "`(uname -sr) 2>/dev/null`" in
  2869. "SunOS 5"*)
  2870. SOLARIS=yes
  2871. USE_MITSHM=yes
  2872. USE_SUN_OVL=yes
  2873. ;;
  2874. "Linux"*)
  2875. LINUX=yes
  2876. USE_MITSHM=yes
  2877. ;;
  2878. "IRIX 6"*)
  2879. X_LIBS="-L/usr/lib32"
  2880. USE_MITSHM=yes
  2881. USE_READDISPLAY=yes
  2882. ;;
  2883. "LynxOS 2"*)
  2884. SJLJ_EXCEPTIONS=yes
  2885. ;;
  2886. esac
  2887. if test "$USE_MITSHM" = yes; then
  2888. MITSHM_DEFINE="-DHAVE_MITSHM"
  2889. fi
  2890. if test "$GCC" = yes; then
  2891. CFLAGS="$CFLAGS -Wall"
  2892. if test "$SOLARIS" = yes; then
  2893. CFLAGS="$CFLAGS -Wno-unknown-pragmas -Wno-implicit-int"
  2894. fi
  2895. fi
  2896. if test "$GXX" = yes; then
  2897. CXXFLAGS="$CXXFLAGS -Wall"
  2898. if test "$SOLARIS" = yes; then
  2899. CXXFLAGS="$CXXFLAGS -Wno-unknown-pragmas -fpermissive"
  2900. fi
  2901. if test "$SJLJ_EXCEPTIONS" = yes; then
  2902. CXXFLAGS="$CXXFLAGS -fsjlj-exceptions"
  2903. fi
  2904. fi
  2905. { echo "$as_me:$LINENO: checking for clQuerySchemeFromName in -lcl" >&5
  2906. echo $ECHO_N "checking for clQuerySchemeFromName in -lcl... $ECHO_C" >&6; }
  2907. if test "${ac_cv_lib_cl_clQuerySchemeFromName+set}" = set; then
  2908. echo $ECHO_N "(cached) $ECHO_C" >&6
  2909. else
  2910. ac_check_lib_save_LIBS=$LIBS
  2911. LIBS="-lcl $LIBS"
  2912. cat >conftest.$ac_ext <<_ACEOF
  2913. /* confdefs.h. */
  2914. _ACEOF
  2915. cat confdefs.h >>conftest.$ac_ext
  2916. cat >>conftest.$ac_ext <<_ACEOF
  2917. /* end confdefs.h. */
  2918. /* Override any GCC internal prototype to avoid an error.
  2919. Use char because int might match the return type of a GCC
  2920. builtin and then its argument prototype would still apply. */
  2921. #ifdef __cplusplus
  2922. extern "C"
  2923. #endif
  2924. char clQuerySchemeFromName ();
  2925. int
  2926. main ()
  2927. {
  2928. return clQuerySchemeFromName ();
  2929. ;
  2930. return 0;
  2931. }
  2932. _ACEOF
  2933. rm -f conftest.$ac_objext conftest$ac_exeext
  2934. if { (ac_try="$ac_link"
  2935. case "(($ac_try" in
  2936. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2937. *) ac_try_echo=$ac_try;;
  2938. esac
  2939. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2940. (eval "$ac_link") 2>conftest.er1
  2941. ac_status=$?
  2942. grep -v '^ *+' conftest.er1 >conftest.err
  2943. rm -f conftest.er1
  2944. cat conftest.err >&5
  2945. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2946. (exit $ac_status); } && {
  2947. test -z "$ac_cxx_werror_flag" ||
  2948. test ! -s conftest.err
  2949. } && test -s conftest$ac_exeext &&
  2950. $as_test_x conftest$ac_exeext; then
  2951. ac_cv_lib_cl_clQuerySchemeFromName=yes
  2952. else
  2953. echo "$as_me: failed program was:" >&5
  2954. sed 's/^/| /' conftest.$ac_ext >&5
  2955. ac_cv_lib_cl_clQuerySchemeFromName=no
  2956. fi
  2957. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  2958. conftest$ac_exeext conftest.$ac_ext
  2959. LIBS=$ac_check_lib_save_LIBS
  2960. fi
  2961. { echo "$as_me:$LINENO: result: $ac_cv_lib_cl_clQuerySchemeFromName" >&5
  2962. echo "${ECHO_T}$ac_cv_lib_cl_clQuerySchemeFromName" >&6; }
  2963. if test $ac_cv_lib_cl_clQuerySchemeFromName = yes; then
  2964. cat >>confdefs.h <<\_ACEOF
  2965. #define HAVE_CL 1
  2966. _ACEOF
  2967. CL_LIB=-lcl
  2968. fi
  2969. { echo "$as_me:$LINENO: checking for dmICCreate in -ldmedia" >&5
  2970. echo $ECHO_N "checking for dmICCreate in -ldmedia... $ECHO_C" >&6; }
  2971. if test "${ac_cv_lib_dmedia_dmICCreate+set}" = set; then
  2972. echo $ECHO_N "(cached) $ECHO_C" >&6
  2973. else
  2974. ac_check_lib_save_LIBS=$LIBS
  2975. LIBS="-ldmedia $LIBS"
  2976. cat >conftest.$ac_ext <<_ACEOF
  2977. /* confdefs.h. */
  2978. _ACEOF
  2979. cat confdefs.h >>conftest.$ac_ext
  2980. cat >>conftest.$ac_ext <<_ACEOF
  2981. /* end confdefs.h. */
  2982. /* Override any GCC internal prototype to avoid an error.
  2983. Use char because int might match the return type of a GCC
  2984. builtin and then its argument prototype would still apply. */
  2985. #ifdef __cplusplus
  2986. extern "C"
  2987. #endif
  2988. char dmICCreate ();
  2989. int
  2990. main ()
  2991. {
  2992. return dmICCreate ();
  2993. ;
  2994. return 0;
  2995. }
  2996. _ACEOF
  2997. rm -f conftest.$ac_objext conftest$ac_exeext
  2998. if { (ac_try="$ac_link"
  2999. case "(($ac_try" in
  3000. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3001. *) ac_try_echo=$ac_try;;
  3002. esac
  3003. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3004. (eval "$ac_link") 2>conftest.er1
  3005. ac_status=$?
  3006. grep -v '^ *+' conftest.er1 >conftest.err
  3007. rm -f conftest.er1
  3008. cat conftest.err >&5
  3009. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3010. (exit $ac_status); } && {
  3011. test -z "$ac_cxx_werror_flag" ||
  3012. test ! -s conftest.err
  3013. } && test -s conftest$ac_exeext &&
  3014. $as_test_x conftest$ac_exeext; then
  3015. ac_cv_lib_dmedia_dmICCreate=yes
  3016. else
  3017. echo "$as_me: failed program was:" >&5
  3018. sed 's/^/| /' conftest.$ac_ext >&5
  3019. ac_cv_lib_dmedia_dmICCreate=no
  3020. fi
  3021. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  3022. conftest$ac_exeext conftest.$ac_ext
  3023. LIBS=$ac_check_lib_save_LIBS
  3024. fi
  3025. { echo "$as_me:$LINENO: result: $ac_cv_lib_dmedia_dmICCreate" >&5
  3026. echo "${ECHO_T}$ac_cv_lib_dmedia_dmICCreate" >&6; }
  3027. if test $ac_cv_lib_dmedia_dmICCreate = yes; then
  3028. cat >>confdefs.h <<\_ACEOF
  3029. #define HAVE_DMEDIA 1
  3030. _ACEOF
  3031. DMEDIA_LIB=-ldmedia
  3032. fi
  3033. ac_ext=cpp
  3034. ac_cpp='$CXXCPP $CPPFLAGS'
  3035. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3036. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3037. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3038. { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  3039. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
  3040. if test -z "$CXXCPP"; then
  3041. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  3042. echo $ECHO_N "(cached) $ECHO_C" >&6
  3043. else
  3044. # Double quotes because CXXCPP needs to be expanded
  3045. for CXXCPP in "$CXX -E" "/lib/cpp"
  3046. do
  3047. ac_preproc_ok=false
  3048. for ac_cxx_preproc_warn_flag in '' yes
  3049. do
  3050. # Use a header file that comes with gcc, so configuring glibc
  3051. # with a fresh cross-compiler works.
  3052. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3053. # <limits.h> exists even on freestanding compilers.
  3054. # On the NeXT, cc -E runs the code through the compiler's parser,
  3055. # not just through cpp. "Syntax error" is here to catch this case.
  3056. cat >conftest.$ac_ext <<_ACEOF
  3057. /* confdefs.h. */
  3058. _ACEOF
  3059. cat confdefs.h >>conftest.$ac_ext
  3060. cat >>conftest.$ac_ext <<_ACEOF
  3061. /* end confdefs.h. */
  3062. #ifdef __STDC__
  3063. # include <limits.h>
  3064. #else
  3065. # include <assert.h>
  3066. #endif
  3067. Syntax error
  3068. _ACEOF
  3069. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3070. case "(($ac_try" in
  3071. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3072. *) ac_try_echo=$ac_try;;
  3073. esac
  3074. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3075. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3076. ac_status=$?
  3077. grep -v '^ *+' conftest.er1 >conftest.err
  3078. rm -f conftest.er1
  3079. cat conftest.err >&5
  3080. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3081. (exit $ac_status); } >/dev/null && {
  3082. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  3083. test ! -s conftest.err
  3084. }; then
  3085. :
  3086. else
  3087. echo "$as_me: failed program was:" >&5
  3088. sed 's/^/| /' conftest.$ac_ext >&5
  3089. # Broken: fails on valid input.
  3090. continue
  3091. fi
  3092. rm -f conftest.err conftest.$ac_ext
  3093. # OK, works on sane cases. Now check whether nonexistent headers
  3094. # can be detected and how.
  3095. cat >conftest.$ac_ext <<_ACEOF
  3096. /* confdefs.h. */
  3097. _ACEOF
  3098. cat confdefs.h >>conftest.$ac_ext
  3099. cat >>conftest.$ac_ext <<_ACEOF
  3100. /* end confdefs.h. */
  3101. #include <ac_nonexistent.h>
  3102. _ACEOF
  3103. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3104. case "(($ac_try" in
  3105. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3106. *) ac_try_echo=$ac_try;;
  3107. esac
  3108. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3109. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3110. ac_status=$?
  3111. grep -v '^ *+' conftest.er1 >conftest.err
  3112. rm -f conftest.er1
  3113. cat conftest.err >&5
  3114. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3115. (exit $ac_status); } >/dev/null && {
  3116. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  3117. test ! -s conftest.err
  3118. }; then
  3119. # Broken: success on invalid input.
  3120. continue
  3121. else
  3122. echo "$as_me: failed program was:" >&5
  3123. sed 's/^/| /' conftest.$ac_ext >&5
  3124. # Passes both tests.
  3125. ac_preproc_ok=:
  3126. break
  3127. fi
  3128. rm -f conftest.err conftest.$ac_ext
  3129. done
  3130. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3131. rm -f conftest.err conftest.$ac_ext
  3132. if $ac_preproc_ok; then
  3133. break
  3134. fi
  3135. done
  3136. ac_cv_prog_CXXCPP=$CXXCPP
  3137. fi
  3138. CXXCPP=$ac_cv_prog_CXXCPP
  3139. else
  3140. ac_cv_prog_CXXCPP=$CXXCPP
  3141. fi
  3142. { echo "$as_me:$LINENO: result: $CXXCPP" >&5
  3143. echo "${ECHO_T}$CXXCPP" >&6; }
  3144. ac_preproc_ok=false
  3145. for ac_cxx_preproc_warn_flag in '' yes
  3146. do
  3147. # Use a header file that comes with gcc, so configuring glibc
  3148. # with a fresh cross-compiler works.
  3149. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3150. # <limits.h> exists even on freestanding compilers.
  3151. # On the NeXT, cc -E runs the code through the compiler's parser,
  3152. # not just through cpp. "Syntax error" is here to catch this case.
  3153. cat >conftest.$ac_ext <<_ACEOF
  3154. /* confdefs.h. */
  3155. _ACEOF
  3156. cat confdefs.h >>conftest.$ac_ext
  3157. cat >>conftest.$ac_ext <<_ACEOF
  3158. /* end confdefs.h. */
  3159. #ifdef __STDC__
  3160. # include <limits.h>
  3161. #else
  3162. # include <assert.h>
  3163. #endif
  3164. Syntax error
  3165. _ACEOF
  3166. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3167. case "(($ac_try" in
  3168. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3169. *) ac_try_echo=$ac_try;;
  3170. esac
  3171. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3172. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3173. ac_status=$?
  3174. grep -v '^ *+' conftest.er1 >conftest.err
  3175. rm -f conftest.er1
  3176. cat conftest.err >&5
  3177. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3178. (exit $ac_status); } >/dev/null && {
  3179. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  3180. test ! -s conftest.err
  3181. }; then
  3182. :
  3183. else
  3184. echo "$as_me: failed program was:" >&5
  3185. sed 's/^/| /' conftest.$ac_ext >&5
  3186. # Broken: fails on valid input.
  3187. continue
  3188. fi
  3189. rm -f conftest.err conftest.$ac_ext
  3190. # OK, works on sane cases. Now check whether nonexistent headers
  3191. # can be detected and how.
  3192. cat >conftest.$ac_ext <<_ACEOF
  3193. /* confdefs.h. */
  3194. _ACEOF
  3195. cat confdefs.h >>conftest.$ac_ext
  3196. cat >>conftest.$ac_ext <<_ACEOF
  3197. /* end confdefs.h. */
  3198. #include <ac_nonexistent.h>
  3199. _ACEOF
  3200. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3201. case "(($ac_try" in
  3202. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3203. *) ac_try_echo=$ac_try;;
  3204. esac
  3205. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3206. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3207. ac_status=$?
  3208. grep -v '^ *+' conftest.er1 >conftest.err
  3209. rm -f conftest.er1
  3210. cat conftest.err >&5
  3211. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3212. (exit $ac_status); } >/dev/null && {
  3213. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  3214. test ! -s conftest.err
  3215. }; then
  3216. # Broken: success on invalid input.
  3217. continue
  3218. else
  3219. echo "$as_me: failed program was:" >&5
  3220. sed 's/^/| /' conftest.$ac_ext >&5
  3221. # Passes both tests.
  3222. ac_preproc_ok=:
  3223. break
  3224. fi
  3225. rm -f conftest.err conftest.$ac_ext
  3226. done
  3227. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3228. rm -f conftest.err conftest.$ac_ext
  3229. if $ac_preproc_ok; then
  3230. :
  3231. else
  3232. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  3233. See \`config.log' for more details." >&5
  3234. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  3235. See \`config.log' for more details." >&2;}
  3236. { (exit 1); exit 1; }; }
  3237. fi
  3238. ac_ext=cpp
  3239. ac_cpp='$CXXCPP $CPPFLAGS'
  3240. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3241. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3242. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3243. { echo "$as_me:$LINENO: checking for X" >&5
  3244. echo $ECHO_N "checking for X... $ECHO_C" >&6; }
  3245. # Check whether --with-x was given.
  3246. if test "${with_x+set}" = set; then
  3247. withval=$with_x;
  3248. fi
  3249. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  3250. if test "x$with_x" = xno; then
  3251. # The user explicitly disabled X.
  3252. have_x=disabled
  3253. else
  3254. case $x_includes,$x_libraries in #(
  3255. *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
  3256. echo "$as_me: error: Cannot use X directory names containing '" >&2;}
  3257. { (exit 1); exit 1; }; };; #(
  3258. *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
  3259. echo $ECHO_N "(cached) $ECHO_C" >&6
  3260. else
  3261. # One or both of the vars are not set, and there is no cached value.
  3262. ac_x_includes=no ac_x_libraries=no
  3263. rm -f -r conftest.dir
  3264. if mkdir conftest.dir; then
  3265. cd conftest.dir
  3266. cat >Imakefile <<'_ACEOF'
  3267. incroot:
  3268. @echo incroot='${INCROOT}'
  3269. usrlibdir:
  3270. @echo usrlibdir='${USRLIBDIR}'
  3271. libdir:
  3272. @echo libdir='${LIBDIR}'
  3273. _ACEOF
  3274. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  3275. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  3276. for ac_var in incroot usrlibdir libdir; do
  3277. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  3278. done
  3279. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  3280. for ac_extension in a so sl; do
  3281. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  3282. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  3283. ac_im_usrlibdir=$ac_im_libdir; break
  3284. fi
  3285. done
  3286. # Screen out bogus values from the imake configuration. They are
  3287. # bogus both because they are the default anyway, and because
  3288. # using them would break gcc on systems where it needs fixed includes.
  3289. case $ac_im_incroot in
  3290. /usr/include) ac_x_includes= ;;
  3291. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  3292. esac
  3293. case $ac_im_usrlibdir in
  3294. /usr/lib | /lib) ;;
  3295. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  3296. esac
  3297. fi
  3298. cd ..
  3299. rm -f -r conftest.dir
  3300. fi
  3301. # Standard set of common directories for X headers.
  3302. # Check X11 before X11Rn because it is often a symlink to the current release.
  3303. ac_x_header_dirs='
  3304. /usr/X11/include
  3305. /usr/X11R6/include
  3306. /usr/X11R5/include
  3307. /usr/X11R4/include
  3308. /usr/include/X11
  3309. /usr/include/X11R6
  3310. /usr/include/X11R5
  3311. /usr/include/X11R4
  3312. /usr/local/X11/include
  3313. /usr/local/X11R6/include
  3314. /usr/local/X11R5/include
  3315. /usr/local/X11R4/include
  3316. /usr/local/include/X11
  3317. /usr/local/include/X11R6
  3318. /usr/local/include/X11R5
  3319. /usr/local/include/X11R4
  3320. /usr/X386/include
  3321. /usr/x386/include
  3322. /usr/XFree86/include/X11
  3323. /usr/include
  3324. /usr/local/include
  3325. /usr/unsupported/include
  3326. /usr/athena/include
  3327. /usr/local/x11r5/include
  3328. /usr/lpp/Xamples/include
  3329. /usr/openwin/include
  3330. /usr/openwin/share/include'
  3331. if test "$ac_x_includes" = no; then
  3332. # Guess where to find include files, by looking for Xlib.h.
  3333. # First, try using that file with no special directory specified.
  3334. cat >conftest.$ac_ext <<_ACEOF
  3335. /* confdefs.h. */
  3336. _ACEOF
  3337. cat confdefs.h >>conftest.$ac_ext
  3338. cat >>conftest.$ac_ext <<_ACEOF
  3339. /* end confdefs.h. */
  3340. #include <X11/Xlib.h>
  3341. _ACEOF
  3342. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3343. case "(($ac_try" in
  3344. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3345. *) ac_try_echo=$ac_try;;
  3346. esac
  3347. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3348. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3349. ac_status=$?
  3350. grep -v '^ *+' conftest.er1 >conftest.err
  3351. rm -f conftest.er1
  3352. cat conftest.err >&5
  3353. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3354. (exit $ac_status); } >/dev/null && {
  3355. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  3356. test ! -s conftest.err
  3357. }; then
  3358. # We can compile using X headers with no special include directory.
  3359. ac_x_includes=
  3360. else
  3361. echo "$as_me: failed program was:" >&5
  3362. sed 's/^/| /' conftest.$ac_ext >&5
  3363. for ac_dir in $ac_x_header_dirs; do
  3364. if test -r "$ac_dir/X11/Xlib.h"; then
  3365. ac_x_includes=$ac_dir
  3366. break
  3367. fi
  3368. done
  3369. fi
  3370. rm -f conftest.err conftest.$ac_ext
  3371. fi # $ac_x_includes = no
  3372. if test "$ac_x_libraries" = no; then
  3373. # Check for the libraries.
  3374. # See if we find them without any special options.
  3375. # Don't add to $LIBS permanently.
  3376. ac_save_LIBS=$LIBS
  3377. LIBS="-lX11 $LIBS"
  3378. cat >conftest.$ac_ext <<_ACEOF
  3379. /* confdefs.h. */
  3380. _ACEOF
  3381. cat confdefs.h >>conftest.$ac_ext
  3382. cat >>conftest.$ac_ext <<_ACEOF
  3383. /* end confdefs.h. */
  3384. #include <X11/Xlib.h>
  3385. int
  3386. main ()
  3387. {
  3388. XrmInitialize ()
  3389. ;
  3390. return 0;
  3391. }
  3392. _ACEOF
  3393. rm -f conftest.$ac_objext conftest$ac_exeext
  3394. if { (ac_try="$ac_link"
  3395. case "(($ac_try" in
  3396. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3397. *) ac_try_echo=$ac_try;;
  3398. esac
  3399. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3400. (eval "$ac_link") 2>conftest.er1
  3401. ac_status=$?
  3402. grep -v '^ *+' conftest.er1 >conftest.err
  3403. rm -f conftest.er1
  3404. cat conftest.err >&5
  3405. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3406. (exit $ac_status); } && {
  3407. test -z "$ac_cxx_werror_flag" ||
  3408. test ! -s conftest.err
  3409. } && test -s conftest$ac_exeext &&
  3410. $as_test_x conftest$ac_exeext; then
  3411. LIBS=$ac_save_LIBS
  3412. # We can link X programs with no special library path.
  3413. ac_x_libraries=
  3414. else
  3415. echo "$as_me: failed program was:" >&5
  3416. sed 's/^/| /' conftest.$ac_ext >&5
  3417. LIBS=$ac_save_LIBS
  3418. for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  3419. do
  3420. # Don't even attempt the hair of trying to link an X program!
  3421. for ac_extension in a so sl; do
  3422. if test -r "$ac_dir/libX11.$ac_extension"; then
  3423. ac_x_libraries=$ac_dir
  3424. break 2
  3425. fi
  3426. done
  3427. done
  3428. fi
  3429. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  3430. conftest$ac_exeext conftest.$ac_ext
  3431. fi # $ac_x_libraries = no
  3432. case $ac_x_includes,$ac_x_libraries in #(
  3433. no,* | *,no | *\'*)
  3434. # Didn't find X, or a directory has "'" in its name.
  3435. ac_cv_have_x="have_x=no";; #(
  3436. *)
  3437. # Record where we found X for the cache.
  3438. ac_cv_have_x="have_x=yes\
  3439. ac_x_includes='$ac_x_includes'\
  3440. ac_x_libraries='$ac_x_libraries'"
  3441. esac
  3442. fi
  3443. ;; #(
  3444. *) have_x=yes;;
  3445. esac
  3446. eval "$ac_cv_have_x"
  3447. fi # $with_x != no
  3448. if test "$have_x" != yes; then
  3449. { echo "$as_me:$LINENO: result: $have_x" >&5
  3450. echo "${ECHO_T}$have_x" >&6; }
  3451. no_x=yes
  3452. else
  3453. # If each of the values was on the command line, it overrides each guess.
  3454. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  3455. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  3456. # Update the cache value to reflect the command line values.
  3457. ac_cv_have_x="have_x=yes\
  3458. ac_x_includes='$x_includes'\
  3459. ac_x_libraries='$x_libraries'"
  3460. { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
  3461. echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
  3462. fi
  3463. if test "$no_x" = yes; then
  3464. # Not all programs may use this symbol, but it does not hurt to define it.
  3465. cat >>confdefs.h <<\_ACEOF
  3466. #define X_DISPLAY_MISSING 1
  3467. _ACEOF
  3468. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  3469. else
  3470. if test -n "$x_includes"; then
  3471. X_CFLAGS="$X_CFLAGS -I$x_includes"
  3472. fi
  3473. # It would also be nice to do this for all -L options, not just this one.
  3474. if test -n "$x_libraries"; then
  3475. X_LIBS="$X_LIBS -L$x_libraries"
  3476. # For Solaris; some versions of Sun CC require a space after -R and
  3477. # others require no space. Words are not sufficient . . . .
  3478. { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
  3479. echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
  3480. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  3481. ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag
  3482. ac_cxx_werror_flag=yes
  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. ;
  3493. return 0;
  3494. }
  3495. _ACEOF
  3496. rm -f conftest.$ac_objext conftest$ac_exeext
  3497. if { (ac_try="$ac_link"
  3498. case "(($ac_try" in
  3499. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3500. *) ac_try_echo=$ac_try;;
  3501. esac
  3502. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3503. (eval "$ac_link") 2>conftest.er1
  3504. ac_status=$?
  3505. grep -v '^ *+' conftest.er1 >conftest.err
  3506. rm -f conftest.er1
  3507. cat conftest.err >&5
  3508. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3509. (exit $ac_status); } && {
  3510. test -z "$ac_cxx_werror_flag" ||
  3511. test ! -s conftest.err
  3512. } && test -s conftest$ac_exeext &&
  3513. $as_test_x conftest$ac_exeext; then
  3514. { echo "$as_me:$LINENO: result: no" >&5
  3515. echo "${ECHO_T}no" >&6; }
  3516. X_LIBS="$X_LIBS -R$x_libraries"
  3517. else
  3518. echo "$as_me: failed program was:" >&5
  3519. sed 's/^/| /' conftest.$ac_ext >&5
  3520. LIBS="$ac_xsave_LIBS -R $x_libraries"
  3521. cat >conftest.$ac_ext <<_ACEOF
  3522. /* confdefs.h. */
  3523. _ACEOF
  3524. cat confdefs.h >>conftest.$ac_ext
  3525. cat >>conftest.$ac_ext <<_ACEOF
  3526. /* end confdefs.h. */
  3527. int
  3528. main ()
  3529. {
  3530. ;
  3531. return 0;
  3532. }
  3533. _ACEOF
  3534. rm -f conftest.$ac_objext conftest$ac_exeext
  3535. if { (ac_try="$ac_link"
  3536. case "(($ac_try" in
  3537. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3538. *) ac_try_echo=$ac_try;;
  3539. esac
  3540. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3541. (eval "$ac_link") 2>conftest.er1
  3542. ac_status=$?
  3543. grep -v '^ *+' conftest.er1 >conftest.err
  3544. rm -f conftest.er1
  3545. cat conftest.err >&5
  3546. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3547. (exit $ac_status); } && {
  3548. test -z "$ac_cxx_werror_flag" ||
  3549. test ! -s conftest.err
  3550. } && test -s conftest$ac_exeext &&
  3551. $as_test_x conftest$ac_exeext; then
  3552. { echo "$as_me:$LINENO: result: yes" >&5
  3553. echo "${ECHO_T}yes" >&6; }
  3554. X_LIBS="$X_LIBS -R $x_libraries"
  3555. else
  3556. echo "$as_me: failed program was:" >&5
  3557. sed 's/^/| /' conftest.$ac_ext >&5
  3558. { echo "$as_me:$LINENO: result: neither works" >&5
  3559. echo "${ECHO_T}neither works" >&6; }
  3560. fi
  3561. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  3562. conftest$ac_exeext conftest.$ac_ext
  3563. fi
  3564. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  3565. conftest$ac_exeext conftest.$ac_ext
  3566. ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag
  3567. LIBS=$ac_xsave_LIBS
  3568. fi
  3569. # Check for system-dependent libraries X programs must link with.
  3570. # Do this before checking for the system-independent R6 libraries
  3571. # (-lICE), since we may need -lsocket or whatever for X linking.
  3572. if test "$ISC" = yes; then
  3573. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  3574. else
  3575. # Martyn Johnson says this is needed for Ultrix, if the X
  3576. # libraries were built with DECnet support. And Karl Berry says
  3577. # the Alpha needs dnet_stub (dnet does not exist).
  3578. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  3579. cat >conftest.$ac_ext <<_ACEOF
  3580. /* confdefs.h. */
  3581. _ACEOF
  3582. cat confdefs.h >>conftest.$ac_ext
  3583. cat >>conftest.$ac_ext <<_ACEOF
  3584. /* end confdefs.h. */
  3585. /* Override any GCC internal prototype to avoid an error.
  3586. Use char because int might match the return type of a GCC
  3587. builtin and then its argument prototype would still apply. */
  3588. #ifdef __cplusplus
  3589. extern "C"
  3590. #endif
  3591. char XOpenDisplay ();
  3592. int
  3593. main ()
  3594. {
  3595. return XOpenDisplay ();
  3596. ;
  3597. return 0;
  3598. }
  3599. _ACEOF
  3600. rm -f conftest.$ac_objext conftest$ac_exeext
  3601. if { (ac_try="$ac_link"
  3602. case "(($ac_try" in
  3603. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3604. *) ac_try_echo=$ac_try;;
  3605. esac
  3606. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3607. (eval "$ac_link") 2>conftest.er1
  3608. ac_status=$?
  3609. grep -v '^ *+' conftest.er1 >conftest.err
  3610. rm -f conftest.er1
  3611. cat conftest.err >&5
  3612. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3613. (exit $ac_status); } && {
  3614. test -z "$ac_cxx_werror_flag" ||
  3615. test ! -s conftest.err
  3616. } && test -s conftest$ac_exeext &&
  3617. $as_test_x conftest$ac_exeext; then
  3618. :
  3619. else
  3620. echo "$as_me: failed program was:" >&5
  3621. sed 's/^/| /' conftest.$ac_ext >&5
  3622. { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
  3623. echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
  3624. if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
  3625. echo $ECHO_N "(cached) $ECHO_C" >&6
  3626. else
  3627. ac_check_lib_save_LIBS=$LIBS
  3628. LIBS="-ldnet $LIBS"
  3629. cat >conftest.$ac_ext <<_ACEOF
  3630. /* confdefs.h. */
  3631. _ACEOF
  3632. cat confdefs.h >>conftest.$ac_ext
  3633. cat >>conftest.$ac_ext <<_ACEOF
  3634. /* end confdefs.h. */
  3635. /* Override any GCC internal prototype to avoid an error.
  3636. Use char because int might match the return type of a GCC
  3637. builtin and then its argument prototype would still apply. */
  3638. #ifdef __cplusplus
  3639. extern "C"
  3640. #endif
  3641. char dnet_ntoa ();
  3642. int
  3643. main ()
  3644. {
  3645. return dnet_ntoa ();
  3646. ;
  3647. return 0;
  3648. }
  3649. _ACEOF
  3650. rm -f conftest.$ac_objext conftest$ac_exeext
  3651. if { (ac_try="$ac_link"
  3652. case "(($ac_try" in
  3653. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3654. *) ac_try_echo=$ac_try;;
  3655. esac
  3656. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3657. (eval "$ac_link") 2>conftest.er1
  3658. ac_status=$?
  3659. grep -v '^ *+' conftest.er1 >conftest.err
  3660. rm -f conftest.er1
  3661. cat conftest.err >&5
  3662. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3663. (exit $ac_status); } && {
  3664. test -z "$ac_cxx_werror_flag" ||
  3665. test ! -s conftest.err
  3666. } && test -s conftest$ac_exeext &&
  3667. $as_test_x conftest$ac_exeext; then
  3668. ac_cv_lib_dnet_dnet_ntoa=yes
  3669. else
  3670. echo "$as_me: failed program was:" >&5
  3671. sed 's/^/| /' conftest.$ac_ext >&5
  3672. ac_cv_lib_dnet_dnet_ntoa=no
  3673. fi
  3674. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  3675. conftest$ac_exeext conftest.$ac_ext
  3676. LIBS=$ac_check_lib_save_LIBS
  3677. fi
  3678. { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  3679. echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  3680. if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
  3681. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  3682. fi
  3683. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  3684. { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
  3685. echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
  3686. if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
  3687. echo $ECHO_N "(cached) $ECHO_C" >&6
  3688. else
  3689. ac_check_lib_save_LIBS=$LIBS
  3690. LIBS="-ldnet_stub $LIBS"
  3691. cat >conftest.$ac_ext <<_ACEOF
  3692. /* confdefs.h. */
  3693. _ACEOF
  3694. cat confdefs.h >>conftest.$ac_ext
  3695. cat >>conftest.$ac_ext <<_ACEOF
  3696. /* end confdefs.h. */
  3697. /* Override any GCC internal prototype to avoid an error.
  3698. Use char because int might match the return type of a GCC
  3699. builtin and then its argument prototype would still apply. */
  3700. #ifdef __cplusplus
  3701. extern "C"
  3702. #endif
  3703. char dnet_ntoa ();
  3704. int
  3705. main ()
  3706. {
  3707. return dnet_ntoa ();
  3708. ;
  3709. return 0;
  3710. }
  3711. _ACEOF
  3712. rm -f conftest.$ac_objext conftest$ac_exeext
  3713. if { (ac_try="$ac_link"
  3714. case "(($ac_try" in
  3715. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3716. *) ac_try_echo=$ac_try;;
  3717. esac
  3718. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3719. (eval "$ac_link") 2>conftest.er1
  3720. ac_status=$?
  3721. grep -v '^ *+' conftest.er1 >conftest.err
  3722. rm -f conftest.er1
  3723. cat conftest.err >&5
  3724. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3725. (exit $ac_status); } && {
  3726. test -z "$ac_cxx_werror_flag" ||
  3727. test ! -s conftest.err
  3728. } && test -s conftest$ac_exeext &&
  3729. $as_test_x conftest$ac_exeext; then
  3730. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  3731. else
  3732. echo "$as_me: failed program was:" >&5
  3733. sed 's/^/| /' conftest.$ac_ext >&5
  3734. ac_cv_lib_dnet_stub_dnet_ntoa=no
  3735. fi
  3736. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  3737. conftest$ac_exeext conftest.$ac_ext
  3738. LIBS=$ac_check_lib_save_LIBS
  3739. fi
  3740. { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  3741. echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  3742. if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
  3743. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  3744. fi
  3745. fi
  3746. fi
  3747. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  3748. conftest$ac_exeext conftest.$ac_ext
  3749. LIBS="$ac_xsave_LIBS"
  3750. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  3751. # to get the SysV transport functions.
  3752. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  3753. # needs -lnsl.
  3754. # The nsl library prevents programs from opening the X display
  3755. # on Irix 5.2, according to T.E. Dickey.
  3756. # The functions gethostbyname, getservbyname, and inet_addr are
  3757. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  3758. { echo "$as_me:$LINENO: checking for gethostbyname" >&5
  3759. echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
  3760. if test "${ac_cv_func_gethostbyname+set}" = set; then
  3761. echo $ECHO_N "(cached) $ECHO_C" >&6
  3762. else
  3763. cat >conftest.$ac_ext <<_ACEOF
  3764. /* confdefs.h. */
  3765. _ACEOF
  3766. cat confdefs.h >>conftest.$ac_ext
  3767. cat >>conftest.$ac_ext <<_ACEOF
  3768. /* end confdefs.h. */
  3769. /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
  3770. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3771. #define gethostbyname innocuous_gethostbyname
  3772. /* System header to define __stub macros and hopefully few prototypes,
  3773. which can conflict with char gethostbyname (); below.
  3774. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3775. <limits.h> exists even on freestanding compilers. */
  3776. #ifdef __STDC__
  3777. # include <limits.h>
  3778. #else
  3779. # include <assert.h>
  3780. #endif
  3781. #undef gethostbyname
  3782. /* Override any GCC internal prototype to avoid an error.
  3783. Use char because int might match the return type of a GCC
  3784. builtin and then its argument prototype would still apply. */
  3785. #ifdef __cplusplus
  3786. extern "C"
  3787. #endif
  3788. char gethostbyname ();
  3789. /* The GNU C library defines this for functions which it implements
  3790. to always fail with ENOSYS. Some functions are actually named
  3791. something starting with __ and the normal name is an alias. */
  3792. #if defined __stub_gethostbyname || defined __stub___gethostbyname
  3793. choke me
  3794. #endif
  3795. int
  3796. main ()
  3797. {
  3798. return gethostbyname ();
  3799. ;
  3800. return 0;
  3801. }
  3802. _ACEOF
  3803. rm -f conftest.$ac_objext conftest$ac_exeext
  3804. if { (ac_try="$ac_link"
  3805. case "(($ac_try" in
  3806. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3807. *) ac_try_echo=$ac_try;;
  3808. esac
  3809. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3810. (eval "$ac_link") 2>conftest.er1
  3811. ac_status=$?
  3812. grep -v '^ *+' conftest.er1 >conftest.err
  3813. rm -f conftest.er1
  3814. cat conftest.err >&5
  3815. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3816. (exit $ac_status); } && {
  3817. test -z "$ac_cxx_werror_flag" ||
  3818. test ! -s conftest.err
  3819. } && test -s conftest$ac_exeext &&
  3820. $as_test_x conftest$ac_exeext; then
  3821. ac_cv_func_gethostbyname=yes
  3822. else
  3823. echo "$as_me: failed program was:" >&5
  3824. sed 's/^/| /' conftest.$ac_ext >&5
  3825. ac_cv_func_gethostbyname=no
  3826. fi
  3827. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  3828. conftest$ac_exeext conftest.$ac_ext
  3829. fi
  3830. { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
  3831. echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
  3832. if test $ac_cv_func_gethostbyname = no; then
  3833. { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
  3834. echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
  3835. if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
  3836. echo $ECHO_N "(cached) $ECHO_C" >&6
  3837. else
  3838. ac_check_lib_save_LIBS=$LIBS
  3839. LIBS="-lnsl $LIBS"
  3840. cat >conftest.$ac_ext <<_ACEOF
  3841. /* confdefs.h. */
  3842. _ACEOF
  3843. cat confdefs.h >>conftest.$ac_ext
  3844. cat >>conftest.$ac_ext <<_ACEOF
  3845. /* end confdefs.h. */
  3846. /* Override any GCC internal prototype to avoid an error.
  3847. Use char because int might match the return type of a GCC
  3848. builtin and then its argument prototype would still apply. */
  3849. #ifdef __cplusplus
  3850. extern "C"
  3851. #endif
  3852. char gethostbyname ();
  3853. int
  3854. main ()
  3855. {
  3856. return gethostbyname ();
  3857. ;
  3858. return 0;
  3859. }
  3860. _ACEOF
  3861. rm -f conftest.$ac_objext conftest$ac_exeext
  3862. if { (ac_try="$ac_link"
  3863. case "(($ac_try" in
  3864. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3865. *) ac_try_echo=$ac_try;;
  3866. esac
  3867. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3868. (eval "$ac_link") 2>conftest.er1
  3869. ac_status=$?
  3870. grep -v '^ *+' conftest.er1 >conftest.err
  3871. rm -f conftest.er1
  3872. cat conftest.err >&5
  3873. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3874. (exit $ac_status); } && {
  3875. test -z "$ac_cxx_werror_flag" ||
  3876. test ! -s conftest.err
  3877. } && test -s conftest$ac_exeext &&
  3878. $as_test_x conftest$ac_exeext; then
  3879. ac_cv_lib_nsl_gethostbyname=yes
  3880. else
  3881. echo "$as_me: failed program was:" >&5
  3882. sed 's/^/| /' conftest.$ac_ext >&5
  3883. ac_cv_lib_nsl_gethostbyname=no
  3884. fi
  3885. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  3886. conftest$ac_exeext conftest.$ac_ext
  3887. LIBS=$ac_check_lib_save_LIBS
  3888. fi
  3889. { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
  3890. echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
  3891. if test $ac_cv_lib_nsl_gethostbyname = yes; then
  3892. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  3893. fi
  3894. if test $ac_cv_lib_nsl_gethostbyname = no; then
  3895. { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
  3896. echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
  3897. if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
  3898. echo $ECHO_N "(cached) $ECHO_C" >&6
  3899. else
  3900. ac_check_lib_save_LIBS=$LIBS
  3901. LIBS="-lbsd $LIBS"
  3902. cat >conftest.$ac_ext <<_ACEOF
  3903. /* confdefs.h. */
  3904. _ACEOF
  3905. cat confdefs.h >>conftest.$ac_ext
  3906. cat >>conftest.$ac_ext <<_ACEOF
  3907. /* end confdefs.h. */
  3908. /* Override any GCC internal prototype to avoid an error.
  3909. Use char because int might match the return type of a GCC
  3910. builtin and then its argument prototype would still apply. */
  3911. #ifdef __cplusplus
  3912. extern "C"
  3913. #endif
  3914. char gethostbyname ();
  3915. int
  3916. main ()
  3917. {
  3918. return gethostbyname ();
  3919. ;
  3920. return 0;
  3921. }
  3922. _ACEOF
  3923. rm -f conftest.$ac_objext conftest$ac_exeext
  3924. if { (ac_try="$ac_link"
  3925. case "(($ac_try" in
  3926. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3927. *) ac_try_echo=$ac_try;;
  3928. esac
  3929. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3930. (eval "$ac_link") 2>conftest.er1
  3931. ac_status=$?
  3932. grep -v '^ *+' conftest.er1 >conftest.err
  3933. rm -f conftest.er1
  3934. cat conftest.err >&5
  3935. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3936. (exit $ac_status); } && {
  3937. test -z "$ac_cxx_werror_flag" ||
  3938. test ! -s conftest.err
  3939. } && test -s conftest$ac_exeext &&
  3940. $as_test_x conftest$ac_exeext; then
  3941. ac_cv_lib_bsd_gethostbyname=yes
  3942. else
  3943. echo "$as_me: failed program was:" >&5
  3944. sed 's/^/| /' conftest.$ac_ext >&5
  3945. ac_cv_lib_bsd_gethostbyname=no
  3946. fi
  3947. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  3948. conftest$ac_exeext conftest.$ac_ext
  3949. LIBS=$ac_check_lib_save_LIBS
  3950. fi
  3951. { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
  3952. echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
  3953. if test $ac_cv_lib_bsd_gethostbyname = yes; then
  3954. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  3955. fi
  3956. fi
  3957. fi
  3958. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  3959. # socket/setsockopt and other routines are undefined under SCO ODT
  3960. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  3961. # on later versions), says Simon Leinen: it contains gethostby*
  3962. # variants that don't use the name server (or something). -lsocket
  3963. # must be given before -lnsl if both are needed. We assume that
  3964. # if connect needs -lnsl, so does gethostbyname.
  3965. { echo "$as_me:$LINENO: checking for connect" >&5
  3966. echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
  3967. if test "${ac_cv_func_connect+set}" = set; then
  3968. echo $ECHO_N "(cached) $ECHO_C" >&6
  3969. else
  3970. cat >conftest.$ac_ext <<_ACEOF
  3971. /* confdefs.h. */
  3972. _ACEOF
  3973. cat confdefs.h >>conftest.$ac_ext
  3974. cat >>conftest.$ac_ext <<_ACEOF
  3975. /* end confdefs.h. */
  3976. /* Define connect to an innocuous variant, in case <limits.h> declares connect.
  3977. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3978. #define connect innocuous_connect
  3979. /* System header to define __stub macros and hopefully few prototypes,
  3980. which can conflict with char connect (); below.
  3981. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3982. <limits.h> exists even on freestanding compilers. */
  3983. #ifdef __STDC__
  3984. # include <limits.h>
  3985. #else
  3986. # include <assert.h>
  3987. #endif
  3988. #undef connect
  3989. /* Override any GCC internal prototype to avoid an error.
  3990. Use char because int might match the return type of a GCC
  3991. builtin and then its argument prototype would still apply. */
  3992. #ifdef __cplusplus
  3993. extern "C"
  3994. #endif
  3995. char connect ();
  3996. /* The GNU C library defines this for functions which it implements
  3997. to always fail with ENOSYS. Some functions are actually named
  3998. something starting with __ and the normal name is an alias. */
  3999. #if defined __stub_connect || defined __stub___connect
  4000. choke me
  4001. #endif
  4002. int
  4003. main ()
  4004. {
  4005. return connect ();
  4006. ;
  4007. return 0;
  4008. }
  4009. _ACEOF
  4010. rm -f conftest.$ac_objext conftest$ac_exeext
  4011. if { (ac_try="$ac_link"
  4012. case "(($ac_try" in
  4013. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4014. *) ac_try_echo=$ac_try;;
  4015. esac
  4016. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4017. (eval "$ac_link") 2>conftest.er1
  4018. ac_status=$?
  4019. grep -v '^ *+' conftest.er1 >conftest.err
  4020. rm -f conftest.er1
  4021. cat conftest.err >&5
  4022. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4023. (exit $ac_status); } && {
  4024. test -z "$ac_cxx_werror_flag" ||
  4025. test ! -s conftest.err
  4026. } && test -s conftest$ac_exeext &&
  4027. $as_test_x conftest$ac_exeext; then
  4028. ac_cv_func_connect=yes
  4029. else
  4030. echo "$as_me: failed program was:" >&5
  4031. sed 's/^/| /' conftest.$ac_ext >&5
  4032. ac_cv_func_connect=no
  4033. fi
  4034. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4035. conftest$ac_exeext conftest.$ac_ext
  4036. fi
  4037. { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
  4038. echo "${ECHO_T}$ac_cv_func_connect" >&6; }
  4039. if test $ac_cv_func_connect = no; then
  4040. { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
  4041. echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
  4042. if test "${ac_cv_lib_socket_connect+set}" = set; then
  4043. echo $ECHO_N "(cached) $ECHO_C" >&6
  4044. else
  4045. ac_check_lib_save_LIBS=$LIBS
  4046. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  4047. cat >conftest.$ac_ext <<_ACEOF
  4048. /* confdefs.h. */
  4049. _ACEOF
  4050. cat confdefs.h >>conftest.$ac_ext
  4051. cat >>conftest.$ac_ext <<_ACEOF
  4052. /* end confdefs.h. */
  4053. /* Override any GCC internal prototype to avoid an error.
  4054. Use char because int might match the return type of a GCC
  4055. builtin and then its argument prototype would still apply. */
  4056. #ifdef __cplusplus
  4057. extern "C"
  4058. #endif
  4059. char connect ();
  4060. int
  4061. main ()
  4062. {
  4063. return connect ();
  4064. ;
  4065. return 0;
  4066. }
  4067. _ACEOF
  4068. rm -f conftest.$ac_objext conftest$ac_exeext
  4069. if { (ac_try="$ac_link"
  4070. case "(($ac_try" in
  4071. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4072. *) ac_try_echo=$ac_try;;
  4073. esac
  4074. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4075. (eval "$ac_link") 2>conftest.er1
  4076. ac_status=$?
  4077. grep -v '^ *+' conftest.er1 >conftest.err
  4078. rm -f conftest.er1
  4079. cat conftest.err >&5
  4080. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4081. (exit $ac_status); } && {
  4082. test -z "$ac_cxx_werror_flag" ||
  4083. test ! -s conftest.err
  4084. } && test -s conftest$ac_exeext &&
  4085. $as_test_x conftest$ac_exeext; then
  4086. ac_cv_lib_socket_connect=yes
  4087. else
  4088. echo "$as_me: failed program was:" >&5
  4089. sed 's/^/| /' conftest.$ac_ext >&5
  4090. ac_cv_lib_socket_connect=no
  4091. fi
  4092. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4093. conftest$ac_exeext conftest.$ac_ext
  4094. LIBS=$ac_check_lib_save_LIBS
  4095. fi
  4096. { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
  4097. echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
  4098. if test $ac_cv_lib_socket_connect = yes; then
  4099. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  4100. fi
  4101. fi
  4102. # Guillermo Gomez says -lposix is necessary on A/UX.
  4103. { echo "$as_me:$LINENO: checking for remove" >&5
  4104. echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
  4105. if test "${ac_cv_func_remove+set}" = set; then
  4106. echo $ECHO_N "(cached) $ECHO_C" >&6
  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. /* Define remove to an innocuous variant, in case <limits.h> declares remove.
  4115. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4116. #define remove innocuous_remove
  4117. /* System header to define __stub macros and hopefully few prototypes,
  4118. which can conflict with char remove (); below.
  4119. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4120. <limits.h> exists even on freestanding compilers. */
  4121. #ifdef __STDC__
  4122. # include <limits.h>
  4123. #else
  4124. # include <assert.h>
  4125. #endif
  4126. #undef remove
  4127. /* Override any GCC internal prototype to avoid an error.
  4128. Use char because int might match the return type of a GCC
  4129. builtin and then its argument prototype would still apply. */
  4130. #ifdef __cplusplus
  4131. extern "C"
  4132. #endif
  4133. char remove ();
  4134. /* The GNU C library defines this for functions which it implements
  4135. to always fail with ENOSYS. Some functions are actually named
  4136. something starting with __ and the normal name is an alias. */
  4137. #if defined __stub_remove || defined __stub___remove
  4138. choke me
  4139. #endif
  4140. int
  4141. main ()
  4142. {
  4143. return remove ();
  4144. ;
  4145. return 0;
  4146. }
  4147. _ACEOF
  4148. rm -f conftest.$ac_objext conftest$ac_exeext
  4149. if { (ac_try="$ac_link"
  4150. case "(($ac_try" in
  4151. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4152. *) ac_try_echo=$ac_try;;
  4153. esac
  4154. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4155. (eval "$ac_link") 2>conftest.er1
  4156. ac_status=$?
  4157. grep -v '^ *+' conftest.er1 >conftest.err
  4158. rm -f conftest.er1
  4159. cat conftest.err >&5
  4160. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4161. (exit $ac_status); } && {
  4162. test -z "$ac_cxx_werror_flag" ||
  4163. test ! -s conftest.err
  4164. } && test -s conftest$ac_exeext &&
  4165. $as_test_x conftest$ac_exeext; then
  4166. ac_cv_func_remove=yes
  4167. else
  4168. echo "$as_me: failed program was:" >&5
  4169. sed 's/^/| /' conftest.$ac_ext >&5
  4170. ac_cv_func_remove=no
  4171. fi
  4172. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4173. conftest$ac_exeext conftest.$ac_ext
  4174. fi
  4175. { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
  4176. echo "${ECHO_T}$ac_cv_func_remove" >&6; }
  4177. if test $ac_cv_func_remove = no; then
  4178. { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
  4179. echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
  4180. if test "${ac_cv_lib_posix_remove+set}" = set; then
  4181. echo $ECHO_N "(cached) $ECHO_C" >&6
  4182. else
  4183. ac_check_lib_save_LIBS=$LIBS
  4184. LIBS="-lposix $LIBS"
  4185. cat >conftest.$ac_ext <<_ACEOF
  4186. /* confdefs.h. */
  4187. _ACEOF
  4188. cat confdefs.h >>conftest.$ac_ext
  4189. cat >>conftest.$ac_ext <<_ACEOF
  4190. /* end confdefs.h. */
  4191. /* Override any GCC internal prototype to avoid an error.
  4192. Use char because int might match the return type of a GCC
  4193. builtin and then its argument prototype would still apply. */
  4194. #ifdef __cplusplus
  4195. extern "C"
  4196. #endif
  4197. char remove ();
  4198. int
  4199. main ()
  4200. {
  4201. return remove ();
  4202. ;
  4203. return 0;
  4204. }
  4205. _ACEOF
  4206. rm -f conftest.$ac_objext conftest$ac_exeext
  4207. if { (ac_try="$ac_link"
  4208. case "(($ac_try" in
  4209. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4210. *) ac_try_echo=$ac_try;;
  4211. esac
  4212. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4213. (eval "$ac_link") 2>conftest.er1
  4214. ac_status=$?
  4215. grep -v '^ *+' conftest.er1 >conftest.err
  4216. rm -f conftest.er1
  4217. cat conftest.err >&5
  4218. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4219. (exit $ac_status); } && {
  4220. test -z "$ac_cxx_werror_flag" ||
  4221. test ! -s conftest.err
  4222. } && test -s conftest$ac_exeext &&
  4223. $as_test_x conftest$ac_exeext; then
  4224. ac_cv_lib_posix_remove=yes
  4225. else
  4226. echo "$as_me: failed program was:" >&5
  4227. sed 's/^/| /' conftest.$ac_ext >&5
  4228. ac_cv_lib_posix_remove=no
  4229. fi
  4230. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4231. conftest$ac_exeext conftest.$ac_ext
  4232. LIBS=$ac_check_lib_save_LIBS
  4233. fi
  4234. { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
  4235. echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
  4236. if test $ac_cv_lib_posix_remove = yes; then
  4237. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  4238. fi
  4239. fi
  4240. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  4241. { echo "$as_me:$LINENO: checking for shmat" >&5
  4242. echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
  4243. if test "${ac_cv_func_shmat+set}" = set; then
  4244. echo $ECHO_N "(cached) $ECHO_C" >&6
  4245. else
  4246. cat >conftest.$ac_ext <<_ACEOF
  4247. /* confdefs.h. */
  4248. _ACEOF
  4249. cat confdefs.h >>conftest.$ac_ext
  4250. cat >>conftest.$ac_ext <<_ACEOF
  4251. /* end confdefs.h. */
  4252. /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
  4253. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4254. #define shmat innocuous_shmat
  4255. /* System header to define __stub macros and hopefully few prototypes,
  4256. which can conflict with char shmat (); below.
  4257. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4258. <limits.h> exists even on freestanding compilers. */
  4259. #ifdef __STDC__
  4260. # include <limits.h>
  4261. #else
  4262. # include <assert.h>
  4263. #endif
  4264. #undef shmat
  4265. /* Override any GCC internal prototype to avoid an error.
  4266. Use char because int might match the return type of a GCC
  4267. builtin and then its argument prototype would still apply. */
  4268. #ifdef __cplusplus
  4269. extern "C"
  4270. #endif
  4271. char shmat ();
  4272. /* The GNU C library defines this for functions which it implements
  4273. to always fail with ENOSYS. Some functions are actually named
  4274. something starting with __ and the normal name is an alias. */
  4275. #if defined __stub_shmat || defined __stub___shmat
  4276. choke me
  4277. #endif
  4278. int
  4279. main ()
  4280. {
  4281. return shmat ();
  4282. ;
  4283. return 0;
  4284. }
  4285. _ACEOF
  4286. rm -f conftest.$ac_objext conftest$ac_exeext
  4287. if { (ac_try="$ac_link"
  4288. case "(($ac_try" in
  4289. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4290. *) ac_try_echo=$ac_try;;
  4291. esac
  4292. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4293. (eval "$ac_link") 2>conftest.er1
  4294. ac_status=$?
  4295. grep -v '^ *+' conftest.er1 >conftest.err
  4296. rm -f conftest.er1
  4297. cat conftest.err >&5
  4298. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4299. (exit $ac_status); } && {
  4300. test -z "$ac_cxx_werror_flag" ||
  4301. test ! -s conftest.err
  4302. } && test -s conftest$ac_exeext &&
  4303. $as_test_x conftest$ac_exeext; then
  4304. ac_cv_func_shmat=yes
  4305. else
  4306. echo "$as_me: failed program was:" >&5
  4307. sed 's/^/| /' conftest.$ac_ext >&5
  4308. ac_cv_func_shmat=no
  4309. fi
  4310. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4311. conftest$ac_exeext conftest.$ac_ext
  4312. fi
  4313. { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
  4314. echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
  4315. if test $ac_cv_func_shmat = no; then
  4316. { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
  4317. echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
  4318. if test "${ac_cv_lib_ipc_shmat+set}" = set; then
  4319. echo $ECHO_N "(cached) $ECHO_C" >&6
  4320. else
  4321. ac_check_lib_save_LIBS=$LIBS
  4322. LIBS="-lipc $LIBS"
  4323. cat >conftest.$ac_ext <<_ACEOF
  4324. /* confdefs.h. */
  4325. _ACEOF
  4326. cat confdefs.h >>conftest.$ac_ext
  4327. cat >>conftest.$ac_ext <<_ACEOF
  4328. /* end confdefs.h. */
  4329. /* Override any GCC internal prototype to avoid an error.
  4330. Use char because int might match the return type of a GCC
  4331. builtin and then its argument prototype would still apply. */
  4332. #ifdef __cplusplus
  4333. extern "C"
  4334. #endif
  4335. char shmat ();
  4336. int
  4337. main ()
  4338. {
  4339. return shmat ();
  4340. ;
  4341. return 0;
  4342. }
  4343. _ACEOF
  4344. rm -f conftest.$ac_objext conftest$ac_exeext
  4345. if { (ac_try="$ac_link"
  4346. case "(($ac_try" in
  4347. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4348. *) ac_try_echo=$ac_try;;
  4349. esac
  4350. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4351. (eval "$ac_link") 2>conftest.er1
  4352. ac_status=$?
  4353. grep -v '^ *+' conftest.er1 >conftest.err
  4354. rm -f conftest.er1
  4355. cat conftest.err >&5
  4356. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4357. (exit $ac_status); } && {
  4358. test -z "$ac_cxx_werror_flag" ||
  4359. test ! -s conftest.err
  4360. } && test -s conftest$ac_exeext &&
  4361. $as_test_x conftest$ac_exeext; then
  4362. ac_cv_lib_ipc_shmat=yes
  4363. else
  4364. echo "$as_me: failed program was:" >&5
  4365. sed 's/^/| /' conftest.$ac_ext >&5
  4366. ac_cv_lib_ipc_shmat=no
  4367. fi
  4368. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4369. conftest$ac_exeext conftest.$ac_ext
  4370. LIBS=$ac_check_lib_save_LIBS
  4371. fi
  4372. { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
  4373. echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
  4374. if test $ac_cv_lib_ipc_shmat = yes; then
  4375. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  4376. fi
  4377. fi
  4378. fi
  4379. # Check for libraries that X11R6 Xt/Xaw programs need.
  4380. ac_save_LDFLAGS=$LDFLAGS
  4381. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  4382. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  4383. # check for ICE first), but we must link in the order -lSM -lICE or
  4384. # we get undefined symbols. So assume we have SM if we have ICE.
  4385. # These have to be linked with before -lX11, unlike the other
  4386. # libraries we check for below, so use a different variable.
  4387. # John Interrante, Karl Berry
  4388. { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
  4389. echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
  4390. if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
  4391. echo $ECHO_N "(cached) $ECHO_C" >&6
  4392. else
  4393. ac_check_lib_save_LIBS=$LIBS
  4394. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  4395. cat >conftest.$ac_ext <<_ACEOF
  4396. /* confdefs.h. */
  4397. _ACEOF
  4398. cat confdefs.h >>conftest.$ac_ext
  4399. cat >>conftest.$ac_ext <<_ACEOF
  4400. /* end confdefs.h. */
  4401. /* Override any GCC internal prototype to avoid an error.
  4402. Use char because int might match the return type of a GCC
  4403. builtin and then its argument prototype would still apply. */
  4404. #ifdef __cplusplus
  4405. extern "C"
  4406. #endif
  4407. char IceConnectionNumber ();
  4408. int
  4409. main ()
  4410. {
  4411. return IceConnectionNumber ();
  4412. ;
  4413. return 0;
  4414. }
  4415. _ACEOF
  4416. rm -f conftest.$ac_objext conftest$ac_exeext
  4417. if { (ac_try="$ac_link"
  4418. case "(($ac_try" in
  4419. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4420. *) ac_try_echo=$ac_try;;
  4421. esac
  4422. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4423. (eval "$ac_link") 2>conftest.er1
  4424. ac_status=$?
  4425. grep -v '^ *+' conftest.er1 >conftest.err
  4426. rm -f conftest.er1
  4427. cat conftest.err >&5
  4428. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4429. (exit $ac_status); } && {
  4430. test -z "$ac_cxx_werror_flag" ||
  4431. test ! -s conftest.err
  4432. } && test -s conftest$ac_exeext &&
  4433. $as_test_x conftest$ac_exeext; then
  4434. ac_cv_lib_ICE_IceConnectionNumber=yes
  4435. else
  4436. echo "$as_me: failed program was:" >&5
  4437. sed 's/^/| /' conftest.$ac_ext >&5
  4438. ac_cv_lib_ICE_IceConnectionNumber=no
  4439. fi
  4440. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4441. conftest$ac_exeext conftest.$ac_ext
  4442. LIBS=$ac_check_lib_save_LIBS
  4443. fi
  4444. { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  4445. echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  4446. if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
  4447. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  4448. fi
  4449. LDFLAGS=$ac_save_LDFLAGS
  4450. fi
  4451. # Check whether --with-installed-zlib was given.
  4452. if test "${with_installed_zlib+set}" = set; then
  4453. withval=$with_installed_zlib;
  4454. fi
  4455. if test "$with_installed_zlib" = yes; then
  4456. echo "using installed zlib"
  4457. ZLIB_LIB=-lz
  4458. else
  4459. ZLIB_DIR='$(COMMON)/zlib'
  4460. ZLIB_INCLUDE='-I$(COMMON)/zlib'
  4461. ZLIB_LIB='$(COMMON)/zlib/libz.a'
  4462. fi
  4463. # Check whether --with-installed-jpeg was given.
  4464. if test "${with_installed_jpeg+set}" = set; then
  4465. withval=$with_installed_jpeg;
  4466. fi
  4467. if test "$with_installed_jpeg" = yes; then
  4468. echo "using installed jpeg"
  4469. JPEG_LIB=-ljpeg
  4470. else
  4471. JPEG_DIR='$(COMMON)/jpeg/build'
  4472. JPEG_INCLUDE='-I$(COMMON)/jpeg'
  4473. JPEG_LIB='$(COMMON)/jpeg/build/libjpeg.a'
  4474. fi
  4475. # Check whether --enable-vncconfig was given.
  4476. if test "${enable_vncconfig+set}" = set; then
  4477. enableval=$enable_vncconfig;
  4478. fi
  4479. if test "$enable_vncconfig" = no; then
  4480. echo "vncconfig utility will not be built"
  4481. VNCCONFIG_DIR=
  4482. else
  4483. VNCCONFIG_DIR='vncconfig'
  4484. fi
  4485. { echo "$as_me:$LINENO: checking for XTestGrabControl in -lXtst" >&5
  4486. echo $ECHO_N "checking for XTestGrabControl in -lXtst... $ECHO_C" >&6; }
  4487. if test "${ac_cv_lib_Xtst_XTestGrabControl+set}" = set; then
  4488. echo $ECHO_N "(cached) $ECHO_C" >&6
  4489. else
  4490. ac_check_lib_save_LIBS=$LIBS
  4491. LIBS="-lXtst "$X_LIBS" -lXext -lX11 $LIBS"
  4492. cat >conftest.$ac_ext <<_ACEOF
  4493. /* confdefs.h. */
  4494. _ACEOF
  4495. cat confdefs.h >>conftest.$ac_ext
  4496. cat >>conftest.$ac_ext <<_ACEOF
  4497. /* end confdefs.h. */
  4498. /* Override any GCC internal prototype to avoid an error.
  4499. Use char because int might match the return type of a GCC
  4500. builtin and then its argument prototype would still apply. */
  4501. #ifdef __cplusplus
  4502. extern "C"
  4503. #endif
  4504. char XTestGrabControl ();
  4505. int
  4506. main ()
  4507. {
  4508. return XTestGrabControl ();
  4509. ;
  4510. return 0;
  4511. }
  4512. _ACEOF
  4513. rm -f conftest.$ac_objext conftest$ac_exeext
  4514. if { (ac_try="$ac_link"
  4515. case "(($ac_try" in
  4516. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4517. *) ac_try_echo=$ac_try;;
  4518. esac
  4519. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4520. (eval "$ac_link") 2>conftest.er1
  4521. ac_status=$?
  4522. grep -v '^ *+' conftest.er1 >conftest.err
  4523. rm -f conftest.er1
  4524. cat conftest.err >&5
  4525. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4526. (exit $ac_status); } && {
  4527. test -z "$ac_cxx_werror_flag" ||
  4528. test ! -s conftest.err
  4529. } && test -s conftest$ac_exeext &&
  4530. $as_test_x conftest$ac_exeext; then
  4531. ac_cv_lib_Xtst_XTestGrabControl=yes
  4532. else
  4533. echo "$as_me: failed program was:" >&5
  4534. sed 's/^/| /' conftest.$ac_ext >&5
  4535. ac_cv_lib_Xtst_XTestGrabControl=no
  4536. fi
  4537. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4538. conftest$ac_exeext conftest.$ac_ext
  4539. LIBS=$ac_check_lib_save_LIBS
  4540. fi
  4541. { echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestGrabControl" >&5
  4542. echo "${ECHO_T}$ac_cv_lib_Xtst_XTestGrabControl" >&6; }
  4543. if test $ac_cv_lib_Xtst_XTestGrabControl = yes; then
  4544. USE_XTEST=yes
  4545. else
  4546. USE_XTEST=
  4547. fi
  4548. if test "$USE_XTEST" = yes; then
  4549. XTEST_DEFINE='-DHAVE_XTEST'
  4550. XTEST_LIB=-lXtst
  4551. else
  4552. echo Warning: No XTest extension, building x0vncserver view-only
  4553. XTEST_DEFINE=
  4554. XTEST_LIB=
  4555. fi
  4556. if test "$USE_READDISPLAY" = yes; then
  4557. READDISPLAY_DEFINE='-DHAVE_READDISPLAY'
  4558. elif test "$USE_SUN_OVL" = yes; then
  4559. READDISPLAY_DEFINE='-DHAVE_SUN_OVL'
  4560. else
  4561. READDISPLAY_DEFINE=
  4562. fi
  4563. ac_ext=c
  4564. ac_cpp='$CPP $CPPFLAGS'
  4565. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4566. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4567. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4568. { echo "$as_me:$LINENO: checking for gethostbyname" >&5
  4569. echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
  4570. if test "${ac_cv_func_gethostbyname+set}" = set; then
  4571. echo $ECHO_N "(cached) $ECHO_C" >&6
  4572. else
  4573. cat >conftest.$ac_ext <<_ACEOF
  4574. /* confdefs.h. */
  4575. _ACEOF
  4576. cat confdefs.h >>conftest.$ac_ext
  4577. cat >>conftest.$ac_ext <<_ACEOF
  4578. /* end confdefs.h. */
  4579. /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
  4580. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4581. #define gethostbyname innocuous_gethostbyname
  4582. /* System header to define __stub macros and hopefully few prototypes,
  4583. which can conflict with char gethostbyname (); below.
  4584. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4585. <limits.h> exists even on freestanding compilers. */
  4586. #ifdef __STDC__
  4587. # include <limits.h>
  4588. #else
  4589. # include <assert.h>
  4590. #endif
  4591. #undef gethostbyname
  4592. /* Override any GCC internal prototype to avoid an error.
  4593. Use char because int might match the return type of a GCC
  4594. builtin and then its argument prototype would still apply. */
  4595. #ifdef __cplusplus
  4596. extern "C"
  4597. #endif
  4598. char gethostbyname ();
  4599. /* The GNU C library defines this for functions which it implements
  4600. to always fail with ENOSYS. Some functions are actually named
  4601. something starting with __ and the normal name is an alias. */
  4602. #if defined __stub_gethostbyname || defined __stub___gethostbyname
  4603. choke me
  4604. #endif
  4605. int
  4606. main ()
  4607. {
  4608. return gethostbyname ();
  4609. ;
  4610. return 0;
  4611. }
  4612. _ACEOF
  4613. rm -f conftest.$ac_objext conftest$ac_exeext
  4614. if { (ac_try="$ac_link"
  4615. case "(($ac_try" in
  4616. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4617. *) ac_try_echo=$ac_try;;
  4618. esac
  4619. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4620. (eval "$ac_link") 2>conftest.er1
  4621. ac_status=$?
  4622. grep -v '^ *+' conftest.er1 >conftest.err
  4623. rm -f conftest.er1
  4624. cat conftest.err >&5
  4625. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4626. (exit $ac_status); } && {
  4627. test -z "$ac_c_werror_flag" ||
  4628. test ! -s conftest.err
  4629. } && test -s conftest$ac_exeext &&
  4630. $as_test_x conftest$ac_exeext; then
  4631. ac_cv_func_gethostbyname=yes
  4632. else
  4633. echo "$as_me: failed program was:" >&5
  4634. sed 's/^/| /' conftest.$ac_ext >&5
  4635. ac_cv_func_gethostbyname=no
  4636. fi
  4637. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4638. conftest$ac_exeext conftest.$ac_ext
  4639. fi
  4640. { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
  4641. echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
  4642. if test $ac_cv_func_gethostbyname = yes; then
  4643. INET_LIB_REQ=
  4644. else
  4645. INET_LIB_REQ=yes
  4646. fi
  4647. if test "$INET_LIB_REQ" = yes; then
  4648. { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
  4649. echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
  4650. if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
  4651. echo $ECHO_N "(cached) $ECHO_C" >&6
  4652. else
  4653. ac_check_lib_save_LIBS=$LIBS
  4654. LIBS="-lbsd $LIBS"
  4655. cat >conftest.$ac_ext <<_ACEOF
  4656. /* confdefs.h. */
  4657. _ACEOF
  4658. cat confdefs.h >>conftest.$ac_ext
  4659. cat >>conftest.$ac_ext <<_ACEOF
  4660. /* end confdefs.h. */
  4661. /* Override any GCC internal prototype to avoid an error.
  4662. Use char because int might match the return type of a GCC
  4663. builtin and then its argument prototype would still apply. */
  4664. #ifdef __cplusplus
  4665. extern "C"
  4666. #endif
  4667. char gethostbyname ();
  4668. int
  4669. main ()
  4670. {
  4671. return gethostbyname ();
  4672. ;
  4673. return 0;
  4674. }
  4675. _ACEOF
  4676. rm -f conftest.$ac_objext conftest$ac_exeext
  4677. if { (ac_try="$ac_link"
  4678. case "(($ac_try" in
  4679. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4680. *) ac_try_echo=$ac_try;;
  4681. esac
  4682. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4683. (eval "$ac_link") 2>conftest.er1
  4684. ac_status=$?
  4685. grep -v '^ *+' conftest.er1 >conftest.err
  4686. rm -f conftest.er1
  4687. cat conftest.err >&5
  4688. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4689. (exit $ac_status); } && {
  4690. test -z "$ac_c_werror_flag" ||
  4691. test ! -s conftest.err
  4692. } && test -s conftest$ac_exeext &&
  4693. $as_test_x conftest$ac_exeext; then
  4694. ac_cv_lib_bsd_gethostbyname=yes
  4695. else
  4696. echo "$as_me: failed program was:" >&5
  4697. sed 's/^/| /' conftest.$ac_ext >&5
  4698. ac_cv_lib_bsd_gethostbyname=no
  4699. fi
  4700. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4701. conftest$ac_exeext conftest.$ac_ext
  4702. LIBS=$ac_check_lib_save_LIBS
  4703. fi
  4704. { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
  4705. echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
  4706. if test $ac_cv_lib_bsd_gethostbyname = yes; then
  4707. INET_LIB=-lbsd
  4708. else
  4709. INET_LIB=
  4710. fi
  4711. fi
  4712. ac_ext=cpp
  4713. ac_cpp='$CXXCPP $CPPFLAGS'
  4714. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4715. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4716. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4717. ac_aux_dir=
  4718. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  4719. if test -f "$ac_dir/install-sh"; then
  4720. ac_aux_dir=$ac_dir
  4721. ac_install_sh="$ac_aux_dir/install-sh -c"
  4722. break
  4723. elif test -f "$ac_dir/install.sh"; then
  4724. ac_aux_dir=$ac_dir
  4725. ac_install_sh="$ac_aux_dir/install.sh -c"
  4726. break
  4727. elif test -f "$ac_dir/shtool"; then
  4728. ac_aux_dir=$ac_dir
  4729. ac_install_sh="$ac_aux_dir/shtool install -c"
  4730. break
  4731. fi
  4732. done
  4733. if test -z "$ac_aux_dir"; then
  4734. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  4735. echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  4736. { (exit 1); exit 1; }; }
  4737. fi
  4738. # These three variables are undocumented and unsupported,
  4739. # and are intended to be withdrawn in a future Autoconf release.
  4740. # They can cause serious problems if a builder's source tree is in a directory
  4741. # whose full name contains unusual characters.
  4742. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  4743. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  4744. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  4745. # Find a good install program. We prefer a C program (faster),
  4746. # so one script is as good as another. But avoid the broken or
  4747. # incompatible versions:
  4748. # SysV /etc/install, /usr/sbin/install
  4749. # SunOS /usr/etc/install
  4750. # IRIX /sbin/install
  4751. # AIX /bin/install
  4752. # AmigaOS /C/install, which installs bootblocks on floppy discs
  4753. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  4754. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  4755. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  4756. # OS/2's system install, which has a completely different semantic
  4757. # ./install, which can be erroneously created by make from ./install.sh.
  4758. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  4759. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  4760. if test -z "$INSTALL"; then
  4761. if test "${ac_cv_path_install+set}" = set; then
  4762. echo $ECHO_N "(cached) $ECHO_C" >&6
  4763. else
  4764. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4765. for as_dir in $PATH
  4766. do
  4767. IFS=$as_save_IFS
  4768. test -z "$as_dir" && as_dir=.
  4769. # Account for people who put trailing slashes in PATH elements.
  4770. case $as_dir/ in
  4771. ./ | .// | /cC/* | \
  4772. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  4773. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  4774. /usr/ucb/* ) ;;
  4775. *)
  4776. # OSF1 and SCO ODT 3.0 have their own names for install.
  4777. # Don't use installbsd from OSF since it installs stuff as root
  4778. # by default.
  4779. for ac_prog in ginstall scoinst install; do
  4780. for ac_exec_ext in '' $ac_executable_extensions; do
  4781. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  4782. if test $ac_prog = install &&
  4783. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  4784. # AIX install. It has an incompatible calling convention.
  4785. :
  4786. elif test $ac_prog = install &&
  4787. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  4788. # program-specific install script used by HP pwplus--don't use.
  4789. :
  4790. else
  4791. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  4792. break 3
  4793. fi
  4794. fi
  4795. done
  4796. done
  4797. ;;
  4798. esac
  4799. done
  4800. IFS=$as_save_IFS
  4801. fi
  4802. if test "${ac_cv_path_install+set}" = set; then
  4803. INSTALL=$ac_cv_path_install
  4804. else
  4805. # As a last resort, use the slow shell script. Don't cache a
  4806. # value for INSTALL within a source directory, because that will
  4807. # break other packages using the cache if that directory is
  4808. # removed, or if the value is a relative name.
  4809. INSTALL=$ac_install_sh
  4810. fi
  4811. fi
  4812. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  4813. echo "${ECHO_T}$INSTALL" >&6; }
  4814. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  4815. # It thinks the first close brace ends the variable substitution.
  4816. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  4817. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  4818. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  4819. MKINSTALLDIRS=
  4820. if test -n "$ac_aux_dir"; then
  4821. case "$ac_aux_dir" in
  4822. /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
  4823. *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
  4824. esac
  4825. fi
  4826. if test -z "$MKINSTALLDIRS"; then
  4827. MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
  4828. fi
  4829. { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  4830. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
  4831. # Check whether --enable-nls was given.
  4832. if test "${enable_nls+set}" = set; then
  4833. enableval=$enable_nls; USE_NLS=$enableval
  4834. else
  4835. USE_NLS=yes
  4836. fi
  4837. { echo "$as_me:$LINENO: result: $USE_NLS" >&5
  4838. echo "${ECHO_T}$USE_NLS" >&6; }
  4839. # Prepare PATH_SEPARATOR.
  4840. # The user is always right.
  4841. if test "${PATH_SEPARATOR+set}" != set; then
  4842. echo "#! /bin/sh" >conf$$.sh
  4843. echo "exit 0" >>conf$$.sh
  4844. chmod +x conf$$.sh
  4845. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  4846. PATH_SEPARATOR=';'
  4847. else
  4848. PATH_SEPARATOR=:
  4849. fi
  4850. rm -f conf$$.sh
  4851. fi
  4852. # Find out how to test for executable files. Don't use a zero-byte file,
  4853. # as systems may use methods other than mode bits to determine executability.
  4854. cat >conf$$.file <<_ASEOF
  4855. #! /bin/sh
  4856. exit 0
  4857. _ASEOF
  4858. chmod +x conf$$.file
  4859. if test -x conf$$.file >/dev/null 2>&1; then
  4860. ac_executable_p="test -x"
  4861. else
  4862. ac_executable_p="test -f"
  4863. fi
  4864. rm -f conf$$.file
  4865. # Extract the first word of "msgfmt", so it can be a program name with args.
  4866. set dummy msgfmt; ac_word=$2
  4867. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4868. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4869. if test "${ac_cv_path_MSGFMT+set}" = set; then
  4870. echo $ECHO_N "(cached) $ECHO_C" >&6
  4871. else
  4872. case "$MSGFMT" in
  4873. [\\/]* | ?:[\\/]*)
  4874. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  4875. ;;
  4876. *)
  4877. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  4878. for ac_dir in $PATH; do
  4879. IFS="$ac_save_IFS"
  4880. test -z "$ac_dir" && ac_dir=.
  4881. for ac_exec_ext in '' $ac_executable_extensions; do
  4882. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  4883. if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
  4884. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  4885. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  4886. break 2
  4887. fi
  4888. fi
  4889. done
  4890. done
  4891. IFS="$ac_save_IFS"
  4892. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  4893. ;;
  4894. esac
  4895. fi
  4896. MSGFMT="$ac_cv_path_MSGFMT"
  4897. if test "$MSGFMT" != ":"; then
  4898. { echo "$as_me:$LINENO: result: $MSGFMT" >&5
  4899. echo "${ECHO_T}$MSGFMT" >&6; }
  4900. else
  4901. { echo "$as_me:$LINENO: result: no" >&5
  4902. echo "${ECHO_T}no" >&6; }
  4903. fi
  4904. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  4905. set dummy gmsgfmt; ac_word=$2
  4906. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4907. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4908. if test "${ac_cv_path_GMSGFMT+set}" = set; then
  4909. echo $ECHO_N "(cached) $ECHO_C" >&6
  4910. else
  4911. case $GMSGFMT in
  4912. [\\/]* | ?:[\\/]*)
  4913. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  4914. ;;
  4915. *)
  4916. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4917. for as_dir in $PATH
  4918. do
  4919. IFS=$as_save_IFS
  4920. test -z "$as_dir" && as_dir=.
  4921. for ac_exec_ext in '' $ac_executable_extensions; do
  4922. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4923. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  4924. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4925. break 2
  4926. fi
  4927. done
  4928. done
  4929. IFS=$as_save_IFS
  4930. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  4931. ;;
  4932. esac
  4933. fi
  4934. GMSGFMT=$ac_cv_path_GMSGFMT
  4935. if test -n "$GMSGFMT"; then
  4936. { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
  4937. echo "${ECHO_T}$GMSGFMT" >&6; }
  4938. else
  4939. { echo "$as_me:$LINENO: result: no" >&5
  4940. echo "${ECHO_T}no" >&6; }
  4941. fi
  4942. # Prepare PATH_SEPARATOR.
  4943. # The user is always right.
  4944. if test "${PATH_SEPARATOR+set}" != set; then
  4945. echo "#! /bin/sh" >conf$$.sh
  4946. echo "exit 0" >>conf$$.sh
  4947. chmod +x conf$$.sh
  4948. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  4949. PATH_SEPARATOR=';'
  4950. else
  4951. PATH_SEPARATOR=:
  4952. fi
  4953. rm -f conf$$.sh
  4954. fi
  4955. # Find out how to test for executable files. Don't use a zero-byte file,
  4956. # as systems may use methods other than mode bits to determine executability.
  4957. cat >conf$$.file <<_ASEOF
  4958. #! /bin/sh
  4959. exit 0
  4960. _ASEOF
  4961. chmod +x conf$$.file
  4962. if test -x conf$$.file >/dev/null 2>&1; then
  4963. ac_executable_p="test -x"
  4964. else
  4965. ac_executable_p="test -f"
  4966. fi
  4967. rm -f conf$$.file
  4968. # Extract the first word of "xgettext", so it can be a program name with args.
  4969. set dummy xgettext; ac_word=$2
  4970. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4971. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4972. if test "${ac_cv_path_XGETTEXT+set}" = set; then
  4973. echo $ECHO_N "(cached) $ECHO_C" >&6
  4974. else
  4975. case "$XGETTEXT" in
  4976. [\\/]* | ?:[\\/]*)
  4977. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  4978. ;;
  4979. *)
  4980. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  4981. for ac_dir in $PATH; do
  4982. IFS="$ac_save_IFS"
  4983. test -z "$ac_dir" && ac_dir=.
  4984. for ac_exec_ext in '' $ac_executable_extensions; do
  4985. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  4986. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  4987. (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  4988. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  4989. break 2
  4990. fi
  4991. fi
  4992. done
  4993. done
  4994. IFS="$ac_save_IFS"
  4995. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  4996. ;;
  4997. esac
  4998. fi
  4999. XGETTEXT="$ac_cv_path_XGETTEXT"
  5000. if test "$XGETTEXT" != ":"; then
  5001. { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
  5002. echo "${ECHO_T}$XGETTEXT" >&6; }
  5003. else
  5004. { echo "$as_me:$LINENO: result: no" >&5
  5005. echo "${ECHO_T}no" >&6; }
  5006. fi
  5007. rm -f messages.po
  5008. # Prepare PATH_SEPARATOR.
  5009. # The user is always right.
  5010. if test "${PATH_SEPARATOR+set}" != set; then
  5011. echo "#! /bin/sh" >conf$$.sh
  5012. echo "exit 0" >>conf$$.sh
  5013. chmod +x conf$$.sh
  5014. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  5015. PATH_SEPARATOR=';'
  5016. else
  5017. PATH_SEPARATOR=:
  5018. fi
  5019. rm -f conf$$.sh
  5020. fi
  5021. # Find out how to test for executable files. Don't use a zero-byte file,
  5022. # as systems may use methods other than mode bits to determine executability.
  5023. cat >conf$$.file <<_ASEOF
  5024. #! /bin/sh
  5025. exit 0
  5026. _ASEOF
  5027. chmod +x conf$$.file
  5028. if test -x conf$$.file >/dev/null 2>&1; then
  5029. ac_executable_p="test -x"
  5030. else
  5031. ac_executable_p="test -f"
  5032. fi
  5033. rm -f conf$$.file
  5034. # Extract the first word of "msgmerge", so it can be a program name with args.
  5035. set dummy msgmerge; ac_word=$2
  5036. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5037. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5038. if test "${ac_cv_path_MSGMERGE+set}" = set; then
  5039. echo $ECHO_N "(cached) $ECHO_C" >&6
  5040. else
  5041. case "$MSGMERGE" in
  5042. [\\/]* | ?:[\\/]*)
  5043. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  5044. ;;
  5045. *)
  5046. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  5047. for ac_dir in $PATH; do
  5048. IFS="$ac_save_IFS"
  5049. test -z "$ac_dir" && ac_dir=.
  5050. for ac_exec_ext in '' $ac_executable_extensions; do
  5051. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  5052. if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
  5053. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  5054. break 2
  5055. fi
  5056. fi
  5057. done
  5058. done
  5059. IFS="$ac_save_IFS"
  5060. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  5061. ;;
  5062. esac
  5063. fi
  5064. MSGMERGE="$ac_cv_path_MSGMERGE"
  5065. if test "$MSGMERGE" != ":"; then
  5066. { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
  5067. echo "${ECHO_T}$MSGMERGE" >&6; }
  5068. else
  5069. { echo "$as_me:$LINENO: result: no" >&5
  5070. echo "${ECHO_T}no" >&6; }
  5071. fi
  5072. if test "$GMSGFMT" != ":"; then
  5073. if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
  5074. (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  5075. : ;
  5076. else
  5077. GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
  5078. { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
  5079. echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
  5080. GMSGFMT=":"
  5081. fi
  5082. fi
  5083. if test "$XGETTEXT" != ":"; then
  5084. if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  5085. (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  5086. : ;
  5087. else
  5088. { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
  5089. echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
  5090. XGETTEXT=":"
  5091. fi
  5092. rm -f messages.po
  5093. fi
  5094. ac_config_commands="$ac_config_commands default-1"
  5095. # Make sure we can run config.sub.
  5096. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  5097. { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  5098. echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  5099. { (exit 1); exit 1; }; }
  5100. { echo "$as_me:$LINENO: checking build system type" >&5
  5101. echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  5102. if test "${ac_cv_build+set}" = set; then
  5103. echo $ECHO_N "(cached) $ECHO_C" >&6
  5104. else
  5105. ac_build_alias=$build_alias
  5106. test "x$ac_build_alias" = x &&
  5107. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  5108. test "x$ac_build_alias" = x &&
  5109. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  5110. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  5111. { (exit 1); exit 1; }; }
  5112. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  5113. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  5114. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  5115. { (exit 1); exit 1; }; }
  5116. fi
  5117. { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  5118. echo "${ECHO_T}$ac_cv_build" >&6; }
  5119. case $ac_cv_build in
  5120. *-*-*) ;;
  5121. *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  5122. echo "$as_me: error: invalid value of canonical build" >&2;}
  5123. { (exit 1); exit 1; }; };;
  5124. esac
  5125. build=$ac_cv_build
  5126. ac_save_IFS=$IFS; IFS='-'
  5127. set x $ac_cv_build
  5128. shift
  5129. build_cpu=$1
  5130. build_vendor=$2
  5131. shift; shift
  5132. # Remember, the first character of IFS is used to create $*,
  5133. # except with old shells:
  5134. build_os=$*
  5135. IFS=$ac_save_IFS
  5136. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  5137. { echo "$as_me:$LINENO: checking host system type" >&5
  5138. echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  5139. if test "${ac_cv_host+set}" = set; then
  5140. echo $ECHO_N "(cached) $ECHO_C" >&6
  5141. else
  5142. if test "x$host_alias" = x; then
  5143. ac_cv_host=$ac_cv_build
  5144. else
  5145. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  5146. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  5147. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  5148. { (exit 1); exit 1; }; }
  5149. fi
  5150. fi
  5151. { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  5152. echo "${ECHO_T}$ac_cv_host" >&6; }
  5153. case $ac_cv_host in
  5154. *-*-*) ;;
  5155. *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  5156. echo "$as_me: error: invalid value of canonical host" >&2;}
  5157. { (exit 1); exit 1; }; };;
  5158. esac
  5159. host=$ac_cv_host
  5160. ac_save_IFS=$IFS; IFS='-'
  5161. set x $ac_cv_host
  5162. shift
  5163. host_cpu=$1
  5164. host_vendor=$2
  5165. shift; shift
  5166. # Remember, the first character of IFS is used to create $*,
  5167. # except with old shells:
  5168. host_os=$*
  5169. IFS=$ac_save_IFS
  5170. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  5171. { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
  5172. echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
  5173. if test "${ac_cv_lib_cposix_strerror+set}" = set; then
  5174. echo $ECHO_N "(cached) $ECHO_C" >&6
  5175. else
  5176. ac_check_lib_save_LIBS=$LIBS
  5177. LIBS="-lcposix $LIBS"
  5178. cat >conftest.$ac_ext <<_ACEOF
  5179. /* confdefs.h. */
  5180. _ACEOF
  5181. cat confdefs.h >>conftest.$ac_ext
  5182. cat >>conftest.$ac_ext <<_ACEOF
  5183. /* end confdefs.h. */
  5184. /* Override any GCC internal prototype to avoid an error.
  5185. Use char because int might match the return type of a GCC
  5186. builtin and then its argument prototype would still apply. */
  5187. #ifdef __cplusplus
  5188. extern "C"
  5189. #endif
  5190. char strerror ();
  5191. int
  5192. main ()
  5193. {
  5194. return strerror ();
  5195. ;
  5196. return 0;
  5197. }
  5198. _ACEOF
  5199. rm -f conftest.$ac_objext conftest$ac_exeext
  5200. if { (ac_try="$ac_link"
  5201. case "(($ac_try" in
  5202. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5203. *) ac_try_echo=$ac_try;;
  5204. esac
  5205. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5206. (eval "$ac_link") 2>conftest.er1
  5207. ac_status=$?
  5208. grep -v '^ *+' conftest.er1 >conftest.err
  5209. rm -f conftest.er1
  5210. cat conftest.err >&5
  5211. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5212. (exit $ac_status); } && {
  5213. test -z "$ac_cxx_werror_flag" ||
  5214. test ! -s conftest.err
  5215. } && test -s conftest$ac_exeext &&
  5216. $as_test_x conftest$ac_exeext; then
  5217. ac_cv_lib_cposix_strerror=yes
  5218. else
  5219. echo "$as_me: failed program was:" >&5
  5220. sed 's/^/| /' conftest.$ac_ext >&5
  5221. ac_cv_lib_cposix_strerror=no
  5222. fi
  5223. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5224. conftest$ac_exeext conftest.$ac_ext
  5225. LIBS=$ac_check_lib_save_LIBS
  5226. fi
  5227. { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
  5228. echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
  5229. if test $ac_cv_lib_cposix_strerror = yes; then
  5230. LIBS="$LIBS -lcposix"
  5231. fi
  5232. { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  5233. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  5234. if test "${ac_cv_path_GREP+set}" = set; then
  5235. echo $ECHO_N "(cached) $ECHO_C" >&6
  5236. else
  5237. # Extract the first word of "grep ggrep" to use in msg output
  5238. if test -z "$GREP"; then
  5239. set dummy grep ggrep; ac_prog_name=$2
  5240. if test "${ac_cv_path_GREP+set}" = set; then
  5241. echo $ECHO_N "(cached) $ECHO_C" >&6
  5242. else
  5243. ac_path_GREP_found=false
  5244. # Loop through the user's path and test for each of PROGNAME-LIST
  5245. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5246. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5247. do
  5248. IFS=$as_save_IFS
  5249. test -z "$as_dir" && as_dir=.
  5250. for ac_prog in grep ggrep; do
  5251. for ac_exec_ext in '' $ac_executable_extensions; do
  5252. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  5253. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  5254. # Check for GNU ac_path_GREP and select it if it is found.
  5255. # Check for GNU $ac_path_GREP
  5256. case `"$ac_path_GREP" --version 2>&1` in
  5257. *GNU*)
  5258. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  5259. *)
  5260. ac_count=0
  5261. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  5262. while :
  5263. do
  5264. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5265. mv "conftest.tmp" "conftest.in"
  5266. cp "conftest.in" "conftest.nl"
  5267. echo 'GREP' >> "conftest.nl"
  5268. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5269. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5270. ac_count=`expr $ac_count + 1`
  5271. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  5272. # Best one so far, save it but keep looking for a better one
  5273. ac_cv_path_GREP="$ac_path_GREP"
  5274. ac_path_GREP_max=$ac_count
  5275. fi
  5276. # 10*(2^10) chars as input seems more than enough
  5277. test $ac_count -gt 10 && break
  5278. done
  5279. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5280. esac
  5281. $ac_path_GREP_found && break 3
  5282. done
  5283. done
  5284. done
  5285. IFS=$as_save_IFS
  5286. fi
  5287. GREP="$ac_cv_path_GREP"
  5288. if test -z "$GREP"; then
  5289. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  5290. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  5291. { (exit 1); exit 1; }; }
  5292. fi
  5293. else
  5294. ac_cv_path_GREP=$GREP
  5295. fi
  5296. fi
  5297. { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  5298. echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  5299. GREP="$ac_cv_path_GREP"
  5300. { echo "$as_me:$LINENO: checking for egrep" >&5
  5301. echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  5302. if test "${ac_cv_path_EGREP+set}" = set; then
  5303. echo $ECHO_N "(cached) $ECHO_C" >&6
  5304. else
  5305. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  5306. then ac_cv_path_EGREP="$GREP -E"
  5307. else
  5308. # Extract the first word of "egrep" to use in msg output
  5309. if test -z "$EGREP"; then
  5310. set dummy egrep; ac_prog_name=$2
  5311. if test "${ac_cv_path_EGREP+set}" = set; then
  5312. echo $ECHO_N "(cached) $ECHO_C" >&6
  5313. else
  5314. ac_path_EGREP_found=false
  5315. # Loop through the user's path and test for each of PROGNAME-LIST
  5316. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5317. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5318. do
  5319. IFS=$as_save_IFS
  5320. test -z "$as_dir" && as_dir=.
  5321. for ac_prog in egrep; do
  5322. for ac_exec_ext in '' $ac_executable_extensions; do
  5323. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  5324. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  5325. # Check for GNU ac_path_EGREP and select it if it is found.
  5326. # Check for GNU $ac_path_EGREP
  5327. case `"$ac_path_EGREP" --version 2>&1` in
  5328. *GNU*)
  5329. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  5330. *)
  5331. ac_count=0
  5332. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  5333. while :
  5334. do
  5335. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5336. mv "conftest.tmp" "conftest.in"
  5337. cp "conftest.in" "conftest.nl"
  5338. echo 'EGREP' >> "conftest.nl"
  5339. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5340. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5341. ac_count=`expr $ac_count + 1`
  5342. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  5343. # Best one so far, save it but keep looking for a better one
  5344. ac_cv_path_EGREP="$ac_path_EGREP"
  5345. ac_path_EGREP_max=$ac_count
  5346. fi
  5347. # 10*(2^10) chars as input seems more than enough
  5348. test $ac_count -gt 10 && break
  5349. done
  5350. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5351. esac
  5352. $ac_path_EGREP_found && break 3
  5353. done
  5354. done
  5355. done
  5356. IFS=$as_save_IFS
  5357. fi
  5358. EGREP="$ac_cv_path_EGREP"
  5359. if test -z "$EGREP"; then
  5360. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  5361. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  5362. { (exit 1); exit 1; }; }
  5363. fi
  5364. else
  5365. ac_cv_path_EGREP=$EGREP
  5366. fi
  5367. fi
  5368. fi
  5369. { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  5370. echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  5371. EGREP="$ac_cv_path_EGREP"
  5372. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  5373. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  5374. if test "${ac_cv_header_stdc+set}" = set; then
  5375. echo $ECHO_N "(cached) $ECHO_C" >&6
  5376. else
  5377. cat >conftest.$ac_ext <<_ACEOF
  5378. /* confdefs.h. */
  5379. _ACEOF
  5380. cat confdefs.h >>conftest.$ac_ext
  5381. cat >>conftest.$ac_ext <<_ACEOF
  5382. /* end confdefs.h. */
  5383. #include <stdlib.h>
  5384. #include <stdarg.h>
  5385. #include <string.h>
  5386. #include <float.h>
  5387. int
  5388. main ()
  5389. {
  5390. ;
  5391. return 0;
  5392. }
  5393. _ACEOF
  5394. rm -f conftest.$ac_objext
  5395. if { (ac_try="$ac_compile"
  5396. case "(($ac_try" in
  5397. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5398. *) ac_try_echo=$ac_try;;
  5399. esac
  5400. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5401. (eval "$ac_compile") 2>conftest.er1
  5402. ac_status=$?
  5403. grep -v '^ *+' conftest.er1 >conftest.err
  5404. rm -f conftest.er1
  5405. cat conftest.err >&5
  5406. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5407. (exit $ac_status); } && {
  5408. test -z "$ac_cxx_werror_flag" ||
  5409. test ! -s conftest.err
  5410. } && test -s conftest.$ac_objext; then
  5411. ac_cv_header_stdc=yes
  5412. else
  5413. echo "$as_me: failed program was:" >&5
  5414. sed 's/^/| /' conftest.$ac_ext >&5
  5415. ac_cv_header_stdc=no
  5416. fi
  5417. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5418. if test $ac_cv_header_stdc = yes; then
  5419. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5420. cat >conftest.$ac_ext <<_ACEOF
  5421. /* confdefs.h. */
  5422. _ACEOF
  5423. cat confdefs.h >>conftest.$ac_ext
  5424. cat >>conftest.$ac_ext <<_ACEOF
  5425. /* end confdefs.h. */
  5426. #include <string.h>
  5427. _ACEOF
  5428. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5429. $EGREP "memchr" >/dev/null 2>&1; then
  5430. :
  5431. else
  5432. ac_cv_header_stdc=no
  5433. fi
  5434. rm -f conftest*
  5435. fi
  5436. if test $ac_cv_header_stdc = yes; then
  5437. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5438. cat >conftest.$ac_ext <<_ACEOF
  5439. /* confdefs.h. */
  5440. _ACEOF
  5441. cat confdefs.h >>conftest.$ac_ext
  5442. cat >>conftest.$ac_ext <<_ACEOF
  5443. /* end confdefs.h. */
  5444. #include <stdlib.h>
  5445. _ACEOF
  5446. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5447. $EGREP "free" >/dev/null 2>&1; then
  5448. :
  5449. else
  5450. ac_cv_header_stdc=no
  5451. fi
  5452. rm -f conftest*
  5453. fi
  5454. if test $ac_cv_header_stdc = yes; then
  5455. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5456. if test "$cross_compiling" = yes; then
  5457. :
  5458. else
  5459. cat >conftest.$ac_ext <<_ACEOF
  5460. /* confdefs.h. */
  5461. _ACEOF
  5462. cat confdefs.h >>conftest.$ac_ext
  5463. cat >>conftest.$ac_ext <<_ACEOF
  5464. /* end confdefs.h. */
  5465. #include <ctype.h>
  5466. #include <stdlib.h>
  5467. #if ((' ' & 0x0FF) == 0x020)
  5468. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5469. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5470. #else
  5471. # define ISLOWER(c) \
  5472. (('a' <= (c) && (c) <= 'i') \
  5473. || ('j' <= (c) && (c) <= 'r') \
  5474. || ('s' <= (c) && (c) <= 'z'))
  5475. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5476. #endif
  5477. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5478. int
  5479. main ()
  5480. {
  5481. int i;
  5482. for (i = 0; i < 256; i++)
  5483. if (XOR (islower (i), ISLOWER (i))
  5484. || toupper (i) != TOUPPER (i))
  5485. return 2;
  5486. return 0;
  5487. }
  5488. _ACEOF
  5489. rm -f conftest$ac_exeext
  5490. if { (ac_try="$ac_link"
  5491. case "(($ac_try" in
  5492. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5493. *) ac_try_echo=$ac_try;;
  5494. esac
  5495. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5496. (eval "$ac_link") 2>&5
  5497. ac_status=$?
  5498. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5499. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5500. { (case "(($ac_try" in
  5501. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5502. *) ac_try_echo=$ac_try;;
  5503. esac
  5504. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5505. (eval "$ac_try") 2>&5
  5506. ac_status=$?
  5507. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5508. (exit $ac_status); }; }; then
  5509. :
  5510. else
  5511. echo "$as_me: program exited with status $ac_status" >&5
  5512. echo "$as_me: failed program was:" >&5
  5513. sed 's/^/| /' conftest.$ac_ext >&5
  5514. ( exit $ac_status )
  5515. ac_cv_header_stdc=no
  5516. fi
  5517. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5518. fi
  5519. fi
  5520. fi
  5521. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  5522. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  5523. if test $ac_cv_header_stdc = yes; then
  5524. cat >>confdefs.h <<\_ACEOF
  5525. #define STDC_HEADERS 1
  5526. _ACEOF
  5527. fi
  5528. { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  5529. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
  5530. if test "${ac_cv_c_const+set}" = set; then
  5531. echo $ECHO_N "(cached) $ECHO_C" >&6
  5532. else
  5533. cat >conftest.$ac_ext <<_ACEOF
  5534. /* confdefs.h. */
  5535. _ACEOF
  5536. cat confdefs.h >>conftest.$ac_ext
  5537. cat >>conftest.$ac_ext <<_ACEOF
  5538. /* end confdefs.h. */
  5539. int
  5540. main ()
  5541. {
  5542. /* FIXME: Include the comments suggested by Paul. */
  5543. #ifndef __cplusplus
  5544. /* Ultrix mips cc rejects this. */
  5545. typedef int charset[2];
  5546. const charset cs;
  5547. /* SunOS 4.1.1 cc rejects this. */
  5548. char const *const *pcpcc;
  5549. char **ppc;
  5550. /* NEC SVR4.0.2 mips cc rejects this. */
  5551. struct point {int x, y;};
  5552. static struct point const zero = {0,0};
  5553. /* AIX XL C 1.02.0.0 rejects this.
  5554. It does not let you subtract one const X* pointer from another in
  5555. an arm of an if-expression whose if-part is not a constant
  5556. expression */
  5557. const char *g = "string";
  5558. pcpcc = &g + (g ? g-g : 0);
  5559. /* HPUX 7.0 cc rejects these. */
  5560. ++pcpcc;
  5561. ppc = (char**) pcpcc;
  5562. pcpcc = (char const *const *) ppc;
  5563. { /* SCO 3.2v4 cc rejects this. */
  5564. char *t;
  5565. char const *s = 0 ? (char *) 0 : (char const *) 0;
  5566. *t++ = 0;
  5567. if (s) return 0;
  5568. }
  5569. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  5570. int x[] = {25, 17};
  5571. const int *foo = &x[0];
  5572. ++foo;
  5573. }
  5574. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  5575. typedef const int *iptr;
  5576. iptr p = 0;
  5577. ++p;
  5578. }
  5579. { /* AIX XL C 1.02.0.0 rejects this saying
  5580. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  5581. struct s { int j; const int *ap[3]; };
  5582. struct s *b; b->j = 5;
  5583. }
  5584. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  5585. const int foo = 10;
  5586. if (!foo) return 0;
  5587. }
  5588. return !cs[0] && !zero.x;
  5589. #endif
  5590. ;
  5591. return 0;
  5592. }
  5593. _ACEOF
  5594. rm -f conftest.$ac_objext
  5595. if { (ac_try="$ac_compile"
  5596. case "(($ac_try" in
  5597. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5598. *) ac_try_echo=$ac_try;;
  5599. esac
  5600. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5601. (eval "$ac_compile") 2>conftest.er1
  5602. ac_status=$?
  5603. grep -v '^ *+' conftest.er1 >conftest.err
  5604. rm -f conftest.er1
  5605. cat conftest.err >&5
  5606. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5607. (exit $ac_status); } && {
  5608. test -z "$ac_cxx_werror_flag" ||
  5609. test ! -s conftest.err
  5610. } && test -s conftest.$ac_objext; then
  5611. ac_cv_c_const=yes
  5612. else
  5613. echo "$as_me: failed program was:" >&5
  5614. sed 's/^/| /' conftest.$ac_ext >&5
  5615. ac_cv_c_const=no
  5616. fi
  5617. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5618. fi
  5619. { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  5620. echo "${ECHO_T}$ac_cv_c_const" >&6; }
  5621. if test $ac_cv_c_const = no; then
  5622. cat >>confdefs.h <<\_ACEOF
  5623. #define const
  5624. _ACEOF
  5625. fi
  5626. { echo "$as_me:$LINENO: checking for signed" >&5
  5627. echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
  5628. if test "${bh_cv_c_signed+set}" = set; then
  5629. echo $ECHO_N "(cached) $ECHO_C" >&6
  5630. else
  5631. cat >conftest.$ac_ext <<_ACEOF
  5632. /* confdefs.h. */
  5633. _ACEOF
  5634. cat confdefs.h >>conftest.$ac_ext
  5635. cat >>conftest.$ac_ext <<_ACEOF
  5636. /* end confdefs.h. */
  5637. int
  5638. main ()
  5639. {
  5640. signed char x;
  5641. ;
  5642. return 0;
  5643. }
  5644. _ACEOF
  5645. rm -f conftest.$ac_objext
  5646. if { (ac_try="$ac_compile"
  5647. case "(($ac_try" in
  5648. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5649. *) ac_try_echo=$ac_try;;
  5650. esac
  5651. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5652. (eval "$ac_compile") 2>conftest.er1
  5653. ac_status=$?
  5654. grep -v '^ *+' conftest.er1 >conftest.err
  5655. rm -f conftest.er1
  5656. cat conftest.err >&5
  5657. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5658. (exit $ac_status); } && {
  5659. test -z "$ac_cxx_werror_flag" ||
  5660. test ! -s conftest.err
  5661. } && test -s conftest.$ac_objext; then
  5662. bh_cv_c_signed=yes
  5663. else
  5664. echo "$as_me: failed program was:" >&5
  5665. sed 's/^/| /' conftest.$ac_ext >&5
  5666. bh_cv_c_signed=no
  5667. fi
  5668. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5669. fi
  5670. { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
  5671. echo "${ECHO_T}$bh_cv_c_signed" >&6; }
  5672. if test $bh_cv_c_signed = no; then
  5673. cat >>confdefs.h <<\_ACEOF
  5674. #define signed
  5675. _ACEOF
  5676. fi
  5677. { echo "$as_me:$LINENO: checking for inline" >&5
  5678. echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
  5679. if test "${ac_cv_c_inline+set}" = set; then
  5680. echo $ECHO_N "(cached) $ECHO_C" >&6
  5681. else
  5682. ac_cv_c_inline=no
  5683. for ac_kw in inline __inline__ __inline; do
  5684. cat >conftest.$ac_ext <<_ACEOF
  5685. /* confdefs.h. */
  5686. _ACEOF
  5687. cat confdefs.h >>conftest.$ac_ext
  5688. cat >>conftest.$ac_ext <<_ACEOF
  5689. /* end confdefs.h. */
  5690. #ifndef __cplusplus
  5691. typedef int foo_t;
  5692. static $ac_kw foo_t static_foo () {return 0; }
  5693. $ac_kw foo_t foo () {return 0; }
  5694. #endif
  5695. _ACEOF
  5696. rm -f conftest.$ac_objext
  5697. if { (ac_try="$ac_compile"
  5698. case "(($ac_try" in
  5699. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5700. *) ac_try_echo=$ac_try;;
  5701. esac
  5702. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5703. (eval "$ac_compile") 2>conftest.er1
  5704. ac_status=$?
  5705. grep -v '^ *+' conftest.er1 >conftest.err
  5706. rm -f conftest.er1
  5707. cat conftest.err >&5
  5708. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5709. (exit $ac_status); } && {
  5710. test -z "$ac_cxx_werror_flag" ||
  5711. test ! -s conftest.err
  5712. } && test -s conftest.$ac_objext; then
  5713. ac_cv_c_inline=$ac_kw
  5714. else
  5715. echo "$as_me: failed program was:" >&5
  5716. sed 's/^/| /' conftest.$ac_ext >&5
  5717. fi
  5718. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5719. test "$ac_cv_c_inline" != no && break
  5720. done
  5721. fi
  5722. { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  5723. echo "${ECHO_T}$ac_cv_c_inline" >&6; }
  5724. case $ac_cv_c_inline in
  5725. inline | yes) ;;
  5726. *)
  5727. case $ac_cv_c_inline in
  5728. no) ac_val=;;
  5729. *) ac_val=$ac_cv_c_inline;;
  5730. esac
  5731. cat >>confdefs.h <<_ACEOF
  5732. #ifndef __cplusplus
  5733. #define inline $ac_val
  5734. #endif
  5735. _ACEOF
  5736. ;;
  5737. esac
  5738. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5739. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5740. inttypes.h stdint.h unistd.h
  5741. do
  5742. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5743. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  5744. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  5745. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5746. echo $ECHO_N "(cached) $ECHO_C" >&6
  5747. else
  5748. cat >conftest.$ac_ext <<_ACEOF
  5749. /* confdefs.h. */
  5750. _ACEOF
  5751. cat confdefs.h >>conftest.$ac_ext
  5752. cat >>conftest.$ac_ext <<_ACEOF
  5753. /* end confdefs.h. */
  5754. $ac_includes_default
  5755. #include <$ac_header>
  5756. _ACEOF
  5757. rm -f conftest.$ac_objext
  5758. if { (ac_try="$ac_compile"
  5759. case "(($ac_try" in
  5760. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5761. *) ac_try_echo=$ac_try;;
  5762. esac
  5763. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5764. (eval "$ac_compile") 2>conftest.er1
  5765. ac_status=$?
  5766. grep -v '^ *+' conftest.er1 >conftest.err
  5767. rm -f conftest.er1
  5768. cat conftest.err >&5
  5769. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5770. (exit $ac_status); } && {
  5771. test -z "$ac_cxx_werror_flag" ||
  5772. test ! -s conftest.err
  5773. } && test -s conftest.$ac_objext; then
  5774. eval "$as_ac_Header=yes"
  5775. else
  5776. echo "$as_me: failed program was:" >&5
  5777. sed 's/^/| /' conftest.$ac_ext >&5
  5778. eval "$as_ac_Header=no"
  5779. fi
  5780. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5781. fi
  5782. ac_res=`eval echo '${'$as_ac_Header'}'`
  5783. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5784. echo "${ECHO_T}$ac_res" >&6; }
  5785. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5786. cat >>confdefs.h <<_ACEOF
  5787. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5788. _ACEOF
  5789. fi
  5790. done
  5791. { echo "$as_me:$LINENO: checking for off_t" >&5
  5792. echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
  5793. if test "${ac_cv_type_off_t+set}" = set; then
  5794. echo $ECHO_N "(cached) $ECHO_C" >&6
  5795. else
  5796. cat >conftest.$ac_ext <<_ACEOF
  5797. /* confdefs.h. */
  5798. _ACEOF
  5799. cat confdefs.h >>conftest.$ac_ext
  5800. cat >>conftest.$ac_ext <<_ACEOF
  5801. /* end confdefs.h. */
  5802. $ac_includes_default
  5803. typedef off_t ac__type_new_;
  5804. int
  5805. main ()
  5806. {
  5807. if ((ac__type_new_ *) 0)
  5808. return 0;
  5809. if (sizeof (ac__type_new_))
  5810. return 0;
  5811. ;
  5812. return 0;
  5813. }
  5814. _ACEOF
  5815. rm -f conftest.$ac_objext
  5816. if { (ac_try="$ac_compile"
  5817. case "(($ac_try" in
  5818. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5819. *) ac_try_echo=$ac_try;;
  5820. esac
  5821. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5822. (eval "$ac_compile") 2>conftest.er1
  5823. ac_status=$?
  5824. grep -v '^ *+' conftest.er1 >conftest.err
  5825. rm -f conftest.er1
  5826. cat conftest.err >&5
  5827. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5828. (exit $ac_status); } && {
  5829. test -z "$ac_cxx_werror_flag" ||
  5830. test ! -s conftest.err
  5831. } && test -s conftest.$ac_objext; then
  5832. ac_cv_type_off_t=yes
  5833. else
  5834. echo "$as_me: failed program was:" >&5
  5835. sed 's/^/| /' conftest.$ac_ext >&5
  5836. ac_cv_type_off_t=no
  5837. fi
  5838. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5839. fi
  5840. { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
  5841. echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
  5842. if test $ac_cv_type_off_t = yes; then
  5843. :
  5844. else
  5845. cat >>confdefs.h <<_ACEOF
  5846. #define off_t long int
  5847. _ACEOF
  5848. fi
  5849. { echo "$as_me:$LINENO: checking for size_t" >&5
  5850. echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
  5851. if test "${ac_cv_type_size_t+set}" = set; then
  5852. echo $ECHO_N "(cached) $ECHO_C" >&6
  5853. else
  5854. cat >conftest.$ac_ext <<_ACEOF
  5855. /* confdefs.h. */
  5856. _ACEOF
  5857. cat confdefs.h >>conftest.$ac_ext
  5858. cat >>conftest.$ac_ext <<_ACEOF
  5859. /* end confdefs.h. */
  5860. $ac_includes_default
  5861. typedef size_t ac__type_new_;
  5862. int
  5863. main ()
  5864. {
  5865. if ((ac__type_new_ *) 0)
  5866. return 0;
  5867. if (sizeof (ac__type_new_))
  5868. return 0;
  5869. ;
  5870. return 0;
  5871. }
  5872. _ACEOF
  5873. rm -f conftest.$ac_objext
  5874. if { (ac_try="$ac_compile"
  5875. case "(($ac_try" in
  5876. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5877. *) ac_try_echo=$ac_try;;
  5878. esac
  5879. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5880. (eval "$ac_compile") 2>conftest.er1
  5881. ac_status=$?
  5882. grep -v '^ *+' conftest.er1 >conftest.err
  5883. rm -f conftest.er1
  5884. cat conftest.err >&5
  5885. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5886. (exit $ac_status); } && {
  5887. test -z "$ac_cxx_werror_flag" ||
  5888. test ! -s conftest.err
  5889. } && test -s conftest.$ac_objext; then
  5890. ac_cv_type_size_t=yes
  5891. else
  5892. echo "$as_me: failed program was:" >&5
  5893. sed 's/^/| /' conftest.$ac_ext >&5
  5894. ac_cv_type_size_t=no
  5895. fi
  5896. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5897. fi
  5898. { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  5899. echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
  5900. if test $ac_cv_type_size_t = yes; then
  5901. :
  5902. else
  5903. cat >>confdefs.h <<_ACEOF
  5904. #define size_t unsigned int
  5905. _ACEOF
  5906. fi
  5907. { echo "$as_me:$LINENO: checking for long long" >&5
  5908. echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
  5909. if test "${ac_cv_type_long_long+set}" = set; then
  5910. echo $ECHO_N "(cached) $ECHO_C" >&6
  5911. else
  5912. cat >conftest.$ac_ext <<_ACEOF
  5913. /* confdefs.h. */
  5914. _ACEOF
  5915. cat confdefs.h >>conftest.$ac_ext
  5916. cat >>conftest.$ac_ext <<_ACEOF
  5917. /* end confdefs.h. */
  5918. long long ll = 1LL; int i = 63;
  5919. int
  5920. main ()
  5921. {
  5922. long long llmax = (long long) -1;
  5923. return ll << i | ll >> i | llmax / ll | llmax % ll;
  5924. ;
  5925. return 0;
  5926. }
  5927. _ACEOF
  5928. rm -f conftest.$ac_objext conftest$ac_exeext
  5929. if { (ac_try="$ac_link"
  5930. case "(($ac_try" in
  5931. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5932. *) ac_try_echo=$ac_try;;
  5933. esac
  5934. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5935. (eval "$ac_link") 2>conftest.er1
  5936. ac_status=$?
  5937. grep -v '^ *+' conftest.er1 >conftest.err
  5938. rm -f conftest.er1
  5939. cat conftest.err >&5
  5940. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5941. (exit $ac_status); } && {
  5942. test -z "$ac_cxx_werror_flag" ||
  5943. test ! -s conftest.err
  5944. } && test -s conftest$ac_exeext &&
  5945. $as_test_x conftest$ac_exeext; then
  5946. ac_cv_type_long_long=yes
  5947. else
  5948. echo "$as_me: failed program was:" >&5
  5949. sed 's/^/| /' conftest.$ac_ext >&5
  5950. ac_cv_type_long_long=no
  5951. fi
  5952. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5953. conftest$ac_exeext conftest.$ac_ext
  5954. fi
  5955. { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
  5956. echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
  5957. if test $ac_cv_type_long_long = yes; then
  5958. cat >>confdefs.h <<\_ACEOF
  5959. #define HAVE_LONG_LONG 1
  5960. _ACEOF
  5961. fi
  5962. { echo "$as_me:$LINENO: checking for long double" >&5
  5963. echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
  5964. if test "${gt_cv_c_long_double+set}" = set; then
  5965. echo $ECHO_N "(cached) $ECHO_C" >&6
  5966. else
  5967. if test "$GCC" = yes; then
  5968. gt_cv_c_long_double=yes
  5969. else
  5970. cat >conftest.$ac_ext <<_ACEOF
  5971. /* confdefs.h. */
  5972. _ACEOF
  5973. cat confdefs.h >>conftest.$ac_ext
  5974. cat >>conftest.$ac_ext <<_ACEOF
  5975. /* end confdefs.h. */
  5976. /* The Stardent Vistra knows sizeof(long double), but does not support it. */
  5977. long double foo = 0.0;
  5978. /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
  5979. int array [2*(sizeof(long double) >= sizeof(double)) - 1];
  5980. int
  5981. main ()
  5982. {
  5983. ;
  5984. return 0;
  5985. }
  5986. _ACEOF
  5987. rm -f conftest.$ac_objext
  5988. if { (ac_try="$ac_compile"
  5989. case "(($ac_try" in
  5990. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5991. *) ac_try_echo=$ac_try;;
  5992. esac
  5993. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5994. (eval "$ac_compile") 2>conftest.er1
  5995. ac_status=$?
  5996. grep -v '^ *+' conftest.er1 >conftest.err
  5997. rm -f conftest.er1
  5998. cat conftest.err >&5
  5999. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6000. (exit $ac_status); } && {
  6001. test -z "$ac_cxx_werror_flag" ||
  6002. test ! -s conftest.err
  6003. } && test -s conftest.$ac_objext; then
  6004. gt_cv_c_long_double=yes
  6005. else
  6006. echo "$as_me: failed program was:" >&5
  6007. sed 's/^/| /' conftest.$ac_ext >&5
  6008. gt_cv_c_long_double=no
  6009. fi
  6010. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6011. fi
  6012. fi
  6013. { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
  6014. echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
  6015. if test $gt_cv_c_long_double = yes; then
  6016. cat >>confdefs.h <<\_ACEOF
  6017. #define HAVE_LONG_DOUBLE 1
  6018. _ACEOF
  6019. fi
  6020. { echo "$as_me:$LINENO: checking for wchar_t" >&5
  6021. echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
  6022. if test "${gt_cv_c_wchar_t+set}" = set; then
  6023. echo $ECHO_N "(cached) $ECHO_C" >&6
  6024. else
  6025. cat >conftest.$ac_ext <<_ACEOF
  6026. /* confdefs.h. */
  6027. _ACEOF
  6028. cat confdefs.h >>conftest.$ac_ext
  6029. cat >>conftest.$ac_ext <<_ACEOF
  6030. /* end confdefs.h. */
  6031. #include <stddef.h>
  6032. wchar_t foo = (wchar_t)'\0';
  6033. int
  6034. main ()
  6035. {
  6036. ;
  6037. return 0;
  6038. }
  6039. _ACEOF
  6040. rm -f conftest.$ac_objext
  6041. if { (ac_try="$ac_compile"
  6042. case "(($ac_try" in
  6043. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6044. *) ac_try_echo=$ac_try;;
  6045. esac
  6046. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6047. (eval "$ac_compile") 2>conftest.er1
  6048. ac_status=$?
  6049. grep -v '^ *+' conftest.er1 >conftest.err
  6050. rm -f conftest.er1
  6051. cat conftest.err >&5
  6052. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6053. (exit $ac_status); } && {
  6054. test -z "$ac_cxx_werror_flag" ||
  6055. test ! -s conftest.err
  6056. } && test -s conftest.$ac_objext; then
  6057. gt_cv_c_wchar_t=yes
  6058. else
  6059. echo "$as_me: failed program was:" >&5
  6060. sed 's/^/| /' conftest.$ac_ext >&5
  6061. gt_cv_c_wchar_t=no
  6062. fi
  6063. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6064. fi
  6065. { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
  6066. echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
  6067. if test $gt_cv_c_wchar_t = yes; then
  6068. cat >>confdefs.h <<\_ACEOF
  6069. #define HAVE_WCHAR_T 1
  6070. _ACEOF
  6071. fi
  6072. { echo "$as_me:$LINENO: checking for wint_t" >&5
  6073. echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
  6074. if test "${gt_cv_c_wint_t+set}" = set; then
  6075. echo $ECHO_N "(cached) $ECHO_C" >&6
  6076. else
  6077. cat >conftest.$ac_ext <<_ACEOF
  6078. /* confdefs.h. */
  6079. _ACEOF
  6080. cat confdefs.h >>conftest.$ac_ext
  6081. cat >>conftest.$ac_ext <<_ACEOF
  6082. /* end confdefs.h. */
  6083. #include <wchar.h>
  6084. wint_t foo = (wchar_t)'\0';
  6085. int
  6086. main ()
  6087. {
  6088. ;
  6089. return 0;
  6090. }
  6091. _ACEOF
  6092. rm -f conftest.$ac_objext
  6093. if { (ac_try="$ac_compile"
  6094. case "(($ac_try" in
  6095. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6096. *) ac_try_echo=$ac_try;;
  6097. esac
  6098. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6099. (eval "$ac_compile") 2>conftest.er1
  6100. ac_status=$?
  6101. grep -v '^ *+' conftest.er1 >conftest.err
  6102. rm -f conftest.er1
  6103. cat conftest.err >&5
  6104. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6105. (exit $ac_status); } && {
  6106. test -z "$ac_cxx_werror_flag" ||
  6107. test ! -s conftest.err
  6108. } && test -s conftest.$ac_objext; then
  6109. gt_cv_c_wint_t=yes
  6110. else
  6111. echo "$as_me: failed program was:" >&5
  6112. sed 's/^/| /' conftest.$ac_ext >&5
  6113. gt_cv_c_wint_t=no
  6114. fi
  6115. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6116. fi
  6117. { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
  6118. echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
  6119. if test $gt_cv_c_wint_t = yes; then
  6120. cat >>confdefs.h <<\_ACEOF
  6121. #define HAVE_WINT_T 1
  6122. _ACEOF
  6123. fi
  6124. { echo "$as_me:$LINENO: checking for inttypes.h" >&5
  6125. echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
  6126. if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
  6127. echo $ECHO_N "(cached) $ECHO_C" >&6
  6128. else
  6129. cat >conftest.$ac_ext <<_ACEOF
  6130. /* confdefs.h. */
  6131. _ACEOF
  6132. cat confdefs.h >>conftest.$ac_ext
  6133. cat >>conftest.$ac_ext <<_ACEOF
  6134. /* end confdefs.h. */
  6135. #include <sys/types.h>
  6136. #include <inttypes.h>
  6137. int
  6138. main ()
  6139. {
  6140. uintmax_t i = (uintmax_t) -1;
  6141. ;
  6142. return 0;
  6143. }
  6144. _ACEOF
  6145. rm -f conftest.$ac_objext
  6146. if { (ac_try="$ac_compile"
  6147. case "(($ac_try" in
  6148. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6149. *) ac_try_echo=$ac_try;;
  6150. esac
  6151. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6152. (eval "$ac_compile") 2>conftest.er1
  6153. ac_status=$?
  6154. grep -v '^ *+' conftest.er1 >conftest.err
  6155. rm -f conftest.er1
  6156. cat conftest.err >&5
  6157. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6158. (exit $ac_status); } && {
  6159. test -z "$ac_cxx_werror_flag" ||
  6160. test ! -s conftest.err
  6161. } && test -s conftest.$ac_objext; then
  6162. jm_ac_cv_header_inttypes_h=yes
  6163. else
  6164. echo "$as_me: failed program was:" >&5
  6165. sed 's/^/| /' conftest.$ac_ext >&5
  6166. jm_ac_cv_header_inttypes_h=no
  6167. fi
  6168. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6169. fi
  6170. { echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
  6171. echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; }
  6172. if test $jm_ac_cv_header_inttypes_h = yes; then
  6173. cat >>confdefs.h <<_ACEOF
  6174. #define HAVE_INTTYPES_H_WITH_UINTMAX 1
  6175. _ACEOF
  6176. fi
  6177. { echo "$as_me:$LINENO: checking for stdint.h" >&5
  6178. echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
  6179. if test "${jm_ac_cv_header_stdint_h+set}" = set; then
  6180. echo $ECHO_N "(cached) $ECHO_C" >&6
  6181. else
  6182. cat >conftest.$ac_ext <<_ACEOF
  6183. /* confdefs.h. */
  6184. _ACEOF
  6185. cat confdefs.h >>conftest.$ac_ext
  6186. cat >>conftest.$ac_ext <<_ACEOF
  6187. /* end confdefs.h. */
  6188. #include <sys/types.h>
  6189. #include <stdint.h>
  6190. int
  6191. main ()
  6192. {
  6193. uintmax_t i = (uintmax_t) -1;
  6194. ;
  6195. return 0;
  6196. }
  6197. _ACEOF
  6198. rm -f conftest.$ac_objext
  6199. if { (ac_try="$ac_compile"
  6200. case "(($ac_try" in
  6201. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6202. *) ac_try_echo=$ac_try;;
  6203. esac
  6204. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6205. (eval "$ac_compile") 2>conftest.er1
  6206. ac_status=$?
  6207. grep -v '^ *+' conftest.er1 >conftest.err
  6208. rm -f conftest.er1
  6209. cat conftest.err >&5
  6210. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6211. (exit $ac_status); } && {
  6212. test -z "$ac_cxx_werror_flag" ||
  6213. test ! -s conftest.err
  6214. } && test -s conftest.$ac_objext; then
  6215. jm_ac_cv_header_stdint_h=yes
  6216. else
  6217. echo "$as_me: failed program was:" >&5
  6218. sed 's/^/| /' conftest.$ac_ext >&5
  6219. jm_ac_cv_header_stdint_h=no
  6220. fi
  6221. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6222. fi
  6223. { echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
  6224. echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; }
  6225. if test $jm_ac_cv_header_stdint_h = yes; then
  6226. cat >>confdefs.h <<_ACEOF
  6227. #define HAVE_STDINT_H_WITH_UINTMAX 1
  6228. _ACEOF
  6229. fi
  6230. { echo "$as_me:$LINENO: checking for intmax_t" >&5
  6231. echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
  6232. if test "${gt_cv_c_intmax_t+set}" = set; then
  6233. echo $ECHO_N "(cached) $ECHO_C" >&6
  6234. else
  6235. cat >conftest.$ac_ext <<_ACEOF
  6236. /* confdefs.h. */
  6237. _ACEOF
  6238. cat confdefs.h >>conftest.$ac_ext
  6239. cat >>conftest.$ac_ext <<_ACEOF
  6240. /* end confdefs.h. */
  6241. #include <stddef.h>
  6242. #include <stdlib.h>
  6243. #if HAVE_STDINT_H_WITH_UINTMAX
  6244. #include <stdint.h>
  6245. #endif
  6246. #if HAVE_INTTYPES_H_WITH_UINTMAX
  6247. #include <inttypes.h>
  6248. #endif
  6249. int
  6250. main ()
  6251. {
  6252. intmax_t x = -1;
  6253. ;
  6254. return 0;
  6255. }
  6256. _ACEOF
  6257. rm -f conftest.$ac_objext
  6258. if { (ac_try="$ac_compile"
  6259. case "(($ac_try" in
  6260. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6261. *) ac_try_echo=$ac_try;;
  6262. esac
  6263. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6264. (eval "$ac_compile") 2>conftest.er1
  6265. ac_status=$?
  6266. grep -v '^ *+' conftest.er1 >conftest.err
  6267. rm -f conftest.er1
  6268. cat conftest.err >&5
  6269. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6270. (exit $ac_status); } && {
  6271. test -z "$ac_cxx_werror_flag" ||
  6272. test ! -s conftest.err
  6273. } && test -s conftest.$ac_objext; then
  6274. gt_cv_c_intmax_t=yes
  6275. else
  6276. echo "$as_me: failed program was:" >&5
  6277. sed 's/^/| /' conftest.$ac_ext >&5
  6278. gt_cv_c_intmax_t=no
  6279. fi
  6280. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6281. fi
  6282. { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
  6283. echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
  6284. if test $gt_cv_c_intmax_t = yes; then
  6285. cat >>confdefs.h <<\_ACEOF
  6286. #define HAVE_INTMAX_T 1
  6287. _ACEOF
  6288. fi
  6289. { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
  6290. echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
  6291. if test "${gt_cv_func_printf_posix+set}" = set; then
  6292. echo $ECHO_N "(cached) $ECHO_C" >&6
  6293. else
  6294. if test "$cross_compiling" = yes; then
  6295. cat >conftest.$ac_ext <<_ACEOF
  6296. /* confdefs.h. */
  6297. _ACEOF
  6298. cat confdefs.h >>conftest.$ac_ext
  6299. cat >>conftest.$ac_ext <<_ACEOF
  6300. /* end confdefs.h. */
  6301. #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
  6302. notposix
  6303. #endif
  6304. _ACEOF
  6305. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6306. $EGREP "notposix" >/dev/null 2>&1; then
  6307. gt_cv_func_printf_posix="guessing no"
  6308. else
  6309. gt_cv_func_printf_posix="guessing yes"
  6310. fi
  6311. rm -f conftest*
  6312. else
  6313. cat >conftest.$ac_ext <<_ACEOF
  6314. /* confdefs.h. */
  6315. _ACEOF
  6316. cat confdefs.h >>conftest.$ac_ext
  6317. cat >>conftest.$ac_ext <<_ACEOF
  6318. /* end confdefs.h. */
  6319. #include <stdio.h>
  6320. #include <string.h>
  6321. /* The string "%2$d %1$d", with dollar characters protected from the shell's
  6322. dollar expansion (possibly an autoconf bug). */
  6323. static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
  6324. static char buf[100];
  6325. int main ()
  6326. {
  6327. sprintf (buf, format, 33, 55);
  6328. return (strcmp (buf, "55 33") != 0);
  6329. }
  6330. _ACEOF
  6331. rm -f conftest$ac_exeext
  6332. if { (ac_try="$ac_link"
  6333. case "(($ac_try" in
  6334. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6335. *) ac_try_echo=$ac_try;;
  6336. esac
  6337. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6338. (eval "$ac_link") 2>&5
  6339. ac_status=$?
  6340. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6341. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6342. { (case "(($ac_try" in
  6343. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6344. *) ac_try_echo=$ac_try;;
  6345. esac
  6346. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6347. (eval "$ac_try") 2>&5
  6348. ac_status=$?
  6349. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6350. (exit $ac_status); }; }; then
  6351. gt_cv_func_printf_posix=yes
  6352. else
  6353. echo "$as_me: program exited with status $ac_status" >&5
  6354. echo "$as_me: failed program was:" >&5
  6355. sed 's/^/| /' conftest.$ac_ext >&5
  6356. ( exit $ac_status )
  6357. gt_cv_func_printf_posix=no
  6358. fi
  6359. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6360. fi
  6361. fi
  6362. { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
  6363. echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
  6364. case $gt_cv_func_printf_posix in
  6365. *yes)
  6366. cat >>confdefs.h <<\_ACEOF
  6367. #define HAVE_POSIX_PRINTF 1
  6368. _ACEOF
  6369. ;;
  6370. esac
  6371. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  6372. # for constant arguments. Useless!
  6373. { echo "$as_me:$LINENO: checking for working alloca.h" >&5
  6374. echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
  6375. if test "${ac_cv_working_alloca_h+set}" = set; then
  6376. echo $ECHO_N "(cached) $ECHO_C" >&6
  6377. else
  6378. cat >conftest.$ac_ext <<_ACEOF
  6379. /* confdefs.h. */
  6380. _ACEOF
  6381. cat confdefs.h >>conftest.$ac_ext
  6382. cat >>conftest.$ac_ext <<_ACEOF
  6383. /* end confdefs.h. */
  6384. #include <alloca.h>
  6385. int
  6386. main ()
  6387. {
  6388. char *p = (char *) alloca (2 * sizeof (int));
  6389. if (p) return 0;
  6390. ;
  6391. return 0;
  6392. }
  6393. _ACEOF
  6394. rm -f conftest.$ac_objext conftest$ac_exeext
  6395. if { (ac_try="$ac_link"
  6396. case "(($ac_try" in
  6397. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6398. *) ac_try_echo=$ac_try;;
  6399. esac
  6400. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6401. (eval "$ac_link") 2>conftest.er1
  6402. ac_status=$?
  6403. grep -v '^ *+' conftest.er1 >conftest.err
  6404. rm -f conftest.er1
  6405. cat conftest.err >&5
  6406. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6407. (exit $ac_status); } && {
  6408. test -z "$ac_cxx_werror_flag" ||
  6409. test ! -s conftest.err
  6410. } && test -s conftest$ac_exeext &&
  6411. $as_test_x conftest$ac_exeext; then
  6412. ac_cv_working_alloca_h=yes
  6413. else
  6414. echo "$as_me: failed program was:" >&5
  6415. sed 's/^/| /' conftest.$ac_ext >&5
  6416. ac_cv_working_alloca_h=no
  6417. fi
  6418. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6419. conftest$ac_exeext conftest.$ac_ext
  6420. fi
  6421. { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
  6422. echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
  6423. if test $ac_cv_working_alloca_h = yes; then
  6424. cat >>confdefs.h <<\_ACEOF
  6425. #define HAVE_ALLOCA_H 1
  6426. _ACEOF
  6427. fi
  6428. { echo "$as_me:$LINENO: checking for alloca" >&5
  6429. echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
  6430. if test "${ac_cv_func_alloca_works+set}" = set; then
  6431. echo $ECHO_N "(cached) $ECHO_C" >&6
  6432. else
  6433. cat >conftest.$ac_ext <<_ACEOF
  6434. /* confdefs.h. */
  6435. _ACEOF
  6436. cat confdefs.h >>conftest.$ac_ext
  6437. cat >>conftest.$ac_ext <<_ACEOF
  6438. /* end confdefs.h. */
  6439. #ifdef __GNUC__
  6440. # define alloca __builtin_alloca
  6441. #else
  6442. # ifdef _MSC_VER
  6443. # include <malloc.h>
  6444. # define alloca _alloca
  6445. # else
  6446. # ifdef HAVE_ALLOCA_H
  6447. # include <alloca.h>
  6448. # else
  6449. # ifdef _AIX
  6450. #pragma alloca
  6451. # else
  6452. # ifndef alloca /* predefined by HP cc +Olibcalls */
  6453. char *alloca ();
  6454. # endif
  6455. # endif
  6456. # endif
  6457. # endif
  6458. #endif
  6459. int
  6460. main ()
  6461. {
  6462. char *p = (char *) alloca (1);
  6463. if (p) return 0;
  6464. ;
  6465. return 0;
  6466. }
  6467. _ACEOF
  6468. rm -f conftest.$ac_objext conftest$ac_exeext
  6469. if { (ac_try="$ac_link"
  6470. case "(($ac_try" in
  6471. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6472. *) ac_try_echo=$ac_try;;
  6473. esac
  6474. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6475. (eval "$ac_link") 2>conftest.er1
  6476. ac_status=$?
  6477. grep -v '^ *+' conftest.er1 >conftest.err
  6478. rm -f conftest.er1
  6479. cat conftest.err >&5
  6480. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6481. (exit $ac_status); } && {
  6482. test -z "$ac_cxx_werror_flag" ||
  6483. test ! -s conftest.err
  6484. } && test -s conftest$ac_exeext &&
  6485. $as_test_x conftest$ac_exeext; then
  6486. ac_cv_func_alloca_works=yes
  6487. else
  6488. echo "$as_me: failed program was:" >&5
  6489. sed 's/^/| /' conftest.$ac_ext >&5
  6490. ac_cv_func_alloca_works=no
  6491. fi
  6492. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6493. conftest$ac_exeext conftest.$ac_ext
  6494. fi
  6495. { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
  6496. echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
  6497. if test $ac_cv_func_alloca_works = yes; then
  6498. cat >>confdefs.h <<\_ACEOF
  6499. #define HAVE_ALLOCA 1
  6500. _ACEOF
  6501. else
  6502. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  6503. # that cause trouble. Some versions do not even contain alloca or
  6504. # contain a buggy version. If you still want to use their alloca,
  6505. # use ar to extract alloca.o from them instead of compiling alloca.c.
  6506. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  6507. cat >>confdefs.h <<\_ACEOF
  6508. #define C_ALLOCA 1
  6509. _ACEOF
  6510. { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
  6511. echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
  6512. if test "${ac_cv_os_cray+set}" = set; then
  6513. echo $ECHO_N "(cached) $ECHO_C" >&6
  6514. else
  6515. cat >conftest.$ac_ext <<_ACEOF
  6516. /* confdefs.h. */
  6517. _ACEOF
  6518. cat confdefs.h >>conftest.$ac_ext
  6519. cat >>conftest.$ac_ext <<_ACEOF
  6520. /* end confdefs.h. */
  6521. #if defined CRAY && ! defined CRAY2
  6522. webecray
  6523. #else
  6524. wenotbecray
  6525. #endif
  6526. _ACEOF
  6527. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6528. $EGREP "webecray" >/dev/null 2>&1; then
  6529. ac_cv_os_cray=yes
  6530. else
  6531. ac_cv_os_cray=no
  6532. fi
  6533. rm -f conftest*
  6534. fi
  6535. { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
  6536. echo "${ECHO_T}$ac_cv_os_cray" >&6; }
  6537. if test $ac_cv_os_cray = yes; then
  6538. for ac_func in _getb67 GETB67 getb67; do
  6539. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6540. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  6541. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  6542. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  6543. echo $ECHO_N "(cached) $ECHO_C" >&6
  6544. else
  6545. cat >conftest.$ac_ext <<_ACEOF
  6546. /* confdefs.h. */
  6547. _ACEOF
  6548. cat confdefs.h >>conftest.$ac_ext
  6549. cat >>conftest.$ac_ext <<_ACEOF
  6550. /* end confdefs.h. */
  6551. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6552. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6553. #define $ac_func innocuous_$ac_func
  6554. /* System header to define __stub macros and hopefully few prototypes,
  6555. which can conflict with char $ac_func (); below.
  6556. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6557. <limits.h> exists even on freestanding compilers. */
  6558. #ifdef __STDC__
  6559. # include <limits.h>
  6560. #else
  6561. # include <assert.h>
  6562. #endif
  6563. #undef $ac_func
  6564. /* Override any GCC internal prototype to avoid an error.
  6565. Use char because int might match the return type of a GCC
  6566. builtin and then its argument prototype would still apply. */
  6567. #ifdef __cplusplus
  6568. extern "C"
  6569. #endif
  6570. char $ac_func ();
  6571. /* The GNU C library defines this for functions which it implements
  6572. to always fail with ENOSYS. Some functions are actually named
  6573. something starting with __ and the normal name is an alias. */
  6574. #if defined __stub_$ac_func || defined __stub___$ac_func
  6575. choke me
  6576. #endif
  6577. int
  6578. main ()
  6579. {
  6580. return $ac_func ();
  6581. ;
  6582. return 0;
  6583. }
  6584. _ACEOF
  6585. rm -f conftest.$ac_objext conftest$ac_exeext
  6586. if { (ac_try="$ac_link"
  6587. case "(($ac_try" in
  6588. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6589. *) ac_try_echo=$ac_try;;
  6590. esac
  6591. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6592. (eval "$ac_link") 2>conftest.er1
  6593. ac_status=$?
  6594. grep -v '^ *+' conftest.er1 >conftest.err
  6595. rm -f conftest.er1
  6596. cat conftest.err >&5
  6597. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6598. (exit $ac_status); } && {
  6599. test -z "$ac_cxx_werror_flag" ||
  6600. test ! -s conftest.err
  6601. } && test -s conftest$ac_exeext &&
  6602. $as_test_x conftest$ac_exeext; then
  6603. eval "$as_ac_var=yes"
  6604. else
  6605. echo "$as_me: failed program was:" >&5
  6606. sed 's/^/| /' conftest.$ac_ext >&5
  6607. eval "$as_ac_var=no"
  6608. fi
  6609. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6610. conftest$ac_exeext conftest.$ac_ext
  6611. fi
  6612. ac_res=`eval echo '${'$as_ac_var'}'`
  6613. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6614. echo "${ECHO_T}$ac_res" >&6; }
  6615. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6616. cat >>confdefs.h <<_ACEOF
  6617. #define CRAY_STACKSEG_END $ac_func
  6618. _ACEOF
  6619. break
  6620. fi
  6621. done
  6622. fi
  6623. { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
  6624. echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
  6625. if test "${ac_cv_c_stack_direction+set}" = set; then
  6626. echo $ECHO_N "(cached) $ECHO_C" >&6
  6627. else
  6628. if test "$cross_compiling" = yes; then
  6629. ac_cv_c_stack_direction=0
  6630. else
  6631. cat >conftest.$ac_ext <<_ACEOF
  6632. /* confdefs.h. */
  6633. _ACEOF
  6634. cat confdefs.h >>conftest.$ac_ext
  6635. cat >>conftest.$ac_ext <<_ACEOF
  6636. /* end confdefs.h. */
  6637. $ac_includes_default
  6638. int
  6639. find_stack_direction ()
  6640. {
  6641. static char *addr = 0;
  6642. auto char dummy;
  6643. if (addr == 0)
  6644. {
  6645. addr = &dummy;
  6646. return find_stack_direction ();
  6647. }
  6648. else
  6649. return (&dummy > addr) ? 1 : -1;
  6650. }
  6651. int
  6652. main ()
  6653. {
  6654. return find_stack_direction () < 0;
  6655. }
  6656. _ACEOF
  6657. rm -f conftest$ac_exeext
  6658. if { (ac_try="$ac_link"
  6659. case "(($ac_try" in
  6660. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6661. *) ac_try_echo=$ac_try;;
  6662. esac
  6663. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6664. (eval "$ac_link") 2>&5
  6665. ac_status=$?
  6666. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6667. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6668. { (case "(($ac_try" in
  6669. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6670. *) ac_try_echo=$ac_try;;
  6671. esac
  6672. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6673. (eval "$ac_try") 2>&5
  6674. ac_status=$?
  6675. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6676. (exit $ac_status); }; }; then
  6677. ac_cv_c_stack_direction=1
  6678. else
  6679. echo "$as_me: program exited with status $ac_status" >&5
  6680. echo "$as_me: failed program was:" >&5
  6681. sed 's/^/| /' conftest.$ac_ext >&5
  6682. ( exit $ac_status )
  6683. ac_cv_c_stack_direction=-1
  6684. fi
  6685. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6686. fi
  6687. fi
  6688. { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
  6689. echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
  6690. cat >>confdefs.h <<_ACEOF
  6691. #define STACK_DIRECTION $ac_cv_c_stack_direction
  6692. _ACEOF
  6693. fi
  6694. for ac_header in stdlib.h unistd.h
  6695. do
  6696. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6697. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6698. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  6699. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  6700. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6701. echo $ECHO_N "(cached) $ECHO_C" >&6
  6702. fi
  6703. ac_res=`eval echo '${'$as_ac_Header'}'`
  6704. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6705. echo "${ECHO_T}$ac_res" >&6; }
  6706. else
  6707. # Is the header compilable?
  6708. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6709. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  6710. cat >conftest.$ac_ext <<_ACEOF
  6711. /* confdefs.h. */
  6712. _ACEOF
  6713. cat confdefs.h >>conftest.$ac_ext
  6714. cat >>conftest.$ac_ext <<_ACEOF
  6715. /* end confdefs.h. */
  6716. $ac_includes_default
  6717. #include <$ac_header>
  6718. _ACEOF
  6719. rm -f conftest.$ac_objext
  6720. if { (ac_try="$ac_compile"
  6721. case "(($ac_try" in
  6722. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6723. *) ac_try_echo=$ac_try;;
  6724. esac
  6725. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6726. (eval "$ac_compile") 2>conftest.er1
  6727. ac_status=$?
  6728. grep -v '^ *+' conftest.er1 >conftest.err
  6729. rm -f conftest.er1
  6730. cat conftest.err >&5
  6731. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6732. (exit $ac_status); } && {
  6733. test -z "$ac_cxx_werror_flag" ||
  6734. test ! -s conftest.err
  6735. } && test -s conftest.$ac_objext; then
  6736. ac_header_compiler=yes
  6737. else
  6738. echo "$as_me: failed program was:" >&5
  6739. sed 's/^/| /' conftest.$ac_ext >&5
  6740. ac_header_compiler=no
  6741. fi
  6742. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6743. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6744. echo "${ECHO_T}$ac_header_compiler" >&6; }
  6745. # Is the header present?
  6746. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6747. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  6748. cat >conftest.$ac_ext <<_ACEOF
  6749. /* confdefs.h. */
  6750. _ACEOF
  6751. cat confdefs.h >>conftest.$ac_ext
  6752. cat >>conftest.$ac_ext <<_ACEOF
  6753. /* end confdefs.h. */
  6754. #include <$ac_header>
  6755. _ACEOF
  6756. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6757. case "(($ac_try" in
  6758. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6759. *) ac_try_echo=$ac_try;;
  6760. esac
  6761. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6762. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6763. ac_status=$?
  6764. grep -v '^ *+' conftest.er1 >conftest.err
  6765. rm -f conftest.er1
  6766. cat conftest.err >&5
  6767. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6768. (exit $ac_status); } >/dev/null && {
  6769. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  6770. test ! -s conftest.err
  6771. }; then
  6772. ac_header_preproc=yes
  6773. else
  6774. echo "$as_me: failed program was:" >&5
  6775. sed 's/^/| /' conftest.$ac_ext >&5
  6776. ac_header_preproc=no
  6777. fi
  6778. rm -f conftest.err conftest.$ac_ext
  6779. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6780. echo "${ECHO_T}$ac_header_preproc" >&6; }
  6781. # So? What about this header?
  6782. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  6783. yes:no: )
  6784. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6785. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6786. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  6787. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  6788. ac_header_preproc=yes
  6789. ;;
  6790. no:yes:* )
  6791. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6792. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6793. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6794. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6795. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  6796. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  6797. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  6798. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  6799. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6800. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6801. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  6802. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  6803. ;;
  6804. esac
  6805. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  6806. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  6807. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6808. echo $ECHO_N "(cached) $ECHO_C" >&6
  6809. else
  6810. eval "$as_ac_Header=\$ac_header_preproc"
  6811. fi
  6812. ac_res=`eval echo '${'$as_ac_Header'}'`
  6813. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6814. echo "${ECHO_T}$ac_res" >&6; }
  6815. fi
  6816. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6817. cat >>confdefs.h <<_ACEOF
  6818. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6819. _ACEOF
  6820. fi
  6821. done
  6822. for ac_func in getpagesize
  6823. do
  6824. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6825. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  6826. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  6827. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  6828. echo $ECHO_N "(cached) $ECHO_C" >&6
  6829. else
  6830. cat >conftest.$ac_ext <<_ACEOF
  6831. /* confdefs.h. */
  6832. _ACEOF
  6833. cat confdefs.h >>conftest.$ac_ext
  6834. cat >>conftest.$ac_ext <<_ACEOF
  6835. /* end confdefs.h. */
  6836. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6837. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6838. #define $ac_func innocuous_$ac_func
  6839. /* System header to define __stub macros and hopefully few prototypes,
  6840. which can conflict with char $ac_func (); below.
  6841. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6842. <limits.h> exists even on freestanding compilers. */
  6843. #ifdef __STDC__
  6844. # include <limits.h>
  6845. #else
  6846. # include <assert.h>
  6847. #endif
  6848. #undef $ac_func
  6849. /* Override any GCC internal prototype to avoid an error.
  6850. Use char because int might match the return type of a GCC
  6851. builtin and then its argument prototype would still apply. */
  6852. #ifdef __cplusplus
  6853. extern "C"
  6854. #endif
  6855. char $ac_func ();
  6856. /* The GNU C library defines this for functions which it implements
  6857. to always fail with ENOSYS. Some functions are actually named
  6858. something starting with __ and the normal name is an alias. */
  6859. #if defined __stub_$ac_func || defined __stub___$ac_func
  6860. choke me
  6861. #endif
  6862. int
  6863. main ()
  6864. {
  6865. return $ac_func ();
  6866. ;
  6867. return 0;
  6868. }
  6869. _ACEOF
  6870. rm -f conftest.$ac_objext conftest$ac_exeext
  6871. if { (ac_try="$ac_link"
  6872. case "(($ac_try" in
  6873. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6874. *) ac_try_echo=$ac_try;;
  6875. esac
  6876. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6877. (eval "$ac_link") 2>conftest.er1
  6878. ac_status=$?
  6879. grep -v '^ *+' conftest.er1 >conftest.err
  6880. rm -f conftest.er1
  6881. cat conftest.err >&5
  6882. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6883. (exit $ac_status); } && {
  6884. test -z "$ac_cxx_werror_flag" ||
  6885. test ! -s conftest.err
  6886. } && test -s conftest$ac_exeext &&
  6887. $as_test_x conftest$ac_exeext; then
  6888. eval "$as_ac_var=yes"
  6889. else
  6890. echo "$as_me: failed program was:" >&5
  6891. sed 's/^/| /' conftest.$ac_ext >&5
  6892. eval "$as_ac_var=no"
  6893. fi
  6894. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6895. conftest$ac_exeext conftest.$ac_ext
  6896. fi
  6897. ac_res=`eval echo '${'$as_ac_var'}'`
  6898. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6899. echo "${ECHO_T}$ac_res" >&6; }
  6900. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6901. cat >>confdefs.h <<_ACEOF
  6902. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6903. _ACEOF
  6904. fi
  6905. done
  6906. { echo "$as_me:$LINENO: checking for working mmap" >&5
  6907. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
  6908. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  6909. echo $ECHO_N "(cached) $ECHO_C" >&6
  6910. else
  6911. if test "$cross_compiling" = yes; then
  6912. ac_cv_func_mmap_fixed_mapped=no
  6913. else
  6914. cat >conftest.$ac_ext <<_ACEOF
  6915. /* confdefs.h. */
  6916. _ACEOF
  6917. cat confdefs.h >>conftest.$ac_ext
  6918. cat >>conftest.$ac_ext <<_ACEOF
  6919. /* end confdefs.h. */
  6920. $ac_includes_default
  6921. /* malloc might have been renamed as rpl_malloc. */
  6922. #undef malloc
  6923. /* Thanks to Mike Haertel and Jim Avera for this test.
  6924. Here is a matrix of mmap possibilities:
  6925. mmap private not fixed
  6926. mmap private fixed at somewhere currently unmapped
  6927. mmap private fixed at somewhere already mapped
  6928. mmap shared not fixed
  6929. mmap shared fixed at somewhere currently unmapped
  6930. mmap shared fixed at somewhere already mapped
  6931. For private mappings, we should verify that changes cannot be read()
  6932. back from the file, nor mmap's back from the file at a different
  6933. address. (There have been systems where private was not correctly
  6934. implemented like the infamous i386 svr4.0, and systems where the
  6935. VM page cache was not coherent with the file system buffer cache
  6936. like early versions of FreeBSD and possibly contemporary NetBSD.)
  6937. For shared mappings, we should conversely verify that changes get
  6938. propagated back to all the places they're supposed to be.
  6939. Grep wants private fixed already mapped.
  6940. The main things grep needs to know about mmap are:
  6941. * does it exist and is it safe to write into the mmap'd area
  6942. * how to use it (BSD variants) */
  6943. #include <fcntl.h>
  6944. #include <sys/mman.h>
  6945. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  6946. char *malloc ();
  6947. #endif
  6948. /* This mess was copied from the GNU getpagesize.h. */
  6949. #ifndef HAVE_GETPAGESIZE
  6950. /* Assume that all systems that can run configure have sys/param.h. */
  6951. # ifndef HAVE_SYS_PARAM_H
  6952. # define HAVE_SYS_PARAM_H 1
  6953. # endif
  6954. # ifdef _SC_PAGESIZE
  6955. # define getpagesize() sysconf(_SC_PAGESIZE)
  6956. # else /* no _SC_PAGESIZE */
  6957. # ifdef HAVE_SYS_PARAM_H
  6958. # include <sys/param.h>
  6959. # ifdef EXEC_PAGESIZE
  6960. # define getpagesize() EXEC_PAGESIZE
  6961. # else /* no EXEC_PAGESIZE */
  6962. # ifdef NBPG
  6963. # define getpagesize() NBPG * CLSIZE
  6964. # ifndef CLSIZE
  6965. # define CLSIZE 1
  6966. # endif /* no CLSIZE */
  6967. # else /* no NBPG */
  6968. # ifdef NBPC
  6969. # define getpagesize() NBPC
  6970. # else /* no NBPC */
  6971. # ifdef PAGESIZE
  6972. # define getpagesize() PAGESIZE
  6973. # endif /* PAGESIZE */
  6974. # endif /* no NBPC */
  6975. # endif /* no NBPG */
  6976. # endif /* no EXEC_PAGESIZE */
  6977. # else /* no HAVE_SYS_PARAM_H */
  6978. # define getpagesize() 8192 /* punt totally */
  6979. # endif /* no HAVE_SYS_PARAM_H */
  6980. # endif /* no _SC_PAGESIZE */
  6981. #endif /* no HAVE_GETPAGESIZE */
  6982. int
  6983. main ()
  6984. {
  6985. char *data, *data2, *data3;
  6986. int i, pagesize;
  6987. int fd;
  6988. pagesize = getpagesize ();
  6989. /* First, make a file with some known garbage in it. */
  6990. data = (char *) malloc (pagesize);
  6991. if (!data)
  6992. return 1;
  6993. for (i = 0; i < pagesize; ++i)
  6994. *(data + i) = rand ();
  6995. umask (0);
  6996. fd = creat ("conftest.mmap", 0600);
  6997. if (fd < 0)
  6998. return 1;
  6999. if (write (fd, data, pagesize) != pagesize)
  7000. return 1;
  7001. close (fd);
  7002. /* Next, try to mmap the file at a fixed address which already has
  7003. something else allocated at it. If we can, also make sure that
  7004. we see the same garbage. */
  7005. fd = open ("conftest.mmap", O_RDWR);
  7006. if (fd < 0)
  7007. return 1;
  7008. data2 = (char *) malloc (2 * pagesize);
  7009. if (!data2)
  7010. return 1;
  7011. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  7012. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  7013. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  7014. return 1;
  7015. for (i = 0; i < pagesize; ++i)
  7016. if (*(data + i) != *(data2 + i))
  7017. return 1;
  7018. /* Finally, make sure that changes to the mapped area do not
  7019. percolate back to the file as seen by read(). (This is a bug on
  7020. some variants of i386 svr4.0.) */
  7021. for (i = 0; i < pagesize; ++i)
  7022. *(data2 + i) = *(data2 + i) + 1;
  7023. data3 = (char *) malloc (pagesize);
  7024. if (!data3)
  7025. return 1;
  7026. if (read (fd, data3, pagesize) != pagesize)
  7027. return 1;
  7028. for (i = 0; i < pagesize; ++i)
  7029. if (*(data + i) != *(data3 + i))
  7030. return 1;
  7031. close (fd);
  7032. return 0;
  7033. }
  7034. _ACEOF
  7035. rm -f conftest$ac_exeext
  7036. if { (ac_try="$ac_link"
  7037. case "(($ac_try" in
  7038. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7039. *) ac_try_echo=$ac_try;;
  7040. esac
  7041. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7042. (eval "$ac_link") 2>&5
  7043. ac_status=$?
  7044. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7045. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7046. { (case "(($ac_try" in
  7047. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7048. *) ac_try_echo=$ac_try;;
  7049. esac
  7050. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7051. (eval "$ac_try") 2>&5
  7052. ac_status=$?
  7053. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7054. (exit $ac_status); }; }; then
  7055. ac_cv_func_mmap_fixed_mapped=yes
  7056. else
  7057. echo "$as_me: program exited with status $ac_status" >&5
  7058. echo "$as_me: failed program was:" >&5
  7059. sed 's/^/| /' conftest.$ac_ext >&5
  7060. ( exit $ac_status )
  7061. ac_cv_func_mmap_fixed_mapped=no
  7062. fi
  7063. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7064. fi
  7065. fi
  7066. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  7067. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
  7068. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  7069. cat >>confdefs.h <<\_ACEOF
  7070. #define HAVE_MMAP 1
  7071. _ACEOF
  7072. fi
  7073. rm -f conftest.mmap
  7074. { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
  7075. echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
  7076. if test "${ac_cv_gnu_library_2_1+set}" = set; then
  7077. echo $ECHO_N "(cached) $ECHO_C" >&6
  7078. else
  7079. cat >conftest.$ac_ext <<_ACEOF
  7080. /* confdefs.h. */
  7081. _ACEOF
  7082. cat confdefs.h >>conftest.$ac_ext
  7083. cat >>conftest.$ac_ext <<_ACEOF
  7084. /* end confdefs.h. */
  7085. #include <features.h>
  7086. #ifdef __GNU_LIBRARY__
  7087. #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  7088. Lucky GNU user
  7089. #endif
  7090. #endif
  7091. _ACEOF
  7092. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7093. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  7094. ac_cv_gnu_library_2_1=yes
  7095. else
  7096. ac_cv_gnu_library_2_1=no
  7097. fi
  7098. rm -f conftest*
  7099. fi
  7100. { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
  7101. echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
  7102. GLIBC21="$ac_cv_gnu_library_2_1"
  7103. { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
  7104. echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
  7105. if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
  7106. echo $ECHO_N "(cached) $ECHO_C" >&6
  7107. else
  7108. if test "$cross_compiling" = yes; then
  7109. # Guess based on the CPU.
  7110. case "$host_cpu" in
  7111. alpha* | i3456786 | m68k | s390*)
  7112. gt_cv_int_divbyzero_sigfpe="guessing yes";;
  7113. *)
  7114. gt_cv_int_divbyzero_sigfpe="guessing no";;
  7115. esac
  7116. else
  7117. cat >conftest.$ac_ext <<_ACEOF
  7118. /* confdefs.h. */
  7119. _ACEOF
  7120. cat confdefs.h >>conftest.$ac_ext
  7121. cat >>conftest.$ac_ext <<_ACEOF
  7122. /* end confdefs.h. */
  7123. #include <stdlib.h>
  7124. #include <signal.h>
  7125. static void
  7126. #ifdef __cplusplus
  7127. sigfpe_handler (int sig)
  7128. #else
  7129. sigfpe_handler (sig) int sig;
  7130. #endif
  7131. {
  7132. /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
  7133. exit (sig != SIGFPE);
  7134. }
  7135. int x = 1;
  7136. int y = 0;
  7137. int z;
  7138. int nan;
  7139. int main ()
  7140. {
  7141. signal (SIGFPE, sigfpe_handler);
  7142. /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
  7143. #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
  7144. signal (SIGTRAP, sigfpe_handler);
  7145. #endif
  7146. /* Linux/SPARC yields signal SIGILL. */
  7147. #if defined (__sparc__) && defined (__linux__)
  7148. signal (SIGILL, sigfpe_handler);
  7149. #endif
  7150. z = x / y;
  7151. nan = y / y;
  7152. exit (1);
  7153. }
  7154. _ACEOF
  7155. rm -f conftest$ac_exeext
  7156. if { (ac_try="$ac_link"
  7157. case "(($ac_try" in
  7158. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7159. *) ac_try_echo=$ac_try;;
  7160. esac
  7161. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7162. (eval "$ac_link") 2>&5
  7163. ac_status=$?
  7164. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7165. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7166. { (case "(($ac_try" in
  7167. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7168. *) ac_try_echo=$ac_try;;
  7169. esac
  7170. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7171. (eval "$ac_try") 2>&5
  7172. ac_status=$?
  7173. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7174. (exit $ac_status); }; }; then
  7175. gt_cv_int_divbyzero_sigfpe=yes
  7176. else
  7177. echo "$as_me: program exited with status $ac_status" >&5
  7178. echo "$as_me: failed program was:" >&5
  7179. sed 's/^/| /' conftest.$ac_ext >&5
  7180. ( exit $ac_status )
  7181. gt_cv_int_divbyzero_sigfpe=no
  7182. fi
  7183. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7184. fi
  7185. fi
  7186. { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
  7187. echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
  7188. case "$gt_cv_int_divbyzero_sigfpe" in
  7189. *yes) value=1;;
  7190. *) value=0;;
  7191. esac
  7192. cat >>confdefs.h <<_ACEOF
  7193. #define INTDIV0_RAISES_SIGFPE $value
  7194. _ACEOF
  7195. { echo "$as_me:$LINENO: checking for unsigned long long" >&5
  7196. echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
  7197. if test "${ac_cv_type_unsigned_long_long+set}" = set; then
  7198. echo $ECHO_N "(cached) $ECHO_C" >&6
  7199. else
  7200. cat >conftest.$ac_ext <<_ACEOF
  7201. /* confdefs.h. */
  7202. _ACEOF
  7203. cat confdefs.h >>conftest.$ac_ext
  7204. cat >>conftest.$ac_ext <<_ACEOF
  7205. /* end confdefs.h. */
  7206. unsigned long long ull = 1ULL; int i = 63;
  7207. int
  7208. main ()
  7209. {
  7210. unsigned long long ullmax = (unsigned long long) -1;
  7211. return ull << i | ull >> i | ullmax / ull | ullmax % ull;
  7212. ;
  7213. return 0;
  7214. }
  7215. _ACEOF
  7216. rm -f conftest.$ac_objext conftest$ac_exeext
  7217. if { (ac_try="$ac_link"
  7218. case "(($ac_try" in
  7219. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7220. *) ac_try_echo=$ac_try;;
  7221. esac
  7222. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7223. (eval "$ac_link") 2>conftest.er1
  7224. ac_status=$?
  7225. grep -v '^ *+' conftest.er1 >conftest.err
  7226. rm -f conftest.er1
  7227. cat conftest.err >&5
  7228. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7229. (exit $ac_status); } && {
  7230. test -z "$ac_cxx_werror_flag" ||
  7231. test ! -s conftest.err
  7232. } && test -s conftest$ac_exeext &&
  7233. $as_test_x conftest$ac_exeext; then
  7234. ac_cv_type_unsigned_long_long=yes
  7235. else
  7236. echo "$as_me: failed program was:" >&5
  7237. sed 's/^/| /' conftest.$ac_ext >&5
  7238. ac_cv_type_unsigned_long_long=no
  7239. fi
  7240. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7241. conftest$ac_exeext conftest.$ac_ext
  7242. fi
  7243. { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
  7244. echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
  7245. if test $ac_cv_type_unsigned_long_long = yes; then
  7246. cat >>confdefs.h <<\_ACEOF
  7247. #define HAVE_UNSIGNED_LONG_LONG 1
  7248. _ACEOF
  7249. fi
  7250. if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
  7251. test $ac_cv_type_unsigned_long_long = yes \
  7252. && ac_type='unsigned long long' \
  7253. || ac_type='unsigned long'
  7254. cat >>confdefs.h <<_ACEOF
  7255. #define uintmax_t $ac_type
  7256. _ACEOF
  7257. else
  7258. cat >>confdefs.h <<\_ACEOF
  7259. #define HAVE_UINTMAX_T 1
  7260. _ACEOF
  7261. fi
  7262. { echo "$as_me:$LINENO: checking for inttypes.h" >&5
  7263. echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
  7264. if test "${gt_cv_header_inttypes_h+set}" = set; then
  7265. echo $ECHO_N "(cached) $ECHO_C" >&6
  7266. else
  7267. cat >conftest.$ac_ext <<_ACEOF
  7268. /* confdefs.h. */
  7269. _ACEOF
  7270. cat confdefs.h >>conftest.$ac_ext
  7271. cat >>conftest.$ac_ext <<_ACEOF
  7272. /* end confdefs.h. */
  7273. #include <sys/types.h>
  7274. #include <inttypes.h>
  7275. int
  7276. main ()
  7277. {
  7278. ;
  7279. return 0;
  7280. }
  7281. _ACEOF
  7282. rm -f conftest.$ac_objext
  7283. if { (ac_try="$ac_compile"
  7284. case "(($ac_try" in
  7285. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7286. *) ac_try_echo=$ac_try;;
  7287. esac
  7288. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7289. (eval "$ac_compile") 2>conftest.er1
  7290. ac_status=$?
  7291. grep -v '^ *+' conftest.er1 >conftest.err
  7292. rm -f conftest.er1
  7293. cat conftest.err >&5
  7294. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7295. (exit $ac_status); } && {
  7296. test -z "$ac_cxx_werror_flag" ||
  7297. test ! -s conftest.err
  7298. } && test -s conftest.$ac_objext; then
  7299. gt_cv_header_inttypes_h=yes
  7300. else
  7301. echo "$as_me: failed program was:" >&5
  7302. sed 's/^/| /' conftest.$ac_ext >&5
  7303. gt_cv_header_inttypes_h=no
  7304. fi
  7305. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7306. fi
  7307. { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
  7308. echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
  7309. if test $gt_cv_header_inttypes_h = yes; then
  7310. cat >>confdefs.h <<_ACEOF
  7311. #define HAVE_INTTYPES_H 1
  7312. _ACEOF
  7313. fi
  7314. if test $gt_cv_header_inttypes_h = yes; then
  7315. { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
  7316. echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
  7317. if test "${gt_cv_inttypes_pri_broken+set}" = set; then
  7318. echo $ECHO_N "(cached) $ECHO_C" >&6
  7319. else
  7320. cat >conftest.$ac_ext <<_ACEOF
  7321. /* confdefs.h. */
  7322. _ACEOF
  7323. cat confdefs.h >>conftest.$ac_ext
  7324. cat >>conftest.$ac_ext <<_ACEOF
  7325. /* end confdefs.h. */
  7326. #include <inttypes.h>
  7327. #ifdef PRId32
  7328. char *p = PRId32;
  7329. #endif
  7330. int
  7331. main ()
  7332. {
  7333. ;
  7334. return 0;
  7335. }
  7336. _ACEOF
  7337. rm -f conftest.$ac_objext
  7338. if { (ac_try="$ac_compile"
  7339. case "(($ac_try" in
  7340. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7341. *) ac_try_echo=$ac_try;;
  7342. esac
  7343. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7344. (eval "$ac_compile") 2>conftest.er1
  7345. ac_status=$?
  7346. grep -v '^ *+' conftest.er1 >conftest.err
  7347. rm -f conftest.er1
  7348. cat conftest.err >&5
  7349. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7350. (exit $ac_status); } && {
  7351. test -z "$ac_cxx_werror_flag" ||
  7352. test ! -s conftest.err
  7353. } && test -s conftest.$ac_objext; then
  7354. gt_cv_inttypes_pri_broken=no
  7355. else
  7356. echo "$as_me: failed program was:" >&5
  7357. sed 's/^/| /' conftest.$ac_ext >&5
  7358. gt_cv_inttypes_pri_broken=yes
  7359. fi
  7360. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7361. fi
  7362. { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
  7363. echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
  7364. fi
  7365. if test "$gt_cv_inttypes_pri_broken" = yes; then
  7366. cat >>confdefs.h <<_ACEOF
  7367. #define PRI_MACROS_BROKEN 1
  7368. _ACEOF
  7369. fi
  7370. for ac_header in stdint.h
  7371. do
  7372. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7373. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7374. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7375. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7376. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7377. echo $ECHO_N "(cached) $ECHO_C" >&6
  7378. fi
  7379. ac_res=`eval echo '${'$as_ac_Header'}'`
  7380. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7381. echo "${ECHO_T}$ac_res" >&6; }
  7382. else
  7383. # Is the header compilable?
  7384. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7385. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  7386. cat >conftest.$ac_ext <<_ACEOF
  7387. /* confdefs.h. */
  7388. _ACEOF
  7389. cat confdefs.h >>conftest.$ac_ext
  7390. cat >>conftest.$ac_ext <<_ACEOF
  7391. /* end confdefs.h. */
  7392. $ac_includes_default
  7393. #include <$ac_header>
  7394. _ACEOF
  7395. rm -f conftest.$ac_objext
  7396. if { (ac_try="$ac_compile"
  7397. case "(($ac_try" in
  7398. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7399. *) ac_try_echo=$ac_try;;
  7400. esac
  7401. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7402. (eval "$ac_compile") 2>conftest.er1
  7403. ac_status=$?
  7404. grep -v '^ *+' conftest.er1 >conftest.err
  7405. rm -f conftest.er1
  7406. cat conftest.err >&5
  7407. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7408. (exit $ac_status); } && {
  7409. test -z "$ac_cxx_werror_flag" ||
  7410. test ! -s conftest.err
  7411. } && test -s conftest.$ac_objext; then
  7412. ac_header_compiler=yes
  7413. else
  7414. echo "$as_me: failed program was:" >&5
  7415. sed 's/^/| /' conftest.$ac_ext >&5
  7416. ac_header_compiler=no
  7417. fi
  7418. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7419. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7420. echo "${ECHO_T}$ac_header_compiler" >&6; }
  7421. # Is the header present?
  7422. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7423. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  7424. cat >conftest.$ac_ext <<_ACEOF
  7425. /* confdefs.h. */
  7426. _ACEOF
  7427. cat confdefs.h >>conftest.$ac_ext
  7428. cat >>conftest.$ac_ext <<_ACEOF
  7429. /* end confdefs.h. */
  7430. #include <$ac_header>
  7431. _ACEOF
  7432. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7433. case "(($ac_try" in
  7434. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7435. *) ac_try_echo=$ac_try;;
  7436. esac
  7437. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7438. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7439. ac_status=$?
  7440. grep -v '^ *+' conftest.er1 >conftest.err
  7441. rm -f conftest.er1
  7442. cat conftest.err >&5
  7443. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7444. (exit $ac_status); } >/dev/null && {
  7445. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  7446. test ! -s conftest.err
  7447. }; then
  7448. ac_header_preproc=yes
  7449. else
  7450. echo "$as_me: failed program was:" >&5
  7451. sed 's/^/| /' conftest.$ac_ext >&5
  7452. ac_header_preproc=no
  7453. fi
  7454. rm -f conftest.err conftest.$ac_ext
  7455. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7456. echo "${ECHO_T}$ac_header_preproc" >&6; }
  7457. # So? What about this header?
  7458. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  7459. yes:no: )
  7460. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7461. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7462. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7463. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7464. ac_header_preproc=yes
  7465. ;;
  7466. no:yes:* )
  7467. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7468. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7469. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7470. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7471. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7472. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7473. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7474. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7475. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7476. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7477. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7478. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7479. ;;
  7480. esac
  7481. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7482. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7483. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7484. echo $ECHO_N "(cached) $ECHO_C" >&6
  7485. else
  7486. eval "$as_ac_Header=\$ac_header_preproc"
  7487. fi
  7488. ac_res=`eval echo '${'$as_ac_Header'}'`
  7489. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7490. echo "${ECHO_T}$ac_res" >&6; }
  7491. fi
  7492. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7493. cat >>confdefs.h <<_ACEOF
  7494. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7495. _ACEOF
  7496. fi
  7497. done
  7498. { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
  7499. echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
  7500. result=
  7501. cat >conftest.$ac_ext <<_ACEOF
  7502. /* confdefs.h. */
  7503. _ACEOF
  7504. cat confdefs.h >>conftest.$ac_ext
  7505. cat >>conftest.$ac_ext <<_ACEOF
  7506. /* end confdefs.h. */
  7507. #include <limits.h>
  7508. #if HAVE_STDINT_H
  7509. #include <stdint.h>
  7510. #endif
  7511. #ifdef SIZE_MAX
  7512. Found it
  7513. #endif
  7514. _ACEOF
  7515. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7516. $EGREP "Found it" >/dev/null 2>&1; then
  7517. result=yes
  7518. fi
  7519. rm -f conftest*
  7520. if test -z "$result"; then
  7521. if test "$cross_compiling" = yes; then
  7522. # Depending upon the size, compute the lo and hi bounds.
  7523. cat >conftest.$ac_ext <<_ACEOF
  7524. /* confdefs.h. */
  7525. _ACEOF
  7526. cat confdefs.h >>conftest.$ac_ext
  7527. cat >>conftest.$ac_ext <<_ACEOF
  7528. /* end confdefs.h. */
  7529. #include <stddef.h>
  7530. int
  7531. main ()
  7532. {
  7533. static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
  7534. test_array [0] = 0
  7535. ;
  7536. return 0;
  7537. }
  7538. _ACEOF
  7539. rm -f conftest.$ac_objext
  7540. if { (ac_try="$ac_compile"
  7541. case "(($ac_try" in
  7542. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7543. *) ac_try_echo=$ac_try;;
  7544. esac
  7545. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7546. (eval "$ac_compile") 2>conftest.er1
  7547. ac_status=$?
  7548. grep -v '^ *+' conftest.er1 >conftest.err
  7549. rm -f conftest.er1
  7550. cat conftest.err >&5
  7551. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7552. (exit $ac_status); } && {
  7553. test -z "$ac_cxx_werror_flag" ||
  7554. test ! -s conftest.err
  7555. } && test -s conftest.$ac_objext; then
  7556. ac_lo=0 ac_mid=0
  7557. while :; do
  7558. cat >conftest.$ac_ext <<_ACEOF
  7559. /* confdefs.h. */
  7560. _ACEOF
  7561. cat confdefs.h >>conftest.$ac_ext
  7562. cat >>conftest.$ac_ext <<_ACEOF
  7563. /* end confdefs.h. */
  7564. #include <stddef.h>
  7565. int
  7566. main ()
  7567. {
  7568. static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
  7569. test_array [0] = 0
  7570. ;
  7571. return 0;
  7572. }
  7573. _ACEOF
  7574. rm -f conftest.$ac_objext
  7575. if { (ac_try="$ac_compile"
  7576. case "(($ac_try" in
  7577. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7578. *) ac_try_echo=$ac_try;;
  7579. esac
  7580. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7581. (eval "$ac_compile") 2>conftest.er1
  7582. ac_status=$?
  7583. grep -v '^ *+' conftest.er1 >conftest.err
  7584. rm -f conftest.er1
  7585. cat conftest.err >&5
  7586. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7587. (exit $ac_status); } && {
  7588. test -z "$ac_cxx_werror_flag" ||
  7589. test ! -s conftest.err
  7590. } && test -s conftest.$ac_objext; then
  7591. ac_hi=$ac_mid; break
  7592. else
  7593. echo "$as_me: failed program was:" >&5
  7594. sed 's/^/| /' conftest.$ac_ext >&5
  7595. ac_lo=`expr $ac_mid + 1`
  7596. if test $ac_lo -le $ac_mid; then
  7597. ac_lo= ac_hi=
  7598. break
  7599. fi
  7600. ac_mid=`expr 2 '*' $ac_mid + 1`
  7601. fi
  7602. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7603. done
  7604. else
  7605. echo "$as_me: failed program was:" >&5
  7606. sed 's/^/| /' conftest.$ac_ext >&5
  7607. cat >conftest.$ac_ext <<_ACEOF
  7608. /* confdefs.h. */
  7609. _ACEOF
  7610. cat confdefs.h >>conftest.$ac_ext
  7611. cat >>conftest.$ac_ext <<_ACEOF
  7612. /* end confdefs.h. */
  7613. #include <stddef.h>
  7614. int
  7615. main ()
  7616. {
  7617. static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
  7618. test_array [0] = 0
  7619. ;
  7620. return 0;
  7621. }
  7622. _ACEOF
  7623. rm -f conftest.$ac_objext
  7624. if { (ac_try="$ac_compile"
  7625. case "(($ac_try" in
  7626. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7627. *) ac_try_echo=$ac_try;;
  7628. esac
  7629. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7630. (eval "$ac_compile") 2>conftest.er1
  7631. ac_status=$?
  7632. grep -v '^ *+' conftest.er1 >conftest.err
  7633. rm -f conftest.er1
  7634. cat conftest.err >&5
  7635. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7636. (exit $ac_status); } && {
  7637. test -z "$ac_cxx_werror_flag" ||
  7638. test ! -s conftest.err
  7639. } && test -s conftest.$ac_objext; then
  7640. ac_hi=-1 ac_mid=-1
  7641. while :; do
  7642. cat >conftest.$ac_ext <<_ACEOF
  7643. /* confdefs.h. */
  7644. _ACEOF
  7645. cat confdefs.h >>conftest.$ac_ext
  7646. cat >>conftest.$ac_ext <<_ACEOF
  7647. /* end confdefs.h. */
  7648. #include <stddef.h>
  7649. int
  7650. main ()
  7651. {
  7652. static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
  7653. test_array [0] = 0
  7654. ;
  7655. return 0;
  7656. }
  7657. _ACEOF
  7658. rm -f conftest.$ac_objext
  7659. if { (ac_try="$ac_compile"
  7660. case "(($ac_try" in
  7661. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7662. *) ac_try_echo=$ac_try;;
  7663. esac
  7664. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7665. (eval "$ac_compile") 2>conftest.er1
  7666. ac_status=$?
  7667. grep -v '^ *+' conftest.er1 >conftest.err
  7668. rm -f conftest.er1
  7669. cat conftest.err >&5
  7670. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7671. (exit $ac_status); } && {
  7672. test -z "$ac_cxx_werror_flag" ||
  7673. test ! -s conftest.err
  7674. } && test -s conftest.$ac_objext; then
  7675. ac_lo=$ac_mid; break
  7676. else
  7677. echo "$as_me: failed program was:" >&5
  7678. sed 's/^/| /' conftest.$ac_ext >&5
  7679. ac_hi=`expr '(' $ac_mid ')' - 1`
  7680. if test $ac_mid -le $ac_hi; then
  7681. ac_lo= ac_hi=
  7682. break
  7683. fi
  7684. ac_mid=`expr 2 '*' $ac_mid`
  7685. fi
  7686. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7687. done
  7688. else
  7689. echo "$as_me: failed program was:" >&5
  7690. sed 's/^/| /' conftest.$ac_ext >&5
  7691. ac_lo= ac_hi=
  7692. fi
  7693. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7694. fi
  7695. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7696. # Binary search between lo and hi bounds.
  7697. while test "x$ac_lo" != "x$ac_hi"; do
  7698. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  7699. cat >conftest.$ac_ext <<_ACEOF
  7700. /* confdefs.h. */
  7701. _ACEOF
  7702. cat confdefs.h >>conftest.$ac_ext
  7703. cat >>conftest.$ac_ext <<_ACEOF
  7704. /* end confdefs.h. */
  7705. #include <stddef.h>
  7706. int
  7707. main ()
  7708. {
  7709. static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
  7710. test_array [0] = 0
  7711. ;
  7712. return 0;
  7713. }
  7714. _ACEOF
  7715. rm -f conftest.$ac_objext
  7716. if { (ac_try="$ac_compile"
  7717. case "(($ac_try" in
  7718. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7719. *) ac_try_echo=$ac_try;;
  7720. esac
  7721. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7722. (eval "$ac_compile") 2>conftest.er1
  7723. ac_status=$?
  7724. grep -v '^ *+' conftest.er1 >conftest.err
  7725. rm -f conftest.er1
  7726. cat conftest.err >&5
  7727. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7728. (exit $ac_status); } && {
  7729. test -z "$ac_cxx_werror_flag" ||
  7730. test ! -s conftest.err
  7731. } && test -s conftest.$ac_objext; then
  7732. ac_hi=$ac_mid
  7733. else
  7734. echo "$as_me: failed program was:" >&5
  7735. sed 's/^/| /' conftest.$ac_ext >&5
  7736. ac_lo=`expr '(' $ac_mid ')' + 1`
  7737. fi
  7738. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7739. done
  7740. case $ac_lo in
  7741. ?*) res_hi=$ac_lo;;
  7742. '') result=? ;;
  7743. esac
  7744. else
  7745. cat >conftest.$ac_ext <<_ACEOF
  7746. /* confdefs.h. */
  7747. _ACEOF
  7748. cat confdefs.h >>conftest.$ac_ext
  7749. cat >>conftest.$ac_ext <<_ACEOF
  7750. /* end confdefs.h. */
  7751. #include <stddef.h>
  7752. static long int longval () { return ~(size_t)0 / 10; }
  7753. static unsigned long int ulongval () { return ~(size_t)0 / 10; }
  7754. #include <stdio.h>
  7755. #include <stdlib.h>
  7756. int
  7757. main ()
  7758. {
  7759. FILE *f = fopen ("conftest.val", "w");
  7760. if (! f)
  7761. return 1;
  7762. if ((~(size_t)0 / 10) < 0)
  7763. {
  7764. long int i = longval ();
  7765. if (i != (~(size_t)0 / 10))
  7766. return 1;
  7767. fprintf (f, "%ld\n", i);
  7768. }
  7769. else
  7770. {
  7771. unsigned long int i = ulongval ();
  7772. if (i != (~(size_t)0 / 10))
  7773. return 1;
  7774. fprintf (f, "%lu\n", i);
  7775. }
  7776. return ferror (f) || fclose (f) != 0;
  7777. ;
  7778. return 0;
  7779. }
  7780. _ACEOF
  7781. rm -f conftest$ac_exeext
  7782. if { (ac_try="$ac_link"
  7783. case "(($ac_try" in
  7784. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7785. *) ac_try_echo=$ac_try;;
  7786. esac
  7787. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7788. (eval "$ac_link") 2>&5
  7789. ac_status=$?
  7790. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7791. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7792. { (case "(($ac_try" in
  7793. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7794. *) ac_try_echo=$ac_try;;
  7795. esac
  7796. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7797. (eval "$ac_try") 2>&5
  7798. ac_status=$?
  7799. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7800. (exit $ac_status); }; }; then
  7801. res_hi=`cat conftest.val`
  7802. else
  7803. echo "$as_me: program exited with status $ac_status" >&5
  7804. echo "$as_me: failed program was:" >&5
  7805. sed 's/^/| /' conftest.$ac_ext >&5
  7806. ( exit $ac_status )
  7807. result=?
  7808. fi
  7809. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7810. fi
  7811. rm -f conftest.val
  7812. if test "$cross_compiling" = yes; then
  7813. # Depending upon the size, compute the lo and hi bounds.
  7814. cat >conftest.$ac_ext <<_ACEOF
  7815. /* confdefs.h. */
  7816. _ACEOF
  7817. cat confdefs.h >>conftest.$ac_ext
  7818. cat >>conftest.$ac_ext <<_ACEOF
  7819. /* end confdefs.h. */
  7820. #include <stddef.h>
  7821. int
  7822. main ()
  7823. {
  7824. static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
  7825. test_array [0] = 0
  7826. ;
  7827. return 0;
  7828. }
  7829. _ACEOF
  7830. rm -f conftest.$ac_objext
  7831. if { (ac_try="$ac_compile"
  7832. case "(($ac_try" in
  7833. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7834. *) ac_try_echo=$ac_try;;
  7835. esac
  7836. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7837. (eval "$ac_compile") 2>conftest.er1
  7838. ac_status=$?
  7839. grep -v '^ *+' conftest.er1 >conftest.err
  7840. rm -f conftest.er1
  7841. cat conftest.err >&5
  7842. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7843. (exit $ac_status); } && {
  7844. test -z "$ac_cxx_werror_flag" ||
  7845. test ! -s conftest.err
  7846. } && test -s conftest.$ac_objext; then
  7847. ac_lo=0 ac_mid=0
  7848. while :; do
  7849. cat >conftest.$ac_ext <<_ACEOF
  7850. /* confdefs.h. */
  7851. _ACEOF
  7852. cat confdefs.h >>conftest.$ac_ext
  7853. cat >>conftest.$ac_ext <<_ACEOF
  7854. /* end confdefs.h. */
  7855. #include <stddef.h>
  7856. int
  7857. main ()
  7858. {
  7859. static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
  7860. test_array [0] = 0
  7861. ;
  7862. return 0;
  7863. }
  7864. _ACEOF
  7865. rm -f conftest.$ac_objext
  7866. if { (ac_try="$ac_compile"
  7867. case "(($ac_try" in
  7868. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7869. *) ac_try_echo=$ac_try;;
  7870. esac
  7871. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7872. (eval "$ac_compile") 2>conftest.er1
  7873. ac_status=$?
  7874. grep -v '^ *+' conftest.er1 >conftest.err
  7875. rm -f conftest.er1
  7876. cat conftest.err >&5
  7877. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7878. (exit $ac_status); } && {
  7879. test -z "$ac_cxx_werror_flag" ||
  7880. test ! -s conftest.err
  7881. } && test -s conftest.$ac_objext; then
  7882. ac_hi=$ac_mid; break
  7883. else
  7884. echo "$as_me: failed program was:" >&5
  7885. sed 's/^/| /' conftest.$ac_ext >&5
  7886. ac_lo=`expr $ac_mid + 1`
  7887. if test $ac_lo -le $ac_mid; then
  7888. ac_lo= ac_hi=
  7889. break
  7890. fi
  7891. ac_mid=`expr 2 '*' $ac_mid + 1`
  7892. fi
  7893. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7894. done
  7895. else
  7896. echo "$as_me: failed program was:" >&5
  7897. sed 's/^/| /' conftest.$ac_ext >&5
  7898. cat >conftest.$ac_ext <<_ACEOF
  7899. /* confdefs.h. */
  7900. _ACEOF
  7901. cat confdefs.h >>conftest.$ac_ext
  7902. cat >>conftest.$ac_ext <<_ACEOF
  7903. /* end confdefs.h. */
  7904. #include <stddef.h>
  7905. int
  7906. main ()
  7907. {
  7908. static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
  7909. test_array [0] = 0
  7910. ;
  7911. return 0;
  7912. }
  7913. _ACEOF
  7914. rm -f conftest.$ac_objext
  7915. if { (ac_try="$ac_compile"
  7916. case "(($ac_try" in
  7917. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7918. *) ac_try_echo=$ac_try;;
  7919. esac
  7920. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7921. (eval "$ac_compile") 2>conftest.er1
  7922. ac_status=$?
  7923. grep -v '^ *+' conftest.er1 >conftest.err
  7924. rm -f conftest.er1
  7925. cat conftest.err >&5
  7926. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7927. (exit $ac_status); } && {
  7928. test -z "$ac_cxx_werror_flag" ||
  7929. test ! -s conftest.err
  7930. } && test -s conftest.$ac_objext; then
  7931. ac_hi=-1 ac_mid=-1
  7932. while :; do
  7933. cat >conftest.$ac_ext <<_ACEOF
  7934. /* confdefs.h. */
  7935. _ACEOF
  7936. cat confdefs.h >>conftest.$ac_ext
  7937. cat >>conftest.$ac_ext <<_ACEOF
  7938. /* end confdefs.h. */
  7939. #include <stddef.h>
  7940. int
  7941. main ()
  7942. {
  7943. static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
  7944. test_array [0] = 0
  7945. ;
  7946. return 0;
  7947. }
  7948. _ACEOF
  7949. rm -f conftest.$ac_objext
  7950. if { (ac_try="$ac_compile"
  7951. case "(($ac_try" in
  7952. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7953. *) ac_try_echo=$ac_try;;
  7954. esac
  7955. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7956. (eval "$ac_compile") 2>conftest.er1
  7957. ac_status=$?
  7958. grep -v '^ *+' conftest.er1 >conftest.err
  7959. rm -f conftest.er1
  7960. cat conftest.err >&5
  7961. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7962. (exit $ac_status); } && {
  7963. test -z "$ac_cxx_werror_flag" ||
  7964. test ! -s conftest.err
  7965. } && test -s conftest.$ac_objext; then
  7966. ac_lo=$ac_mid; break
  7967. else
  7968. echo "$as_me: failed program was:" >&5
  7969. sed 's/^/| /' conftest.$ac_ext >&5
  7970. ac_hi=`expr '(' $ac_mid ')' - 1`
  7971. if test $ac_mid -le $ac_hi; then
  7972. ac_lo= ac_hi=
  7973. break
  7974. fi
  7975. ac_mid=`expr 2 '*' $ac_mid`
  7976. fi
  7977. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7978. done
  7979. else
  7980. echo "$as_me: failed program was:" >&5
  7981. sed 's/^/| /' conftest.$ac_ext >&5
  7982. ac_lo= ac_hi=
  7983. fi
  7984. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7985. fi
  7986. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7987. # Binary search between lo and hi bounds.
  7988. while test "x$ac_lo" != "x$ac_hi"; do
  7989. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  7990. cat >conftest.$ac_ext <<_ACEOF
  7991. /* confdefs.h. */
  7992. _ACEOF
  7993. cat confdefs.h >>conftest.$ac_ext
  7994. cat >>conftest.$ac_ext <<_ACEOF
  7995. /* end confdefs.h. */
  7996. #include <stddef.h>
  7997. int
  7998. main ()
  7999. {
  8000. static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
  8001. test_array [0] = 0
  8002. ;
  8003. return 0;
  8004. }
  8005. _ACEOF
  8006. rm -f conftest.$ac_objext
  8007. if { (ac_try="$ac_compile"
  8008. case "(($ac_try" in
  8009. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8010. *) ac_try_echo=$ac_try;;
  8011. esac
  8012. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8013. (eval "$ac_compile") 2>conftest.er1
  8014. ac_status=$?
  8015. grep -v '^ *+' conftest.er1 >conftest.err
  8016. rm -f conftest.er1
  8017. cat conftest.err >&5
  8018. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8019. (exit $ac_status); } && {
  8020. test -z "$ac_cxx_werror_flag" ||
  8021. test ! -s conftest.err
  8022. } && test -s conftest.$ac_objext; then
  8023. ac_hi=$ac_mid
  8024. else
  8025. echo "$as_me: failed program was:" >&5
  8026. sed 's/^/| /' conftest.$ac_ext >&5
  8027. ac_lo=`expr '(' $ac_mid ')' + 1`
  8028. fi
  8029. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8030. done
  8031. case $ac_lo in
  8032. ?*) res_lo=$ac_lo;;
  8033. '') result=? ;;
  8034. esac
  8035. else
  8036. cat >conftest.$ac_ext <<_ACEOF
  8037. /* confdefs.h. */
  8038. _ACEOF
  8039. cat confdefs.h >>conftest.$ac_ext
  8040. cat >>conftest.$ac_ext <<_ACEOF
  8041. /* end confdefs.h. */
  8042. #include <stddef.h>
  8043. static long int longval () { return ~(size_t)0 % 10; }
  8044. static unsigned long int ulongval () { return ~(size_t)0 % 10; }
  8045. #include <stdio.h>
  8046. #include <stdlib.h>
  8047. int
  8048. main ()
  8049. {
  8050. FILE *f = fopen ("conftest.val", "w");
  8051. if (! f)
  8052. return 1;
  8053. if ((~(size_t)0 % 10) < 0)
  8054. {
  8055. long int i = longval ();
  8056. if (i != (~(size_t)0 % 10))
  8057. return 1;
  8058. fprintf (f, "%ld\n", i);
  8059. }
  8060. else
  8061. {
  8062. unsigned long int i = ulongval ();
  8063. if (i != (~(size_t)0 % 10))
  8064. return 1;
  8065. fprintf (f, "%lu\n", i);
  8066. }
  8067. return ferror (f) || fclose (f) != 0;
  8068. ;
  8069. return 0;
  8070. }
  8071. _ACEOF
  8072. rm -f conftest$ac_exeext
  8073. if { (ac_try="$ac_link"
  8074. case "(($ac_try" in
  8075. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8076. *) ac_try_echo=$ac_try;;
  8077. esac
  8078. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8079. (eval "$ac_link") 2>&5
  8080. ac_status=$?
  8081. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8082. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8083. { (case "(($ac_try" in
  8084. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8085. *) ac_try_echo=$ac_try;;
  8086. esac
  8087. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8088. (eval "$ac_try") 2>&5
  8089. ac_status=$?
  8090. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8091. (exit $ac_status); }; }; then
  8092. res_lo=`cat conftest.val`
  8093. else
  8094. echo "$as_me: program exited with status $ac_status" >&5
  8095. echo "$as_me: failed program was:" >&5
  8096. sed 's/^/| /' conftest.$ac_ext >&5
  8097. ( exit $ac_status )
  8098. result=?
  8099. fi
  8100. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8101. fi
  8102. rm -f conftest.val
  8103. if test "$cross_compiling" = yes; then
  8104. # Depending upon the size, compute the lo and hi bounds.
  8105. cat >conftest.$ac_ext <<_ACEOF
  8106. /* confdefs.h. */
  8107. _ACEOF
  8108. cat confdefs.h >>conftest.$ac_ext
  8109. cat >>conftest.$ac_ext <<_ACEOF
  8110. /* end confdefs.h. */
  8111. #include <stddef.h>
  8112. int
  8113. main ()
  8114. {
  8115. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
  8116. test_array [0] = 0
  8117. ;
  8118. return 0;
  8119. }
  8120. _ACEOF
  8121. rm -f conftest.$ac_objext
  8122. if { (ac_try="$ac_compile"
  8123. case "(($ac_try" in
  8124. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8125. *) ac_try_echo=$ac_try;;
  8126. esac
  8127. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8128. (eval "$ac_compile") 2>conftest.er1
  8129. ac_status=$?
  8130. grep -v '^ *+' conftest.er1 >conftest.err
  8131. rm -f conftest.er1
  8132. cat conftest.err >&5
  8133. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8134. (exit $ac_status); } && {
  8135. test -z "$ac_cxx_werror_flag" ||
  8136. test ! -s conftest.err
  8137. } && test -s conftest.$ac_objext; then
  8138. ac_lo=0 ac_mid=0
  8139. while :; do
  8140. cat >conftest.$ac_ext <<_ACEOF
  8141. /* confdefs.h. */
  8142. _ACEOF
  8143. cat confdefs.h >>conftest.$ac_ext
  8144. cat >>conftest.$ac_ext <<_ACEOF
  8145. /* end confdefs.h. */
  8146. #include <stddef.h>
  8147. int
  8148. main ()
  8149. {
  8150. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
  8151. test_array [0] = 0
  8152. ;
  8153. return 0;
  8154. }
  8155. _ACEOF
  8156. rm -f conftest.$ac_objext
  8157. if { (ac_try="$ac_compile"
  8158. case "(($ac_try" in
  8159. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8160. *) ac_try_echo=$ac_try;;
  8161. esac
  8162. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8163. (eval "$ac_compile") 2>conftest.er1
  8164. ac_status=$?
  8165. grep -v '^ *+' conftest.er1 >conftest.err
  8166. rm -f conftest.er1
  8167. cat conftest.err >&5
  8168. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8169. (exit $ac_status); } && {
  8170. test -z "$ac_cxx_werror_flag" ||
  8171. test ! -s conftest.err
  8172. } && test -s conftest.$ac_objext; then
  8173. ac_hi=$ac_mid; break
  8174. else
  8175. echo "$as_me: failed program was:" >&5
  8176. sed 's/^/| /' conftest.$ac_ext >&5
  8177. ac_lo=`expr $ac_mid + 1`
  8178. if test $ac_lo -le $ac_mid; then
  8179. ac_lo= ac_hi=
  8180. break
  8181. fi
  8182. ac_mid=`expr 2 '*' $ac_mid + 1`
  8183. fi
  8184. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8185. done
  8186. else
  8187. echo "$as_me: failed program was:" >&5
  8188. sed 's/^/| /' conftest.$ac_ext >&5
  8189. cat >conftest.$ac_ext <<_ACEOF
  8190. /* confdefs.h. */
  8191. _ACEOF
  8192. cat confdefs.h >>conftest.$ac_ext
  8193. cat >>conftest.$ac_ext <<_ACEOF
  8194. /* end confdefs.h. */
  8195. #include <stddef.h>
  8196. int
  8197. main ()
  8198. {
  8199. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
  8200. test_array [0] = 0
  8201. ;
  8202. return 0;
  8203. }
  8204. _ACEOF
  8205. rm -f conftest.$ac_objext
  8206. if { (ac_try="$ac_compile"
  8207. case "(($ac_try" in
  8208. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8209. *) ac_try_echo=$ac_try;;
  8210. esac
  8211. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8212. (eval "$ac_compile") 2>conftest.er1
  8213. ac_status=$?
  8214. grep -v '^ *+' conftest.er1 >conftest.err
  8215. rm -f conftest.er1
  8216. cat conftest.err >&5
  8217. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8218. (exit $ac_status); } && {
  8219. test -z "$ac_cxx_werror_flag" ||
  8220. test ! -s conftest.err
  8221. } && test -s conftest.$ac_objext; then
  8222. ac_hi=-1 ac_mid=-1
  8223. while :; do
  8224. cat >conftest.$ac_ext <<_ACEOF
  8225. /* confdefs.h. */
  8226. _ACEOF
  8227. cat confdefs.h >>conftest.$ac_ext
  8228. cat >>conftest.$ac_ext <<_ACEOF
  8229. /* end confdefs.h. */
  8230. #include <stddef.h>
  8231. int
  8232. main ()
  8233. {
  8234. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
  8235. test_array [0] = 0
  8236. ;
  8237. return 0;
  8238. }
  8239. _ACEOF
  8240. rm -f conftest.$ac_objext
  8241. if { (ac_try="$ac_compile"
  8242. case "(($ac_try" in
  8243. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8244. *) ac_try_echo=$ac_try;;
  8245. esac
  8246. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8247. (eval "$ac_compile") 2>conftest.er1
  8248. ac_status=$?
  8249. grep -v '^ *+' conftest.er1 >conftest.err
  8250. rm -f conftest.er1
  8251. cat conftest.err >&5
  8252. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8253. (exit $ac_status); } && {
  8254. test -z "$ac_cxx_werror_flag" ||
  8255. test ! -s conftest.err
  8256. } && test -s conftest.$ac_objext; then
  8257. ac_lo=$ac_mid; break
  8258. else
  8259. echo "$as_me: failed program was:" >&5
  8260. sed 's/^/| /' conftest.$ac_ext >&5
  8261. ac_hi=`expr '(' $ac_mid ')' - 1`
  8262. if test $ac_mid -le $ac_hi; then
  8263. ac_lo= ac_hi=
  8264. break
  8265. fi
  8266. ac_mid=`expr 2 '*' $ac_mid`
  8267. fi
  8268. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8269. done
  8270. else
  8271. echo "$as_me: failed program was:" >&5
  8272. sed 's/^/| /' conftest.$ac_ext >&5
  8273. ac_lo= ac_hi=
  8274. fi
  8275. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8276. fi
  8277. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8278. # Binary search between lo and hi bounds.
  8279. while test "x$ac_lo" != "x$ac_hi"; do
  8280. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  8281. cat >conftest.$ac_ext <<_ACEOF
  8282. /* confdefs.h. */
  8283. _ACEOF
  8284. cat confdefs.h >>conftest.$ac_ext
  8285. cat >>conftest.$ac_ext <<_ACEOF
  8286. /* end confdefs.h. */
  8287. #include <stddef.h>
  8288. int
  8289. main ()
  8290. {
  8291. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
  8292. test_array [0] = 0
  8293. ;
  8294. return 0;
  8295. }
  8296. _ACEOF
  8297. rm -f conftest.$ac_objext
  8298. if { (ac_try="$ac_compile"
  8299. case "(($ac_try" in
  8300. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8301. *) ac_try_echo=$ac_try;;
  8302. esac
  8303. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8304. (eval "$ac_compile") 2>conftest.er1
  8305. ac_status=$?
  8306. grep -v '^ *+' conftest.er1 >conftest.err
  8307. rm -f conftest.er1
  8308. cat conftest.err >&5
  8309. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8310. (exit $ac_status); } && {
  8311. test -z "$ac_cxx_werror_flag" ||
  8312. test ! -s conftest.err
  8313. } && test -s conftest.$ac_objext; then
  8314. ac_hi=$ac_mid
  8315. else
  8316. echo "$as_me: failed program was:" >&5
  8317. sed 's/^/| /' conftest.$ac_ext >&5
  8318. ac_lo=`expr '(' $ac_mid ')' + 1`
  8319. fi
  8320. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8321. done
  8322. case $ac_lo in
  8323. ?*) fits_in_uint=$ac_lo;;
  8324. '') result=? ;;
  8325. esac
  8326. else
  8327. cat >conftest.$ac_ext <<_ACEOF
  8328. /* confdefs.h. */
  8329. _ACEOF
  8330. cat confdefs.h >>conftest.$ac_ext
  8331. cat >>conftest.$ac_ext <<_ACEOF
  8332. /* end confdefs.h. */
  8333. #include <stddef.h>
  8334. static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
  8335. static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
  8336. #include <stdio.h>
  8337. #include <stdlib.h>
  8338. int
  8339. main ()
  8340. {
  8341. FILE *f = fopen ("conftest.val", "w");
  8342. if (! f)
  8343. return 1;
  8344. if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
  8345. {
  8346. long int i = longval ();
  8347. if (i != (sizeof (size_t) <= sizeof (unsigned int)))
  8348. return 1;
  8349. fprintf (f, "%ld\n", i);
  8350. }
  8351. else
  8352. {
  8353. unsigned long int i = ulongval ();
  8354. if (i != (sizeof (size_t) <= sizeof (unsigned int)))
  8355. return 1;
  8356. fprintf (f, "%lu\n", i);
  8357. }
  8358. return ferror (f) || fclose (f) != 0;
  8359. ;
  8360. return 0;
  8361. }
  8362. _ACEOF
  8363. rm -f conftest$ac_exeext
  8364. if { (ac_try="$ac_link"
  8365. case "(($ac_try" in
  8366. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8367. *) ac_try_echo=$ac_try;;
  8368. esac
  8369. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8370. (eval "$ac_link") 2>&5
  8371. ac_status=$?
  8372. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8373. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8374. { (case "(($ac_try" in
  8375. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8376. *) ac_try_echo=$ac_try;;
  8377. esac
  8378. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8379. (eval "$ac_try") 2>&5
  8380. ac_status=$?
  8381. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8382. (exit $ac_status); }; }; then
  8383. fits_in_uint=`cat conftest.val`
  8384. else
  8385. echo "$as_me: program exited with status $ac_status" >&5
  8386. echo "$as_me: failed program was:" >&5
  8387. sed 's/^/| /' conftest.$ac_ext >&5
  8388. ( exit $ac_status )
  8389. result=?
  8390. fi
  8391. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8392. fi
  8393. rm -f conftest.val
  8394. if test "$fits_in_uint" = 1; then
  8395. cat >conftest.$ac_ext <<_ACEOF
  8396. /* confdefs.h. */
  8397. _ACEOF
  8398. cat confdefs.h >>conftest.$ac_ext
  8399. cat >>conftest.$ac_ext <<_ACEOF
  8400. /* end confdefs.h. */
  8401. #include <stddef.h>
  8402. extern size_t foo;
  8403. extern unsigned long foo;
  8404. int
  8405. main ()
  8406. {
  8407. ;
  8408. return 0;
  8409. }
  8410. _ACEOF
  8411. rm -f conftest.$ac_objext
  8412. if { (ac_try="$ac_compile"
  8413. case "(($ac_try" in
  8414. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8415. *) ac_try_echo=$ac_try;;
  8416. esac
  8417. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8418. (eval "$ac_compile") 2>conftest.er1
  8419. ac_status=$?
  8420. grep -v '^ *+' conftest.er1 >conftest.err
  8421. rm -f conftest.er1
  8422. cat conftest.err >&5
  8423. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8424. (exit $ac_status); } && {
  8425. test -z "$ac_cxx_werror_flag" ||
  8426. test ! -s conftest.err
  8427. } && test -s conftest.$ac_objext; then
  8428. fits_in_uint=0
  8429. else
  8430. echo "$as_me: failed program was:" >&5
  8431. sed 's/^/| /' conftest.$ac_ext >&5
  8432. fi
  8433. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8434. fi
  8435. if test -z "$result"; then
  8436. if test "$fits_in_uint" = 1; then
  8437. result="$res_hi$res_lo"U
  8438. else
  8439. result="$res_hi$res_lo"UL
  8440. fi
  8441. else
  8442. result='~(size_t)0'
  8443. fi
  8444. fi
  8445. { echo "$as_me:$LINENO: result: $result" >&5
  8446. echo "${ECHO_T}$result" >&6; }
  8447. if test "$result" != yes; then
  8448. cat >>confdefs.h <<_ACEOF
  8449. #define SIZE_MAX $result
  8450. _ACEOF
  8451. fi
  8452. for ac_header in stdint.h
  8453. do
  8454. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8455. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8456. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  8457. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  8458. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8459. echo $ECHO_N "(cached) $ECHO_C" >&6
  8460. fi
  8461. ac_res=`eval echo '${'$as_ac_Header'}'`
  8462. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8463. echo "${ECHO_T}$ac_res" >&6; }
  8464. else
  8465. # Is the header compilable?
  8466. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8467. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  8468. cat >conftest.$ac_ext <<_ACEOF
  8469. /* confdefs.h. */
  8470. _ACEOF
  8471. cat confdefs.h >>conftest.$ac_ext
  8472. cat >>conftest.$ac_ext <<_ACEOF
  8473. /* end confdefs.h. */
  8474. $ac_includes_default
  8475. #include <$ac_header>
  8476. _ACEOF
  8477. rm -f conftest.$ac_objext
  8478. if { (ac_try="$ac_compile"
  8479. case "(($ac_try" in
  8480. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8481. *) ac_try_echo=$ac_try;;
  8482. esac
  8483. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8484. (eval "$ac_compile") 2>conftest.er1
  8485. ac_status=$?
  8486. grep -v '^ *+' conftest.er1 >conftest.err
  8487. rm -f conftest.er1
  8488. cat conftest.err >&5
  8489. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8490. (exit $ac_status); } && {
  8491. test -z "$ac_cxx_werror_flag" ||
  8492. test ! -s conftest.err
  8493. } && test -s conftest.$ac_objext; then
  8494. ac_header_compiler=yes
  8495. else
  8496. echo "$as_me: failed program was:" >&5
  8497. sed 's/^/| /' conftest.$ac_ext >&5
  8498. ac_header_compiler=no
  8499. fi
  8500. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8501. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8502. echo "${ECHO_T}$ac_header_compiler" >&6; }
  8503. # Is the header present?
  8504. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8505. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  8506. cat >conftest.$ac_ext <<_ACEOF
  8507. /* confdefs.h. */
  8508. _ACEOF
  8509. cat confdefs.h >>conftest.$ac_ext
  8510. cat >>conftest.$ac_ext <<_ACEOF
  8511. /* end confdefs.h. */
  8512. #include <$ac_header>
  8513. _ACEOF
  8514. if { (ac_try="$ac_cpp conftest.$ac_ext"
  8515. case "(($ac_try" in
  8516. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8517. *) ac_try_echo=$ac_try;;
  8518. esac
  8519. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8520. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  8521. ac_status=$?
  8522. grep -v '^ *+' conftest.er1 >conftest.err
  8523. rm -f conftest.er1
  8524. cat conftest.err >&5
  8525. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8526. (exit $ac_status); } >/dev/null && {
  8527. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  8528. test ! -s conftest.err
  8529. }; then
  8530. ac_header_preproc=yes
  8531. else
  8532. echo "$as_me: failed program was:" >&5
  8533. sed 's/^/| /' conftest.$ac_ext >&5
  8534. ac_header_preproc=no
  8535. fi
  8536. rm -f conftest.err conftest.$ac_ext
  8537. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8538. echo "${ECHO_T}$ac_header_preproc" >&6; }
  8539. # So? What about this header?
  8540. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  8541. yes:no: )
  8542. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8543. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8544. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8545. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8546. ac_header_preproc=yes
  8547. ;;
  8548. no:yes:* )
  8549. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8550. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8551. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8552. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8553. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8554. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8555. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8556. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8557. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8558. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8559. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8560. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8561. ;;
  8562. esac
  8563. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  8564. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  8565. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8566. echo $ECHO_N "(cached) $ECHO_C" >&6
  8567. else
  8568. eval "$as_ac_Header=\$ac_header_preproc"
  8569. fi
  8570. ac_res=`eval echo '${'$as_ac_Header'}'`
  8571. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8572. echo "${ECHO_T}$ac_res" >&6; }
  8573. fi
  8574. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8575. cat >>confdefs.h <<_ACEOF
  8576. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8577. _ACEOF
  8578. fi
  8579. done
  8580. if test "X$prefix" = "XNONE"; then
  8581. acl_final_prefix="$ac_default_prefix"
  8582. else
  8583. acl_final_prefix="$prefix"
  8584. fi
  8585. if test "X$exec_prefix" = "XNONE"; then
  8586. acl_final_exec_prefix='${prefix}'
  8587. else
  8588. acl_final_exec_prefix="$exec_prefix"
  8589. fi
  8590. acl_save_prefix="$prefix"
  8591. prefix="$acl_final_prefix"
  8592. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  8593. prefix="$acl_save_prefix"
  8594. # Check whether --with-gnu-ld was given.
  8595. if test "${with_gnu_ld+set}" = set; then
  8596. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  8597. else
  8598. with_gnu_ld=no
  8599. fi
  8600. # Prepare PATH_SEPARATOR.
  8601. # The user is always right.
  8602. if test "${PATH_SEPARATOR+set}" != set; then
  8603. echo "#! /bin/sh" >conf$$.sh
  8604. echo "exit 0" >>conf$$.sh
  8605. chmod +x conf$$.sh
  8606. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8607. PATH_SEPARATOR=';'
  8608. else
  8609. PATH_SEPARATOR=:
  8610. fi
  8611. rm -f conf$$.sh
  8612. fi
  8613. ac_prog=ld
  8614. if test "$GCC" = yes; then
  8615. # Check if gcc -print-prog-name=ld gives a path.
  8616. { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
  8617. echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
  8618. case $host in
  8619. *-*-mingw*)
  8620. # gcc leaves a trailing carriage return which upsets mingw
  8621. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  8622. *)
  8623. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  8624. esac
  8625. case $ac_prog in
  8626. # Accept absolute paths.
  8627. [\\/]* | [A-Za-z]:[\\/]*)
  8628. re_direlt='/[^/][^/]*/\.\./'
  8629. # Canonicalize the path of ld
  8630. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  8631. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  8632. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  8633. done
  8634. test -z "$LD" && LD="$ac_prog"
  8635. ;;
  8636. "")
  8637. # If it fails, then pretend we aren't using GCC.
  8638. ac_prog=ld
  8639. ;;
  8640. *)
  8641. # If it is relative, then search for the first ld in PATH.
  8642. with_gnu_ld=unknown
  8643. ;;
  8644. esac
  8645. elif test "$with_gnu_ld" = yes; then
  8646. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  8647. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  8648. else
  8649. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  8650. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  8651. fi
  8652. if test "${acl_cv_path_LD+set}" = set; then
  8653. echo $ECHO_N "(cached) $ECHO_C" >&6
  8654. else
  8655. if test -z "$LD"; then
  8656. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  8657. for ac_dir in $PATH; do
  8658. test -z "$ac_dir" && ac_dir=.
  8659. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  8660. acl_cv_path_LD="$ac_dir/$ac_prog"
  8661. # Check to see if the program is GNU ld. I'd rather use --version,
  8662. # but apparently some GNU ld's only accept -v.
  8663. # Break only if it was the GNU/non-GNU ld that we prefer.
  8664. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  8665. *GNU* | *'with BFD'*)
  8666. test "$with_gnu_ld" != no && break ;;
  8667. *)
  8668. test "$with_gnu_ld" != yes && break ;;
  8669. esac
  8670. fi
  8671. done
  8672. IFS="$ac_save_ifs"
  8673. else
  8674. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  8675. fi
  8676. fi
  8677. LD="$acl_cv_path_LD"
  8678. if test -n "$LD"; then
  8679. { echo "$as_me:$LINENO: result: $LD" >&5
  8680. echo "${ECHO_T}$LD" >&6; }
  8681. else
  8682. { echo "$as_me:$LINENO: result: no" >&5
  8683. echo "${ECHO_T}no" >&6; }
  8684. fi
  8685. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  8686. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  8687. { (exit 1); exit 1; }; }
  8688. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  8689. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  8690. if test "${acl_cv_prog_gnu_ld+set}" = set; then
  8691. echo $ECHO_N "(cached) $ECHO_C" >&6
  8692. else
  8693. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  8694. case `$LD -v 2>&1 </dev/null` in
  8695. *GNU* | *'with BFD'*)
  8696. acl_cv_prog_gnu_ld=yes ;;
  8697. *)
  8698. acl_cv_prog_gnu_ld=no ;;
  8699. esac
  8700. fi
  8701. { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
  8702. echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
  8703. with_gnu_ld=$acl_cv_prog_gnu_ld
  8704. { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
  8705. echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
  8706. if test "${acl_cv_rpath+set}" = set; then
  8707. echo $ECHO_N "(cached) $ECHO_C" >&6
  8708. else
  8709. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  8710. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  8711. . ./conftest.sh
  8712. rm -f ./conftest.sh
  8713. acl_cv_rpath=done
  8714. fi
  8715. { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
  8716. echo "${ECHO_T}$acl_cv_rpath" >&6; }
  8717. wl="$acl_cv_wl"
  8718. libext="$acl_cv_libext"
  8719. shlibext="$acl_cv_shlibext"
  8720. hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  8721. hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  8722. hardcode_direct="$acl_cv_hardcode_direct"
  8723. hardcode_minus_L="$acl_cv_hardcode_minus_L"
  8724. # Check whether --enable-rpath was given.
  8725. if test "${enable_rpath+set}" = set; then
  8726. enableval=$enable_rpath; :
  8727. else
  8728. enable_rpath=yes
  8729. fi
  8730. use_additional=yes
  8731. acl_save_prefix="$prefix"
  8732. prefix="$acl_final_prefix"
  8733. acl_save_exec_prefix="$exec_prefix"
  8734. exec_prefix="$acl_final_exec_prefix"
  8735. eval additional_includedir=\"$includedir\"
  8736. eval additional_libdir=\"$libdir\"
  8737. exec_prefix="$acl_save_exec_prefix"
  8738. prefix="$acl_save_prefix"
  8739. # Check whether --with-libiconv-prefix was given.
  8740. if test "${with_libiconv_prefix+set}" = set; then
  8741. withval=$with_libiconv_prefix;
  8742. if test "X$withval" = "Xno"; then
  8743. use_additional=no
  8744. else
  8745. if test "X$withval" = "X"; then
  8746. acl_save_prefix="$prefix"
  8747. prefix="$acl_final_prefix"
  8748. acl_save_exec_prefix="$exec_prefix"
  8749. exec_prefix="$acl_final_exec_prefix"
  8750. eval additional_includedir=\"$includedir\"
  8751. eval additional_libdir=\"$libdir\"
  8752. exec_prefix="$acl_save_exec_prefix"
  8753. prefix="$acl_save_prefix"
  8754. else
  8755. additional_includedir="$withval/include"
  8756. additional_libdir="$withval/lib"
  8757. fi
  8758. fi
  8759. fi
  8760. LIBICONV=
  8761. LTLIBICONV=
  8762. INCICONV=
  8763. rpathdirs=
  8764. ltrpathdirs=
  8765. names_already_handled=
  8766. names_next_round='iconv '
  8767. while test -n "$names_next_round"; do
  8768. names_this_round="$names_next_round"
  8769. names_next_round=
  8770. for name in $names_this_round; do
  8771. already_handled=
  8772. for n in $names_already_handled; do
  8773. if test "$n" = "$name"; then
  8774. already_handled=yes
  8775. break
  8776. fi
  8777. done
  8778. if test -z "$already_handled"; then
  8779. names_already_handled="$names_already_handled $name"
  8780. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  8781. eval value=\"\$HAVE_LIB$uppername\"
  8782. if test -n "$value"; then
  8783. if test "$value" = yes; then
  8784. eval value=\"\$LIB$uppername\"
  8785. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  8786. eval value=\"\$LTLIB$uppername\"
  8787. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  8788. else
  8789. :
  8790. fi
  8791. else
  8792. found_dir=
  8793. found_la=
  8794. found_so=
  8795. found_a=
  8796. if test $use_additional = yes; then
  8797. if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
  8798. found_dir="$additional_libdir"
  8799. found_so="$additional_libdir/lib$name.$shlibext"
  8800. if test -f "$additional_libdir/lib$name.la"; then
  8801. found_la="$additional_libdir/lib$name.la"
  8802. fi
  8803. else
  8804. if test -f "$additional_libdir/lib$name.$libext"; then
  8805. found_dir="$additional_libdir"
  8806. found_a="$additional_libdir/lib$name.$libext"
  8807. if test -f "$additional_libdir/lib$name.la"; then
  8808. found_la="$additional_libdir/lib$name.la"
  8809. fi
  8810. fi
  8811. fi
  8812. fi
  8813. if test "X$found_dir" = "X"; then
  8814. for x in $LDFLAGS $LTLIBICONV; do
  8815. acl_save_prefix="$prefix"
  8816. prefix="$acl_final_prefix"
  8817. acl_save_exec_prefix="$exec_prefix"
  8818. exec_prefix="$acl_final_exec_prefix"
  8819. eval x=\"$x\"
  8820. exec_prefix="$acl_save_exec_prefix"
  8821. prefix="$acl_save_prefix"
  8822. case "$x" in
  8823. -L*)
  8824. dir=`echo "X$x" | sed -e 's/^X-L//'`
  8825. if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
  8826. found_dir="$dir"
  8827. found_so="$dir/lib$name.$shlibext"
  8828. if test -f "$dir/lib$name.la"; then
  8829. found_la="$dir/lib$name.la"
  8830. fi
  8831. else
  8832. if test -f "$dir/lib$name.$libext"; then
  8833. found_dir="$dir"
  8834. found_a="$dir/lib$name.$libext"
  8835. if test -f "$dir/lib$name.la"; then
  8836. found_la="$dir/lib$name.la"
  8837. fi
  8838. fi
  8839. fi
  8840. ;;
  8841. esac
  8842. if test "X$found_dir" != "X"; then
  8843. break
  8844. fi
  8845. done
  8846. fi
  8847. if test "X$found_dir" != "X"; then
  8848. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  8849. if test "X$found_so" != "X"; then
  8850. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  8851. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  8852. else
  8853. haveit=
  8854. for x in $ltrpathdirs; do
  8855. if test "X$x" = "X$found_dir"; then
  8856. haveit=yes
  8857. break
  8858. fi
  8859. done
  8860. if test -z "$haveit"; then
  8861. ltrpathdirs="$ltrpathdirs $found_dir"
  8862. fi
  8863. if test "$hardcode_direct" = yes; then
  8864. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  8865. else
  8866. if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  8867. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  8868. haveit=
  8869. for x in $rpathdirs; do
  8870. if test "X$x" = "X$found_dir"; then
  8871. haveit=yes
  8872. break
  8873. fi
  8874. done
  8875. if test -z "$haveit"; then
  8876. rpathdirs="$rpathdirs $found_dir"
  8877. fi
  8878. else
  8879. haveit=
  8880. for x in $LDFLAGS $LIBICONV; do
  8881. acl_save_prefix="$prefix"
  8882. prefix="$acl_final_prefix"
  8883. acl_save_exec_prefix="$exec_prefix"
  8884. exec_prefix="$acl_final_exec_prefix"
  8885. eval x=\"$x\"
  8886. exec_prefix="$acl_save_exec_prefix"
  8887. prefix="$acl_save_prefix"
  8888. if test "X$x" = "X-L$found_dir"; then
  8889. haveit=yes
  8890. break
  8891. fi
  8892. done
  8893. if test -z "$haveit"; then
  8894. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  8895. fi
  8896. if test "$hardcode_minus_L" != no; then
  8897. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  8898. else
  8899. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  8900. fi
  8901. fi
  8902. fi
  8903. fi
  8904. else
  8905. if test "X$found_a" != "X"; then
  8906. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  8907. else
  8908. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  8909. fi
  8910. fi
  8911. additional_includedir=
  8912. case "$found_dir" in
  8913. */lib | */lib/)
  8914. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  8915. additional_includedir="$basedir/include"
  8916. ;;
  8917. esac
  8918. if test "X$additional_includedir" != "X"; then
  8919. if test "X$additional_includedir" != "X/usr/include"; then
  8920. haveit=
  8921. if test "X$additional_includedir" = "X/usr/local/include"; then
  8922. if test -n "$GCC"; then
  8923. case $host_os in
  8924. linux*) haveit=yes;;
  8925. esac
  8926. fi
  8927. fi
  8928. if test -z "$haveit"; then
  8929. for x in $CPPFLAGS $INCICONV; do
  8930. acl_save_prefix="$prefix"
  8931. prefix="$acl_final_prefix"
  8932. acl_save_exec_prefix="$exec_prefix"
  8933. exec_prefix="$acl_final_exec_prefix"
  8934. eval x=\"$x\"
  8935. exec_prefix="$acl_save_exec_prefix"
  8936. prefix="$acl_save_prefix"
  8937. if test "X$x" = "X-I$additional_includedir"; then
  8938. haveit=yes
  8939. break
  8940. fi
  8941. done
  8942. if test -z "$haveit"; then
  8943. if test -d "$additional_includedir"; then
  8944. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  8945. fi
  8946. fi
  8947. fi
  8948. fi
  8949. fi
  8950. if test -n "$found_la"; then
  8951. save_libdir="$libdir"
  8952. case "$found_la" in
  8953. */* | *\\*) . "$found_la" ;;
  8954. *) . "./$found_la" ;;
  8955. esac
  8956. libdir="$save_libdir"
  8957. for dep in $dependency_libs; do
  8958. case "$dep" in
  8959. -L*)
  8960. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  8961. if test "X$additional_libdir" != "X/usr/lib"; then
  8962. haveit=
  8963. if test "X$additional_libdir" = "X/usr/local/lib"; then
  8964. if test -n "$GCC"; then
  8965. case $host_os in
  8966. linux*) haveit=yes;;
  8967. esac
  8968. fi
  8969. fi
  8970. if test -z "$haveit"; then
  8971. haveit=
  8972. for x in $LDFLAGS $LIBICONV; do
  8973. acl_save_prefix="$prefix"
  8974. prefix="$acl_final_prefix"
  8975. acl_save_exec_prefix="$exec_prefix"
  8976. exec_prefix="$acl_final_exec_prefix"
  8977. eval x=\"$x\"
  8978. exec_prefix="$acl_save_exec_prefix"
  8979. prefix="$acl_save_prefix"
  8980. if test "X$x" = "X-L$additional_libdir"; then
  8981. haveit=yes
  8982. break
  8983. fi
  8984. done
  8985. if test -z "$haveit"; then
  8986. if test -d "$additional_libdir"; then
  8987. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  8988. fi
  8989. fi
  8990. haveit=
  8991. for x in $LDFLAGS $LTLIBICONV; do
  8992. acl_save_prefix="$prefix"
  8993. prefix="$acl_final_prefix"
  8994. acl_save_exec_prefix="$exec_prefix"
  8995. exec_prefix="$acl_final_exec_prefix"
  8996. eval x=\"$x\"
  8997. exec_prefix="$acl_save_exec_prefix"
  8998. prefix="$acl_save_prefix"
  8999. if test "X$x" = "X-L$additional_libdir"; then
  9000. haveit=yes
  9001. break
  9002. fi
  9003. done
  9004. if test -z "$haveit"; then
  9005. if test -d "$additional_libdir"; then
  9006. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  9007. fi
  9008. fi
  9009. fi
  9010. fi
  9011. ;;
  9012. -R*)
  9013. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  9014. if test "$enable_rpath" != no; then
  9015. haveit=
  9016. for x in $rpathdirs; do
  9017. if test "X$x" = "X$dir"; then
  9018. haveit=yes
  9019. break
  9020. fi
  9021. done
  9022. if test -z "$haveit"; then
  9023. rpathdirs="$rpathdirs $dir"
  9024. fi
  9025. haveit=
  9026. for x in $ltrpathdirs; do
  9027. if test "X$x" = "X$dir"; then
  9028. haveit=yes
  9029. break
  9030. fi
  9031. done
  9032. if test -z "$haveit"; then
  9033. ltrpathdirs="$ltrpathdirs $dir"
  9034. fi
  9035. fi
  9036. ;;
  9037. -l*)
  9038. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  9039. ;;
  9040. *.la)
  9041. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  9042. ;;
  9043. *)
  9044. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  9045. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  9046. ;;
  9047. esac
  9048. done
  9049. fi
  9050. else
  9051. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  9052. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  9053. fi
  9054. fi
  9055. fi
  9056. done
  9057. done
  9058. if test "X$rpathdirs" != "X"; then
  9059. if test -n "$hardcode_libdir_separator"; then
  9060. alldirs=
  9061. for found_dir in $rpathdirs; do
  9062. alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  9063. done
  9064. acl_save_libdir="$libdir"
  9065. libdir="$alldirs"
  9066. eval flag=\"$hardcode_libdir_flag_spec\"
  9067. libdir="$acl_save_libdir"
  9068. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  9069. else
  9070. for found_dir in $rpathdirs; do
  9071. acl_save_libdir="$libdir"
  9072. libdir="$found_dir"
  9073. eval flag=\"$hardcode_libdir_flag_spec\"
  9074. libdir="$acl_save_libdir"
  9075. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  9076. done
  9077. fi
  9078. fi
  9079. if test "X$ltrpathdirs" != "X"; then
  9080. for found_dir in $ltrpathdirs; do
  9081. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  9082. done
  9083. fi
  9084. { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
  9085. echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
  9086. if test "${ac_cv_type_ptrdiff_t+set}" = set; then
  9087. echo $ECHO_N "(cached) $ECHO_C" >&6
  9088. else
  9089. cat >conftest.$ac_ext <<_ACEOF
  9090. /* confdefs.h. */
  9091. _ACEOF
  9092. cat confdefs.h >>conftest.$ac_ext
  9093. cat >>conftest.$ac_ext <<_ACEOF
  9094. /* end confdefs.h. */
  9095. $ac_includes_default
  9096. typedef ptrdiff_t ac__type_new_;
  9097. int
  9098. main ()
  9099. {
  9100. if ((ac__type_new_ *) 0)
  9101. return 0;
  9102. if (sizeof (ac__type_new_))
  9103. return 0;
  9104. ;
  9105. return 0;
  9106. }
  9107. _ACEOF
  9108. rm -f conftest.$ac_objext
  9109. if { (ac_try="$ac_compile"
  9110. case "(($ac_try" in
  9111. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9112. *) ac_try_echo=$ac_try;;
  9113. esac
  9114. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9115. (eval "$ac_compile") 2>conftest.er1
  9116. ac_status=$?
  9117. grep -v '^ *+' conftest.er1 >conftest.err
  9118. rm -f conftest.er1
  9119. cat conftest.err >&5
  9120. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9121. (exit $ac_status); } && {
  9122. test -z "$ac_cxx_werror_flag" ||
  9123. test ! -s conftest.err
  9124. } && test -s conftest.$ac_objext; then
  9125. ac_cv_type_ptrdiff_t=yes
  9126. else
  9127. echo "$as_me: failed program was:" >&5
  9128. sed 's/^/| /' conftest.$ac_ext >&5
  9129. ac_cv_type_ptrdiff_t=no
  9130. fi
  9131. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9132. fi
  9133. { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
  9134. echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
  9135. if test $ac_cv_type_ptrdiff_t = yes; then
  9136. :
  9137. else
  9138. cat >>confdefs.h <<\_ACEOF
  9139. #define ptrdiff_t long
  9140. _ACEOF
  9141. fi
  9142. for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
  9143. stdlib.h string.h unistd.h sys/param.h
  9144. do
  9145. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9146. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9147. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9148. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9149. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9150. echo $ECHO_N "(cached) $ECHO_C" >&6
  9151. fi
  9152. ac_res=`eval echo '${'$as_ac_Header'}'`
  9153. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9154. echo "${ECHO_T}$ac_res" >&6; }
  9155. else
  9156. # Is the header compilable?
  9157. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9158. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  9159. cat >conftest.$ac_ext <<_ACEOF
  9160. /* confdefs.h. */
  9161. _ACEOF
  9162. cat confdefs.h >>conftest.$ac_ext
  9163. cat >>conftest.$ac_ext <<_ACEOF
  9164. /* end confdefs.h. */
  9165. $ac_includes_default
  9166. #include <$ac_header>
  9167. _ACEOF
  9168. rm -f conftest.$ac_objext
  9169. if { (ac_try="$ac_compile"
  9170. case "(($ac_try" in
  9171. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9172. *) ac_try_echo=$ac_try;;
  9173. esac
  9174. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9175. (eval "$ac_compile") 2>conftest.er1
  9176. ac_status=$?
  9177. grep -v '^ *+' conftest.er1 >conftest.err
  9178. rm -f conftest.er1
  9179. cat conftest.err >&5
  9180. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9181. (exit $ac_status); } && {
  9182. test -z "$ac_cxx_werror_flag" ||
  9183. test ! -s conftest.err
  9184. } && test -s conftest.$ac_objext; then
  9185. ac_header_compiler=yes
  9186. else
  9187. echo "$as_me: failed program was:" >&5
  9188. sed 's/^/| /' conftest.$ac_ext >&5
  9189. ac_header_compiler=no
  9190. fi
  9191. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9192. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9193. echo "${ECHO_T}$ac_header_compiler" >&6; }
  9194. # Is the header present?
  9195. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9196. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  9197. cat >conftest.$ac_ext <<_ACEOF
  9198. /* confdefs.h. */
  9199. _ACEOF
  9200. cat confdefs.h >>conftest.$ac_ext
  9201. cat >>conftest.$ac_ext <<_ACEOF
  9202. /* end confdefs.h. */
  9203. #include <$ac_header>
  9204. _ACEOF
  9205. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9206. case "(($ac_try" in
  9207. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9208. *) ac_try_echo=$ac_try;;
  9209. esac
  9210. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9211. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9212. ac_status=$?
  9213. grep -v '^ *+' conftest.er1 >conftest.err
  9214. rm -f conftest.er1
  9215. cat conftest.err >&5
  9216. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9217. (exit $ac_status); } >/dev/null && {
  9218. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  9219. test ! -s conftest.err
  9220. }; then
  9221. ac_header_preproc=yes
  9222. else
  9223. echo "$as_me: failed program was:" >&5
  9224. sed 's/^/| /' conftest.$ac_ext >&5
  9225. ac_header_preproc=no
  9226. fi
  9227. rm -f conftest.err conftest.$ac_ext
  9228. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9229. echo "${ECHO_T}$ac_header_preproc" >&6; }
  9230. # So? What about this header?
  9231. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  9232. yes:no: )
  9233. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9234. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9235. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9236. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9237. ac_header_preproc=yes
  9238. ;;
  9239. no:yes:* )
  9240. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9241. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9242. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9243. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9244. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9245. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9246. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9247. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9248. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9249. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9250. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9251. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9252. ;;
  9253. esac
  9254. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9255. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9256. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9257. echo $ECHO_N "(cached) $ECHO_C" >&6
  9258. else
  9259. eval "$as_ac_Header=\$ac_header_preproc"
  9260. fi
  9261. ac_res=`eval echo '${'$as_ac_Header'}'`
  9262. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9263. echo "${ECHO_T}$ac_res" >&6; }
  9264. fi
  9265. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9266. cat >>confdefs.h <<_ACEOF
  9267. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9268. _ACEOF
  9269. fi
  9270. done
  9271. for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
  9272. mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
  9273. strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
  9274. __fsetlocking
  9275. do
  9276. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9277. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  9278. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  9279. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  9280. echo $ECHO_N "(cached) $ECHO_C" >&6
  9281. else
  9282. cat >conftest.$ac_ext <<_ACEOF
  9283. /* confdefs.h. */
  9284. _ACEOF
  9285. cat confdefs.h >>conftest.$ac_ext
  9286. cat >>conftest.$ac_ext <<_ACEOF
  9287. /* end confdefs.h. */
  9288. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9289. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9290. #define $ac_func innocuous_$ac_func
  9291. /* System header to define __stub macros and hopefully few prototypes,
  9292. which can conflict with char $ac_func (); below.
  9293. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9294. <limits.h> exists even on freestanding compilers. */
  9295. #ifdef __STDC__
  9296. # include <limits.h>
  9297. #else
  9298. # include <assert.h>
  9299. #endif
  9300. #undef $ac_func
  9301. /* Override any GCC internal prototype to avoid an error.
  9302. Use char because int might match the return type of a GCC
  9303. builtin and then its argument prototype would still apply. */
  9304. #ifdef __cplusplus
  9305. extern "C"
  9306. #endif
  9307. char $ac_func ();
  9308. /* The GNU C library defines this for functions which it implements
  9309. to always fail with ENOSYS. Some functions are actually named
  9310. something starting with __ and the normal name is an alias. */
  9311. #if defined __stub_$ac_func || defined __stub___$ac_func
  9312. choke me
  9313. #endif
  9314. int
  9315. main ()
  9316. {
  9317. return $ac_func ();
  9318. ;
  9319. return 0;
  9320. }
  9321. _ACEOF
  9322. rm -f conftest.$ac_objext conftest$ac_exeext
  9323. if { (ac_try="$ac_link"
  9324. case "(($ac_try" in
  9325. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9326. *) ac_try_echo=$ac_try;;
  9327. esac
  9328. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9329. (eval "$ac_link") 2>conftest.er1
  9330. ac_status=$?
  9331. grep -v '^ *+' conftest.er1 >conftest.err
  9332. rm -f conftest.er1
  9333. cat conftest.err >&5
  9334. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9335. (exit $ac_status); } && {
  9336. test -z "$ac_cxx_werror_flag" ||
  9337. test ! -s conftest.err
  9338. } && test -s conftest$ac_exeext &&
  9339. $as_test_x conftest$ac_exeext; then
  9340. eval "$as_ac_var=yes"
  9341. else
  9342. echo "$as_me: failed program was:" >&5
  9343. sed 's/^/| /' conftest.$ac_ext >&5
  9344. eval "$as_ac_var=no"
  9345. fi
  9346. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9347. conftest$ac_exeext conftest.$ac_ext
  9348. fi
  9349. ac_res=`eval echo '${'$as_ac_var'}'`
  9350. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9351. echo "${ECHO_T}$ac_res" >&6; }
  9352. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9353. cat >>confdefs.h <<_ACEOF
  9354. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9355. _ACEOF
  9356. fi
  9357. done
  9358. { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
  9359. echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
  9360. if test "${ac_cv_have_decl__snprintf+set}" = set; then
  9361. echo $ECHO_N "(cached) $ECHO_C" >&6
  9362. else
  9363. cat >conftest.$ac_ext <<_ACEOF
  9364. /* confdefs.h. */
  9365. _ACEOF
  9366. cat confdefs.h >>conftest.$ac_ext
  9367. cat >>conftest.$ac_ext <<_ACEOF
  9368. /* end confdefs.h. */
  9369. #include <stdio.h>
  9370. int
  9371. main ()
  9372. {
  9373. #ifndef _snprintf
  9374. char *p = (char *) _snprintf;
  9375. #endif
  9376. ;
  9377. return 0;
  9378. }
  9379. _ACEOF
  9380. rm -f conftest.$ac_objext
  9381. if { (ac_try="$ac_compile"
  9382. case "(($ac_try" in
  9383. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9384. *) ac_try_echo=$ac_try;;
  9385. esac
  9386. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9387. (eval "$ac_compile") 2>conftest.er1
  9388. ac_status=$?
  9389. grep -v '^ *+' conftest.er1 >conftest.err
  9390. rm -f conftest.er1
  9391. cat conftest.err >&5
  9392. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9393. (exit $ac_status); } && {
  9394. test -z "$ac_cxx_werror_flag" ||
  9395. test ! -s conftest.err
  9396. } && test -s conftest.$ac_objext; then
  9397. ac_cv_have_decl__snprintf=yes
  9398. else
  9399. echo "$as_me: failed program was:" >&5
  9400. sed 's/^/| /' conftest.$ac_ext >&5
  9401. ac_cv_have_decl__snprintf=no
  9402. fi
  9403. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9404. fi
  9405. { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
  9406. echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
  9407. if test $ac_cv_have_decl__snprintf = yes; then
  9408. gt_value=1
  9409. else
  9410. gt_value=0
  9411. fi
  9412. cat >>confdefs.h <<_ACEOF
  9413. #define HAVE_DECL__SNPRINTF $gt_value
  9414. _ACEOF
  9415. { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
  9416. echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
  9417. if test "${ac_cv_have_decl__snwprintf+set}" = set; then
  9418. echo $ECHO_N "(cached) $ECHO_C" >&6
  9419. else
  9420. cat >conftest.$ac_ext <<_ACEOF
  9421. /* confdefs.h. */
  9422. _ACEOF
  9423. cat confdefs.h >>conftest.$ac_ext
  9424. cat >>conftest.$ac_ext <<_ACEOF
  9425. /* end confdefs.h. */
  9426. #include <stdio.h>
  9427. int
  9428. main ()
  9429. {
  9430. #ifndef _snwprintf
  9431. char *p = (char *) _snwprintf;
  9432. #endif
  9433. ;
  9434. return 0;
  9435. }
  9436. _ACEOF
  9437. rm -f conftest.$ac_objext
  9438. if { (ac_try="$ac_compile"
  9439. case "(($ac_try" in
  9440. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9441. *) ac_try_echo=$ac_try;;
  9442. esac
  9443. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9444. (eval "$ac_compile") 2>conftest.er1
  9445. ac_status=$?
  9446. grep -v '^ *+' conftest.er1 >conftest.err
  9447. rm -f conftest.er1
  9448. cat conftest.err >&5
  9449. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9450. (exit $ac_status); } && {
  9451. test -z "$ac_cxx_werror_flag" ||
  9452. test ! -s conftest.err
  9453. } && test -s conftest.$ac_objext; then
  9454. ac_cv_have_decl__snwprintf=yes
  9455. else
  9456. echo "$as_me: failed program was:" >&5
  9457. sed 's/^/| /' conftest.$ac_ext >&5
  9458. ac_cv_have_decl__snwprintf=no
  9459. fi
  9460. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9461. fi
  9462. { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
  9463. echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
  9464. if test $ac_cv_have_decl__snwprintf = yes; then
  9465. gt_value=1
  9466. else
  9467. gt_value=0
  9468. fi
  9469. cat >>confdefs.h <<_ACEOF
  9470. #define HAVE_DECL__SNWPRINTF $gt_value
  9471. _ACEOF
  9472. { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
  9473. echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
  9474. if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
  9475. echo $ECHO_N "(cached) $ECHO_C" >&6
  9476. else
  9477. cat >conftest.$ac_ext <<_ACEOF
  9478. /* confdefs.h. */
  9479. _ACEOF
  9480. cat confdefs.h >>conftest.$ac_ext
  9481. cat >>conftest.$ac_ext <<_ACEOF
  9482. /* end confdefs.h. */
  9483. #include <stdio.h>
  9484. int
  9485. main ()
  9486. {
  9487. #ifndef feof_unlocked
  9488. char *p = (char *) feof_unlocked;
  9489. #endif
  9490. ;
  9491. return 0;
  9492. }
  9493. _ACEOF
  9494. rm -f conftest.$ac_objext
  9495. if { (ac_try="$ac_compile"
  9496. case "(($ac_try" in
  9497. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9498. *) ac_try_echo=$ac_try;;
  9499. esac
  9500. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9501. (eval "$ac_compile") 2>conftest.er1
  9502. ac_status=$?
  9503. grep -v '^ *+' conftest.er1 >conftest.err
  9504. rm -f conftest.er1
  9505. cat conftest.err >&5
  9506. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9507. (exit $ac_status); } && {
  9508. test -z "$ac_cxx_werror_flag" ||
  9509. test ! -s conftest.err
  9510. } && test -s conftest.$ac_objext; then
  9511. ac_cv_have_decl_feof_unlocked=yes
  9512. else
  9513. echo "$as_me: failed program was:" >&5
  9514. sed 's/^/| /' conftest.$ac_ext >&5
  9515. ac_cv_have_decl_feof_unlocked=no
  9516. fi
  9517. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9518. fi
  9519. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
  9520. echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
  9521. if test $ac_cv_have_decl_feof_unlocked = yes; then
  9522. gt_value=1
  9523. else
  9524. gt_value=0
  9525. fi
  9526. cat >>confdefs.h <<_ACEOF
  9527. #define HAVE_DECL_FEOF_UNLOCKED $gt_value
  9528. _ACEOF
  9529. { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
  9530. echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
  9531. if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
  9532. echo $ECHO_N "(cached) $ECHO_C" >&6
  9533. else
  9534. cat >conftest.$ac_ext <<_ACEOF
  9535. /* confdefs.h. */
  9536. _ACEOF
  9537. cat confdefs.h >>conftest.$ac_ext
  9538. cat >>conftest.$ac_ext <<_ACEOF
  9539. /* end confdefs.h. */
  9540. #include <stdio.h>
  9541. int
  9542. main ()
  9543. {
  9544. #ifndef fgets_unlocked
  9545. char *p = (char *) fgets_unlocked;
  9546. #endif
  9547. ;
  9548. return 0;
  9549. }
  9550. _ACEOF
  9551. rm -f conftest.$ac_objext
  9552. if { (ac_try="$ac_compile"
  9553. case "(($ac_try" in
  9554. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9555. *) ac_try_echo=$ac_try;;
  9556. esac
  9557. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9558. (eval "$ac_compile") 2>conftest.er1
  9559. ac_status=$?
  9560. grep -v '^ *+' conftest.er1 >conftest.err
  9561. rm -f conftest.er1
  9562. cat conftest.err >&5
  9563. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9564. (exit $ac_status); } && {
  9565. test -z "$ac_cxx_werror_flag" ||
  9566. test ! -s conftest.err
  9567. } && test -s conftest.$ac_objext; then
  9568. ac_cv_have_decl_fgets_unlocked=yes
  9569. else
  9570. echo "$as_me: failed program was:" >&5
  9571. sed 's/^/| /' conftest.$ac_ext >&5
  9572. ac_cv_have_decl_fgets_unlocked=no
  9573. fi
  9574. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9575. fi
  9576. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
  9577. echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
  9578. if test $ac_cv_have_decl_fgets_unlocked = yes; then
  9579. gt_value=1
  9580. else
  9581. gt_value=0
  9582. fi
  9583. cat >>confdefs.h <<_ACEOF
  9584. #define HAVE_DECL_FGETS_UNLOCKED $gt_value
  9585. _ACEOF
  9586. { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
  9587. echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
  9588. if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
  9589. echo $ECHO_N "(cached) $ECHO_C" >&6
  9590. else
  9591. cat >conftest.$ac_ext <<_ACEOF
  9592. /* confdefs.h. */
  9593. _ACEOF
  9594. cat confdefs.h >>conftest.$ac_ext
  9595. cat >>conftest.$ac_ext <<_ACEOF
  9596. /* end confdefs.h. */
  9597. #include <stdio.h>
  9598. int
  9599. main ()
  9600. {
  9601. #ifndef getc_unlocked
  9602. char *p = (char *) getc_unlocked;
  9603. #endif
  9604. ;
  9605. return 0;
  9606. }
  9607. _ACEOF
  9608. rm -f conftest.$ac_objext
  9609. if { (ac_try="$ac_compile"
  9610. case "(($ac_try" in
  9611. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9612. *) ac_try_echo=$ac_try;;
  9613. esac
  9614. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9615. (eval "$ac_compile") 2>conftest.er1
  9616. ac_status=$?
  9617. grep -v '^ *+' conftest.er1 >conftest.err
  9618. rm -f conftest.er1
  9619. cat conftest.err >&5
  9620. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9621. (exit $ac_status); } && {
  9622. test -z "$ac_cxx_werror_flag" ||
  9623. test ! -s conftest.err
  9624. } && test -s conftest.$ac_objext; then
  9625. ac_cv_have_decl_getc_unlocked=yes
  9626. else
  9627. echo "$as_me: failed program was:" >&5
  9628. sed 's/^/| /' conftest.$ac_ext >&5
  9629. ac_cv_have_decl_getc_unlocked=no
  9630. fi
  9631. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9632. fi
  9633. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
  9634. echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
  9635. if test $ac_cv_have_decl_getc_unlocked = yes; then
  9636. gt_value=1
  9637. else
  9638. gt_value=0
  9639. fi
  9640. cat >>confdefs.h <<_ACEOF
  9641. #define HAVE_DECL_GETC_UNLOCKED $gt_value
  9642. _ACEOF
  9643. case $gt_cv_func_printf_posix in
  9644. *yes) HAVE_POSIX_PRINTF=1 ;;
  9645. *) HAVE_POSIX_PRINTF=0 ;;
  9646. esac
  9647. if test "$ac_cv_func_asprintf" = yes; then
  9648. HAVE_ASPRINTF=1
  9649. else
  9650. HAVE_ASPRINTF=0
  9651. fi
  9652. if test "$ac_cv_func_snprintf" = yes; then
  9653. HAVE_SNPRINTF=1
  9654. else
  9655. HAVE_SNPRINTF=0
  9656. fi
  9657. if test "$ac_cv_func_wprintf" = yes; then
  9658. HAVE_WPRINTF=1
  9659. else
  9660. HAVE_WPRINTF=0
  9661. fi
  9662. am_save_CPPFLAGS="$CPPFLAGS"
  9663. for element in $INCICONV; do
  9664. haveit=
  9665. for x in $CPPFLAGS; do
  9666. acl_save_prefix="$prefix"
  9667. prefix="$acl_final_prefix"
  9668. acl_save_exec_prefix="$exec_prefix"
  9669. exec_prefix="$acl_final_exec_prefix"
  9670. eval x=\"$x\"
  9671. exec_prefix="$acl_save_exec_prefix"
  9672. prefix="$acl_save_prefix"
  9673. if test "X$x" = "X$element"; then
  9674. haveit=yes
  9675. break
  9676. fi
  9677. done
  9678. if test -z "$haveit"; then
  9679. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  9680. fi
  9681. done
  9682. { echo "$as_me:$LINENO: checking for iconv" >&5
  9683. echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
  9684. if test "${am_cv_func_iconv+set}" = set; then
  9685. echo $ECHO_N "(cached) $ECHO_C" >&6
  9686. else
  9687. am_cv_func_iconv="no, consider installing GNU libiconv"
  9688. am_cv_lib_iconv=no
  9689. cat >conftest.$ac_ext <<_ACEOF
  9690. /* confdefs.h. */
  9691. _ACEOF
  9692. cat confdefs.h >>conftest.$ac_ext
  9693. cat >>conftest.$ac_ext <<_ACEOF
  9694. /* end confdefs.h. */
  9695. #include <stdlib.h>
  9696. #include <iconv.h>
  9697. int
  9698. main ()
  9699. {
  9700. iconv_t cd = iconv_open("","");
  9701. iconv(cd,NULL,NULL,NULL,NULL);
  9702. iconv_close(cd);
  9703. ;
  9704. return 0;
  9705. }
  9706. _ACEOF
  9707. rm -f conftest.$ac_objext conftest$ac_exeext
  9708. if { (ac_try="$ac_link"
  9709. case "(($ac_try" in
  9710. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9711. *) ac_try_echo=$ac_try;;
  9712. esac
  9713. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9714. (eval "$ac_link") 2>conftest.er1
  9715. ac_status=$?
  9716. grep -v '^ *+' conftest.er1 >conftest.err
  9717. rm -f conftest.er1
  9718. cat conftest.err >&5
  9719. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9720. (exit $ac_status); } && {
  9721. test -z "$ac_cxx_werror_flag" ||
  9722. test ! -s conftest.err
  9723. } && test -s conftest$ac_exeext &&
  9724. $as_test_x conftest$ac_exeext; then
  9725. am_cv_func_iconv=yes
  9726. else
  9727. echo "$as_me: failed program was:" >&5
  9728. sed 's/^/| /' conftest.$ac_ext >&5
  9729. fi
  9730. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9731. conftest$ac_exeext conftest.$ac_ext
  9732. if test "$am_cv_func_iconv" != yes; then
  9733. am_save_LIBS="$LIBS"
  9734. LIBS="$LIBS $LIBICONV"
  9735. cat >conftest.$ac_ext <<_ACEOF
  9736. /* confdefs.h. */
  9737. _ACEOF
  9738. cat confdefs.h >>conftest.$ac_ext
  9739. cat >>conftest.$ac_ext <<_ACEOF
  9740. /* end confdefs.h. */
  9741. #include <stdlib.h>
  9742. #include <iconv.h>
  9743. int
  9744. main ()
  9745. {
  9746. iconv_t cd = iconv_open("","");
  9747. iconv(cd,NULL,NULL,NULL,NULL);
  9748. iconv_close(cd);
  9749. ;
  9750. return 0;
  9751. }
  9752. _ACEOF
  9753. rm -f conftest.$ac_objext conftest$ac_exeext
  9754. if { (ac_try="$ac_link"
  9755. case "(($ac_try" in
  9756. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9757. *) ac_try_echo=$ac_try;;
  9758. esac
  9759. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9760. (eval "$ac_link") 2>conftest.er1
  9761. ac_status=$?
  9762. grep -v '^ *+' conftest.er1 >conftest.err
  9763. rm -f conftest.er1
  9764. cat conftest.err >&5
  9765. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9766. (exit $ac_status); } && {
  9767. test -z "$ac_cxx_werror_flag" ||
  9768. test ! -s conftest.err
  9769. } && test -s conftest$ac_exeext &&
  9770. $as_test_x conftest$ac_exeext; then
  9771. am_cv_lib_iconv=yes
  9772. am_cv_func_iconv=yes
  9773. else
  9774. echo "$as_me: failed program was:" >&5
  9775. sed 's/^/| /' conftest.$ac_ext >&5
  9776. fi
  9777. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9778. conftest$ac_exeext conftest.$ac_ext
  9779. LIBS="$am_save_LIBS"
  9780. fi
  9781. fi
  9782. { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
  9783. echo "${ECHO_T}$am_cv_func_iconv" >&6; }
  9784. if test "$am_cv_func_iconv" = yes; then
  9785. cat >>confdefs.h <<\_ACEOF
  9786. #define HAVE_ICONV 1
  9787. _ACEOF
  9788. fi
  9789. if test "$am_cv_lib_iconv" = yes; then
  9790. { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
  9791. echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
  9792. { echo "$as_me:$LINENO: result: $LIBICONV" >&5
  9793. echo "${ECHO_T}$LIBICONV" >&6; }
  9794. else
  9795. CPPFLAGS="$am_save_CPPFLAGS"
  9796. LIBICONV=
  9797. LTLIBICONV=
  9798. fi
  9799. if test "$am_cv_func_iconv" = yes; then
  9800. { echo "$as_me:$LINENO: checking for iconv declaration" >&5
  9801. echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
  9802. if test "${am_cv_proto_iconv+set}" = set; then
  9803. echo $ECHO_N "(cached) $ECHO_C" >&6
  9804. else
  9805. cat >conftest.$ac_ext <<_ACEOF
  9806. /* confdefs.h. */
  9807. _ACEOF
  9808. cat confdefs.h >>conftest.$ac_ext
  9809. cat >>conftest.$ac_ext <<_ACEOF
  9810. /* end confdefs.h. */
  9811. #include <stdlib.h>
  9812. #include <iconv.h>
  9813. extern
  9814. #ifdef __cplusplus
  9815. "C"
  9816. #endif
  9817. #if defined(__STDC__) || defined(__cplusplus)
  9818. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  9819. #else
  9820. size_t iconv();
  9821. #endif
  9822. int
  9823. main ()
  9824. {
  9825. ;
  9826. return 0;
  9827. }
  9828. _ACEOF
  9829. rm -f conftest.$ac_objext
  9830. if { (ac_try="$ac_compile"
  9831. case "(($ac_try" in
  9832. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9833. *) ac_try_echo=$ac_try;;
  9834. esac
  9835. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9836. (eval "$ac_compile") 2>conftest.er1
  9837. ac_status=$?
  9838. grep -v '^ *+' conftest.er1 >conftest.err
  9839. rm -f conftest.er1
  9840. cat conftest.err >&5
  9841. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9842. (exit $ac_status); } && {
  9843. test -z "$ac_cxx_werror_flag" ||
  9844. test ! -s conftest.err
  9845. } && test -s conftest.$ac_objext; then
  9846. am_cv_proto_iconv_arg1=""
  9847. else
  9848. echo "$as_me: failed program was:" >&5
  9849. sed 's/^/| /' conftest.$ac_ext >&5
  9850. am_cv_proto_iconv_arg1="const"
  9851. fi
  9852. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9853. am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
  9854. fi
  9855. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  9856. { echo "$as_me:$LINENO: result: ${ac_t:-
  9857. }$am_cv_proto_iconv" >&5
  9858. echo "${ECHO_T}${ac_t:-
  9859. }$am_cv_proto_iconv" >&6; }
  9860. cat >>confdefs.h <<_ACEOF
  9861. #define ICONV_CONST $am_cv_proto_iconv_arg1
  9862. _ACEOF
  9863. fi
  9864. { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
  9865. echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
  9866. if test "${am_cv_langinfo_codeset+set}" = set; then
  9867. echo $ECHO_N "(cached) $ECHO_C" >&6
  9868. else
  9869. cat >conftest.$ac_ext <<_ACEOF
  9870. /* confdefs.h. */
  9871. _ACEOF
  9872. cat confdefs.h >>conftest.$ac_ext
  9873. cat >>conftest.$ac_ext <<_ACEOF
  9874. /* end confdefs.h. */
  9875. #include <langinfo.h>
  9876. int
  9877. main ()
  9878. {
  9879. char* cs = nl_langinfo(CODESET);
  9880. ;
  9881. return 0;
  9882. }
  9883. _ACEOF
  9884. rm -f conftest.$ac_objext conftest$ac_exeext
  9885. if { (ac_try="$ac_link"
  9886. case "(($ac_try" in
  9887. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9888. *) ac_try_echo=$ac_try;;
  9889. esac
  9890. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9891. (eval "$ac_link") 2>conftest.er1
  9892. ac_status=$?
  9893. grep -v '^ *+' conftest.er1 >conftest.err
  9894. rm -f conftest.er1
  9895. cat conftest.err >&5
  9896. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9897. (exit $ac_status); } && {
  9898. test -z "$ac_cxx_werror_flag" ||
  9899. test ! -s conftest.err
  9900. } && test -s conftest$ac_exeext &&
  9901. $as_test_x conftest$ac_exeext; then
  9902. am_cv_langinfo_codeset=yes
  9903. else
  9904. echo "$as_me: failed program was:" >&5
  9905. sed 's/^/| /' conftest.$ac_ext >&5
  9906. am_cv_langinfo_codeset=no
  9907. fi
  9908. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9909. conftest$ac_exeext conftest.$ac_ext
  9910. fi
  9911. { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
  9912. echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
  9913. if test $am_cv_langinfo_codeset = yes; then
  9914. cat >>confdefs.h <<\_ACEOF
  9915. #define HAVE_LANGINFO_CODESET 1
  9916. _ACEOF
  9917. fi
  9918. if test $ac_cv_header_locale_h = yes; then
  9919. { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
  9920. echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
  9921. if test "${am_cv_val_LC_MESSAGES+set}" = set; then
  9922. echo $ECHO_N "(cached) $ECHO_C" >&6
  9923. else
  9924. cat >conftest.$ac_ext <<_ACEOF
  9925. /* confdefs.h. */
  9926. _ACEOF
  9927. cat confdefs.h >>conftest.$ac_ext
  9928. cat >>conftest.$ac_ext <<_ACEOF
  9929. /* end confdefs.h. */
  9930. #include <locale.h>
  9931. int
  9932. main ()
  9933. {
  9934. return LC_MESSAGES
  9935. ;
  9936. return 0;
  9937. }
  9938. _ACEOF
  9939. rm -f conftest.$ac_objext conftest$ac_exeext
  9940. if { (ac_try="$ac_link"
  9941. case "(($ac_try" in
  9942. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9943. *) ac_try_echo=$ac_try;;
  9944. esac
  9945. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9946. (eval "$ac_link") 2>conftest.er1
  9947. ac_status=$?
  9948. grep -v '^ *+' conftest.er1 >conftest.err
  9949. rm -f conftest.er1
  9950. cat conftest.err >&5
  9951. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9952. (exit $ac_status); } && {
  9953. test -z "$ac_cxx_werror_flag" ||
  9954. test ! -s conftest.err
  9955. } && test -s conftest$ac_exeext &&
  9956. $as_test_x conftest$ac_exeext; then
  9957. am_cv_val_LC_MESSAGES=yes
  9958. else
  9959. echo "$as_me: failed program was:" >&5
  9960. sed 's/^/| /' conftest.$ac_ext >&5
  9961. am_cv_val_LC_MESSAGES=no
  9962. fi
  9963. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9964. conftest$ac_exeext conftest.$ac_ext
  9965. fi
  9966. { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
  9967. echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
  9968. if test $am_cv_val_LC_MESSAGES = yes; then
  9969. cat >>confdefs.h <<\_ACEOF
  9970. #define HAVE_LC_MESSAGES 1
  9971. _ACEOF
  9972. fi
  9973. fi
  9974. for ac_prog in bison
  9975. do
  9976. # Extract the first word of "$ac_prog", so it can be a program name with args.
  9977. set dummy $ac_prog; ac_word=$2
  9978. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  9979. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9980. if test "${ac_cv_prog_INTLBISON+set}" = set; then
  9981. echo $ECHO_N "(cached) $ECHO_C" >&6
  9982. else
  9983. if test -n "$INTLBISON"; then
  9984. ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
  9985. else
  9986. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9987. for as_dir in $PATH
  9988. do
  9989. IFS=$as_save_IFS
  9990. test -z "$as_dir" && as_dir=.
  9991. for ac_exec_ext in '' $ac_executable_extensions; do
  9992. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9993. ac_cv_prog_INTLBISON="$ac_prog"
  9994. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9995. break 2
  9996. fi
  9997. done
  9998. done
  9999. IFS=$as_save_IFS
  10000. fi
  10001. fi
  10002. INTLBISON=$ac_cv_prog_INTLBISON
  10003. if test -n "$INTLBISON"; then
  10004. { echo "$as_me:$LINENO: result: $INTLBISON" >&5
  10005. echo "${ECHO_T}$INTLBISON" >&6; }
  10006. else
  10007. { echo "$as_me:$LINENO: result: no" >&5
  10008. echo "${ECHO_T}no" >&6; }
  10009. fi
  10010. test -n "$INTLBISON" && break
  10011. done
  10012. if test -z "$INTLBISON"; then
  10013. ac_verc_fail=yes
  10014. else
  10015. { echo "$as_me:$LINENO: checking version of bison" >&5
  10016. echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
  10017. ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
  10018. case $ac_prog_version in
  10019. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  10020. 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
  10021. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  10022. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  10023. esac
  10024. { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
  10025. echo "${ECHO_T}$ac_prog_version" >&6; }
  10026. fi
  10027. if test $ac_verc_fail = yes; then
  10028. INTLBISON=:
  10029. fi
  10030. { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  10031. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
  10032. # Check whether --enable-nls was given.
  10033. if test "${enable_nls+set}" = set; then
  10034. enableval=$enable_nls; USE_NLS=$enableval
  10035. else
  10036. USE_NLS=yes
  10037. fi
  10038. { echo "$as_me:$LINENO: result: $USE_NLS" >&5
  10039. echo "${ECHO_T}$USE_NLS" >&6; }
  10040. BUILD_INCLUDED_LIBINTL=no
  10041. USE_INCLUDED_LIBINTL=no
  10042. LIBINTL=
  10043. LTLIBINTL=
  10044. POSUB=
  10045. if test "$USE_NLS" = "yes"; then
  10046. gt_use_preinstalled_gnugettext=no
  10047. { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
  10048. echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
  10049. # Check whether --with-included-gettext was given.
  10050. if test "${with_included_gettext+set}" = set; then
  10051. withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
  10052. else
  10053. nls_cv_force_use_gnu_gettext=no
  10054. fi
  10055. { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
  10056. echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
  10057. nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  10058. if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  10059. { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
  10060. echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
  10061. if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
  10062. echo $ECHO_N "(cached) $ECHO_C" >&6
  10063. else
  10064. cat >conftest.$ac_ext <<_ACEOF
  10065. /* confdefs.h. */
  10066. _ACEOF
  10067. cat confdefs.h >>conftest.$ac_ext
  10068. cat >>conftest.$ac_ext <<_ACEOF
  10069. /* end confdefs.h. */
  10070. #include <libintl.h>
  10071. extern int _nl_msg_cat_cntr;
  10072. extern int *_nl_domain_bindings;
  10073. int
  10074. main ()
  10075. {
  10076. bindtextdomain ("", "");
  10077. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
  10078. ;
  10079. return 0;
  10080. }
  10081. _ACEOF
  10082. rm -f conftest.$ac_objext conftest$ac_exeext
  10083. if { (ac_try="$ac_link"
  10084. case "(($ac_try" in
  10085. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10086. *) ac_try_echo=$ac_try;;
  10087. esac
  10088. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10089. (eval "$ac_link") 2>conftest.er1
  10090. ac_status=$?
  10091. grep -v '^ *+' conftest.er1 >conftest.err
  10092. rm -f conftest.er1
  10093. cat conftest.err >&5
  10094. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10095. (exit $ac_status); } && {
  10096. test -z "$ac_cxx_werror_flag" ||
  10097. test ! -s conftest.err
  10098. } && test -s conftest$ac_exeext &&
  10099. $as_test_x conftest$ac_exeext; then
  10100. gt_cv_func_gnugettext1_libc=yes
  10101. else
  10102. echo "$as_me: failed program was:" >&5
  10103. sed 's/^/| /' conftest.$ac_ext >&5
  10104. gt_cv_func_gnugettext1_libc=no
  10105. fi
  10106. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10107. conftest$ac_exeext conftest.$ac_ext
  10108. fi
  10109. { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
  10110. echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
  10111. if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
  10112. use_additional=yes
  10113. acl_save_prefix="$prefix"
  10114. prefix="$acl_final_prefix"
  10115. acl_save_exec_prefix="$exec_prefix"
  10116. exec_prefix="$acl_final_exec_prefix"
  10117. eval additional_includedir=\"$includedir\"
  10118. eval additional_libdir=\"$libdir\"
  10119. exec_prefix="$acl_save_exec_prefix"
  10120. prefix="$acl_save_prefix"
  10121. # Check whether --with-libintl-prefix was given.
  10122. if test "${with_libintl_prefix+set}" = set; then
  10123. withval=$with_libintl_prefix;
  10124. if test "X$withval" = "Xno"; then
  10125. use_additional=no
  10126. else
  10127. if test "X$withval" = "X"; then
  10128. acl_save_prefix="$prefix"
  10129. prefix="$acl_final_prefix"
  10130. acl_save_exec_prefix="$exec_prefix"
  10131. exec_prefix="$acl_final_exec_prefix"
  10132. eval additional_includedir=\"$includedir\"
  10133. eval additional_libdir=\"$libdir\"
  10134. exec_prefix="$acl_save_exec_prefix"
  10135. prefix="$acl_save_prefix"
  10136. else
  10137. additional_includedir="$withval/include"
  10138. additional_libdir="$withval/lib"
  10139. fi
  10140. fi
  10141. fi
  10142. LIBINTL=
  10143. LTLIBINTL=
  10144. INCINTL=
  10145. rpathdirs=
  10146. ltrpathdirs=
  10147. names_already_handled=
  10148. names_next_round='intl '
  10149. while test -n "$names_next_round"; do
  10150. names_this_round="$names_next_round"
  10151. names_next_round=
  10152. for name in $names_this_round; do
  10153. already_handled=
  10154. for n in $names_already_handled; do
  10155. if test "$n" = "$name"; then
  10156. already_handled=yes
  10157. break
  10158. fi
  10159. done
  10160. if test -z "$already_handled"; then
  10161. names_already_handled="$names_already_handled $name"
  10162. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  10163. eval value=\"\$HAVE_LIB$uppername\"
  10164. if test -n "$value"; then
  10165. if test "$value" = yes; then
  10166. eval value=\"\$LIB$uppername\"
  10167. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  10168. eval value=\"\$LTLIB$uppername\"
  10169. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  10170. else
  10171. :
  10172. fi
  10173. else
  10174. found_dir=
  10175. found_la=
  10176. found_so=
  10177. found_a=
  10178. if test $use_additional = yes; then
  10179. if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
  10180. found_dir="$additional_libdir"
  10181. found_so="$additional_libdir/lib$name.$shlibext"
  10182. if test -f "$additional_libdir/lib$name.la"; then
  10183. found_la="$additional_libdir/lib$name.la"
  10184. fi
  10185. else
  10186. if test -f "$additional_libdir/lib$name.$libext"; then
  10187. found_dir="$additional_libdir"
  10188. found_a="$additional_libdir/lib$name.$libext"
  10189. if test -f "$additional_libdir/lib$name.la"; then
  10190. found_la="$additional_libdir/lib$name.la"
  10191. fi
  10192. fi
  10193. fi
  10194. fi
  10195. if test "X$found_dir" = "X"; then
  10196. for x in $LDFLAGS $LTLIBINTL; do
  10197. acl_save_prefix="$prefix"
  10198. prefix="$acl_final_prefix"
  10199. acl_save_exec_prefix="$exec_prefix"
  10200. exec_prefix="$acl_final_exec_prefix"
  10201. eval x=\"$x\"
  10202. exec_prefix="$acl_save_exec_prefix"
  10203. prefix="$acl_save_prefix"
  10204. case "$x" in
  10205. -L*)
  10206. dir=`echo "X$x" | sed -e 's/^X-L//'`
  10207. if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
  10208. found_dir="$dir"
  10209. found_so="$dir/lib$name.$shlibext"
  10210. if test -f "$dir/lib$name.la"; then
  10211. found_la="$dir/lib$name.la"
  10212. fi
  10213. else
  10214. if test -f "$dir/lib$name.$libext"; then
  10215. found_dir="$dir"
  10216. found_a="$dir/lib$name.$libext"
  10217. if test -f "$dir/lib$name.la"; then
  10218. found_la="$dir/lib$name.la"
  10219. fi
  10220. fi
  10221. fi
  10222. ;;
  10223. esac
  10224. if test "X$found_dir" != "X"; then
  10225. break
  10226. fi
  10227. done
  10228. fi
  10229. if test "X$found_dir" != "X"; then
  10230. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  10231. if test "X$found_so" != "X"; then
  10232. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  10233. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  10234. else
  10235. haveit=
  10236. for x in $ltrpathdirs; do
  10237. if test "X$x" = "X$found_dir"; then
  10238. haveit=yes
  10239. break
  10240. fi
  10241. done
  10242. if test -z "$haveit"; then
  10243. ltrpathdirs="$ltrpathdirs $found_dir"
  10244. fi
  10245. if test "$hardcode_direct" = yes; then
  10246. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  10247. else
  10248. if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  10249. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  10250. haveit=
  10251. for x in $rpathdirs; do
  10252. if test "X$x" = "X$found_dir"; then
  10253. haveit=yes
  10254. break
  10255. fi
  10256. done
  10257. if test -z "$haveit"; then
  10258. rpathdirs="$rpathdirs $found_dir"
  10259. fi
  10260. else
  10261. haveit=
  10262. for x in $LDFLAGS $LIBINTL; do
  10263. acl_save_prefix="$prefix"
  10264. prefix="$acl_final_prefix"
  10265. acl_save_exec_prefix="$exec_prefix"
  10266. exec_prefix="$acl_final_exec_prefix"
  10267. eval x=\"$x\"
  10268. exec_prefix="$acl_save_exec_prefix"
  10269. prefix="$acl_save_prefix"
  10270. if test "X$x" = "X-L$found_dir"; then
  10271. haveit=yes
  10272. break
  10273. fi
  10274. done
  10275. if test -z "$haveit"; then
  10276. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  10277. fi
  10278. if test "$hardcode_minus_L" != no; then
  10279. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  10280. else
  10281. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  10282. fi
  10283. fi
  10284. fi
  10285. fi
  10286. else
  10287. if test "X$found_a" != "X"; then
  10288. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  10289. else
  10290. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  10291. fi
  10292. fi
  10293. additional_includedir=
  10294. case "$found_dir" in
  10295. */lib | */lib/)
  10296. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  10297. additional_includedir="$basedir/include"
  10298. ;;
  10299. esac
  10300. if test "X$additional_includedir" != "X"; then
  10301. if test "X$additional_includedir" != "X/usr/include"; then
  10302. haveit=
  10303. if test "X$additional_includedir" = "X/usr/local/include"; then
  10304. if test -n "$GCC"; then
  10305. case $host_os in
  10306. linux*) haveit=yes;;
  10307. esac
  10308. fi
  10309. fi
  10310. if test -z "$haveit"; then
  10311. for x in $CPPFLAGS $INCINTL; do
  10312. acl_save_prefix="$prefix"
  10313. prefix="$acl_final_prefix"
  10314. acl_save_exec_prefix="$exec_prefix"
  10315. exec_prefix="$acl_final_exec_prefix"
  10316. eval x=\"$x\"
  10317. exec_prefix="$acl_save_exec_prefix"
  10318. prefix="$acl_save_prefix"
  10319. if test "X$x" = "X-I$additional_includedir"; then
  10320. haveit=yes
  10321. break
  10322. fi
  10323. done
  10324. if test -z "$haveit"; then
  10325. if test -d "$additional_includedir"; then
  10326. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  10327. fi
  10328. fi
  10329. fi
  10330. fi
  10331. fi
  10332. if test -n "$found_la"; then
  10333. save_libdir="$libdir"
  10334. case "$found_la" in
  10335. */* | *\\*) . "$found_la" ;;
  10336. *) . "./$found_la" ;;
  10337. esac
  10338. libdir="$save_libdir"
  10339. for dep in $dependency_libs; do
  10340. case "$dep" in
  10341. -L*)
  10342. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  10343. if test "X$additional_libdir" != "X/usr/lib"; then
  10344. haveit=
  10345. if test "X$additional_libdir" = "X/usr/local/lib"; then
  10346. if test -n "$GCC"; then
  10347. case $host_os in
  10348. linux*) haveit=yes;;
  10349. esac
  10350. fi
  10351. fi
  10352. if test -z "$haveit"; then
  10353. haveit=
  10354. for x in $LDFLAGS $LIBINTL; do
  10355. acl_save_prefix="$prefix"
  10356. prefix="$acl_final_prefix"
  10357. acl_save_exec_prefix="$exec_prefix"
  10358. exec_prefix="$acl_final_exec_prefix"
  10359. eval x=\"$x\"
  10360. exec_prefix="$acl_save_exec_prefix"
  10361. prefix="$acl_save_prefix"
  10362. if test "X$x" = "X-L$additional_libdir"; then
  10363. haveit=yes
  10364. break
  10365. fi
  10366. done
  10367. if test -z "$haveit"; then
  10368. if test -d "$additional_libdir"; then
  10369. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  10370. fi
  10371. fi
  10372. haveit=
  10373. for x in $LDFLAGS $LTLIBINTL; do
  10374. acl_save_prefix="$prefix"
  10375. prefix="$acl_final_prefix"
  10376. acl_save_exec_prefix="$exec_prefix"
  10377. exec_prefix="$acl_final_exec_prefix"
  10378. eval x=\"$x\"
  10379. exec_prefix="$acl_save_exec_prefix"
  10380. prefix="$acl_save_prefix"
  10381. if test "X$x" = "X-L$additional_libdir"; then
  10382. haveit=yes
  10383. break
  10384. fi
  10385. done
  10386. if test -z "$haveit"; then
  10387. if test -d "$additional_libdir"; then
  10388. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  10389. fi
  10390. fi
  10391. fi
  10392. fi
  10393. ;;
  10394. -R*)
  10395. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  10396. if test "$enable_rpath" != no; then
  10397. haveit=
  10398. for x in $rpathdirs; do
  10399. if test "X$x" = "X$dir"; then
  10400. haveit=yes
  10401. break
  10402. fi
  10403. done
  10404. if test -z "$haveit"; then
  10405. rpathdirs="$rpathdirs $dir"
  10406. fi
  10407. haveit=
  10408. for x in $ltrpathdirs; do
  10409. if test "X$x" = "X$dir"; then
  10410. haveit=yes
  10411. break
  10412. fi
  10413. done
  10414. if test -z "$haveit"; then
  10415. ltrpathdirs="$ltrpathdirs $dir"
  10416. fi
  10417. fi
  10418. ;;
  10419. -l*)
  10420. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  10421. ;;
  10422. *.la)
  10423. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  10424. ;;
  10425. *)
  10426. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  10427. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  10428. ;;
  10429. esac
  10430. done
  10431. fi
  10432. else
  10433. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  10434. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  10435. fi
  10436. fi
  10437. fi
  10438. done
  10439. done
  10440. if test "X$rpathdirs" != "X"; then
  10441. if test -n "$hardcode_libdir_separator"; then
  10442. alldirs=
  10443. for found_dir in $rpathdirs; do
  10444. alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  10445. done
  10446. acl_save_libdir="$libdir"
  10447. libdir="$alldirs"
  10448. eval flag=\"$hardcode_libdir_flag_spec\"
  10449. libdir="$acl_save_libdir"
  10450. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  10451. else
  10452. for found_dir in $rpathdirs; do
  10453. acl_save_libdir="$libdir"
  10454. libdir="$found_dir"
  10455. eval flag=\"$hardcode_libdir_flag_spec\"
  10456. libdir="$acl_save_libdir"
  10457. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  10458. done
  10459. fi
  10460. fi
  10461. if test "X$ltrpathdirs" != "X"; then
  10462. for found_dir in $ltrpathdirs; do
  10463. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  10464. done
  10465. fi
  10466. { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
  10467. echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
  10468. if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
  10469. echo $ECHO_N "(cached) $ECHO_C" >&6
  10470. else
  10471. gt_save_CPPFLAGS="$CPPFLAGS"
  10472. CPPFLAGS="$CPPFLAGS $INCINTL"
  10473. gt_save_LIBS="$LIBS"
  10474. LIBS="$LIBS $LIBINTL"
  10475. cat >conftest.$ac_ext <<_ACEOF
  10476. /* confdefs.h. */
  10477. _ACEOF
  10478. cat confdefs.h >>conftest.$ac_ext
  10479. cat >>conftest.$ac_ext <<_ACEOF
  10480. /* end confdefs.h. */
  10481. #include <libintl.h>
  10482. extern int _nl_msg_cat_cntr;
  10483. extern
  10484. #ifdef __cplusplus
  10485. "C"
  10486. #endif
  10487. const char *_nl_expand_alias ();
  10488. int
  10489. main ()
  10490. {
  10491. bindtextdomain ("", "");
  10492. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
  10493. ;
  10494. return 0;
  10495. }
  10496. _ACEOF
  10497. rm -f conftest.$ac_objext conftest$ac_exeext
  10498. if { (ac_try="$ac_link"
  10499. case "(($ac_try" in
  10500. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10501. *) ac_try_echo=$ac_try;;
  10502. esac
  10503. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10504. (eval "$ac_link") 2>conftest.er1
  10505. ac_status=$?
  10506. grep -v '^ *+' conftest.er1 >conftest.err
  10507. rm -f conftest.er1
  10508. cat conftest.err >&5
  10509. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10510. (exit $ac_status); } && {
  10511. test -z "$ac_cxx_werror_flag" ||
  10512. test ! -s conftest.err
  10513. } && test -s conftest$ac_exeext &&
  10514. $as_test_x conftest$ac_exeext; then
  10515. gt_cv_func_gnugettext1_libintl=yes
  10516. else
  10517. echo "$as_me: failed program was:" >&5
  10518. sed 's/^/| /' conftest.$ac_ext >&5
  10519. gt_cv_func_gnugettext1_libintl=no
  10520. fi
  10521. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10522. conftest$ac_exeext conftest.$ac_ext
  10523. if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
  10524. LIBS="$LIBS $LIBICONV"
  10525. cat >conftest.$ac_ext <<_ACEOF
  10526. /* confdefs.h. */
  10527. _ACEOF
  10528. cat confdefs.h >>conftest.$ac_ext
  10529. cat >>conftest.$ac_ext <<_ACEOF
  10530. /* end confdefs.h. */
  10531. #include <libintl.h>
  10532. extern int _nl_msg_cat_cntr;
  10533. extern
  10534. #ifdef __cplusplus
  10535. "C"
  10536. #endif
  10537. const char *_nl_expand_alias ();
  10538. int
  10539. main ()
  10540. {
  10541. bindtextdomain ("", "");
  10542. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
  10543. ;
  10544. return 0;
  10545. }
  10546. _ACEOF
  10547. rm -f conftest.$ac_objext conftest$ac_exeext
  10548. if { (ac_try="$ac_link"
  10549. case "(($ac_try" in
  10550. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10551. *) ac_try_echo=$ac_try;;
  10552. esac
  10553. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10554. (eval "$ac_link") 2>conftest.er1
  10555. ac_status=$?
  10556. grep -v '^ *+' conftest.er1 >conftest.err
  10557. rm -f conftest.er1
  10558. cat conftest.err >&5
  10559. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10560. (exit $ac_status); } && {
  10561. test -z "$ac_cxx_werror_flag" ||
  10562. test ! -s conftest.err
  10563. } && test -s conftest$ac_exeext &&
  10564. $as_test_x conftest$ac_exeext; then
  10565. LIBINTL="$LIBINTL $LIBICONV"
  10566. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  10567. gt_cv_func_gnugettext1_libintl=yes
  10568. else
  10569. echo "$as_me: failed program was:" >&5
  10570. sed 's/^/| /' conftest.$ac_ext >&5
  10571. fi
  10572. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10573. conftest$ac_exeext conftest.$ac_ext
  10574. fi
  10575. CPPFLAGS="$gt_save_CPPFLAGS"
  10576. LIBS="$gt_save_LIBS"
  10577. fi
  10578. { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
  10579. echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
  10580. fi
  10581. if test "$gt_cv_func_gnugettext1_libc" = "yes" \
  10582. || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
  10583. && test "$PACKAGE" != gettext-runtime \
  10584. && test "$PACKAGE" != gettext-tools; }; then
  10585. gt_use_preinstalled_gnugettext=yes
  10586. else
  10587. LIBINTL=
  10588. LTLIBINTL=
  10589. INCINTL=
  10590. fi
  10591. if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  10592. nls_cv_use_gnu_gettext=yes
  10593. fi
  10594. fi
  10595. if test "$nls_cv_use_gnu_gettext" = "yes"; then
  10596. BUILD_INCLUDED_LIBINTL=yes
  10597. USE_INCLUDED_LIBINTL=yes
  10598. LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
  10599. LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
  10600. LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  10601. fi
  10602. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  10603. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  10604. CATOBJEXT=.gmo
  10605. fi
  10606. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  10607. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  10608. cat >>confdefs.h <<\_ACEOF
  10609. #define ENABLE_NLS 1
  10610. _ACEOF
  10611. else
  10612. USE_NLS=no
  10613. fi
  10614. fi
  10615. { echo "$as_me:$LINENO: checking whether to use NLS" >&5
  10616. echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
  10617. { echo "$as_me:$LINENO: result: $USE_NLS" >&5
  10618. echo "${ECHO_T}$USE_NLS" >&6; }
  10619. if test "$USE_NLS" = "yes"; then
  10620. { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
  10621. echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
  10622. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  10623. if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
  10624. gt_source="external libintl"
  10625. else
  10626. gt_source="libc"
  10627. fi
  10628. else
  10629. gt_source="included intl directory"
  10630. fi
  10631. { echo "$as_me:$LINENO: result: $gt_source" >&5
  10632. echo "${ECHO_T}$gt_source" >&6; }
  10633. fi
  10634. if test "$USE_NLS" = "yes"; then
  10635. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  10636. if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
  10637. { echo "$as_me:$LINENO: checking how to link with libintl" >&5
  10638. echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
  10639. { echo "$as_me:$LINENO: result: $LIBINTL" >&5
  10640. echo "${ECHO_T}$LIBINTL" >&6; }
  10641. for element in $INCINTL; do
  10642. haveit=
  10643. for x in $CPPFLAGS; do
  10644. acl_save_prefix="$prefix"
  10645. prefix="$acl_final_prefix"
  10646. acl_save_exec_prefix="$exec_prefix"
  10647. exec_prefix="$acl_final_exec_prefix"
  10648. eval x=\"$x\"
  10649. exec_prefix="$acl_save_exec_prefix"
  10650. prefix="$acl_save_prefix"
  10651. if test "X$x" = "X$element"; then
  10652. haveit=yes
  10653. break
  10654. fi
  10655. done
  10656. if test -z "$haveit"; then
  10657. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  10658. fi
  10659. done
  10660. fi
  10661. cat >>confdefs.h <<\_ACEOF
  10662. #define HAVE_GETTEXT 1
  10663. _ACEOF
  10664. cat >>confdefs.h <<\_ACEOF
  10665. #define HAVE_DCGETTEXT 1
  10666. _ACEOF
  10667. fi
  10668. POSUB=po
  10669. fi
  10670. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  10671. BUILD_INCLUDED_LIBINTL=yes
  10672. fi
  10673. nls_cv_header_intl=
  10674. nls_cv_header_libgt=
  10675. DATADIRNAME=share
  10676. INSTOBJEXT=.mo
  10677. GENCAT=gencat
  10678. if test "$USE_INCLUDED_LIBINTL" = yes; then
  10679. INTLOBJS="\$(GETTOBJS)"
  10680. fi
  10681. INTL_LIBTOOL_SUFFIX_PREFIX=
  10682. INTLLIBS="$LIBINTL"
  10683. BOILERPLATE=boilerplate.mk
  10684. if (sh -c "make --version" 2>/dev/null | grep GNU 2>&1 >/dev/null); then
  10685. if sh -c "vncmkdepend" >/dev/null 2>&1; then
  10686. BOILERPLATE="$BOILERPLATE:depend.mk"
  10687. fi
  10688. fi
  10689. ac_config_files="$ac_config_files Makefile:common.mk:Makefile.in:$BOILERPLATE tx/Makefile:common.mk:tx/Makefile.in:$BOILERPLATE x0vncserver/Makefile:common.mk:x0vncserver/Makefile.in:$BOILERPLATE vncviewer/Makefile:common.mk:vncviewer/Makefile.in:$BOILERPLATE vncconfig/Makefile:common.mk:vncconfig/Makefile.in:$BOILERPLATE vncpasswd/Makefile:common.mk:vncpasswd/Makefile.in:$BOILERPLATE intl/Makefile po/Makefile.in"
  10690. cat >confcache <<\_ACEOF
  10691. # This file is a shell script that caches the results of configure
  10692. # tests run on this system so they can be shared between configure
  10693. # scripts and configure runs, see configure's option --config-cache.
  10694. # It is not useful on other systems. If it contains results you don't
  10695. # want to keep, you may remove or edit it.
  10696. #
  10697. # config.status only pays attention to the cache file if you give it
  10698. # the --recheck option to rerun configure.
  10699. #
  10700. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10701. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10702. # following values.
  10703. _ACEOF
  10704. # The following way of writing the cache mishandles newlines in values,
  10705. # but we know of no workaround that is simple, portable, and efficient.
  10706. # So, we kill variables containing newlines.
  10707. # Ultrix sh set writes to stderr and can't be redirected directly,
  10708. # and sets the high bit in the cache file unless we assign to the vars.
  10709. (
  10710. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  10711. eval ac_val=\$$ac_var
  10712. case $ac_val in #(
  10713. *${as_nl}*)
  10714. case $ac_var in #(
  10715. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  10716. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  10717. esac
  10718. case $ac_var in #(
  10719. _ | IFS | as_nl) ;; #(
  10720. *) $as_unset $ac_var ;;
  10721. esac ;;
  10722. esac
  10723. done
  10724. (set) 2>&1 |
  10725. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  10726. *${as_nl}ac_space=\ *)
  10727. # `set' does not quote correctly, so add quotes (double-quote
  10728. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10729. sed -n \
  10730. "s/'/'\\\\''/g;
  10731. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10732. ;; #(
  10733. *)
  10734. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10735. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  10736. ;;
  10737. esac |
  10738. sort
  10739. ) |
  10740. sed '
  10741. /^ac_cv_env_/b end
  10742. t clear
  10743. :clear
  10744. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10745. t end
  10746. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10747. :end' >>confcache
  10748. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  10749. if test -w "$cache_file"; then
  10750. test "x$cache_file" != "x/dev/null" &&
  10751. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  10752. echo "$as_me: updating cache $cache_file" >&6;}
  10753. cat confcache >$cache_file
  10754. else
  10755. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  10756. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  10757. fi
  10758. fi
  10759. rm -f confcache
  10760. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  10761. # Let make expand exec_prefix.
  10762. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  10763. # Transform confdefs.h into DEFS.
  10764. # Protect against shell expansion while executing Makefile rules.
  10765. # Protect against Makefile macro expansion.
  10766. #
  10767. # If the first sed substitution is executed (which looks for macros that
  10768. # take arguments), then branch to the quote section. Otherwise,
  10769. # look for a macro that doesn't take arguments.
  10770. ac_script='
  10771. t clear
  10772. :clear
  10773. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  10774. t quote
  10775. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  10776. t quote
  10777. b any
  10778. :quote
  10779. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  10780. s/\[/\\&/g
  10781. s/\]/\\&/g
  10782. s/\$/$$/g
  10783. H
  10784. :any
  10785. ${
  10786. g
  10787. s/^\n//
  10788. s/\n/ /g
  10789. p
  10790. }
  10791. '
  10792. DEFS=`sed -n "$ac_script" confdefs.h`
  10793. ac_libobjs=
  10794. ac_ltlibobjs=
  10795. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  10796. # 1. Remove the extension, and $U if already installed.
  10797. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  10798. ac_i=`echo "$ac_i" | sed "$ac_script"`
  10799. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  10800. # will be set to the directory where LIBOBJS objects are built.
  10801. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  10802. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  10803. done
  10804. LIBOBJS=$ac_libobjs
  10805. LTLIBOBJS=$ac_ltlibobjs
  10806. : ${CONFIG_STATUS=./config.status}
  10807. ac_clean_files_save=$ac_clean_files
  10808. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  10809. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  10810. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  10811. cat >$CONFIG_STATUS <<_ACEOF
  10812. #! $SHELL
  10813. # Generated by $as_me.
  10814. # Run this file to recreate the current configuration.
  10815. # Compiler output produced by configure, useful for debugging
  10816. # configure, is in config.log if it exists.
  10817. debug=false
  10818. ac_cs_recheck=false
  10819. ac_cs_silent=false
  10820. SHELL=\${CONFIG_SHELL-$SHELL}
  10821. _ACEOF
  10822. cat >>$CONFIG_STATUS <<\_ACEOF
  10823. ## --------------------- ##
  10824. ## M4sh Initialization. ##
  10825. ## --------------------- ##
  10826. # Be more Bourne compatible
  10827. DUALCASE=1; export DUALCASE # for MKS sh
  10828. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  10829. emulate sh
  10830. NULLCMD=:
  10831. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  10832. # is contrary to our usage. Disable this feature.
  10833. alias -g '${1+"$@"}'='"$@"'
  10834. setopt NO_GLOB_SUBST
  10835. else
  10836. case `(set -o) 2>/dev/null` in
  10837. *posix*) set -o posix ;;
  10838. esac
  10839. fi
  10840. # PATH needs CR
  10841. # Avoid depending upon Character Ranges.
  10842. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  10843. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  10844. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  10845. as_cr_digits='0123456789'
  10846. as_cr_alnum=$as_cr_Letters$as_cr_digits
  10847. # The user is always right.
  10848. if test "${PATH_SEPARATOR+set}" != set; then
  10849. echo "#! /bin/sh" >conf$$.sh
  10850. echo "exit 0" >>conf$$.sh
  10851. chmod +x conf$$.sh
  10852. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10853. PATH_SEPARATOR=';'
  10854. else
  10855. PATH_SEPARATOR=:
  10856. fi
  10857. rm -f conf$$.sh
  10858. fi
  10859. # Support unset when possible.
  10860. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  10861. as_unset=unset
  10862. else
  10863. as_unset=false
  10864. fi
  10865. # IFS
  10866. # We need space, tab and new line, in precisely that order. Quoting is
  10867. # there to prevent editors from complaining about space-tab.
  10868. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  10869. # splitting by setting IFS to empty value.)
  10870. as_nl='
  10871. '
  10872. IFS=" "" $as_nl"
  10873. # Find who we are. Look in the path if we contain no directory separator.
  10874. case $0 in
  10875. *[\\/]* ) as_myself=$0 ;;
  10876. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10877. for as_dir in $PATH
  10878. do
  10879. IFS=$as_save_IFS
  10880. test -z "$as_dir" && as_dir=.
  10881. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  10882. done
  10883. IFS=$as_save_IFS
  10884. ;;
  10885. esac
  10886. # We did not find ourselves, most probably we were run as `sh COMMAND'
  10887. # in which case we are not to be found in the path.
  10888. if test "x$as_myself" = x; then
  10889. as_myself=$0
  10890. fi
  10891. if test ! -f "$as_myself"; then
  10892. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  10893. { (exit 1); exit 1; }
  10894. fi
  10895. # Work around bugs in pre-3.0 UWIN ksh.
  10896. for as_var in ENV MAIL MAILPATH
  10897. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  10898. done
  10899. PS1='$ '
  10900. PS2='> '
  10901. PS4='+ '
  10902. # NLS nuisances.
  10903. for as_var in \
  10904. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  10905. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  10906. LC_TELEPHONE LC_TIME
  10907. do
  10908. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  10909. eval $as_var=C; export $as_var
  10910. else
  10911. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  10912. fi
  10913. done
  10914. # Required to use basename.
  10915. if expr a : '\(a\)' >/dev/null 2>&1 &&
  10916. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  10917. as_expr=expr
  10918. else
  10919. as_expr=false
  10920. fi
  10921. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  10922. as_basename=basename
  10923. else
  10924. as_basename=false
  10925. fi
  10926. # Name of the executable.
  10927. as_me=`$as_basename -- "$0" ||
  10928. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  10929. X"$0" : 'X\(//\)$' \| \
  10930. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  10931. echo X/"$0" |
  10932. sed '/^.*\/\([^/][^/]*\)\/*$/{
  10933. s//\1/
  10934. q
  10935. }
  10936. /^X\/\(\/\/\)$/{
  10937. s//\1/
  10938. q
  10939. }
  10940. /^X\/\(\/\).*/{
  10941. s//\1/
  10942. q
  10943. }
  10944. s/.*/./; q'`
  10945. # CDPATH.
  10946. $as_unset CDPATH
  10947. as_lineno_1=$LINENO
  10948. as_lineno_2=$LINENO
  10949. test "x$as_lineno_1" != "x$as_lineno_2" &&
  10950. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  10951. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  10952. # uniformly replaced by the line number. The first 'sed' inserts a
  10953. # line-number line after each line using $LINENO; the second 'sed'
  10954. # does the real work. The second script uses 'N' to pair each
  10955. # line-number line with the line containing $LINENO, and appends
  10956. # trailing '-' during substitution so that $LINENO is not a special
  10957. # case at line end.
  10958. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  10959. # scripts with optimization help from Paolo Bonzini. Blame Lee
  10960. # E. McMahon (1931-1989) for sed's syntax. :-)
  10961. sed -n '
  10962. p
  10963. /[$]LINENO/=
  10964. ' <$as_myself |
  10965. sed '
  10966. s/[$]LINENO.*/&-/
  10967. t lineno
  10968. b
  10969. :lineno
  10970. N
  10971. :loop
  10972. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  10973. t loop
  10974. s/-\n.*//
  10975. ' >$as_me.lineno &&
  10976. chmod +x "$as_me.lineno" ||
  10977. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  10978. { (exit 1); exit 1; }; }
  10979. # Don't try to exec as it changes $[0], causing all sort of problems
  10980. # (the dirname of $[0] is not the place where we might find the
  10981. # original and so on. Autoconf is especially sensitive to this).
  10982. . "./$as_me.lineno"
  10983. # Exit status is that of the last command.
  10984. exit
  10985. }
  10986. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  10987. as_dirname=dirname
  10988. else
  10989. as_dirname=false
  10990. fi
  10991. ECHO_C= ECHO_N= ECHO_T=
  10992. case `echo -n x` in
  10993. -n*)
  10994. case `echo 'x\c'` in
  10995. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  10996. *) ECHO_C='\c';;
  10997. esac;;
  10998. *)
  10999. ECHO_N='-n';;
  11000. esac
  11001. if expr a : '\(a\)' >/dev/null 2>&1 &&
  11002. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  11003. as_expr=expr
  11004. else
  11005. as_expr=false
  11006. fi
  11007. rm -f conf$$ conf$$.exe conf$$.file
  11008. if test -d conf$$.dir; then
  11009. rm -f conf$$.dir/conf$$.file
  11010. else
  11011. rm -f conf$$.dir
  11012. mkdir conf$$.dir
  11013. fi
  11014. echo >conf$$.file
  11015. if ln -s conf$$.file conf$$ 2>/dev/null; then
  11016. as_ln_s='ln -s'
  11017. # ... but there are two gotchas:
  11018. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  11019. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  11020. # In both cases, we have to default to `cp -p'.
  11021. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  11022. as_ln_s='cp -p'
  11023. elif ln conf$$.file conf$$ 2>/dev/null; then
  11024. as_ln_s=ln
  11025. else
  11026. as_ln_s='cp -p'
  11027. fi
  11028. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  11029. rmdir conf$$.dir 2>/dev/null
  11030. if mkdir -p . 2>/dev/null; then
  11031. as_mkdir_p=:
  11032. else
  11033. test -d ./-p && rmdir ./-p
  11034. as_mkdir_p=false
  11035. fi
  11036. if test -x / >/dev/null 2>&1; then
  11037. as_test_x='test -x'
  11038. else
  11039. if ls -dL / >/dev/null 2>&1; then
  11040. as_ls_L_option=L
  11041. else
  11042. as_ls_L_option=
  11043. fi
  11044. as_test_x='
  11045. eval sh -c '\''
  11046. if test -d "$1"; then
  11047. test -d "$1/.";
  11048. else
  11049. case $1 in
  11050. -*)set "./$1";;
  11051. esac;
  11052. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  11053. ???[sx]*):;;*)false;;esac;fi
  11054. '\'' sh
  11055. '
  11056. fi
  11057. as_executable_p=$as_test_x
  11058. # Sed expression to map a string onto a valid CPP name.
  11059. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  11060. # Sed expression to map a string onto a valid variable name.
  11061. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  11062. exec 6>&1
  11063. # Save the log message, to keep $[0] and so on meaningful, and to
  11064. # report actual input values of CONFIG_FILES etc. instead of their
  11065. # values after options handling.
  11066. ac_log="
  11067. This file was extended by $as_me, which was
  11068. generated by GNU Autoconf 2.61. Invocation command line was
  11069. CONFIG_FILES = $CONFIG_FILES
  11070. CONFIG_HEADERS = $CONFIG_HEADERS
  11071. CONFIG_LINKS = $CONFIG_LINKS
  11072. CONFIG_COMMANDS = $CONFIG_COMMANDS
  11073. $ $0 $@
  11074. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  11075. "
  11076. _ACEOF
  11077. cat >>$CONFIG_STATUS <<_ACEOF
  11078. # Files that config.status was made for.
  11079. config_files="$ac_config_files"
  11080. config_commands="$ac_config_commands"
  11081. _ACEOF
  11082. cat >>$CONFIG_STATUS <<\_ACEOF
  11083. ac_cs_usage="\
  11084. \`$as_me' instantiates files from templates according to the
  11085. current configuration.
  11086. Usage: $0 [OPTIONS] [FILE]...
  11087. -h, --help print this help, then exit
  11088. -V, --version print version number and configuration settings, then exit
  11089. -q, --quiet do not print progress messages
  11090. -d, --debug don't remove temporary files
  11091. --recheck update $as_me by reconfiguring in the same conditions
  11092. --file=FILE[:TEMPLATE]
  11093. instantiate the configuration file FILE
  11094. Configuration files:
  11095. $config_files
  11096. Configuration commands:
  11097. $config_commands
  11098. Report bugs to <bug-autoconf@gnu.org>."
  11099. _ACEOF
  11100. cat >>$CONFIG_STATUS <<_ACEOF
  11101. ac_cs_version="\\
  11102. config.status
  11103. configured by $0, generated by GNU Autoconf 2.61,
  11104. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  11105. Copyright (C) 2006 Free Software Foundation, Inc.
  11106. This config.status script is free software; the Free Software Foundation
  11107. gives unlimited permission to copy, distribute and modify it."
  11108. ac_pwd='$ac_pwd'
  11109. srcdir='$srcdir'
  11110. INSTALL='$INSTALL'
  11111. _ACEOF
  11112. cat >>$CONFIG_STATUS <<\_ACEOF
  11113. # If no file are specified by the user, then we need to provide default
  11114. # value. By we need to know if files were specified by the user.
  11115. ac_need_defaults=:
  11116. while test $# != 0
  11117. do
  11118. case $1 in
  11119. --*=*)
  11120. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  11121. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  11122. ac_shift=:
  11123. ;;
  11124. *)
  11125. ac_option=$1
  11126. ac_optarg=$2
  11127. ac_shift=shift
  11128. ;;
  11129. esac
  11130. case $ac_option in
  11131. # Handling of the options.
  11132. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11133. ac_cs_recheck=: ;;
  11134. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  11135. echo "$ac_cs_version"; exit ;;
  11136. --debug | --debu | --deb | --de | --d | -d )
  11137. debug=: ;;
  11138. --file | --fil | --fi | --f )
  11139. $ac_shift
  11140. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  11141. ac_need_defaults=false;;
  11142. --he | --h | --help | --hel | -h )
  11143. echo "$ac_cs_usage"; exit ;;
  11144. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  11145. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  11146. ac_cs_silent=: ;;
  11147. # This is an error.
  11148. -*) { echo "$as_me: error: unrecognized option: $1
  11149. Try \`$0 --help' for more information." >&2
  11150. { (exit 1); exit 1; }; } ;;
  11151. *) ac_config_targets="$ac_config_targets $1"
  11152. ac_need_defaults=false ;;
  11153. esac
  11154. shift
  11155. done
  11156. ac_configure_extra_args=
  11157. if $ac_cs_silent; then
  11158. exec 6>/dev/null
  11159. ac_configure_extra_args="$ac_configure_extra_args --silent"
  11160. fi
  11161. _ACEOF
  11162. cat >>$CONFIG_STATUS <<_ACEOF
  11163. if \$ac_cs_recheck; then
  11164. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  11165. CONFIG_SHELL=$SHELL
  11166. export CONFIG_SHELL
  11167. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  11168. fi
  11169. _ACEOF
  11170. cat >>$CONFIG_STATUS <<\_ACEOF
  11171. exec 5>>config.log
  11172. {
  11173. echo
  11174. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  11175. ## Running $as_me. ##
  11176. _ASBOX
  11177. echo "$ac_log"
  11178. } >&5
  11179. _ACEOF
  11180. cat >>$CONFIG_STATUS <<_ACEOF
  11181. #
  11182. # INIT-COMMANDS
  11183. #
  11184. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  11185. # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
  11186. # from automake.
  11187. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  11188. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  11189. LINGUAS="${LINGUAS-%UNSET%}"
  11190. _ACEOF
  11191. cat >>$CONFIG_STATUS <<\_ACEOF
  11192. # Handling of arguments.
  11193. for ac_config_target in $ac_config_targets
  11194. do
  11195. case $ac_config_target in
  11196. "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  11197. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:common.mk:Makefile.in:$BOILERPLATE" ;;
  11198. "tx/Makefile") CONFIG_FILES="$CONFIG_FILES tx/Makefile:common.mk:tx/Makefile.in:$BOILERPLATE" ;;
  11199. "x0vncserver/Makefile") CONFIG_FILES="$CONFIG_FILES x0vncserver/Makefile:common.mk:x0vncserver/Makefile.in:$BOILERPLATE" ;;
  11200. "vncviewer/Makefile") CONFIG_FILES="$CONFIG_FILES vncviewer/Makefile:common.mk:vncviewer/Makefile.in:$BOILERPLATE" ;;
  11201. "vncconfig/Makefile") CONFIG_FILES="$CONFIG_FILES vncconfig/Makefile:common.mk:vncconfig/Makefile.in:$BOILERPLATE" ;;
  11202. "vncpasswd/Makefile") CONFIG_FILES="$CONFIG_FILES vncpasswd/Makefile:common.mk:vncpasswd/Makefile.in:$BOILERPLATE" ;;
  11203. "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
  11204. "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  11205. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  11206. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  11207. { (exit 1); exit 1; }; };;
  11208. esac
  11209. done
  11210. # If the user did not use the arguments to specify the items to instantiate,
  11211. # then the envvar interface is used. Set only those that are not.
  11212. # We use the long form for the default assignment because of an extremely
  11213. # bizarre bug on SunOS 4.1.3.
  11214. if $ac_need_defaults; then
  11215. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  11216. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  11217. fi
  11218. # Have a temporary directory for convenience. Make it in the build tree
  11219. # simply because there is no reason against having it here, and in addition,
  11220. # creating and moving files from /tmp can sometimes cause problems.
  11221. # Hook for its removal unless debugging.
  11222. # Note that there is a small window in which the directory will not be cleaned:
  11223. # after its creation but before its name has been assigned to `$tmp'.
  11224. $debug ||
  11225. {
  11226. tmp=
  11227. trap 'exit_status=$?
  11228. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  11229. ' 0
  11230. trap '{ (exit 1); exit 1; }' 1 2 13 15
  11231. }
  11232. # Create a (secure) tmp directory for tmp files.
  11233. {
  11234. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  11235. test -n "$tmp" && test -d "$tmp"
  11236. } ||
  11237. {
  11238. tmp=./conf$$-$RANDOM
  11239. (umask 077 && mkdir "$tmp")
  11240. } ||
  11241. {
  11242. echo "$me: cannot create a temporary directory in ." >&2
  11243. { (exit 1); exit 1; }
  11244. }
  11245. #
  11246. # Set up the sed scripts for CONFIG_FILES section.
  11247. #
  11248. # No need to generate the scripts if there are no CONFIG_FILES.
  11249. # This happens for instance when ./config.status config.h
  11250. if test -n "$CONFIG_FILES"; then
  11251. _ACEOF
  11252. ac_delim='%!_!# '
  11253. for ac_last_try in false false false false false :; do
  11254. cat >conf$$subs.sed <<_ACEOF
  11255. SHELL!$SHELL$ac_delim
  11256. PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  11257. PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  11258. PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  11259. PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  11260. PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  11261. PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  11262. exec_prefix!$exec_prefix$ac_delim
  11263. prefix!$prefix$ac_delim
  11264. program_transform_name!$program_transform_name$ac_delim
  11265. bindir!$bindir$ac_delim
  11266. sbindir!$sbindir$ac_delim
  11267. libexecdir!$libexecdir$ac_delim
  11268. datarootdir!$datarootdir$ac_delim
  11269. datadir!$datadir$ac_delim
  11270. sysconfdir!$sysconfdir$ac_delim
  11271. sharedstatedir!$sharedstatedir$ac_delim
  11272. localstatedir!$localstatedir$ac_delim
  11273. includedir!$includedir$ac_delim
  11274. oldincludedir!$oldincludedir$ac_delim
  11275. docdir!$docdir$ac_delim
  11276. infodir!$infodir$ac_delim
  11277. htmldir!$htmldir$ac_delim
  11278. dvidir!$dvidir$ac_delim
  11279. pdfdir!$pdfdir$ac_delim
  11280. psdir!$psdir$ac_delim
  11281. libdir!$libdir$ac_delim
  11282. localedir!$localedir$ac_delim
  11283. mandir!$mandir$ac_delim
  11284. DEFS!$DEFS$ac_delim
  11285. ECHO_C!$ECHO_C$ac_delim
  11286. ECHO_N!$ECHO_N$ac_delim
  11287. ECHO_T!$ECHO_T$ac_delim
  11288. LIBS!$LIBS$ac_delim
  11289. build_alias!$build_alias$ac_delim
  11290. host_alias!$host_alias$ac_delim
  11291. target_alias!$target_alias$ac_delim
  11292. PACKAGE!$PACKAGE$ac_delim
  11293. VERSION!$VERSION$ac_delim
  11294. CC!$CC$ac_delim
  11295. CFLAGS!$CFLAGS$ac_delim
  11296. LDFLAGS!$LDFLAGS$ac_delim
  11297. CPPFLAGS!$CPPFLAGS$ac_delim
  11298. ac_ct_CC!$ac_ct_CC$ac_delim
  11299. EXEEXT!$EXEEXT$ac_delim
  11300. OBJEXT!$OBJEXT$ac_delim
  11301. CXX!$CXX$ac_delim
  11302. CXXFLAGS!$CXXFLAGS$ac_delim
  11303. ac_ct_CXX!$ac_ct_CXX$ac_delim
  11304. RANLIB!$RANLIB$ac_delim
  11305. SET_MAKE!$SET_MAKE$ac_delim
  11306. MITSHM_DEFINE!$MITSHM_DEFINE$ac_delim
  11307. CL_LIB!$CL_LIB$ac_delim
  11308. DMEDIA_LIB!$DMEDIA_LIB$ac_delim
  11309. XMKMF!$XMKMF$ac_delim
  11310. CXXCPP!$CXXCPP$ac_delim
  11311. X_CFLAGS!$X_CFLAGS$ac_delim
  11312. X_PRE_LIBS!$X_PRE_LIBS$ac_delim
  11313. X_LIBS!$X_LIBS$ac_delim
  11314. X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
  11315. ZLIB_DIR!$ZLIB_DIR$ac_delim
  11316. ZLIB_INCLUDE!$ZLIB_INCLUDE$ac_delim
  11317. ZLIB_LIB!$ZLIB_LIB$ac_delim
  11318. JPEG_DIR!$JPEG_DIR$ac_delim
  11319. JPEG_INCLUDE!$JPEG_INCLUDE$ac_delim
  11320. JPEG_LIB!$JPEG_LIB$ac_delim
  11321. VNCCONFIG_DIR!$VNCCONFIG_DIR$ac_delim
  11322. XTEST_DEFINE!$XTEST_DEFINE$ac_delim
  11323. XTEST_LIB!$XTEST_LIB$ac_delim
  11324. READDISPLAY_DEFINE!$READDISPLAY_DEFINE$ac_delim
  11325. INET_LIB!$INET_LIB$ac_delim
  11326. INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  11327. INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  11328. INSTALL_DATA!$INSTALL_DATA$ac_delim
  11329. MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
  11330. USE_NLS!$USE_NLS$ac_delim
  11331. MSGFMT!$MSGFMT$ac_delim
  11332. GMSGFMT!$GMSGFMT$ac_delim
  11333. XGETTEXT!$XGETTEXT$ac_delim
  11334. MSGMERGE!$MSGMERGE$ac_delim
  11335. build!$build$ac_delim
  11336. build_cpu!$build_cpu$ac_delim
  11337. build_vendor!$build_vendor$ac_delim
  11338. build_os!$build_os$ac_delim
  11339. host!$host$ac_delim
  11340. host_cpu!$host_cpu$ac_delim
  11341. host_vendor!$host_vendor$ac_delim
  11342. host_os!$host_os$ac_delim
  11343. GREP!$GREP$ac_delim
  11344. EGREP!$EGREP$ac_delim
  11345. ALLOCA!$ALLOCA$ac_delim
  11346. GLIBC21!$GLIBC21$ac_delim
  11347. HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
  11348. HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
  11349. HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
  11350. HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
  11351. LIBICONV!$LIBICONV$ac_delim
  11352. _ACEOF
  11353. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  11354. break
  11355. elif $ac_last_try; then
  11356. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  11357. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  11358. { (exit 1); exit 1; }; }
  11359. else
  11360. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  11361. fi
  11362. done
  11363. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  11364. if test -n "$ac_eof"; then
  11365. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  11366. ac_eof=`expr $ac_eof + 1`
  11367. fi
  11368. cat >>$CONFIG_STATUS <<_ACEOF
  11369. cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  11370. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  11371. _ACEOF
  11372. sed '
  11373. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  11374. s/^/s,@/; s/!/@,|#_!!_#|/
  11375. :n
  11376. t n
  11377. s/'"$ac_delim"'$/,g/; t
  11378. s/$/\\/; p
  11379. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  11380. ' >>$CONFIG_STATUS <conf$$subs.sed
  11381. rm -f conf$$subs.sed
  11382. cat >>$CONFIG_STATUS <<_ACEOF
  11383. CEOF$ac_eof
  11384. _ACEOF
  11385. ac_delim='%!_!# '
  11386. for ac_last_try in false false false false false :; do
  11387. cat >conf$$subs.sed <<_ACEOF
  11388. LTLIBICONV!$LTLIBICONV$ac_delim
  11389. INTLBISON!$INTLBISON$ac_delim
  11390. BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
  11391. USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
  11392. CATOBJEXT!$CATOBJEXT$ac_delim
  11393. DATADIRNAME!$DATADIRNAME$ac_delim
  11394. INSTOBJEXT!$INSTOBJEXT$ac_delim
  11395. GENCAT!$GENCAT$ac_delim
  11396. INTLOBJS!$INTLOBJS$ac_delim
  11397. INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
  11398. INTLLIBS!$INTLLIBS$ac_delim
  11399. LIBINTL!$LIBINTL$ac_delim
  11400. LTLIBINTL!$LTLIBINTL$ac_delim
  11401. POSUB!$POSUB$ac_delim
  11402. LIBOBJS!$LIBOBJS$ac_delim
  11403. LTLIBOBJS!$LTLIBOBJS$ac_delim
  11404. _ACEOF
  11405. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 16; then
  11406. break
  11407. elif $ac_last_try; then
  11408. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  11409. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  11410. { (exit 1); exit 1; }; }
  11411. else
  11412. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  11413. fi
  11414. done
  11415. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  11416. if test -n "$ac_eof"; then
  11417. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  11418. ac_eof=`expr $ac_eof + 1`
  11419. fi
  11420. cat >>$CONFIG_STATUS <<_ACEOF
  11421. cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  11422. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  11423. _ACEOF
  11424. sed '
  11425. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  11426. s/^/s,@/; s/!/@,|#_!!_#|/
  11427. :n
  11428. t n
  11429. s/'"$ac_delim"'$/,g/; t
  11430. s/$/\\/; p
  11431. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  11432. ' >>$CONFIG_STATUS <conf$$subs.sed
  11433. rm -f conf$$subs.sed
  11434. cat >>$CONFIG_STATUS <<_ACEOF
  11435. :end
  11436. s/|#_!!_#|//g
  11437. CEOF$ac_eof
  11438. _ACEOF
  11439. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  11440. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  11441. # trailing colons and then remove the whole line if VPATH becomes empty
  11442. # (actually we leave an empty line to preserve line numbers).
  11443. if test "x$srcdir" = x.; then
  11444. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  11445. s/:*\$(srcdir):*/:/
  11446. s/:*\${srcdir}:*/:/
  11447. s/:*@srcdir@:*/:/
  11448. s/^\([^=]*=[ ]*\):*/\1/
  11449. s/:*$//
  11450. s/^[^=]*=[ ]*$//
  11451. }'
  11452. fi
  11453. cat >>$CONFIG_STATUS <<\_ACEOF
  11454. fi # test -n "$CONFIG_FILES"
  11455. for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
  11456. do
  11457. case $ac_tag in
  11458. :[FHLC]) ac_mode=$ac_tag; continue;;
  11459. esac
  11460. case $ac_mode$ac_tag in
  11461. :[FHL]*:*);;
  11462. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  11463. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  11464. { (exit 1); exit 1; }; };;
  11465. :[FH]-) ac_tag=-:-;;
  11466. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  11467. esac
  11468. ac_save_IFS=$IFS
  11469. IFS=:
  11470. set x $ac_tag
  11471. IFS=$ac_save_IFS
  11472. shift
  11473. ac_file=$1
  11474. shift
  11475. case $ac_mode in
  11476. :L) ac_source=$1;;
  11477. :[FH])
  11478. ac_file_inputs=
  11479. for ac_f
  11480. do
  11481. case $ac_f in
  11482. -) ac_f="$tmp/stdin";;
  11483. *) # Look for the file first in the build tree, then in the source tree
  11484. # (if the path is not absolute). The absolute path cannot be DOS-style,
  11485. # because $ac_f cannot contain `:'.
  11486. test -f "$ac_f" ||
  11487. case $ac_f in
  11488. [\\/$]*) false;;
  11489. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  11490. esac ||
  11491. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  11492. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  11493. { (exit 1); exit 1; }; };;
  11494. esac
  11495. ac_file_inputs="$ac_file_inputs $ac_f"
  11496. done
  11497. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11498. # use $as_me), people would be surprised to read:
  11499. # /* config.h. Generated by config.status. */
  11500. configure_input="Generated from "`IFS=:
  11501. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  11502. if test x"$ac_file" != x-; then
  11503. configure_input="$ac_file. $configure_input"
  11504. { echo "$as_me:$LINENO: creating $ac_file" >&5
  11505. echo "$as_me: creating $ac_file" >&6;}
  11506. fi
  11507. case $ac_tag in
  11508. *:-:* | *:-) cat >"$tmp/stdin";;
  11509. esac
  11510. ;;
  11511. esac
  11512. ac_dir=`$as_dirname -- "$ac_file" ||
  11513. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11514. X"$ac_file" : 'X\(//\)[^/]' \| \
  11515. X"$ac_file" : 'X\(//\)$' \| \
  11516. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  11517. echo X"$ac_file" |
  11518. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11519. s//\1/
  11520. q
  11521. }
  11522. /^X\(\/\/\)[^/].*/{
  11523. s//\1/
  11524. q
  11525. }
  11526. /^X\(\/\/\)$/{
  11527. s//\1/
  11528. q
  11529. }
  11530. /^X\(\/\).*/{
  11531. s//\1/
  11532. q
  11533. }
  11534. s/.*/./; q'`
  11535. { as_dir="$ac_dir"
  11536. case $as_dir in #(
  11537. -*) as_dir=./$as_dir;;
  11538. esac
  11539. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  11540. as_dirs=
  11541. while :; do
  11542. case $as_dir in #(
  11543. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  11544. *) as_qdir=$as_dir;;
  11545. esac
  11546. as_dirs="'$as_qdir' $as_dirs"
  11547. as_dir=`$as_dirname -- "$as_dir" ||
  11548. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11549. X"$as_dir" : 'X\(//\)[^/]' \| \
  11550. X"$as_dir" : 'X\(//\)$' \| \
  11551. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  11552. echo X"$as_dir" |
  11553. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11554. s//\1/
  11555. q
  11556. }
  11557. /^X\(\/\/\)[^/].*/{
  11558. s//\1/
  11559. q
  11560. }
  11561. /^X\(\/\/\)$/{
  11562. s//\1/
  11563. q
  11564. }
  11565. /^X\(\/\).*/{
  11566. s//\1/
  11567. q
  11568. }
  11569. s/.*/./; q'`
  11570. test -d "$as_dir" && break
  11571. done
  11572. test -z "$as_dirs" || eval "mkdir $as_dirs"
  11573. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  11574. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  11575. { (exit 1); exit 1; }; }; }
  11576. ac_builddir=.
  11577. case "$ac_dir" in
  11578. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11579. *)
  11580. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  11581. # A ".." for each directory in $ac_dir_suffix.
  11582. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  11583. case $ac_top_builddir_sub in
  11584. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11585. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  11586. esac ;;
  11587. esac
  11588. ac_abs_top_builddir=$ac_pwd
  11589. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  11590. # for backward compatibility:
  11591. ac_top_builddir=$ac_top_build_prefix
  11592. case $srcdir in
  11593. .) # We are building in place.
  11594. ac_srcdir=.
  11595. ac_top_srcdir=$ac_top_builddir_sub
  11596. ac_abs_top_srcdir=$ac_pwd ;;
  11597. [\\/]* | ?:[\\/]* ) # Absolute name.
  11598. ac_srcdir=$srcdir$ac_dir_suffix;
  11599. ac_top_srcdir=$srcdir
  11600. ac_abs_top_srcdir=$srcdir ;;
  11601. *) # Relative name.
  11602. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  11603. ac_top_srcdir=$ac_top_build_prefix$srcdir
  11604. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  11605. esac
  11606. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  11607. case $ac_mode in
  11608. :F)
  11609. #
  11610. # CONFIG_FILE
  11611. #
  11612. case $INSTALL in
  11613. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  11614. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  11615. esac
  11616. _ACEOF
  11617. cat >>$CONFIG_STATUS <<\_ACEOF
  11618. # If the template does not know about datarootdir, expand it.
  11619. # FIXME: This hack should be removed a few years after 2.60.
  11620. ac_datarootdir_hack=; ac_datarootdir_seen=
  11621. case `sed -n '/datarootdir/ {
  11622. p
  11623. q
  11624. }
  11625. /@datadir@/p
  11626. /@docdir@/p
  11627. /@infodir@/p
  11628. /@localedir@/p
  11629. /@mandir@/p
  11630. ' $ac_file_inputs` in
  11631. *datarootdir*) ac_datarootdir_seen=yes;;
  11632. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  11633. { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  11634. echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  11635. _ACEOF
  11636. cat >>$CONFIG_STATUS <<_ACEOF
  11637. ac_datarootdir_hack='
  11638. s&@datadir@&$datadir&g
  11639. s&@docdir@&$docdir&g
  11640. s&@infodir@&$infodir&g
  11641. s&@localedir@&$localedir&g
  11642. s&@mandir@&$mandir&g
  11643. s&\\\${datarootdir}&$datarootdir&g' ;;
  11644. esac
  11645. _ACEOF
  11646. # Neutralize VPATH when `$srcdir' = `.'.
  11647. # Shell code in configure.ac might set extrasub.
  11648. # FIXME: do we really want to maintain this feature?
  11649. cat >>$CONFIG_STATUS <<_ACEOF
  11650. sed "$ac_vpsub
  11651. $extrasub
  11652. _ACEOF
  11653. cat >>$CONFIG_STATUS <<\_ACEOF
  11654. :t
  11655. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  11656. s&@configure_input@&$configure_input&;t t
  11657. s&@top_builddir@&$ac_top_builddir_sub&;t t
  11658. s&@srcdir@&$ac_srcdir&;t t
  11659. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  11660. s&@top_srcdir@&$ac_top_srcdir&;t t
  11661. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  11662. s&@builddir@&$ac_builddir&;t t
  11663. s&@abs_builddir@&$ac_abs_builddir&;t t
  11664. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  11665. s&@INSTALL@&$ac_INSTALL&;t t
  11666. $ac_datarootdir_hack
  11667. " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
  11668. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  11669. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  11670. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  11671. { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  11672. which seems to be undefined. Please make sure it is defined." >&5
  11673. echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  11674. which seems to be undefined. Please make sure it is defined." >&2;}
  11675. rm -f "$tmp/stdin"
  11676. case $ac_file in
  11677. -) cat "$tmp/out"; rm -f "$tmp/out";;
  11678. *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  11679. esac
  11680. ;;
  11681. :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  11682. echo "$as_me: executing $ac_file commands" >&6;}
  11683. ;;
  11684. esac
  11685. case $ac_file$ac_mode in
  11686. "default-1":C)
  11687. for ac_file in $CONFIG_FILES; do
  11688. # Support "outfile[:infile[:infile...]]"
  11689. case "$ac_file" in
  11690. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  11691. esac
  11692. # PO directories have a Makefile.in generated from Makefile.in.in.
  11693. case "$ac_file" in */Makefile.in)
  11694. # Adjust a relative srcdir.
  11695. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  11696. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  11697. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  11698. # In autoconf-2.13 it is called $ac_given_srcdir.
  11699. # In autoconf-2.50 it is called $srcdir.
  11700. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  11701. case "$ac_given_srcdir" in
  11702. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  11703. /*) top_srcdir="$ac_given_srcdir" ;;
  11704. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  11705. esac
  11706. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  11707. rm -f "$ac_dir/POTFILES"
  11708. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  11709. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  11710. POMAKEFILEDEPS="POTFILES.in"
  11711. # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
  11712. # on $ac_dir but don't depend on user-specified configuration
  11713. # parameters.
  11714. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  11715. # The LINGUAS file contains the set of available languages.
  11716. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  11717. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  11718. fi
  11719. ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  11720. # Hide the ALL_LINGUAS assigment from automake.
  11721. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  11722. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  11723. else
  11724. # The set of available languages was given in configure.in.
  11725. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  11726. fi
  11727. # Compute POFILES
  11728. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
  11729. # Compute UPDATEPOFILES
  11730. # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
  11731. # Compute DUMMYPOFILES
  11732. # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
  11733. # Compute GMOFILES
  11734. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
  11735. case "$ac_given_srcdir" in
  11736. .) srcdirpre= ;;
  11737. *) srcdirpre='$(srcdir)/' ;;
  11738. esac
  11739. POFILES=
  11740. UPDATEPOFILES=
  11741. DUMMYPOFILES=
  11742. GMOFILES=
  11743. for lang in $ALL_LINGUAS; do
  11744. POFILES="$POFILES $srcdirpre$lang.po"
  11745. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  11746. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  11747. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  11748. done
  11749. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  11750. # environment variable.
  11751. INST_LINGUAS=
  11752. if test -n "$ALL_LINGUAS"; then
  11753. for presentlang in $ALL_LINGUAS; do
  11754. useit=no
  11755. if test "%UNSET%" != "$LINGUAS"; then
  11756. desiredlanguages="$LINGUAS"
  11757. else
  11758. desiredlanguages="$ALL_LINGUAS"
  11759. fi
  11760. for desiredlang in $desiredlanguages; do
  11761. # Use the presentlang catalog if desiredlang is
  11762. # a. equal to presentlang, or
  11763. # b. a variant of presentlang (because in this case,
  11764. # presentlang can be used as a fallback for messages
  11765. # which are not translated in the desiredlang catalog).
  11766. case "$desiredlang" in
  11767. "$presentlang"*) useit=yes;;
  11768. esac
  11769. done
  11770. if test $useit = yes; then
  11771. INST_LINGUAS="$INST_LINGUAS $presentlang"
  11772. fi
  11773. done
  11774. fi
  11775. CATALOGS=
  11776. if test -n "$INST_LINGUAS"; then
  11777. for lang in $INST_LINGUAS; do
  11778. CATALOGS="$CATALOGS $lang.gmo"
  11779. done
  11780. fi
  11781. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  11782. sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
  11783. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  11784. if test -f "$f"; then
  11785. case "$f" in
  11786. *.orig | *.bak | *~) ;;
  11787. *) cat "$f" >> "$ac_dir/Makefile" ;;
  11788. esac
  11789. fi
  11790. done
  11791. fi
  11792. ;;
  11793. esac
  11794. done ;;
  11795. esac
  11796. done # for ac_tag
  11797. { (exit 0); exit 0; }
  11798. _ACEOF
  11799. chmod +x $CONFIG_STATUS
  11800. ac_clean_files=$ac_clean_files_save
  11801. # configure is writing to config.log, and then calls config.status.
  11802. # config.status does its own redirection, appending to config.log.
  11803. # Unfortunately, on DOS this fails, as config.log is still kept open
  11804. # by configure, so config.status won't be able to write to it; its
  11805. # output is simply discarded. So we exec the FD to /dev/null,
  11806. # effectively closing config.log, so it can be properly (re)opened and
  11807. # appended to by config.status. When coming back to configure, we
  11808. # need to make the FD available again.
  11809. if test "$no_create" != yes; then
  11810. ac_cs_success=:
  11811. ac_config_status_args=
  11812. test "$silent" = yes &&
  11813. ac_config_status_args="$ac_config_status_args --quiet"
  11814. exec 5>/dev/null
  11815. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  11816. exec 5>>config.log
  11817. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  11818. # would make configure fail if this is the last instruction.
  11819. $ac_cs_success || { (exit 1); exit 1; }
  11820. fi