configure 200 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated automatically using autoconf version 2.13
  4. # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  5. #
  6. # This configure script is free software; the Free Software Foundation
  7. # gives unlimited permission to copy, distribute and modify it.
  8. # Defaults:
  9. ac_help=
  10. ac_default_prefix=/usr/local
  11. # Any additions from configure.in:
  12. ac_help="$ac_help
  13. --enable-shared[=PKGS] build shared libraries [default=yes]"
  14. ac_help="$ac_help
  15. --enable-static[=PKGS] build static libraries [default=yes]"
  16. ac_help="$ac_help
  17. --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
  18. ac_help="$ac_help
  19. --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
  20. ac_help="$ac_help
  21. --disable-libtool-lock avoid locking (might break parallel builds)"
  22. ac_help="$ac_help
  23. --enable-maintainer-mode enable make rules and dependencies not useful
  24. (and sometimes confusing) to the casual installer"
  25. ac_help="$ac_help
  26. --disable-nls do not use Native Language Support"
  27. ac_help="$ac_help
  28. --with-included-gettext use the GNU gettext library included here"
  29. ac_help="$ac_help
  30. --with-catgets use catgets functions if available"
  31. ac_help="$ac_help
  32. --with-glib-prefix=PFX Prefix where GLIB is installed (optional)"
  33. ac_help="$ac_help
  34. --with-glib-exec-prefix=PFX Exec prefix where GLIB is installed (optional)"
  35. ac_help="$ac_help
  36. --disable-glibtest Do not try to compile and run a test GLIB program"
  37. ac_help="$ac_help
  38. --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
  39. ac_help="$ac_help
  40. --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
  41. ac_help="$ac_help
  42. --disable-gtktest Do not try to compile and run a test GTK program"
  43. ac_help="$ac_help
  44. --disable-gdk-pixbuf Do not use gdk-pixbuf"
  45. ac_help="$ac_help
  46. --disable-imlib Do not use imlib"
  47. ac_help="$ac_help
  48. --with-gdk-pixbuf-prefix=PFX Prefix where GDK_PIXBUF is installed (optional)"
  49. ac_help="$ac_help
  50. --with-gdk-pixbuf-exec-prefix=PFX Exec prefix where GDK_PIXBUF is installed (optional)"
  51. ac_help="$ac_help
  52. --disable-gdk_pixbuftest Do not try to compile and run a test GDK_PIXBUF program"
  53. ac_help="$ac_help
  54. --with-imlib-prefix=PFX Prefix where IMLIB is installed (optional)"
  55. ac_help="$ac_help
  56. --with-imlib-exec-prefix=PFX Exec prefix where IMLIB is installed (optional)"
  57. ac_help="$ac_help
  58. --disable-imlibtest Do not try to compile and run a test IMLIB program"
  59. ac_help="$ac_help
  60. --enable-gpgme Enable GnuPG support using GPGME [default=no]"
  61. ac_help="$ac_help
  62. --with-gpgme-prefix=PFX Prefix where gpgme is installed (optional)"
  63. ac_help="$ac_help
  64. --disable-gpgmetest Do not try to compile and run a test gpgme program"
  65. ac_help="$ac_help
  66. --disable-compface Do not use compface (X-Face)"
  67. ac_help="$ac_help
  68. --disable-jconv Do not use libjconv"
  69. ac_help="$ac_help
  70. --enable-threads Enable multithread support [default=no]"
  71. ac_help="$ac_help
  72. --enable-ipv6 Enable IPv6 support [default=no]"
  73. # Initialize some variables set by options.
  74. # The variables have the same names as the options, with
  75. # dashes changed to underlines.
  76. build=NONE
  77. cache_file=./config.cache
  78. exec_prefix=NONE
  79. host=NONE
  80. no_create=
  81. nonopt=NONE
  82. no_recursion=
  83. prefix=NONE
  84. program_prefix=NONE
  85. program_suffix=NONE
  86. program_transform_name=s,x,x,
  87. silent=
  88. site=
  89. srcdir=
  90. target=NONE
  91. verbose=
  92. x_includes=NONE
  93. x_libraries=NONE
  94. bindir='${exec_prefix}/bin'
  95. sbindir='${exec_prefix}/sbin'
  96. libexecdir='${exec_prefix}/libexec'
  97. datadir='${prefix}/share'
  98. sysconfdir='${prefix}/etc'
  99. sharedstatedir='${prefix}/com'
  100. localstatedir='${prefix}/var'
  101. libdir='${exec_prefix}/lib'
  102. includedir='${prefix}/include'
  103. oldincludedir='/usr/include'
  104. infodir='${prefix}/info'
  105. mandir='${prefix}/man'
  106. # Initialize some other variables.
  107. subdirs=
  108. MFLAGS= MAKEFLAGS=
  109. SHELL=${CONFIG_SHELL-/bin/sh}
  110. # Maximum number of lines to put in a shell here document.
  111. ac_max_here_lines=12
  112. ac_prev=
  113. for ac_option
  114. do
  115. # If the previous option needs an argument, assign it.
  116. if test -n "$ac_prev"; then
  117. eval "$ac_prev=\$ac_option"
  118. ac_prev=
  119. continue
  120. fi
  121. case "$ac_option" in
  122. -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  123. *) ac_optarg= ;;
  124. esac
  125. # Accept the important Cygnus configure options, so we can diagnose typos.
  126. case "$ac_option" in
  127. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  128. ac_prev=bindir ;;
  129. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  130. bindir="$ac_optarg" ;;
  131. -build | --build | --buil | --bui | --bu)
  132. ac_prev=build ;;
  133. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  134. build="$ac_optarg" ;;
  135. -cache-file | --cache-file | --cache-fil | --cache-fi \
  136. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  137. ac_prev=cache_file ;;
  138. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  139. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  140. cache_file="$ac_optarg" ;;
  141. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  142. ac_prev=datadir ;;
  143. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  144. | --da=*)
  145. datadir="$ac_optarg" ;;
  146. -disable-* | --disable-*)
  147. ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  148. # Reject names that are not valid shell variable names.
  149. if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  150. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  151. fi
  152. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  153. eval "enable_${ac_feature}=no" ;;
  154. -enable-* | --enable-*)
  155. ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  156. # Reject names that are not valid shell variable names.
  157. if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  158. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  159. fi
  160. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  161. case "$ac_option" in
  162. *=*) ;;
  163. *) ac_optarg=yes ;;
  164. esac
  165. eval "enable_${ac_feature}='$ac_optarg'" ;;
  166. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  167. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  168. | --exec | --exe | --ex)
  169. ac_prev=exec_prefix ;;
  170. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  171. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  172. | --exec=* | --exe=* | --ex=*)
  173. exec_prefix="$ac_optarg" ;;
  174. -gas | --gas | --ga | --g)
  175. # Obsolete; use --with-gas.
  176. with_gas=yes ;;
  177. -help | --help | --hel | --he)
  178. # Omit some internal or obsolete options to make the list less imposing.
  179. # This message is too long to be a string in the A/UX 3.1 sh.
  180. cat << EOF
  181. Usage: configure [options] [host]
  182. Options: [defaults in brackets after descriptions]
  183. Configuration:
  184. --cache-file=FILE cache test results in FILE
  185. --help print this message
  186. --no-create do not create output files
  187. --quiet, --silent do not print \`checking...' messages
  188. --version print the version of autoconf that created configure
  189. Directory and file names:
  190. --prefix=PREFIX install architecture-independent files in PREFIX
  191. [$ac_default_prefix]
  192. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  193. [same as prefix]
  194. --bindir=DIR user executables in DIR [EPREFIX/bin]
  195. --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
  196. --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
  197. --datadir=DIR read-only architecture-independent data in DIR
  198. [PREFIX/share]
  199. --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
  200. --sharedstatedir=DIR modifiable architecture-independent data in DIR
  201. [PREFIX/com]
  202. --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
  203. --libdir=DIR object code libraries in DIR [EPREFIX/lib]
  204. --includedir=DIR C header files in DIR [PREFIX/include]
  205. --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
  206. --infodir=DIR info documentation in DIR [PREFIX/info]
  207. --mandir=DIR man documentation in DIR [PREFIX/man]
  208. --srcdir=DIR find the sources in DIR [configure dir or ..]
  209. --program-prefix=PREFIX prepend PREFIX to installed program names
  210. --program-suffix=SUFFIX append SUFFIX to installed program names
  211. --program-transform-name=PROGRAM
  212. run sed PROGRAM on installed program names
  213. EOF
  214. cat << EOF
  215. Host type:
  216. --build=BUILD configure for building on BUILD [BUILD=HOST]
  217. --host=HOST configure for HOST [guessed]
  218. --target=TARGET configure for TARGET [TARGET=HOST]
  219. Features and packages:
  220. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  221. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  222. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  223. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  224. --x-includes=DIR X include files are in DIR
  225. --x-libraries=DIR X library files are in DIR
  226. EOF
  227. if test -n "$ac_help"; then
  228. echo "--enable and --with options recognized:$ac_help"
  229. fi
  230. exit 0 ;;
  231. -host | --host | --hos | --ho)
  232. ac_prev=host ;;
  233. -host=* | --host=* | --hos=* | --ho=*)
  234. host="$ac_optarg" ;;
  235. -includedir | --includedir | --includedi | --included | --include \
  236. | --includ | --inclu | --incl | --inc)
  237. ac_prev=includedir ;;
  238. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  239. | --includ=* | --inclu=* | --incl=* | --inc=*)
  240. includedir="$ac_optarg" ;;
  241. -infodir | --infodir | --infodi | --infod | --info | --inf)
  242. ac_prev=infodir ;;
  243. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  244. infodir="$ac_optarg" ;;
  245. -libdir | --libdir | --libdi | --libd)
  246. ac_prev=libdir ;;
  247. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  248. libdir="$ac_optarg" ;;
  249. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  250. | --libexe | --libex | --libe)
  251. ac_prev=libexecdir ;;
  252. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  253. | --libexe=* | --libex=* | --libe=*)
  254. libexecdir="$ac_optarg" ;;
  255. -localstatedir | --localstatedir | --localstatedi | --localstated \
  256. | --localstate | --localstat | --localsta | --localst \
  257. | --locals | --local | --loca | --loc | --lo)
  258. ac_prev=localstatedir ;;
  259. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  260. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  261. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  262. localstatedir="$ac_optarg" ;;
  263. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  264. ac_prev=mandir ;;
  265. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  266. mandir="$ac_optarg" ;;
  267. -nfp | --nfp | --nf)
  268. # Obsolete; use --without-fp.
  269. with_fp=no ;;
  270. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  271. | --no-cr | --no-c)
  272. no_create=yes ;;
  273. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  274. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  275. no_recursion=yes ;;
  276. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  277. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  278. | --oldin | --oldi | --old | --ol | --o)
  279. ac_prev=oldincludedir ;;
  280. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  281. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  282. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  283. oldincludedir="$ac_optarg" ;;
  284. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  285. ac_prev=prefix ;;
  286. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  287. prefix="$ac_optarg" ;;
  288. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  289. | --program-pre | --program-pr | --program-p)
  290. ac_prev=program_prefix ;;
  291. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  292. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  293. program_prefix="$ac_optarg" ;;
  294. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  295. | --program-suf | --program-su | --program-s)
  296. ac_prev=program_suffix ;;
  297. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  298. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  299. program_suffix="$ac_optarg" ;;
  300. -program-transform-name | --program-transform-name \
  301. | --program-transform-nam | --program-transform-na \
  302. | --program-transform-n | --program-transform- \
  303. | --program-transform | --program-transfor \
  304. | --program-transfo | --program-transf \
  305. | --program-trans | --program-tran \
  306. | --progr-tra | --program-tr | --program-t)
  307. ac_prev=program_transform_name ;;
  308. -program-transform-name=* | --program-transform-name=* \
  309. | --program-transform-nam=* | --program-transform-na=* \
  310. | --program-transform-n=* | --program-transform-=* \
  311. | --program-transform=* | --program-transfor=* \
  312. | --program-transfo=* | --program-transf=* \
  313. | --program-trans=* | --program-tran=* \
  314. | --progr-tra=* | --program-tr=* | --program-t=*)
  315. program_transform_name="$ac_optarg" ;;
  316. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  317. | -silent | --silent | --silen | --sile | --sil)
  318. silent=yes ;;
  319. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  320. ac_prev=sbindir ;;
  321. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  322. | --sbi=* | --sb=*)
  323. sbindir="$ac_optarg" ;;
  324. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  325. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  326. | --sharedst | --shareds | --shared | --share | --shar \
  327. | --sha | --sh)
  328. ac_prev=sharedstatedir ;;
  329. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  330. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  331. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  332. | --sha=* | --sh=*)
  333. sharedstatedir="$ac_optarg" ;;
  334. -site | --site | --sit)
  335. ac_prev=site ;;
  336. -site=* | --site=* | --sit=*)
  337. site="$ac_optarg" ;;
  338. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  339. ac_prev=srcdir ;;
  340. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  341. srcdir="$ac_optarg" ;;
  342. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  343. | --syscon | --sysco | --sysc | --sys | --sy)
  344. ac_prev=sysconfdir ;;
  345. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  346. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  347. sysconfdir="$ac_optarg" ;;
  348. -target | --target | --targe | --targ | --tar | --ta | --t)
  349. ac_prev=target ;;
  350. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  351. target="$ac_optarg" ;;
  352. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  353. verbose=yes ;;
  354. -version | --version | --versio | --versi | --vers)
  355. echo "configure generated by autoconf version 2.13"
  356. exit 0 ;;
  357. -with-* | --with-*)
  358. ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  359. # Reject names that are not valid shell variable names.
  360. if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  361. { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  362. fi
  363. ac_package=`echo $ac_package| sed 's/-/_/g'`
  364. case "$ac_option" in
  365. *=*) ;;
  366. *) ac_optarg=yes ;;
  367. esac
  368. eval "with_${ac_package}='$ac_optarg'" ;;
  369. -without-* | --without-*)
  370. ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  371. # Reject names that are not valid shell variable names.
  372. if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  373. { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  374. fi
  375. ac_package=`echo $ac_package| sed 's/-/_/g'`
  376. eval "with_${ac_package}=no" ;;
  377. --x)
  378. # Obsolete; use --with-x.
  379. with_x=yes ;;
  380. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  381. | --x-incl | --x-inc | --x-in | --x-i)
  382. ac_prev=x_includes ;;
  383. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  384. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  385. x_includes="$ac_optarg" ;;
  386. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  387. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  388. ac_prev=x_libraries ;;
  389. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  390. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  391. x_libraries="$ac_optarg" ;;
  392. -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  393. ;;
  394. *)
  395. if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  396. echo "configure: warning: $ac_option: invalid host type" 1>&2
  397. fi
  398. if test "x$nonopt" != xNONE; then
  399. { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  400. fi
  401. nonopt="$ac_option"
  402. ;;
  403. esac
  404. done
  405. if test -n "$ac_prev"; then
  406. { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  407. fi
  408. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  409. # File descriptor usage:
  410. # 0 standard input
  411. # 1 file creation
  412. # 2 errors and warnings
  413. # 3 some systems may open it to /dev/tty
  414. # 4 used on the Kubota Titan
  415. # 6 checking for... messages and results
  416. # 5 compiler messages saved in config.log
  417. if test "$silent" = yes; then
  418. exec 6>/dev/null
  419. else
  420. exec 6>&1
  421. fi
  422. exec 5>./config.log
  423. echo "\
  424. This file contains any messages produced by compilers while
  425. running configure, to aid debugging if configure makes a mistake.
  426. " 1>&5
  427. # Strip out --no-create and --no-recursion so they do not pile up.
  428. # Also quote any args containing shell metacharacters.
  429. ac_configure_args=
  430. for ac_arg
  431. do
  432. case "$ac_arg" in
  433. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  434. | --no-cr | --no-c) ;;
  435. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  436. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  437. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  438. ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  439. *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  440. esac
  441. done
  442. # NLS nuisances.
  443. # Only set these to C if already set. These must not be set unconditionally
  444. # because not all systems understand e.g. LANG=C (notably SCO).
  445. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  446. # Non-C LC_CTYPE values break the ctype check.
  447. if test "${LANG+set}" = set; then LANG=C; export LANG; fi
  448. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  449. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  450. if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
  451. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  452. rm -rf conftest* confdefs.h
  453. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  454. echo > confdefs.h
  455. # A filename unique to this package, relative to the directory that
  456. # configure is in, which we can look for to find out if srcdir is correct.
  457. ac_unique_file=src/main.c
  458. # Find the source files, if location was not specified.
  459. if test -z "$srcdir"; then
  460. ac_srcdir_defaulted=yes
  461. # Try the directory containing this script, then its parent.
  462. ac_prog=$0
  463. ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  464. test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  465. srcdir=$ac_confdir
  466. if test ! -r $srcdir/$ac_unique_file; then
  467. srcdir=..
  468. fi
  469. else
  470. ac_srcdir_defaulted=no
  471. fi
  472. if test ! -r $srcdir/$ac_unique_file; then
  473. if test "$ac_srcdir_defaulted" = yes; then
  474. { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  475. else
  476. { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  477. fi
  478. fi
  479. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  480. # Prefer explicitly selected file to automatically selected ones.
  481. if test -z "$CONFIG_SITE"; then
  482. if test "x$prefix" != xNONE; then
  483. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  484. else
  485. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  486. fi
  487. fi
  488. for ac_site_file in $CONFIG_SITE; do
  489. if test -r "$ac_site_file"; then
  490. echo "loading site script $ac_site_file"
  491. . "$ac_site_file"
  492. fi
  493. done
  494. if test -r "$cache_file"; then
  495. echo "loading cache $cache_file"
  496. . $cache_file
  497. else
  498. echo "creating cache $cache_file"
  499. > $cache_file
  500. fi
  501. ac_ext=c
  502. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  503. ac_cpp='$CPP $CPPFLAGS'
  504. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  505. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  506. cross_compiling=$ac_cv_prog_cc_cross
  507. ac_exeext=
  508. ac_objext=o
  509. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  510. # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  511. if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  512. ac_n= ac_c='
  513. ' ac_t=' '
  514. else
  515. ac_n=-n ac_c= ac_t=
  516. fi
  517. else
  518. ac_n= ac_c='\c' ac_t=
  519. fi
  520. PACKAGE=sylpheed
  521. MAJOR_VERSION=0
  522. MINOR_VERSION=4
  523. MICRO_VERSION=65
  524. INTERFACE_AGE=65
  525. BINARY_AGE=65
  526. EXTRA_VERSION=cvs4
  527. VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
  528. ac_aux_dir=
  529. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  530. if test -f $ac_dir/install-sh; then
  531. ac_aux_dir=$ac_dir
  532. ac_install_sh="$ac_aux_dir/install-sh -c"
  533. break
  534. elif test -f $ac_dir/install.sh; then
  535. ac_aux_dir=$ac_dir
  536. ac_install_sh="$ac_aux_dir/install.sh -c"
  537. break
  538. fi
  539. done
  540. if test -z "$ac_aux_dir"; then
  541. { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  542. fi
  543. ac_config_guess=$ac_aux_dir/config.guess
  544. ac_config_sub=$ac_aux_dir/config.sub
  545. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  546. # Find a good install program. We prefer a C program (faster),
  547. # so one script is as good as another. But avoid the broken or
  548. # incompatible versions:
  549. # SysV /etc/install, /usr/sbin/install
  550. # SunOS /usr/etc/install
  551. # IRIX /sbin/install
  552. # AIX /bin/install
  553. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  554. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  555. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  556. # ./install, which can be erroneously created by make from ./install.sh.
  557. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  558. echo "configure:627: checking for a BSD compatible install" >&5
  559. if test -z "$INSTALL"; then
  560. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  561. echo $ac_n "(cached) $ac_c" 1>&6
  562. else
  563. IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
  564. for ac_dir in $PATH; do
  565. # Account for people who put trailing slashes in PATH elements.
  566. case "$ac_dir/" in
  567. /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  568. *)
  569. # OSF1 and SCO ODT 3.0 have their own names for install.
  570. # Don't use installbsd from OSF since it installs stuff as root
  571. # by default.
  572. for ac_prog in ginstall scoinst install; do
  573. if test -f $ac_dir/$ac_prog; then
  574. if test $ac_prog = install &&
  575. grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  576. # AIX install. It has an incompatible calling convention.
  577. :
  578. else
  579. ac_cv_path_install="$ac_dir/$ac_prog -c"
  580. break 2
  581. fi
  582. fi
  583. done
  584. ;;
  585. esac
  586. done
  587. IFS="$ac_save_IFS"
  588. fi
  589. if test "${ac_cv_path_install+set}" = set; then
  590. INSTALL="$ac_cv_path_install"
  591. else
  592. # As a last resort, use the slow shell script. We don't cache a
  593. # path for INSTALL within a source directory, because that will
  594. # break other packages using the cache if that directory is
  595. # removed, or if the path is relative.
  596. INSTALL="$ac_install_sh"
  597. fi
  598. fi
  599. echo "$ac_t""$INSTALL" 1>&6
  600. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  601. # It thinks the first close brace ends the variable substitution.
  602. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  603. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  604. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  605. echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
  606. echo "configure:680: checking whether build environment is sane" >&5
  607. # Just in case
  608. sleep 1
  609. echo timestamp > conftestfile
  610. # Do `set' in a subshell so we don't clobber the current shell's
  611. # arguments. Must try -L first in case configure is actually a
  612. # symlink; some systems play weird games with the mod time of symlinks
  613. # (eg FreeBSD returns the mod time of the symlink's containing
  614. # directory).
  615. if (
  616. set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
  617. if test "$*" = "X"; then
  618. # -L didn't work.
  619. set X `ls -t $srcdir/configure conftestfile`
  620. fi
  621. if test "$*" != "X $srcdir/configure conftestfile" \
  622. && test "$*" != "X conftestfile $srcdir/configure"; then
  623. # If neither matched, then we have a broken ls. This can happen
  624. # if, for instance, CONFIG_SHELL is bash and it inherits a
  625. # broken ls alias from the environment. This has actually
  626. # happened. Such a system could not be considered "sane".
  627. { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
  628. alias in your environment" 1>&2; exit 1; }
  629. fi
  630. test "$2" = conftestfile
  631. )
  632. then
  633. # Ok.
  634. :
  635. else
  636. { echo "configure: error: newly created file is older than distributed files!
  637. Check your system clock" 1>&2; exit 1; }
  638. fi
  639. rm -f conftest*
  640. echo "$ac_t""yes" 1>&6
  641. if test "$program_transform_name" = s,x,x,; then
  642. program_transform_name=
  643. else
  644. # Double any \ or $. echo might interpret backslashes.
  645. cat <<\EOF_SED > conftestsed
  646. s,\\,\\\\,g; s,\$,$$,g
  647. EOF_SED
  648. program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
  649. rm -f conftestsed
  650. fi
  651. test "$program_prefix" != NONE &&
  652. program_transform_name="s,^,${program_prefix},; $program_transform_name"
  653. # Use a double $ so make ignores it.
  654. test "$program_suffix" != NONE &&
  655. program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
  656. # sed with no file args requires a program.
  657. test "$program_transform_name" = "" && program_transform_name="s,x,x,"
  658. echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  659. echo "configure:737: checking whether ${MAKE-make} sets \${MAKE}" >&5
  660. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  661. if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  662. echo $ac_n "(cached) $ac_c" 1>&6
  663. else
  664. cat > conftestmake <<\EOF
  665. all:
  666. @echo 'ac_maketemp="${MAKE}"'
  667. EOF
  668. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  669. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  670. if test -n "$ac_maketemp"; then
  671. eval ac_cv_prog_make_${ac_make}_set=yes
  672. else
  673. eval ac_cv_prog_make_${ac_make}_set=no
  674. fi
  675. rm -f conftestmake
  676. fi
  677. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  678. echo "$ac_t""yes" 1>&6
  679. SET_MAKE=
  680. else
  681. echo "$ac_t""no" 1>&6
  682. SET_MAKE="MAKE=${MAKE-make}"
  683. fi
  684. PACKAGE=$PACKAGE
  685. VERSION=$VERSION
  686. if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
  687. { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
  688. fi
  689. missing_dir=`cd $ac_aux_dir && pwd`
  690. echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
  691. echo "configure:776: checking for working aclocal" >&5
  692. # Run test in a subshell; some versions of sh will print an error if
  693. # an executable is not found, even if stderr is redirected.
  694. # Redirect stdin to placate older versions of autoconf. Sigh.
  695. if (aclocal --version) < /dev/null > /dev/null 2>&1; then
  696. ACLOCAL=aclocal
  697. echo "$ac_t""found" 1>&6
  698. else
  699. ACLOCAL="$missing_dir/missing aclocal"
  700. echo "$ac_t""missing" 1>&6
  701. fi
  702. echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
  703. echo "configure:789: checking for working autoconf" >&5
  704. # Run test in a subshell; some versions of sh will print an error if
  705. # an executable is not found, even if stderr is redirected.
  706. # Redirect stdin to placate older versions of autoconf. Sigh.
  707. if (autoconf --version) < /dev/null > /dev/null 2>&1; then
  708. AUTOCONF=autoconf
  709. echo "$ac_t""found" 1>&6
  710. else
  711. AUTOCONF="$missing_dir/missing autoconf"
  712. echo "$ac_t""missing" 1>&6
  713. fi
  714. echo $ac_n "checking for working automake""... $ac_c" 1>&6
  715. echo "configure:802: checking for working automake" >&5
  716. # Run test in a subshell; some versions of sh will print an error if
  717. # an executable is not found, even if stderr is redirected.
  718. # Redirect stdin to placate older versions of autoconf. Sigh.
  719. if (automake --version) < /dev/null > /dev/null 2>&1; then
  720. AUTOMAKE=automake
  721. echo "$ac_t""found" 1>&6
  722. else
  723. AUTOMAKE="$missing_dir/missing automake"
  724. echo "$ac_t""missing" 1>&6
  725. fi
  726. echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
  727. echo "configure:815: checking for working autoheader" >&5
  728. # Run test in a subshell; some versions of sh will print an error if
  729. # an executable is not found, even if stderr is redirected.
  730. # Redirect stdin to placate older versions of autoconf. Sigh.
  731. if (autoheader --version) < /dev/null > /dev/null 2>&1; then
  732. AUTOHEADER=autoheader
  733. echo "$ac_t""found" 1>&6
  734. else
  735. AUTOHEADER="$missing_dir/missing autoheader"
  736. echo "$ac_t""missing" 1>&6
  737. fi
  738. echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
  739. echo "configure:828: checking for working makeinfo" >&5
  740. # Run test in a subshell; some versions of sh will print an error if
  741. # an executable is not found, even if stderr is redirected.
  742. # Redirect stdin to placate older versions of autoconf. Sigh.
  743. if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
  744. MAKEINFO=makeinfo
  745. echo "$ac_t""found" 1>&6
  746. else
  747. MAKEINFO="$missing_dir/missing makeinfo"
  748. echo "$ac_t""missing" 1>&6
  749. fi
  750. cat >> confdefs.h <<EOF
  751. #define PACKAGE "$PACKAGE"
  752. EOF
  753. cat >> confdefs.h <<EOF
  754. #define VERSION "$VERSION"
  755. EOF
  756. LT_RELEASE=$MAJOR_VERSION.$MINOR_VERSION
  757. LT_CURRENT=`expr $MICRO_VERSION - $INTERFACE_AGE`
  758. LT_REVISION=$INTERFACE_AGE
  759. LT_AGE=`expr $BINARY_AGE - $INTERFACE_AGE`
  760. # Check whether --enable-shared or --disable-shared was given.
  761. if test "${enable_shared+set}" = set; then
  762. enableval="$enable_shared"
  763. p=${PACKAGE-default}
  764. case "$enableval" in
  765. yes) enable_shared=yes ;;
  766. no) enable_shared=no ;;
  767. *)
  768. enable_shared=no
  769. # Look at the argument we got. We use all the common list separators.
  770. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  771. for pkg in $enableval; do
  772. if test "X$pkg" = "X$p"; then
  773. enable_shared=yes
  774. fi
  775. done
  776. IFS="$ac_save_ifs"
  777. ;;
  778. esac
  779. else
  780. enable_shared=yes
  781. fi
  782. # Check whether --enable-static or --disable-static was given.
  783. if test "${enable_static+set}" = set; then
  784. enableval="$enable_static"
  785. p=${PACKAGE-default}
  786. case "$enableval" in
  787. yes) enable_static=yes ;;
  788. no) enable_static=no ;;
  789. *)
  790. enable_static=no
  791. # Look at the argument we got. We use all the common list separators.
  792. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  793. for pkg in $enableval; do
  794. if test "X$pkg" = "X$p"; then
  795. enable_static=yes
  796. fi
  797. done
  798. IFS="$ac_save_ifs"
  799. ;;
  800. esac
  801. else
  802. enable_static=yes
  803. fi
  804. # Check whether --enable-fast-install or --disable-fast-install was given.
  805. if test "${enable_fast_install+set}" = set; then
  806. enableval="$enable_fast_install"
  807. p=${PACKAGE-default}
  808. case "$enableval" in
  809. yes) enable_fast_install=yes ;;
  810. no) enable_fast_install=no ;;
  811. *)
  812. enable_fast_install=no
  813. # Look at the argument we got. We use all the common list separators.
  814. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  815. for pkg in $enableval; do
  816. if test "X$pkg" = "X$p"; then
  817. enable_fast_install=yes
  818. fi
  819. done
  820. IFS="$ac_save_ifs"
  821. ;;
  822. esac
  823. else
  824. enable_fast_install=yes
  825. fi
  826. # Make sure we can run config.sub.
  827. if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
  828. else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  829. fi
  830. echo $ac_n "checking host system type""... $ac_c" 1>&6
  831. echo "configure:939: checking host system type" >&5
  832. host_alias=$host
  833. case "$host_alias" in
  834. NONE)
  835. case $nonopt in
  836. NONE)
  837. if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
  838. else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  839. fi ;;
  840. *) host_alias=$nonopt ;;
  841. esac ;;
  842. esac
  843. host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
  844. host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  845. host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  846. host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  847. echo "$ac_t""$host" 1>&6
  848. echo $ac_n "checking build system type""... $ac_c" 1>&6
  849. echo "configure:960: checking build system type" >&5
  850. build_alias=$build
  851. case "$build_alias" in
  852. NONE)
  853. case $nonopt in
  854. NONE) build_alias=$host_alias ;;
  855. *) build_alias=$nonopt ;;
  856. esac ;;
  857. esac
  858. build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
  859. build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  860. build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  861. build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  862. echo "$ac_t""$build" 1>&6
  863. # Extract the first word of "ranlib", so it can be a program name with args.
  864. set dummy ranlib; ac_word=$2
  865. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  866. echo "configure:980: checking for $ac_word" >&5
  867. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  868. echo $ac_n "(cached) $ac_c" 1>&6
  869. else
  870. if test -n "$RANLIB"; then
  871. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  872. else
  873. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  874. ac_dummy="$PATH"
  875. for ac_dir in $ac_dummy; do
  876. test -z "$ac_dir" && ac_dir=.
  877. if test -f $ac_dir/$ac_word; then
  878. ac_cv_prog_RANLIB="ranlib"
  879. break
  880. fi
  881. done
  882. IFS="$ac_save_ifs"
  883. test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  884. fi
  885. fi
  886. RANLIB="$ac_cv_prog_RANLIB"
  887. if test -n "$RANLIB"; then
  888. echo "$ac_t""$RANLIB" 1>&6
  889. else
  890. echo "$ac_t""no" 1>&6
  891. fi
  892. # Extract the first word of "gcc", so it can be a program name with args.
  893. set dummy gcc; ac_word=$2
  894. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  895. echo "configure:1010: checking for $ac_word" >&5
  896. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  897. echo $ac_n "(cached) $ac_c" 1>&6
  898. else
  899. if test -n "$CC"; then
  900. ac_cv_prog_CC="$CC" # Let the user override the test.
  901. else
  902. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  903. ac_dummy="$PATH"
  904. for ac_dir in $ac_dummy; do
  905. test -z "$ac_dir" && ac_dir=.
  906. if test -f $ac_dir/$ac_word; then
  907. ac_cv_prog_CC="gcc"
  908. break
  909. fi
  910. done
  911. IFS="$ac_save_ifs"
  912. fi
  913. fi
  914. CC="$ac_cv_prog_CC"
  915. if test -n "$CC"; then
  916. echo "$ac_t""$CC" 1>&6
  917. else
  918. echo "$ac_t""no" 1>&6
  919. fi
  920. if test -z "$CC"; then
  921. # Extract the first word of "cc", so it can be a program name with args.
  922. set dummy cc; ac_word=$2
  923. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  924. echo "configure:1040: checking for $ac_word" >&5
  925. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  926. echo $ac_n "(cached) $ac_c" 1>&6
  927. else
  928. if test -n "$CC"; then
  929. ac_cv_prog_CC="$CC" # Let the user override the test.
  930. else
  931. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  932. ac_prog_rejected=no
  933. ac_dummy="$PATH"
  934. for ac_dir in $ac_dummy; do
  935. test -z "$ac_dir" && ac_dir=.
  936. if test -f $ac_dir/$ac_word; then
  937. if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  938. ac_prog_rejected=yes
  939. continue
  940. fi
  941. ac_cv_prog_CC="cc"
  942. break
  943. fi
  944. done
  945. IFS="$ac_save_ifs"
  946. if test $ac_prog_rejected = yes; then
  947. # We found a bogon in the path, so make sure we never use it.
  948. set dummy $ac_cv_prog_CC
  949. shift
  950. if test $# -gt 0; then
  951. # We chose a different compiler from the bogus one.
  952. # However, it has the same basename, so the bogon will be chosen
  953. # first if we set CC to just the basename; use the full file name.
  954. shift
  955. set dummy "$ac_dir/$ac_word" "$@"
  956. shift
  957. ac_cv_prog_CC="$@"
  958. fi
  959. fi
  960. fi
  961. fi
  962. CC="$ac_cv_prog_CC"
  963. if test -n "$CC"; then
  964. echo "$ac_t""$CC" 1>&6
  965. else
  966. echo "$ac_t""no" 1>&6
  967. fi
  968. if test -z "$CC"; then
  969. case "`uname -s`" in
  970. *win32* | *WIN32*)
  971. # Extract the first word of "cl", so it can be a program name with args.
  972. set dummy cl; ac_word=$2
  973. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  974. echo "configure:1091: checking for $ac_word" >&5
  975. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  976. echo $ac_n "(cached) $ac_c" 1>&6
  977. else
  978. if test -n "$CC"; then
  979. ac_cv_prog_CC="$CC" # Let the user override the test.
  980. else
  981. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  982. ac_dummy="$PATH"
  983. for ac_dir in $ac_dummy; do
  984. test -z "$ac_dir" && ac_dir=.
  985. if test -f $ac_dir/$ac_word; then
  986. ac_cv_prog_CC="cl"
  987. break
  988. fi
  989. done
  990. IFS="$ac_save_ifs"
  991. fi
  992. fi
  993. CC="$ac_cv_prog_CC"
  994. if test -n "$CC"; then
  995. echo "$ac_t""$CC" 1>&6
  996. else
  997. echo "$ac_t""no" 1>&6
  998. fi
  999. ;;
  1000. esac
  1001. fi
  1002. test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  1003. fi
  1004. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  1005. echo "configure:1123: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  1006. ac_ext=c
  1007. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1008. ac_cpp='$CPP $CPPFLAGS'
  1009. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1010. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1011. cross_compiling=$ac_cv_prog_cc_cross
  1012. cat > conftest.$ac_ext << EOF
  1013. #line 1134 "configure"
  1014. #include "confdefs.h"
  1015. main(){return(0);}
  1016. EOF
  1017. if { (eval echo configure:1139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1018. ac_cv_prog_cc_works=yes
  1019. # If we can't run a trivial program, we are probably using a cross compiler.
  1020. if (./conftest; exit) 2>/dev/null; then
  1021. ac_cv_prog_cc_cross=no
  1022. else
  1023. ac_cv_prog_cc_cross=yes
  1024. fi
  1025. else
  1026. echo "configure: failed program was:" >&5
  1027. cat conftest.$ac_ext >&5
  1028. ac_cv_prog_cc_works=no
  1029. fi
  1030. rm -fr conftest*
  1031. ac_ext=c
  1032. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1033. ac_cpp='$CPP $CPPFLAGS'
  1034. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1035. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1036. cross_compiling=$ac_cv_prog_cc_cross
  1037. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  1038. if test $ac_cv_prog_cc_works = no; then
  1039. { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  1040. fi
  1041. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  1042. echo "configure:1165: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  1043. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  1044. cross_compiling=$ac_cv_prog_cc_cross
  1045. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  1046. echo "configure:1170: checking whether we are using GNU C" >&5
  1047. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  1048. echo $ac_n "(cached) $ac_c" 1>&6
  1049. else
  1050. cat > conftest.c <<EOF
  1051. #ifdef __GNUC__
  1052. yes;
  1053. #endif
  1054. EOF
  1055. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1179: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  1056. ac_cv_prog_gcc=yes
  1057. else
  1058. ac_cv_prog_gcc=no
  1059. fi
  1060. fi
  1061. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  1062. if test $ac_cv_prog_gcc = yes; then
  1063. GCC=yes
  1064. else
  1065. GCC=
  1066. fi
  1067. ac_test_CFLAGS="${CFLAGS+set}"
  1068. ac_save_CFLAGS="$CFLAGS"
  1069. CFLAGS=
  1070. echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  1071. echo "configure:1198: checking whether ${CC-cc} accepts -g" >&5
  1072. if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  1073. echo $ac_n "(cached) $ac_c" 1>&6
  1074. else
  1075. echo 'void f(){}' > conftest.c
  1076. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  1077. ac_cv_prog_cc_g=yes
  1078. else
  1079. ac_cv_prog_cc_g=no
  1080. fi
  1081. rm -f conftest*
  1082. fi
  1083. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  1084. if test "$ac_test_CFLAGS" = set; then
  1085. CFLAGS="$ac_save_CFLAGS"
  1086. elif test $ac_cv_prog_cc_g = yes; then
  1087. if test "$GCC" = yes; then
  1088. CFLAGS="-g -O2"
  1089. else
  1090. CFLAGS="-g"
  1091. fi
  1092. else
  1093. if test "$GCC" = yes; then
  1094. CFLAGS="-O2"
  1095. else
  1096. CFLAGS=
  1097. fi
  1098. fi
  1099. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  1100. if test "${with_gnu_ld+set}" = set; then
  1101. withval="$with_gnu_ld"
  1102. test "$withval" = no || with_gnu_ld=yes
  1103. else
  1104. with_gnu_ld=no
  1105. fi
  1106. ac_prog=ld
  1107. if test "$ac_cv_prog_gcc" = yes; then
  1108. # Check if gcc -print-prog-name=ld gives a path.
  1109. echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
  1110. echo "configure:1241: checking for ld used by GCC" >&5
  1111. ac_prog=`($CC -print-prog-name=ld) 2>&5`
  1112. case "$ac_prog" in
  1113. # Accept absolute paths.
  1114. [\\/]* | [A-Za-z]:[\\/]*)
  1115. re_direlt='/[^/][^/]*/\.\./'
  1116. # Canonicalize the path of ld
  1117. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  1118. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  1119. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  1120. done
  1121. test -z "$LD" && LD="$ac_prog"
  1122. ;;
  1123. "")
  1124. # If it fails, then pretend we aren't using GCC.
  1125. ac_prog=ld
  1126. ;;
  1127. *)
  1128. # If it is relative, then search for the first ld in PATH.
  1129. with_gnu_ld=unknown
  1130. ;;
  1131. esac
  1132. elif test "$with_gnu_ld" = yes; then
  1133. echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
  1134. echo "configure:1265: checking for GNU ld" >&5
  1135. else
  1136. echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
  1137. echo "configure:1268: checking for non-GNU ld" >&5
  1138. fi
  1139. if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
  1140. echo $ac_n "(cached) $ac_c" 1>&6
  1141. else
  1142. if test -z "$LD"; then
  1143. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  1144. for ac_dir in $PATH; do
  1145. test -z "$ac_dir" && ac_dir=.
  1146. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  1147. ac_cv_path_LD="$ac_dir/$ac_prog"
  1148. # Check to see if the program is GNU ld. I'd rather use --version,
  1149. # but apparently some GNU ld's only accept -v.
  1150. # Break only if it was the GNU/non-GNU ld that we prefer.
  1151. if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  1152. test "$with_gnu_ld" != no && break
  1153. else
  1154. test "$with_gnu_ld" != yes && break
  1155. fi
  1156. fi
  1157. done
  1158. IFS="$ac_save_ifs"
  1159. else
  1160. ac_cv_path_LD="$LD" # Let the user override the test with a path.
  1161. fi
  1162. fi
  1163. LD="$ac_cv_path_LD"
  1164. if test -n "$LD"; then
  1165. echo "$ac_t""$LD" 1>&6
  1166. else
  1167. echo "$ac_t""no" 1>&6
  1168. fi
  1169. test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
  1170. echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
  1171. echo "configure:1303: checking if the linker ($LD) is GNU ld" >&5
  1172. if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
  1173. echo $ac_n "(cached) $ac_c" 1>&6
  1174. else
  1175. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  1176. if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  1177. ac_cv_prog_gnu_ld=yes
  1178. else
  1179. ac_cv_prog_gnu_ld=no
  1180. fi
  1181. fi
  1182. echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
  1183. echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
  1184. echo "configure:1319: checking for BSD-compatible nm" >&5
  1185. if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
  1186. echo $ac_n "(cached) $ac_c" 1>&6
  1187. else
  1188. if test -n "$NM"; then
  1189. # Let the user override the test.
  1190. ac_cv_path_NM="$NM"
  1191. else
  1192. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  1193. for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  1194. test -z "$ac_dir" && ac_dir=.
  1195. if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
  1196. # Check to see if the nm accepts a BSD-compat flag.
  1197. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  1198. # nm: unknown option "B" ignored
  1199. if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
  1200. ac_cv_path_NM="$ac_dir/nm -B"
  1201. break
  1202. elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
  1203. ac_cv_path_NM="$ac_dir/nm -p"
  1204. break
  1205. else
  1206. ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
  1207. continue # so that we can try to find one that supports BSD flags
  1208. fi
  1209. fi
  1210. done
  1211. IFS="$ac_save_ifs"
  1212. test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
  1213. fi
  1214. fi
  1215. NM="$ac_cv_path_NM"
  1216. echo "$ac_t""$NM" 1>&6
  1217. echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
  1218. echo "configure:1355: checking whether ln -s works" >&5
  1219. if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
  1220. echo $ac_n "(cached) $ac_c" 1>&6
  1221. else
  1222. rm -f conftestdata
  1223. if ln -s X conftestdata 2>/dev/null
  1224. then
  1225. rm -f conftestdata
  1226. ac_cv_prog_LN_S="ln -s"
  1227. else
  1228. ac_cv_prog_LN_S=ln
  1229. fi
  1230. fi
  1231. LN_S="$ac_cv_prog_LN_S"
  1232. if test "$ac_cv_prog_LN_S" = "ln -s"; then
  1233. echo "$ac_t""yes" 1>&6
  1234. else
  1235. echo "$ac_t""no" 1>&6
  1236. fi
  1237. case "$target" in
  1238. NONE) lt_target="$host" ;;
  1239. *) lt_target="$target" ;;
  1240. esac
  1241. # Check for any special flags to pass to ltconfig.
  1242. #
  1243. # the following will cause an existing older ltconfig to fail, so
  1244. # we ignore this at the expense of the cache file... Checking this
  1245. # will just take longer ... bummer!
  1246. #libtool_flags="--cache-file=$cache_file"
  1247. #
  1248. test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
  1249. test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
  1250. test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
  1251. test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
  1252. test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
  1253. # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  1254. if test "${enable_libtool_lock+set}" = set; then
  1255. enableval="$enable_libtool_lock"
  1256. :
  1257. fi
  1258. test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
  1259. test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
  1260. # Some flags need to be propagated to the compiler or linker for good
  1261. # libtool support.
  1262. case "$lt_target" in
  1263. *-*-irix6*)
  1264. # Find out which ABI we are using.
  1265. echo '#line 1409 "configure"' > conftest.$ac_ext
  1266. if { (eval echo configure:1410: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1267. case "`/usr/bin/file conftest.o`" in
  1268. *32-bit*)
  1269. LD="${LD-ld} -32"
  1270. ;;
  1271. *N32*)
  1272. LD="${LD-ld} -n32"
  1273. ;;
  1274. *64-bit*)
  1275. LD="${LD-ld} -64"
  1276. ;;
  1277. esac
  1278. fi
  1279. rm -rf conftest*
  1280. ;;
  1281. *-*-sco3.2v5*)
  1282. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  1283. SAVE_CFLAGS="$CFLAGS"
  1284. CFLAGS="$CFLAGS -belf"
  1285. echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
  1286. echo "configure:1431: checking whether the C compiler needs -belf" >&5
  1287. if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
  1288. echo $ac_n "(cached) $ac_c" 1>&6
  1289. else
  1290. cat > conftest.$ac_ext <<EOF
  1291. #line 1436 "configure"
  1292. #include "confdefs.h"
  1293. int main() {
  1294. ; return 0; }
  1295. EOF
  1296. if { (eval echo configure:1443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1297. rm -rf conftest*
  1298. lt_cv_cc_needs_belf=yes
  1299. else
  1300. echo "configure: failed program was:" >&5
  1301. cat conftest.$ac_ext >&5
  1302. rm -rf conftest*
  1303. lt_cv_cc_needs_belf=no
  1304. fi
  1305. rm -f conftest*
  1306. fi
  1307. echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
  1308. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  1309. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  1310. CFLAGS="$SAVE_CFLAGS"
  1311. fi
  1312. ;;
  1313. esac
  1314. # Save cache, so that ltconfig can load it
  1315. cat > confcache <<\EOF
  1316. # This file is a shell script that caches the results of configure
  1317. # tests run on this system so they can be shared between configure
  1318. # scripts and configure runs. It is not useful on other systems.
  1319. # If it contains results you don't want to keep, you may remove or edit it.
  1320. #
  1321. # By default, configure uses ./config.cache as the cache file,
  1322. # creating it if it does not exist already. You can give configure
  1323. # the --cache-file=FILE option to use a different cache file; that is
  1324. # what configure does when it calls configure scripts in
  1325. # subdirectories, so they share the cache.
  1326. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  1327. # config.status only pays attention to the cache file if you give it the
  1328. # --recheck option to rerun configure.
  1329. #
  1330. EOF
  1331. # The following way of writing the cache mishandles newlines in values,
  1332. # but we know of no workaround that is simple, portable, and efficient.
  1333. # So, don't put newlines in cache variables' values.
  1334. # Ultrix sh set writes to stderr and can't be redirected directly,
  1335. # and sets the high bit in the cache file unless we assign to the vars.
  1336. (set) 2>&1 |
  1337. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  1338. *ac_space=\ *)
  1339. # `set' does not quote correctly, so add quotes (double-quote substitution
  1340. # turns \\\\ into \\, and sed turns \\ into \).
  1341. sed -n \
  1342. -e "s/'/'\\\\''/g" \
  1343. -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  1344. ;;
  1345. *)
  1346. # `set' quotes correctly as required by POSIX, so do not add quotes.
  1347. sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  1348. ;;
  1349. esac >> confcache
  1350. if cmp -s $cache_file confcache; then
  1351. :
  1352. else
  1353. if test -w $cache_file; then
  1354. echo "updating cache $cache_file"
  1355. cat confcache > $cache_file
  1356. else
  1357. echo "not updating unwritable cache $cache_file"
  1358. fi
  1359. fi
  1360. rm -f confcache
  1361. # Actually configure libtool. ac_aux_dir is where install-sh is found.
  1362. CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
  1363. LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
  1364. LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
  1365. DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
  1366. ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
  1367. $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
  1368. || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
  1369. # Reload cache, that may have been modified by ltconfig
  1370. if test -r "$cache_file"; then
  1371. echo "loading cache $cache_file"
  1372. . $cache_file
  1373. else
  1374. echo "creating cache $cache_file"
  1375. > $cache_file
  1376. fi
  1377. # This can be used to rebuild libtool when needed
  1378. LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
  1379. # Always use our own libtool.
  1380. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  1381. # Redirect the config.log output again, so that the ltconfig log is not
  1382. # clobbered by the next message.
  1383. exec 5>>./config.log
  1384. echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
  1385. echo "configure:1545: checking whether to enable maintainer-specific portions of Makefiles" >&5
  1386. # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
  1387. if test "${enable_maintainer_mode+set}" = set; then
  1388. enableval="$enable_maintainer_mode"
  1389. USE_MAINTAINER_MODE=$enableval
  1390. else
  1391. USE_MAINTAINER_MODE=no
  1392. fi
  1393. echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
  1394. if test $USE_MAINTAINER_MODE = yes; then
  1395. MAINTAINER_MODE_TRUE=
  1396. MAINTAINER_MODE_FALSE='#'
  1397. else
  1398. MAINTAINER_MODE_TRUE='#'
  1399. MAINTAINER_MODE_FALSE=
  1400. fi
  1401. MAINT=$MAINTAINER_MODE_TRUE
  1402. if test "$program_transform_name" = s,x,x,; then
  1403. program_transform_name=
  1404. else
  1405. # Double any \ or $. echo might interpret backslashes.
  1406. cat <<\EOF_SED > conftestsed
  1407. s,\\,\\\\,g; s,\$,$$,g
  1408. EOF_SED
  1409. program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
  1410. rm -f conftestsed
  1411. fi
  1412. test "$program_prefix" != NONE &&
  1413. program_transform_name="s,^,${program_prefix},; $program_transform_name"
  1414. # Use a double $ so make ignores it.
  1415. test "$program_suffix" != NONE &&
  1416. program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
  1417. # sed with no file args requires a program.
  1418. test "$program_transform_name" = "" && program_transform_name="s,x,x,"
  1419. # Extract the first word of "gcc", so it can be a program name with args.
  1420. set dummy gcc; ac_word=$2
  1421. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1422. echo "configure:1590: checking for $ac_word" >&5
  1423. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  1424. echo $ac_n "(cached) $ac_c" 1>&6
  1425. else
  1426. if test -n "$CC"; then
  1427. ac_cv_prog_CC="$CC" # Let the user override the test.
  1428. else
  1429. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1430. ac_dummy="$PATH"
  1431. for ac_dir in $ac_dummy; do
  1432. test -z "$ac_dir" && ac_dir=.
  1433. if test -f $ac_dir/$ac_word; then
  1434. ac_cv_prog_CC="gcc"
  1435. break
  1436. fi
  1437. done
  1438. IFS="$ac_save_ifs"
  1439. fi
  1440. fi
  1441. CC="$ac_cv_prog_CC"
  1442. if test -n "$CC"; then
  1443. echo "$ac_t""$CC" 1>&6
  1444. else
  1445. echo "$ac_t""no" 1>&6
  1446. fi
  1447. if test -z "$CC"; then
  1448. # Extract the first word of "cc", so it can be a program name with args.
  1449. set dummy cc; ac_word=$2
  1450. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1451. echo "configure:1620: checking for $ac_word" >&5
  1452. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  1453. echo $ac_n "(cached) $ac_c" 1>&6
  1454. else
  1455. if test -n "$CC"; then
  1456. ac_cv_prog_CC="$CC" # Let the user override the test.
  1457. else
  1458. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1459. ac_prog_rejected=no
  1460. ac_dummy="$PATH"
  1461. for ac_dir in $ac_dummy; do
  1462. test -z "$ac_dir" && ac_dir=.
  1463. if test -f $ac_dir/$ac_word; then
  1464. if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  1465. ac_prog_rejected=yes
  1466. continue
  1467. fi
  1468. ac_cv_prog_CC="cc"
  1469. break
  1470. fi
  1471. done
  1472. IFS="$ac_save_ifs"
  1473. if test $ac_prog_rejected = yes; then
  1474. # We found a bogon in the path, so make sure we never use it.
  1475. set dummy $ac_cv_prog_CC
  1476. shift
  1477. if test $# -gt 0; then
  1478. # We chose a different compiler from the bogus one.
  1479. # However, it has the same basename, so the bogon will be chosen
  1480. # first if we set CC to just the basename; use the full file name.
  1481. shift
  1482. set dummy "$ac_dir/$ac_word" "$@"
  1483. shift
  1484. ac_cv_prog_CC="$@"
  1485. fi
  1486. fi
  1487. fi
  1488. fi
  1489. CC="$ac_cv_prog_CC"
  1490. if test -n "$CC"; then
  1491. echo "$ac_t""$CC" 1>&6
  1492. else
  1493. echo "$ac_t""no" 1>&6
  1494. fi
  1495. if test -z "$CC"; then
  1496. case "`uname -s`" in
  1497. *win32* | *WIN32*)
  1498. # Extract the first word of "cl", so it can be a program name with args.
  1499. set dummy cl; ac_word=$2
  1500. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1501. echo "configure:1671: checking for $ac_word" >&5
  1502. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  1503. echo $ac_n "(cached) $ac_c" 1>&6
  1504. else
  1505. if test -n "$CC"; then
  1506. ac_cv_prog_CC="$CC" # Let the user override the test.
  1507. else
  1508. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1509. ac_dummy="$PATH"
  1510. for ac_dir in $ac_dummy; do
  1511. test -z "$ac_dir" && ac_dir=.
  1512. if test -f $ac_dir/$ac_word; then
  1513. ac_cv_prog_CC="cl"
  1514. break
  1515. fi
  1516. done
  1517. IFS="$ac_save_ifs"
  1518. fi
  1519. fi
  1520. CC="$ac_cv_prog_CC"
  1521. if test -n "$CC"; then
  1522. echo "$ac_t""$CC" 1>&6
  1523. else
  1524. echo "$ac_t""no" 1>&6
  1525. fi
  1526. ;;
  1527. esac
  1528. fi
  1529. test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  1530. fi
  1531. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  1532. echo "configure:1703: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  1533. ac_ext=c
  1534. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1535. ac_cpp='$CPP $CPPFLAGS'
  1536. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1537. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1538. cross_compiling=$ac_cv_prog_cc_cross
  1539. cat > conftest.$ac_ext << EOF
  1540. #line 1714 "configure"
  1541. #include "confdefs.h"
  1542. main(){return(0);}
  1543. EOF
  1544. if { (eval echo configure:1719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1545. ac_cv_prog_cc_works=yes
  1546. # If we can't run a trivial program, we are probably using a cross compiler.
  1547. if (./conftest; exit) 2>/dev/null; then
  1548. ac_cv_prog_cc_cross=no
  1549. else
  1550. ac_cv_prog_cc_cross=yes
  1551. fi
  1552. else
  1553. echo "configure: failed program was:" >&5
  1554. cat conftest.$ac_ext >&5
  1555. ac_cv_prog_cc_works=no
  1556. fi
  1557. rm -fr conftest*
  1558. ac_ext=c
  1559. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1560. ac_cpp='$CPP $CPPFLAGS'
  1561. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1562. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1563. cross_compiling=$ac_cv_prog_cc_cross
  1564. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  1565. if test $ac_cv_prog_cc_works = no; then
  1566. { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  1567. fi
  1568. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  1569. echo "configure:1745: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  1570. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  1571. cross_compiling=$ac_cv_prog_cc_cross
  1572. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  1573. echo "configure:1750: checking whether we are using GNU C" >&5
  1574. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  1575. echo $ac_n "(cached) $ac_c" 1>&6
  1576. else
  1577. cat > conftest.c <<EOF
  1578. #ifdef __GNUC__
  1579. yes;
  1580. #endif
  1581. EOF
  1582. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1759: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  1583. ac_cv_prog_gcc=yes
  1584. else
  1585. ac_cv_prog_gcc=no
  1586. fi
  1587. fi
  1588. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  1589. if test $ac_cv_prog_gcc = yes; then
  1590. GCC=yes
  1591. else
  1592. GCC=
  1593. fi
  1594. ac_test_CFLAGS="${CFLAGS+set}"
  1595. ac_save_CFLAGS="$CFLAGS"
  1596. CFLAGS=
  1597. echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  1598. echo "configure:1778: checking whether ${CC-cc} accepts -g" >&5
  1599. if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  1600. echo $ac_n "(cached) $ac_c" 1>&6
  1601. else
  1602. echo 'void f(){}' > conftest.c
  1603. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  1604. ac_cv_prog_cc_g=yes
  1605. else
  1606. ac_cv_prog_cc_g=no
  1607. fi
  1608. rm -f conftest*
  1609. fi
  1610. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  1611. if test "$ac_test_CFLAGS" = set; then
  1612. CFLAGS="$ac_save_CFLAGS"
  1613. elif test $ac_cv_prog_cc_g = yes; then
  1614. if test "$GCC" = yes; then
  1615. CFLAGS="-g -O2"
  1616. else
  1617. CFLAGS="-g"
  1618. fi
  1619. else
  1620. if test "$GCC" = yes; then
  1621. CFLAGS="-O2"
  1622. else
  1623. CFLAGS=
  1624. fi
  1625. fi
  1626. echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
  1627. echo "configure:1810: checking for POSIXized ISC" >&5
  1628. if test -d /etc/conf/kconfig.d &&
  1629. grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  1630. then
  1631. echo "$ac_t""yes" 1>&6
  1632. ISC=yes # If later tests want to check for ISC.
  1633. cat >> confdefs.h <<\EOF
  1634. #define _POSIX_SOURCE 1
  1635. EOF
  1636. if test "$GCC" = yes; then
  1637. CC="$CC -posix"
  1638. else
  1639. CC="$CC -Xp"
  1640. fi
  1641. else
  1642. echo "$ac_t""no" 1>&6
  1643. ISC=
  1644. fi
  1645. echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
  1646. echo "configure:1834: checking for ${CC-cc} option to accept ANSI C" >&5
  1647. if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
  1648. echo $ac_n "(cached) $ac_c" 1>&6
  1649. else
  1650. am_cv_prog_cc_stdc=no
  1651. ac_save_CC="$CC"
  1652. # Don't try gcc -ansi; that turns off useful extensions and
  1653. # breaks some systems' header files.
  1654. # AIX -qlanglvl=ansi
  1655. # Ultrix and OSF/1 -std1
  1656. # HP-UX -Aa -D_HPUX_SOURCE
  1657. # SVR4 -Xc -D__EXTENSIONS__
  1658. for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  1659. do
  1660. CC="$ac_save_CC $ac_arg"
  1661. cat > conftest.$ac_ext <<EOF
  1662. #line 1850 "configure"
  1663. #include "confdefs.h"
  1664. #include <stdarg.h>
  1665. #include <stdio.h>
  1666. #include <sys/types.h>
  1667. #include <sys/stat.h>
  1668. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  1669. struct buf { int x; };
  1670. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  1671. static char *e (p, i)
  1672. char **p;
  1673. int i;
  1674. {
  1675. return p[i];
  1676. }
  1677. static char *f (char * (*g) (char **, int), char **p, ...)
  1678. {
  1679. char *s;
  1680. va_list v;
  1681. va_start (v,p);
  1682. s = g (p, va_arg (v,int));
  1683. va_end (v);
  1684. return s;
  1685. }
  1686. int test (int i, double x);
  1687. struct s1 {int (*f) (int a);};
  1688. struct s2 {int (*f) (double a);};
  1689. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  1690. int argc;
  1691. char **argv;
  1692. int main() {
  1693. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  1694. ; return 0; }
  1695. EOF
  1696. if { (eval echo configure:1887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1697. rm -rf conftest*
  1698. am_cv_prog_cc_stdc="$ac_arg"; break
  1699. else
  1700. echo "configure: failed program was:" >&5
  1701. cat conftest.$ac_ext >&5
  1702. fi
  1703. rm -f conftest*
  1704. done
  1705. CC="$ac_save_CC"
  1706. fi
  1707. if test -z "$am_cv_prog_cc_stdc"; then
  1708. echo "$ac_t""none needed" 1>&6
  1709. else
  1710. echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
  1711. fi
  1712. case "x$am_cv_prog_cc_stdc" in
  1713. x|xno) ;;
  1714. *) CC="$CC $am_cv_prog_cc_stdc" ;;
  1715. esac
  1716. # Find a good install program. We prefer a C program (faster),
  1717. # so one script is as good as another. But avoid the broken or
  1718. # incompatible versions:
  1719. # SysV /etc/install, /usr/sbin/install
  1720. # SunOS /usr/etc/install
  1721. # IRIX /sbin/install
  1722. # AIX /bin/install
  1723. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1724. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1725. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1726. # ./install, which can be erroneously created by make from ./install.sh.
  1727. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  1728. echo "configure:1922: checking for a BSD compatible install" >&5
  1729. if test -z "$INSTALL"; then
  1730. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  1731. echo $ac_n "(cached) $ac_c" 1>&6
  1732. else
  1733. IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
  1734. for ac_dir in $PATH; do
  1735. # Account for people who put trailing slashes in PATH elements.
  1736. case "$ac_dir/" in
  1737. /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  1738. *)
  1739. # OSF1 and SCO ODT 3.0 have their own names for install.
  1740. # Don't use installbsd from OSF since it installs stuff as root
  1741. # by default.
  1742. for ac_prog in ginstall scoinst install; do
  1743. if test -f $ac_dir/$ac_prog; then
  1744. if test $ac_prog = install &&
  1745. grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  1746. # AIX install. It has an incompatible calling convention.
  1747. :
  1748. else
  1749. ac_cv_path_install="$ac_dir/$ac_prog -c"
  1750. break 2
  1751. fi
  1752. fi
  1753. done
  1754. ;;
  1755. esac
  1756. done
  1757. IFS="$ac_save_IFS"
  1758. fi
  1759. if test "${ac_cv_path_install+set}" = set; then
  1760. INSTALL="$ac_cv_path_install"
  1761. else
  1762. # As a last resort, use the slow shell script. We don't cache a
  1763. # path for INSTALL within a source directory, because that will
  1764. # break other packages using the cache if that directory is
  1765. # removed, or if the path is relative.
  1766. INSTALL="$ac_install_sh"
  1767. fi
  1768. fi
  1769. echo "$ac_t""$INSTALL" 1>&6
  1770. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1771. # It thinks the first close brace ends the variable substitution.
  1772. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1773. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  1774. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1775. echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
  1776. echo "configure:1975: checking whether ln -s works" >&5
  1777. if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
  1778. echo $ac_n "(cached) $ac_c" 1>&6
  1779. else
  1780. rm -f conftestdata
  1781. if ln -s X conftestdata 2>/dev/null
  1782. then
  1783. rm -f conftestdata
  1784. ac_cv_prog_LN_S="ln -s"
  1785. else
  1786. ac_cv_prog_LN_S=ln
  1787. fi
  1788. fi
  1789. LN_S="$ac_cv_prog_LN_S"
  1790. if test "$ac_cv_prog_LN_S" = "ln -s"; then
  1791. echo "$ac_t""yes" 1>&6
  1792. else
  1793. echo "$ac_t""no" 1>&6
  1794. fi
  1795. echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  1796. echo "configure:1996: checking whether ${MAKE-make} sets \${MAKE}" >&5
  1797. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  1798. if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  1799. echo $ac_n "(cached) $ac_c" 1>&6
  1800. else
  1801. cat > conftestmake <<\EOF
  1802. all:
  1803. @echo 'ac_maketemp="${MAKE}"'
  1804. EOF
  1805. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1806. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  1807. if test -n "$ac_maketemp"; then
  1808. eval ac_cv_prog_make_${ac_make}_set=yes
  1809. else
  1810. eval ac_cv_prog_make_${ac_make}_set=no
  1811. fi
  1812. rm -f conftestmake
  1813. fi
  1814. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  1815. echo "$ac_t""yes" 1>&6
  1816. SET_MAKE=
  1817. else
  1818. echo "$ac_t""no" 1>&6
  1819. SET_MAKE="MAKE=${MAKE-make}"
  1820. fi
  1821. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  1822. echo "configure:2023: checking how to run the C preprocessor" >&5
  1823. # On Suns, sometimes $CPP names a directory.
  1824. if test -n "$CPP" && test -d "$CPP"; then
  1825. CPP=
  1826. fi
  1827. if test -z "$CPP"; then
  1828. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  1829. echo $ac_n "(cached) $ac_c" 1>&6
  1830. else
  1831. # This must be in double quotes, not single quotes, because CPP may get
  1832. # substituted into the Makefile and "${CC-cc}" will confuse make.
  1833. CPP="${CC-cc} -E"
  1834. # On the NeXT, cc -E runs the code through the compiler's parser,
  1835. # not just through cpp.
  1836. cat > conftest.$ac_ext <<EOF
  1837. #line 2038 "configure"
  1838. #include "confdefs.h"
  1839. #include <assert.h>
  1840. Syntax Error
  1841. EOF
  1842. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1843. { (eval echo configure:2044: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1844. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1845. if test -z "$ac_err"; then
  1846. :
  1847. else
  1848. echo "$ac_err" >&5
  1849. echo "configure: failed program was:" >&5
  1850. cat conftest.$ac_ext >&5
  1851. rm -rf conftest*
  1852. CPP="${CC-cc} -E -traditional-cpp"
  1853. cat > conftest.$ac_ext <<EOF
  1854. #line 2055 "configure"
  1855. #include "confdefs.h"
  1856. #include <assert.h>
  1857. Syntax Error
  1858. EOF
  1859. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1860. { (eval echo configure:2061: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1861. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1862. if test -z "$ac_err"; then
  1863. :
  1864. else
  1865. echo "$ac_err" >&5
  1866. echo "configure: failed program was:" >&5
  1867. cat conftest.$ac_ext >&5
  1868. rm -rf conftest*
  1869. CPP="${CC-cc} -nologo -E"
  1870. cat > conftest.$ac_ext <<EOF
  1871. #line 2072 "configure"
  1872. #include "confdefs.h"
  1873. #include <assert.h>
  1874. Syntax Error
  1875. EOF
  1876. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1877. { (eval echo configure:2078: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1878. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1879. if test -z "$ac_err"; then
  1880. :
  1881. else
  1882. echo "$ac_err" >&5
  1883. echo "configure: failed program was:" >&5
  1884. cat conftest.$ac_ext >&5
  1885. rm -rf conftest*
  1886. CPP=/lib/cpp
  1887. fi
  1888. rm -f conftest*
  1889. fi
  1890. rm -f conftest*
  1891. fi
  1892. rm -f conftest*
  1893. ac_cv_prog_CPP="$CPP"
  1894. fi
  1895. CPP="$ac_cv_prog_CPP"
  1896. else
  1897. ac_cv_prog_CPP="$CPP"
  1898. fi
  1899. echo "$ac_t""$CPP" 1>&6
  1900. test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
  1901. for k in ac ; do ACLOCAL="$ACLOCAL -I $k" ; done
  1902. ALL_LINGUAS="cs de el es fr it ja ko nl pt_BR ru zh_CN.GB2312 zh_TW.Big5"
  1903. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  1904. echo "configure:2111: checking for ANSI C header files" >&5
  1905. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  1906. echo $ac_n "(cached) $ac_c" 1>&6
  1907. else
  1908. cat > conftest.$ac_ext <<EOF
  1909. #line 2116 "configure"
  1910. #include "confdefs.h"
  1911. #include <stdlib.h>
  1912. #include <stdarg.h>
  1913. #include <string.h>
  1914. #include <float.h>
  1915. EOF
  1916. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1917. { (eval echo configure:2124: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1918. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1919. if test -z "$ac_err"; then
  1920. rm -rf conftest*
  1921. ac_cv_header_stdc=yes
  1922. else
  1923. echo "$ac_err" >&5
  1924. echo "configure: failed program was:" >&5
  1925. cat conftest.$ac_ext >&5
  1926. rm -rf conftest*
  1927. ac_cv_header_stdc=no
  1928. fi
  1929. rm -f conftest*
  1930. if test $ac_cv_header_stdc = yes; then
  1931. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  1932. cat > conftest.$ac_ext <<EOF
  1933. #line 2141 "configure"
  1934. #include "confdefs.h"
  1935. #include <string.h>
  1936. EOF
  1937. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1938. egrep "memchr" >/dev/null 2>&1; then
  1939. :
  1940. else
  1941. rm -rf conftest*
  1942. ac_cv_header_stdc=no
  1943. fi
  1944. rm -f conftest*
  1945. fi
  1946. if test $ac_cv_header_stdc = yes; then
  1947. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  1948. cat > conftest.$ac_ext <<EOF
  1949. #line 2159 "configure"
  1950. #include "confdefs.h"
  1951. #include <stdlib.h>
  1952. EOF
  1953. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1954. egrep "free" >/dev/null 2>&1; then
  1955. :
  1956. else
  1957. rm -rf conftest*
  1958. ac_cv_header_stdc=no
  1959. fi
  1960. rm -f conftest*
  1961. fi
  1962. if test $ac_cv_header_stdc = yes; then
  1963. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  1964. if test "$cross_compiling" = yes; then
  1965. :
  1966. else
  1967. cat > conftest.$ac_ext <<EOF
  1968. #line 2180 "configure"
  1969. #include "confdefs.h"
  1970. #include <ctype.h>
  1971. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  1972. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  1973. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  1974. int main () { int i; for (i = 0; i < 256; i++)
  1975. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  1976. exit (0); }
  1977. EOF
  1978. if { (eval echo configure:2191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  1979. then
  1980. :
  1981. else
  1982. echo "configure: failed program was:" >&5
  1983. cat conftest.$ac_ext >&5
  1984. rm -fr conftest*
  1985. ac_cv_header_stdc=no
  1986. fi
  1987. rm -fr conftest*
  1988. fi
  1989. fi
  1990. fi
  1991. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  1992. if test $ac_cv_header_stdc = yes; then
  1993. cat >> confdefs.h <<\EOF
  1994. #define STDC_HEADERS 1
  1995. EOF
  1996. fi
  1997. echo $ac_n "checking for working const""... $ac_c" 1>&6
  1998. echo "configure:2215: checking for working const" >&5
  1999. if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  2000. echo $ac_n "(cached) $ac_c" 1>&6
  2001. else
  2002. cat > conftest.$ac_ext <<EOF
  2003. #line 2220 "configure"
  2004. #include "confdefs.h"
  2005. int main() {
  2006. /* Ultrix mips cc rejects this. */
  2007. typedef int charset[2]; const charset x;
  2008. /* SunOS 4.1.1 cc rejects this. */
  2009. char const *const *ccp;
  2010. char **p;
  2011. /* NEC SVR4.0.2 mips cc rejects this. */
  2012. struct point {int x, y;};
  2013. static struct point const zero = {0,0};
  2014. /* AIX XL C 1.02.0.0 rejects this.
  2015. It does not let you subtract one const X* pointer from another in an arm
  2016. of an if-expression whose if-part is not a constant expression */
  2017. const char *g = "string";
  2018. ccp = &g + (g ? g-g : 0);
  2019. /* HPUX 7.0 cc rejects these. */
  2020. ++ccp;
  2021. p = (char**) ccp;
  2022. ccp = (char const *const *) p;
  2023. { /* SCO 3.2v4 cc rejects this. */
  2024. char *t;
  2025. char const *s = 0 ? (char *) 0 : (char const *) 0;
  2026. *t++ = 0;
  2027. }
  2028. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  2029. int x[] = {25, 17};
  2030. const int *foo = &x[0];
  2031. ++foo;
  2032. }
  2033. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  2034. typedef const int *iptr;
  2035. iptr p = 0;
  2036. ++p;
  2037. }
  2038. { /* AIX XL C 1.02.0.0 rejects this saying
  2039. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  2040. struct s { int j; const int *ap[3]; };
  2041. struct s *b; b->j = 5;
  2042. }
  2043. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  2044. const int foo = 10;
  2045. }
  2046. ; return 0; }
  2047. EOF
  2048. if { (eval echo configure:2269: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2049. rm -rf conftest*
  2050. ac_cv_c_const=yes
  2051. else
  2052. echo "configure: failed program was:" >&5
  2053. cat conftest.$ac_ext >&5
  2054. rm -rf conftest*
  2055. ac_cv_c_const=no
  2056. fi
  2057. rm -f conftest*
  2058. fi
  2059. echo "$ac_t""$ac_cv_c_const" 1>&6
  2060. if test $ac_cv_c_const = no; then
  2061. cat >> confdefs.h <<\EOF
  2062. #define const
  2063. EOF
  2064. fi
  2065. echo $ac_n "checking for inline""... $ac_c" 1>&6
  2066. echo "configure:2290: checking for inline" >&5
  2067. if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
  2068. echo $ac_n "(cached) $ac_c" 1>&6
  2069. else
  2070. ac_cv_c_inline=no
  2071. for ac_kw in inline __inline__ __inline; do
  2072. cat > conftest.$ac_ext <<EOF
  2073. #line 2297 "configure"
  2074. #include "confdefs.h"
  2075. int main() {
  2076. } $ac_kw foo() {
  2077. ; return 0; }
  2078. EOF
  2079. if { (eval echo configure:2304: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2080. rm -rf conftest*
  2081. ac_cv_c_inline=$ac_kw; break
  2082. else
  2083. echo "configure: failed program was:" >&5
  2084. cat conftest.$ac_ext >&5
  2085. fi
  2086. rm -f conftest*
  2087. done
  2088. fi
  2089. echo "$ac_t""$ac_cv_c_inline" 1>&6
  2090. case "$ac_cv_c_inline" in
  2091. inline | yes) ;;
  2092. no) cat >> confdefs.h <<\EOF
  2093. #define inline
  2094. EOF
  2095. ;;
  2096. *) cat >> confdefs.h <<EOF
  2097. #define inline $ac_cv_c_inline
  2098. EOF
  2099. ;;
  2100. esac
  2101. echo $ac_n "checking for off_t""... $ac_c" 1>&6
  2102. echo "configure:2330: checking for off_t" >&5
  2103. if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
  2104. echo $ac_n "(cached) $ac_c" 1>&6
  2105. else
  2106. cat > conftest.$ac_ext <<EOF
  2107. #line 2335 "configure"
  2108. #include "confdefs.h"
  2109. #include <sys/types.h>
  2110. #if STDC_HEADERS
  2111. #include <stdlib.h>
  2112. #include <stddef.h>
  2113. #endif
  2114. EOF
  2115. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2116. egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  2117. rm -rf conftest*
  2118. ac_cv_type_off_t=yes
  2119. else
  2120. rm -rf conftest*
  2121. ac_cv_type_off_t=no
  2122. fi
  2123. rm -f conftest*
  2124. fi
  2125. echo "$ac_t""$ac_cv_type_off_t" 1>&6
  2126. if test $ac_cv_type_off_t = no; then
  2127. cat >> confdefs.h <<\EOF
  2128. #define off_t long
  2129. EOF
  2130. fi
  2131. echo $ac_n "checking for size_t""... $ac_c" 1>&6
  2132. echo "configure:2363: checking for size_t" >&5
  2133. if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
  2134. echo $ac_n "(cached) $ac_c" 1>&6
  2135. else
  2136. cat > conftest.$ac_ext <<EOF
  2137. #line 2368 "configure"
  2138. #include "confdefs.h"
  2139. #include <sys/types.h>
  2140. #if STDC_HEADERS
  2141. #include <stdlib.h>
  2142. #include <stddef.h>
  2143. #endif
  2144. EOF
  2145. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2146. egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  2147. rm -rf conftest*
  2148. ac_cv_type_size_t=yes
  2149. else
  2150. rm -rf conftest*
  2151. ac_cv_type_size_t=no
  2152. fi
  2153. rm -f conftest*
  2154. fi
  2155. echo "$ac_t""$ac_cv_type_size_t" 1>&6
  2156. if test $ac_cv_type_size_t = no; then
  2157. cat >> confdefs.h <<\EOF
  2158. #define size_t unsigned
  2159. EOF
  2160. fi
  2161. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  2162. # for constant arguments. Useless!
  2163. echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
  2164. echo "configure:2398: checking for working alloca.h" >&5
  2165. if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
  2166. echo $ac_n "(cached) $ac_c" 1>&6
  2167. else
  2168. cat > conftest.$ac_ext <<EOF
  2169. #line 2403 "configure"
  2170. #include "confdefs.h"
  2171. #include <alloca.h>
  2172. int main() {
  2173. char *p = alloca(2 * sizeof(int));
  2174. ; return 0; }
  2175. EOF
  2176. if { (eval echo configure:2410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2177. rm -rf conftest*
  2178. ac_cv_header_alloca_h=yes
  2179. else
  2180. echo "configure: failed program was:" >&5
  2181. cat conftest.$ac_ext >&5
  2182. rm -rf conftest*
  2183. ac_cv_header_alloca_h=no
  2184. fi
  2185. rm -f conftest*
  2186. fi
  2187. echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
  2188. if test $ac_cv_header_alloca_h = yes; then
  2189. cat >> confdefs.h <<\EOF
  2190. #define HAVE_ALLOCA_H 1
  2191. EOF
  2192. fi
  2193. echo $ac_n "checking for alloca""... $ac_c" 1>&6
  2194. echo "configure:2431: checking for alloca" >&5
  2195. if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
  2196. echo $ac_n "(cached) $ac_c" 1>&6
  2197. else
  2198. cat > conftest.$ac_ext <<EOF
  2199. #line 2436 "configure"
  2200. #include "confdefs.h"
  2201. #ifdef __GNUC__
  2202. # define alloca __builtin_alloca
  2203. #else
  2204. # ifdef _MSC_VER
  2205. # include <malloc.h>
  2206. # define alloca _alloca
  2207. # else
  2208. # if HAVE_ALLOCA_H
  2209. # include <alloca.h>
  2210. # else
  2211. # ifdef _AIX
  2212. #pragma alloca
  2213. # else
  2214. # ifndef alloca /* predefined by HP cc +Olibcalls */
  2215. char *alloca ();
  2216. # endif
  2217. # endif
  2218. # endif
  2219. # endif
  2220. #endif
  2221. int main() {
  2222. char *p = (char *) alloca(1);
  2223. ; return 0; }
  2224. EOF
  2225. if { (eval echo configure:2464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2226. rm -rf conftest*
  2227. ac_cv_func_alloca_works=yes
  2228. else
  2229. echo "configure: failed program was:" >&5
  2230. cat conftest.$ac_ext >&5
  2231. rm -rf conftest*
  2232. ac_cv_func_alloca_works=no
  2233. fi
  2234. rm -f conftest*
  2235. fi
  2236. echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
  2237. if test $ac_cv_func_alloca_works = yes; then
  2238. cat >> confdefs.h <<\EOF
  2239. #define HAVE_ALLOCA 1
  2240. EOF
  2241. fi
  2242. if test $ac_cv_func_alloca_works = no; then
  2243. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  2244. # that cause trouble. Some versions do not even contain alloca or
  2245. # contain a buggy version. If you still want to use their alloca,
  2246. # use ar to extract alloca.o from them instead of compiling alloca.c.
  2247. ALLOCA=alloca.${ac_objext}
  2248. cat >> confdefs.h <<\EOF
  2249. #define C_ALLOCA 1
  2250. EOF
  2251. echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
  2252. echo "configure:2496: checking whether alloca needs Cray hooks" >&5
  2253. if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
  2254. echo $ac_n "(cached) $ac_c" 1>&6
  2255. else
  2256. cat > conftest.$ac_ext <<EOF
  2257. #line 2501 "configure"
  2258. #include "confdefs.h"
  2259. #if defined(CRAY) && ! defined(CRAY2)
  2260. webecray
  2261. #else
  2262. wenotbecray
  2263. #endif
  2264. EOF
  2265. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2266. egrep "webecray" >/dev/null 2>&1; then
  2267. rm -rf conftest*
  2268. ac_cv_os_cray=yes
  2269. else
  2270. rm -rf conftest*
  2271. ac_cv_os_cray=no
  2272. fi
  2273. rm -f conftest*
  2274. fi
  2275. echo "$ac_t""$ac_cv_os_cray" 1>&6
  2276. if test $ac_cv_os_cray = yes; then
  2277. for ac_func in _getb67 GETB67 getb67; do
  2278. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2279. echo "configure:2526: checking for $ac_func" >&5
  2280. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2281. echo $ac_n "(cached) $ac_c" 1>&6
  2282. else
  2283. cat > conftest.$ac_ext <<EOF
  2284. #line 2531 "configure"
  2285. #include "confdefs.h"
  2286. /* System header to define __stub macros and hopefully few prototypes,
  2287. which can conflict with char $ac_func(); below. */
  2288. #include <assert.h>
  2289. /* Override any gcc2 internal prototype to avoid an error. */
  2290. /* We use char because int might match the return type of a gcc2
  2291. builtin and then its argument prototype would still apply. */
  2292. char $ac_func();
  2293. int main() {
  2294. /* The GNU C library defines this for functions which it implements
  2295. to always fail with ENOSYS. Some functions are actually named
  2296. something starting with __ and the normal name is an alias. */
  2297. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2298. choke me
  2299. #else
  2300. $ac_func();
  2301. #endif
  2302. ; return 0; }
  2303. EOF
  2304. if { (eval echo configure:2554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2305. rm -rf conftest*
  2306. eval "ac_cv_func_$ac_func=yes"
  2307. else
  2308. echo "configure: failed program was:" >&5
  2309. cat conftest.$ac_ext >&5
  2310. rm -rf conftest*
  2311. eval "ac_cv_func_$ac_func=no"
  2312. fi
  2313. rm -f conftest*
  2314. fi
  2315. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2316. echo "$ac_t""yes" 1>&6
  2317. cat >> confdefs.h <<EOF
  2318. #define CRAY_STACKSEG_END $ac_func
  2319. EOF
  2320. break
  2321. else
  2322. echo "$ac_t""no" 1>&6
  2323. fi
  2324. done
  2325. fi
  2326. echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
  2327. echo "configure:2581: checking stack direction for C alloca" >&5
  2328. if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
  2329. echo $ac_n "(cached) $ac_c" 1>&6
  2330. else
  2331. if test "$cross_compiling" = yes; then
  2332. ac_cv_c_stack_direction=0
  2333. else
  2334. cat > conftest.$ac_ext <<EOF
  2335. #line 2589 "configure"
  2336. #include "confdefs.h"
  2337. find_stack_direction ()
  2338. {
  2339. static char *addr = 0;
  2340. auto char dummy;
  2341. if (addr == 0)
  2342. {
  2343. addr = &dummy;
  2344. return find_stack_direction ();
  2345. }
  2346. else
  2347. return (&dummy > addr) ? 1 : -1;
  2348. }
  2349. main ()
  2350. {
  2351. exit (find_stack_direction() < 0);
  2352. }
  2353. EOF
  2354. if { (eval echo configure:2608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2355. then
  2356. ac_cv_c_stack_direction=1
  2357. else
  2358. echo "configure: failed program was:" >&5
  2359. cat conftest.$ac_ext >&5
  2360. rm -fr conftest*
  2361. ac_cv_c_stack_direction=-1
  2362. fi
  2363. rm -fr conftest*
  2364. fi
  2365. fi
  2366. echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
  2367. cat >> confdefs.h <<EOF
  2368. #define STACK_DIRECTION $ac_cv_c_stack_direction
  2369. EOF
  2370. fi
  2371. for ac_hdr in unistd.h
  2372. do
  2373. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2374. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2375. echo "configure:2633: checking for $ac_hdr" >&5
  2376. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2377. echo $ac_n "(cached) $ac_c" 1>&6
  2378. else
  2379. cat > conftest.$ac_ext <<EOF
  2380. #line 2638 "configure"
  2381. #include "confdefs.h"
  2382. #include <$ac_hdr>
  2383. EOF
  2384. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2385. { (eval echo configure:2643: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2386. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2387. if test -z "$ac_err"; then
  2388. rm -rf conftest*
  2389. eval "ac_cv_header_$ac_safe=yes"
  2390. else
  2391. echo "$ac_err" >&5
  2392. echo "configure: failed program was:" >&5
  2393. cat conftest.$ac_ext >&5
  2394. rm -rf conftest*
  2395. eval "ac_cv_header_$ac_safe=no"
  2396. fi
  2397. rm -f conftest*
  2398. fi
  2399. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2400. echo "$ac_t""yes" 1>&6
  2401. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2402. cat >> confdefs.h <<EOF
  2403. #define $ac_tr_hdr 1
  2404. EOF
  2405. else
  2406. echo "$ac_t""no" 1>&6
  2407. fi
  2408. done
  2409. for ac_func in getpagesize
  2410. do
  2411. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2412. echo "configure:2672: checking for $ac_func" >&5
  2413. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2414. echo $ac_n "(cached) $ac_c" 1>&6
  2415. else
  2416. cat > conftest.$ac_ext <<EOF
  2417. #line 2677 "configure"
  2418. #include "confdefs.h"
  2419. /* System header to define __stub macros and hopefully few prototypes,
  2420. which can conflict with char $ac_func(); below. */
  2421. #include <assert.h>
  2422. /* Override any gcc2 internal prototype to avoid an error. */
  2423. /* We use char because int might match the return type of a gcc2
  2424. builtin and then its argument prototype would still apply. */
  2425. char $ac_func();
  2426. int main() {
  2427. /* The GNU C library defines this for functions which it implements
  2428. to always fail with ENOSYS. Some functions are actually named
  2429. something starting with __ and the normal name is an alias. */
  2430. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2431. choke me
  2432. #else
  2433. $ac_func();
  2434. #endif
  2435. ; return 0; }
  2436. EOF
  2437. if { (eval echo configure:2700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2438. rm -rf conftest*
  2439. eval "ac_cv_func_$ac_func=yes"
  2440. else
  2441. echo "configure: failed program was:" >&5
  2442. cat conftest.$ac_ext >&5
  2443. rm -rf conftest*
  2444. eval "ac_cv_func_$ac_func=no"
  2445. fi
  2446. rm -f conftest*
  2447. fi
  2448. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2449. echo "$ac_t""yes" 1>&6
  2450. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2451. cat >> confdefs.h <<EOF
  2452. #define $ac_tr_func 1
  2453. EOF
  2454. else
  2455. echo "$ac_t""no" 1>&6
  2456. fi
  2457. done
  2458. echo $ac_n "checking for working mmap""... $ac_c" 1>&6
  2459. echo "configure:2725: checking for working mmap" >&5
  2460. if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
  2461. echo $ac_n "(cached) $ac_c" 1>&6
  2462. else
  2463. if test "$cross_compiling" = yes; then
  2464. ac_cv_func_mmap_fixed_mapped=no
  2465. else
  2466. cat > conftest.$ac_ext <<EOF
  2467. #line 2733 "configure"
  2468. #include "confdefs.h"
  2469. /* Thanks to Mike Haertel and Jim Avera for this test.
  2470. Here is a matrix of mmap possibilities:
  2471. mmap private not fixed
  2472. mmap private fixed at somewhere currently unmapped
  2473. mmap private fixed at somewhere already mapped
  2474. mmap shared not fixed
  2475. mmap shared fixed at somewhere currently unmapped
  2476. mmap shared fixed at somewhere already mapped
  2477. For private mappings, we should verify that changes cannot be read()
  2478. back from the file, nor mmap's back from the file at a different
  2479. address. (There have been systems where private was not correctly
  2480. implemented like the infamous i386 svr4.0, and systems where the
  2481. VM page cache was not coherent with the filesystem buffer cache
  2482. like early versions of FreeBSD and possibly contemporary NetBSD.)
  2483. For shared mappings, we should conversely verify that changes get
  2484. propogated back to all the places they're supposed to be.
  2485. Grep wants private fixed already mapped.
  2486. The main things grep needs to know about mmap are:
  2487. * does it exist and is it safe to write into the mmap'd area
  2488. * how to use it (BSD variants) */
  2489. #include <sys/types.h>
  2490. #include <fcntl.h>
  2491. #include <sys/mman.h>
  2492. /* This mess was copied from the GNU getpagesize.h. */
  2493. #ifndef HAVE_GETPAGESIZE
  2494. # ifdef HAVE_UNISTD_H
  2495. # include <unistd.h>
  2496. # endif
  2497. /* Assume that all systems that can run configure have sys/param.h. */
  2498. # ifndef HAVE_SYS_PARAM_H
  2499. # define HAVE_SYS_PARAM_H 1
  2500. # endif
  2501. # ifdef _SC_PAGESIZE
  2502. # define getpagesize() sysconf(_SC_PAGESIZE)
  2503. # else /* no _SC_PAGESIZE */
  2504. # ifdef HAVE_SYS_PARAM_H
  2505. # include <sys/param.h>
  2506. # ifdef EXEC_PAGESIZE
  2507. # define getpagesize() EXEC_PAGESIZE
  2508. # else /* no EXEC_PAGESIZE */
  2509. # ifdef NBPG
  2510. # define getpagesize() NBPG * CLSIZE
  2511. # ifndef CLSIZE
  2512. # define CLSIZE 1
  2513. # endif /* no CLSIZE */
  2514. # else /* no NBPG */
  2515. # ifdef NBPC
  2516. # define getpagesize() NBPC
  2517. # else /* no NBPC */
  2518. # ifdef PAGESIZE
  2519. # define getpagesize() PAGESIZE
  2520. # endif /* PAGESIZE */
  2521. # endif /* no NBPC */
  2522. # endif /* no NBPG */
  2523. # endif /* no EXEC_PAGESIZE */
  2524. # else /* no HAVE_SYS_PARAM_H */
  2525. # define getpagesize() 8192 /* punt totally */
  2526. # endif /* no HAVE_SYS_PARAM_H */
  2527. # endif /* no _SC_PAGESIZE */
  2528. #endif /* no HAVE_GETPAGESIZE */
  2529. #ifdef __cplusplus
  2530. extern "C" { void *malloc(unsigned); }
  2531. #else
  2532. char *malloc();
  2533. #endif
  2534. int
  2535. main()
  2536. {
  2537. char *data, *data2, *data3;
  2538. int i, pagesize;
  2539. int fd;
  2540. pagesize = getpagesize();
  2541. /*
  2542. * First, make a file with some known garbage in it.
  2543. */
  2544. data = malloc(pagesize);
  2545. if (!data)
  2546. exit(1);
  2547. for (i = 0; i < pagesize; ++i)
  2548. *(data + i) = rand();
  2549. umask(0);
  2550. fd = creat("conftestmmap", 0600);
  2551. if (fd < 0)
  2552. exit(1);
  2553. if (write(fd, data, pagesize) != pagesize)
  2554. exit(1);
  2555. close(fd);
  2556. /*
  2557. * Next, try to mmap the file at a fixed address which
  2558. * already has something else allocated at it. If we can,
  2559. * also make sure that we see the same garbage.
  2560. */
  2561. fd = open("conftestmmap", O_RDWR);
  2562. if (fd < 0)
  2563. exit(1);
  2564. data2 = malloc(2 * pagesize);
  2565. if (!data2)
  2566. exit(1);
  2567. data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
  2568. if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
  2569. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  2570. exit(1);
  2571. for (i = 0; i < pagesize; ++i)
  2572. if (*(data + i) != *(data2 + i))
  2573. exit(1);
  2574. /*
  2575. * Finally, make sure that changes to the mapped area
  2576. * do not percolate back to the file as seen by read().
  2577. * (This is a bug on some variants of i386 svr4.0.)
  2578. */
  2579. for (i = 0; i < pagesize; ++i)
  2580. *(data2 + i) = *(data2 + i) + 1;
  2581. data3 = malloc(pagesize);
  2582. if (!data3)
  2583. exit(1);
  2584. if (read(fd, data3, pagesize) != pagesize)
  2585. exit(1);
  2586. for (i = 0; i < pagesize; ++i)
  2587. if (*(data + i) != *(data3 + i))
  2588. exit(1);
  2589. close(fd);
  2590. unlink("conftestmmap");
  2591. exit(0);
  2592. }
  2593. EOF
  2594. if { (eval echo configure:2873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2595. then
  2596. ac_cv_func_mmap_fixed_mapped=yes
  2597. else
  2598. echo "configure: failed program was:" >&5
  2599. cat conftest.$ac_ext >&5
  2600. rm -fr conftest*
  2601. ac_cv_func_mmap_fixed_mapped=no
  2602. fi
  2603. rm -fr conftest*
  2604. fi
  2605. fi
  2606. echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
  2607. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  2608. cat >> confdefs.h <<\EOF
  2609. #define HAVE_MMAP 1
  2610. EOF
  2611. fi
  2612. for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
  2613. unistd.h sys/param.h
  2614. do
  2615. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2616. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2617. echo "configure:2901: checking for $ac_hdr" >&5
  2618. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2619. echo $ac_n "(cached) $ac_c" 1>&6
  2620. else
  2621. cat > conftest.$ac_ext <<EOF
  2622. #line 2906 "configure"
  2623. #include "confdefs.h"
  2624. #include <$ac_hdr>
  2625. EOF
  2626. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2627. { (eval echo configure:2911: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2628. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2629. if test -z "$ac_err"; then
  2630. rm -rf conftest*
  2631. eval "ac_cv_header_$ac_safe=yes"
  2632. else
  2633. echo "$ac_err" >&5
  2634. echo "configure: failed program was:" >&5
  2635. cat conftest.$ac_ext >&5
  2636. rm -rf conftest*
  2637. eval "ac_cv_header_$ac_safe=no"
  2638. fi
  2639. rm -f conftest*
  2640. fi
  2641. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2642. echo "$ac_t""yes" 1>&6
  2643. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2644. cat >> confdefs.h <<EOF
  2645. #define $ac_tr_hdr 1
  2646. EOF
  2647. else
  2648. echo "$ac_t""no" 1>&6
  2649. fi
  2650. done
  2651. for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
  2652. strdup __argz_count __argz_stringify __argz_next
  2653. do
  2654. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2655. echo "configure:2941: checking for $ac_func" >&5
  2656. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2657. echo $ac_n "(cached) $ac_c" 1>&6
  2658. else
  2659. cat > conftest.$ac_ext <<EOF
  2660. #line 2946 "configure"
  2661. #include "confdefs.h"
  2662. /* System header to define __stub macros and hopefully few prototypes,
  2663. which can conflict with char $ac_func(); below. */
  2664. #include <assert.h>
  2665. /* Override any gcc2 internal prototype to avoid an error. */
  2666. /* We use char because int might match the return type of a gcc2
  2667. builtin and then its argument prototype would still apply. */
  2668. char $ac_func();
  2669. int main() {
  2670. /* The GNU C library defines this for functions which it implements
  2671. to always fail with ENOSYS. Some functions are actually named
  2672. something starting with __ and the normal name is an alias. */
  2673. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2674. choke me
  2675. #else
  2676. $ac_func();
  2677. #endif
  2678. ; return 0; }
  2679. EOF
  2680. if { (eval echo configure:2969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2681. rm -rf conftest*
  2682. eval "ac_cv_func_$ac_func=yes"
  2683. else
  2684. echo "configure: failed program was:" >&5
  2685. cat conftest.$ac_ext >&5
  2686. rm -rf conftest*
  2687. eval "ac_cv_func_$ac_func=no"
  2688. fi
  2689. rm -f conftest*
  2690. fi
  2691. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2692. echo "$ac_t""yes" 1>&6
  2693. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2694. cat >> confdefs.h <<EOF
  2695. #define $ac_tr_func 1
  2696. EOF
  2697. else
  2698. echo "$ac_t""no" 1>&6
  2699. fi
  2700. done
  2701. if test "${ac_cv_func_stpcpy+set}" != "set"; then
  2702. for ac_func in stpcpy
  2703. do
  2704. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2705. echo "configure:2998: checking for $ac_func" >&5
  2706. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2707. echo $ac_n "(cached) $ac_c" 1>&6
  2708. else
  2709. cat > conftest.$ac_ext <<EOF
  2710. #line 3003 "configure"
  2711. #include "confdefs.h"
  2712. /* System header to define __stub macros and hopefully few prototypes,
  2713. which can conflict with char $ac_func(); below. */
  2714. #include <assert.h>
  2715. /* Override any gcc2 internal prototype to avoid an error. */
  2716. /* We use char because int might match the return type of a gcc2
  2717. builtin and then its argument prototype would still apply. */
  2718. char $ac_func();
  2719. int main() {
  2720. /* The GNU C library defines this for functions which it implements
  2721. to always fail with ENOSYS. Some functions are actually named
  2722. something starting with __ and the normal name is an alias. */
  2723. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2724. choke me
  2725. #else
  2726. $ac_func();
  2727. #endif
  2728. ; return 0; }
  2729. EOF
  2730. if { (eval echo configure:3026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2731. rm -rf conftest*
  2732. eval "ac_cv_func_$ac_func=yes"
  2733. else
  2734. echo "configure: failed program was:" >&5
  2735. cat conftest.$ac_ext >&5
  2736. rm -rf conftest*
  2737. eval "ac_cv_func_$ac_func=no"
  2738. fi
  2739. rm -f conftest*
  2740. fi
  2741. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2742. echo "$ac_t""yes" 1>&6
  2743. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2744. cat >> confdefs.h <<EOF
  2745. #define $ac_tr_func 1
  2746. EOF
  2747. else
  2748. echo "$ac_t""no" 1>&6
  2749. fi
  2750. done
  2751. fi
  2752. if test "${ac_cv_func_stpcpy}" = "yes"; then
  2753. cat >> confdefs.h <<\EOF
  2754. #define HAVE_STPCPY 1
  2755. EOF
  2756. fi
  2757. if test $ac_cv_header_locale_h = yes; then
  2758. echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
  2759. echo "configure:3060: checking for LC_MESSAGES" >&5
  2760. if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
  2761. echo $ac_n "(cached) $ac_c" 1>&6
  2762. else
  2763. cat > conftest.$ac_ext <<EOF
  2764. #line 3065 "configure"
  2765. #include "confdefs.h"
  2766. #include <locale.h>
  2767. int main() {
  2768. return LC_MESSAGES
  2769. ; return 0; }
  2770. EOF
  2771. if { (eval echo configure:3072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2772. rm -rf conftest*
  2773. am_cv_val_LC_MESSAGES=yes
  2774. else
  2775. echo "configure: failed program was:" >&5
  2776. cat conftest.$ac_ext >&5
  2777. rm -rf conftest*
  2778. am_cv_val_LC_MESSAGES=no
  2779. fi
  2780. rm -f conftest*
  2781. fi
  2782. echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
  2783. if test $am_cv_val_LC_MESSAGES = yes; then
  2784. cat >> confdefs.h <<\EOF
  2785. #define HAVE_LC_MESSAGES 1
  2786. EOF
  2787. fi
  2788. fi
  2789. echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
  2790. echo "configure:3093: checking whether NLS is requested" >&5
  2791. # Check whether --enable-nls or --disable-nls was given.
  2792. if test "${enable_nls+set}" = set; then
  2793. enableval="$enable_nls"
  2794. USE_NLS=$enableval
  2795. else
  2796. USE_NLS=yes
  2797. fi
  2798. echo "$ac_t""$USE_NLS" 1>&6
  2799. USE_INCLUDED_LIBINTL=no
  2800. if test "$USE_NLS" = "yes"; then
  2801. cat >> confdefs.h <<\EOF
  2802. #define ENABLE_NLS 1
  2803. EOF
  2804. echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
  2805. echo "configure:3113: checking whether included gettext is requested" >&5
  2806. # Check whether --with-included-gettext or --without-included-gettext was given.
  2807. if test "${with_included_gettext+set}" = set; then
  2808. withval="$with_included_gettext"
  2809. nls_cv_force_use_gnu_gettext=$withval
  2810. else
  2811. nls_cv_force_use_gnu_gettext=no
  2812. fi
  2813. echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
  2814. nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  2815. if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  2816. nls_cv_header_intl=
  2817. nls_cv_header_libgt=
  2818. CATOBJEXT=NONE
  2819. ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
  2820. echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
  2821. echo "configure:3132: checking for libintl.h" >&5
  2822. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2823. echo $ac_n "(cached) $ac_c" 1>&6
  2824. else
  2825. cat > conftest.$ac_ext <<EOF
  2826. #line 3137 "configure"
  2827. #include "confdefs.h"
  2828. #include <libintl.h>
  2829. EOF
  2830. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2831. { (eval echo configure:3142: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2832. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2833. if test -z "$ac_err"; then
  2834. rm -rf conftest*
  2835. eval "ac_cv_header_$ac_safe=yes"
  2836. else
  2837. echo "$ac_err" >&5
  2838. echo "configure: failed program was:" >&5
  2839. cat conftest.$ac_ext >&5
  2840. rm -rf conftest*
  2841. eval "ac_cv_header_$ac_safe=no"
  2842. fi
  2843. rm -f conftest*
  2844. fi
  2845. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2846. echo "$ac_t""yes" 1>&6
  2847. echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
  2848. echo "configure:3159: checking for gettext in libc" >&5
  2849. if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
  2850. echo $ac_n "(cached) $ac_c" 1>&6
  2851. else
  2852. cat > conftest.$ac_ext <<EOF
  2853. #line 3164 "configure"
  2854. #include "confdefs.h"
  2855. #include <libintl.h>
  2856. int main() {
  2857. return (int) gettext ("")
  2858. ; return 0; }
  2859. EOF
  2860. if { (eval echo configure:3171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2861. rm -rf conftest*
  2862. gt_cv_func_gettext_libc=yes
  2863. else
  2864. echo "configure: failed program was:" >&5
  2865. cat conftest.$ac_ext >&5
  2866. rm -rf conftest*
  2867. gt_cv_func_gettext_libc=no
  2868. fi
  2869. rm -f conftest*
  2870. fi
  2871. echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
  2872. if test "$gt_cv_func_gettext_libc" != "yes"; then
  2873. echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
  2874. echo "configure:3187: checking for bindtextdomain in -lintl" >&5
  2875. ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
  2876. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2877. echo $ac_n "(cached) $ac_c" 1>&6
  2878. else
  2879. ac_save_LIBS="$LIBS"
  2880. LIBS="-lintl $LIBS"
  2881. cat > conftest.$ac_ext <<EOF
  2882. #line 3195 "configure"
  2883. #include "confdefs.h"
  2884. /* Override any gcc2 internal prototype to avoid an error. */
  2885. /* We use char because int might match the return type of a gcc2
  2886. builtin and then its argument prototype would still apply. */
  2887. char bindtextdomain();
  2888. int main() {
  2889. bindtextdomain()
  2890. ; return 0; }
  2891. EOF
  2892. if { (eval echo configure:3206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2893. rm -rf conftest*
  2894. eval "ac_cv_lib_$ac_lib_var=yes"
  2895. else
  2896. echo "configure: failed program was:" >&5
  2897. cat conftest.$ac_ext >&5
  2898. rm -rf conftest*
  2899. eval "ac_cv_lib_$ac_lib_var=no"
  2900. fi
  2901. rm -f conftest*
  2902. LIBS="$ac_save_LIBS"
  2903. fi
  2904. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2905. echo "$ac_t""yes" 1>&6
  2906. echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
  2907. echo "configure:3222: checking for gettext in libintl" >&5
  2908. if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
  2909. echo $ac_n "(cached) $ac_c" 1>&6
  2910. else
  2911. echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
  2912. echo "configure:3227: checking for gettext in -lintl" >&5
  2913. ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
  2914. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2915. echo $ac_n "(cached) $ac_c" 1>&6
  2916. else
  2917. ac_save_LIBS="$LIBS"
  2918. LIBS="-lintl $LIBS"
  2919. cat > conftest.$ac_ext <<EOF
  2920. #line 3235 "configure"
  2921. #include "confdefs.h"
  2922. /* Override any gcc2 internal prototype to avoid an error. */
  2923. /* We use char because int might match the return type of a gcc2
  2924. builtin and then its argument prototype would still apply. */
  2925. char gettext();
  2926. int main() {
  2927. gettext()
  2928. ; return 0; }
  2929. EOF
  2930. if { (eval echo configure:3246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2931. rm -rf conftest*
  2932. eval "ac_cv_lib_$ac_lib_var=yes"
  2933. else
  2934. echo "configure: failed program was:" >&5
  2935. cat conftest.$ac_ext >&5
  2936. rm -rf conftest*
  2937. eval "ac_cv_lib_$ac_lib_var=no"
  2938. fi
  2939. rm -f conftest*
  2940. LIBS="$ac_save_LIBS"
  2941. fi
  2942. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2943. echo "$ac_t""yes" 1>&6
  2944. gt_cv_func_gettext_libintl=yes
  2945. else
  2946. echo "$ac_t""no" 1>&6
  2947. gt_cv_func_gettext_libintl=no
  2948. fi
  2949. fi
  2950. echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
  2951. else
  2952. echo "$ac_t""no" 1>&6
  2953. fi
  2954. fi
  2955. if test "$gt_cv_func_gettext_libc" = "yes" \
  2956. || test "$gt_cv_func_gettext_libintl" = "yes"; then
  2957. cat >> confdefs.h <<\EOF
  2958. #define HAVE_GETTEXT 1
  2959. EOF
  2960. # Extract the first word of "msgfmt", so it can be a program name with args.
  2961. set dummy msgfmt; ac_word=$2
  2962. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2963. echo "configure:3285: checking for $ac_word" >&5
  2964. if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
  2965. echo $ac_n "(cached) $ac_c" 1>&6
  2966. else
  2967. case "$MSGFMT" in
  2968. /*)
  2969. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  2970. ;;
  2971. *)
  2972. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  2973. for ac_dir in $PATH; do
  2974. test -z "$ac_dir" && ac_dir=.
  2975. if test -f $ac_dir/$ac_word; then
  2976. if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
  2977. ac_cv_path_MSGFMT="$ac_dir/$ac_word"
  2978. break
  2979. fi
  2980. fi
  2981. done
  2982. IFS="$ac_save_ifs"
  2983. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
  2984. ;;
  2985. esac
  2986. fi
  2987. MSGFMT="$ac_cv_path_MSGFMT"
  2988. if test -n "$MSGFMT"; then
  2989. echo "$ac_t""$MSGFMT" 1>&6
  2990. else
  2991. echo "$ac_t""no" 1>&6
  2992. fi
  2993. if test "$MSGFMT" != "no"; then
  2994. for ac_func in dcgettext
  2995. do
  2996. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2997. echo "configure:3319: checking for $ac_func" >&5
  2998. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2999. echo $ac_n "(cached) $ac_c" 1>&6
  3000. else
  3001. cat > conftest.$ac_ext <<EOF
  3002. #line 3324 "configure"
  3003. #include "confdefs.h"
  3004. /* System header to define __stub macros and hopefully few prototypes,
  3005. which can conflict with char $ac_func(); below. */
  3006. #include <assert.h>
  3007. /* Override any gcc2 internal prototype to avoid an error. */
  3008. /* We use char because int might match the return type of a gcc2
  3009. builtin and then its argument prototype would still apply. */
  3010. char $ac_func();
  3011. int main() {
  3012. /* The GNU C library defines this for functions which it implements
  3013. to always fail with ENOSYS. Some functions are actually named
  3014. something starting with __ and the normal name is an alias. */
  3015. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  3016. choke me
  3017. #else
  3018. $ac_func();
  3019. #endif
  3020. ; return 0; }
  3021. EOF
  3022. if { (eval echo configure:3347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3023. rm -rf conftest*
  3024. eval "ac_cv_func_$ac_func=yes"
  3025. else
  3026. echo "configure: failed program was:" >&5
  3027. cat conftest.$ac_ext >&5
  3028. rm -rf conftest*
  3029. eval "ac_cv_func_$ac_func=no"
  3030. fi
  3031. rm -f conftest*
  3032. fi
  3033. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  3034. echo "$ac_t""yes" 1>&6
  3035. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  3036. cat >> confdefs.h <<EOF
  3037. #define $ac_tr_func 1
  3038. EOF
  3039. else
  3040. echo "$ac_t""no" 1>&6
  3041. fi
  3042. done
  3043. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  3044. set dummy gmsgfmt; ac_word=$2
  3045. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3046. echo "configure:3374: checking for $ac_word" >&5
  3047. if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
  3048. echo $ac_n "(cached) $ac_c" 1>&6
  3049. else
  3050. case "$GMSGFMT" in
  3051. /*)
  3052. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  3053. ;;
  3054. ?:/*)
  3055. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
  3056. ;;
  3057. *)
  3058. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  3059. ac_dummy="$PATH"
  3060. for ac_dir in $ac_dummy; do
  3061. test -z "$ac_dir" && ac_dir=.
  3062. if test -f $ac_dir/$ac_word; then
  3063. ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
  3064. break
  3065. fi
  3066. done
  3067. IFS="$ac_save_ifs"
  3068. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  3069. ;;
  3070. esac
  3071. fi
  3072. GMSGFMT="$ac_cv_path_GMSGFMT"
  3073. if test -n "$GMSGFMT"; then
  3074. echo "$ac_t""$GMSGFMT" 1>&6
  3075. else
  3076. echo "$ac_t""no" 1>&6
  3077. fi
  3078. # Extract the first word of "xgettext", so it can be a program name with args.
  3079. set dummy xgettext; ac_word=$2
  3080. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3081. echo "configure:3410: checking for $ac_word" >&5
  3082. if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
  3083. echo $ac_n "(cached) $ac_c" 1>&6
  3084. else
  3085. case "$XGETTEXT" in
  3086. /*)
  3087. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  3088. ;;
  3089. *)
  3090. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  3091. for ac_dir in $PATH; do
  3092. test -z "$ac_dir" && ac_dir=.
  3093. if test -f $ac_dir/$ac_word; then
  3094. if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
  3095. ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
  3096. break
  3097. fi
  3098. fi
  3099. done
  3100. IFS="$ac_save_ifs"
  3101. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  3102. ;;
  3103. esac
  3104. fi
  3105. XGETTEXT="$ac_cv_path_XGETTEXT"
  3106. if test -n "$XGETTEXT"; then
  3107. echo "$ac_t""$XGETTEXT" 1>&6
  3108. else
  3109. echo "$ac_t""no" 1>&6
  3110. fi
  3111. cat > conftest.$ac_ext <<EOF
  3112. #line 3442 "configure"
  3113. #include "confdefs.h"
  3114. int main() {
  3115. extern int _nl_msg_cat_cntr;
  3116. return _nl_msg_cat_cntr
  3117. ; return 0; }
  3118. EOF
  3119. if { (eval echo configure:3450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3120. rm -rf conftest*
  3121. CATOBJEXT=.gmo
  3122. DATADIRNAME=share
  3123. else
  3124. echo "configure: failed program was:" >&5
  3125. cat conftest.$ac_ext >&5
  3126. rm -rf conftest*
  3127. CATOBJEXT=.mo
  3128. DATADIRNAME=lib
  3129. fi
  3130. rm -f conftest*
  3131. INSTOBJEXT=.mo
  3132. fi
  3133. fi
  3134. else
  3135. echo "$ac_t""no" 1>&6
  3136. fi
  3137. if test "$CATOBJEXT" = "NONE"; then
  3138. echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
  3139. echo "configure:3473: checking whether catgets can be used" >&5
  3140. # Check whether --with-catgets or --without-catgets was given.
  3141. if test "${with_catgets+set}" = set; then
  3142. withval="$with_catgets"
  3143. nls_cv_use_catgets=$withval
  3144. else
  3145. nls_cv_use_catgets=no
  3146. fi
  3147. echo "$ac_t""$nls_cv_use_catgets" 1>&6
  3148. if test "$nls_cv_use_catgets" = "yes"; then
  3149. echo $ac_n "checking for main in -li""... $ac_c" 1>&6
  3150. echo "configure:3486: checking for main in -li" >&5
  3151. ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
  3152. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3153. echo $ac_n "(cached) $ac_c" 1>&6
  3154. else
  3155. ac_save_LIBS="$LIBS"
  3156. LIBS="-li $LIBS"
  3157. cat > conftest.$ac_ext <<EOF
  3158. #line 3494 "configure"
  3159. #include "confdefs.h"
  3160. int main() {
  3161. main()
  3162. ; return 0; }
  3163. EOF
  3164. if { (eval echo configure:3501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3165. rm -rf conftest*
  3166. eval "ac_cv_lib_$ac_lib_var=yes"
  3167. else
  3168. echo "configure: failed program was:" >&5
  3169. cat conftest.$ac_ext >&5
  3170. rm -rf conftest*
  3171. eval "ac_cv_lib_$ac_lib_var=no"
  3172. fi
  3173. rm -f conftest*
  3174. LIBS="$ac_save_LIBS"
  3175. fi
  3176. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3177. echo "$ac_t""yes" 1>&6
  3178. ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  3179. -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  3180. cat >> confdefs.h <<EOF
  3181. #define $ac_tr_lib 1
  3182. EOF
  3183. LIBS="-li $LIBS"
  3184. else
  3185. echo "$ac_t""no" 1>&6
  3186. fi
  3187. echo $ac_n "checking for catgets""... $ac_c" 1>&6
  3188. echo "configure:3529: checking for catgets" >&5
  3189. if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
  3190. echo $ac_n "(cached) $ac_c" 1>&6
  3191. else
  3192. cat > conftest.$ac_ext <<EOF
  3193. #line 3534 "configure"
  3194. #include "confdefs.h"
  3195. /* System header to define __stub macros and hopefully few prototypes,
  3196. which can conflict with char catgets(); below. */
  3197. #include <assert.h>
  3198. /* Override any gcc2 internal prototype to avoid an error. */
  3199. /* We use char because int might match the return type of a gcc2
  3200. builtin and then its argument prototype would still apply. */
  3201. char catgets();
  3202. int main() {
  3203. /* The GNU C library defines this for functions which it implements
  3204. to always fail with ENOSYS. Some functions are actually named
  3205. something starting with __ and the normal name is an alias. */
  3206. #if defined (__stub_catgets) || defined (__stub___catgets)
  3207. choke me
  3208. #else
  3209. catgets();
  3210. #endif
  3211. ; return 0; }
  3212. EOF
  3213. if { (eval echo configure:3557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3214. rm -rf conftest*
  3215. eval "ac_cv_func_catgets=yes"
  3216. else
  3217. echo "configure: failed program was:" >&5
  3218. cat conftest.$ac_ext >&5
  3219. rm -rf conftest*
  3220. eval "ac_cv_func_catgets=no"
  3221. fi
  3222. rm -f conftest*
  3223. fi
  3224. if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
  3225. echo "$ac_t""yes" 1>&6
  3226. cat >> confdefs.h <<\EOF
  3227. #define HAVE_CATGETS 1
  3228. EOF
  3229. INTLOBJS="\$(CATOBJS)"
  3230. # Extract the first word of "gencat", so it can be a program name with args.
  3231. set dummy gencat; ac_word=$2
  3232. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3233. echo "configure:3579: checking for $ac_word" >&5
  3234. if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
  3235. echo $ac_n "(cached) $ac_c" 1>&6
  3236. else
  3237. case "$GENCAT" in
  3238. /*)
  3239. ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
  3240. ;;
  3241. ?:/*)
  3242. ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
  3243. ;;
  3244. *)
  3245. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  3246. ac_dummy="$PATH"
  3247. for ac_dir in $ac_dummy; do
  3248. test -z "$ac_dir" && ac_dir=.
  3249. if test -f $ac_dir/$ac_word; then
  3250. ac_cv_path_GENCAT="$ac_dir/$ac_word"
  3251. break
  3252. fi
  3253. done
  3254. IFS="$ac_save_ifs"
  3255. test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
  3256. ;;
  3257. esac
  3258. fi
  3259. GENCAT="$ac_cv_path_GENCAT"
  3260. if test -n "$GENCAT"; then
  3261. echo "$ac_t""$GENCAT" 1>&6
  3262. else
  3263. echo "$ac_t""no" 1>&6
  3264. fi
  3265. if test "$GENCAT" != "no"; then
  3266. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  3267. set dummy gmsgfmt; ac_word=$2
  3268. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3269. echo "configure:3615: checking for $ac_word" >&5
  3270. if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
  3271. echo $ac_n "(cached) $ac_c" 1>&6
  3272. else
  3273. case "$GMSGFMT" in
  3274. /*)
  3275. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  3276. ;;
  3277. ?:/*)
  3278. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
  3279. ;;
  3280. *)
  3281. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  3282. ac_dummy="$PATH"
  3283. for ac_dir in $ac_dummy; do
  3284. test -z "$ac_dir" && ac_dir=.
  3285. if test -f $ac_dir/$ac_word; then
  3286. ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
  3287. break
  3288. fi
  3289. done
  3290. IFS="$ac_save_ifs"
  3291. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
  3292. ;;
  3293. esac
  3294. fi
  3295. GMSGFMT="$ac_cv_path_GMSGFMT"
  3296. if test -n "$GMSGFMT"; then
  3297. echo "$ac_t""$GMSGFMT" 1>&6
  3298. else
  3299. echo "$ac_t""no" 1>&6
  3300. fi
  3301. if test "$GMSGFMT" = "no"; then
  3302. # Extract the first word of "msgfmt", so it can be a program name with args.
  3303. set dummy msgfmt; ac_word=$2
  3304. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3305. echo "configure:3652: checking for $ac_word" >&5
  3306. if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
  3307. echo $ac_n "(cached) $ac_c" 1>&6
  3308. else
  3309. case "$GMSGFMT" in
  3310. /*)
  3311. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  3312. ;;
  3313. *)
  3314. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  3315. for ac_dir in $PATH; do
  3316. test -z "$ac_dir" && ac_dir=.
  3317. if test -f $ac_dir/$ac_word; then
  3318. if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
  3319. ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
  3320. break
  3321. fi
  3322. fi
  3323. done
  3324. IFS="$ac_save_ifs"
  3325. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
  3326. ;;
  3327. esac
  3328. fi
  3329. GMSGFMT="$ac_cv_path_GMSGFMT"
  3330. if test -n "$GMSGFMT"; then
  3331. echo "$ac_t""$GMSGFMT" 1>&6
  3332. else
  3333. echo "$ac_t""no" 1>&6
  3334. fi
  3335. fi
  3336. # Extract the first word of "xgettext", so it can be a program name with args.
  3337. set dummy xgettext; ac_word=$2
  3338. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3339. echo "configure:3687: checking for $ac_word" >&5
  3340. if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
  3341. echo $ac_n "(cached) $ac_c" 1>&6
  3342. else
  3343. case "$XGETTEXT" in
  3344. /*)
  3345. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  3346. ;;
  3347. *)
  3348. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  3349. for ac_dir in $PATH; do
  3350. test -z "$ac_dir" && ac_dir=.
  3351. if test -f $ac_dir/$ac_word; then
  3352. if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
  3353. ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
  3354. break
  3355. fi
  3356. fi
  3357. done
  3358. IFS="$ac_save_ifs"
  3359. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  3360. ;;
  3361. esac
  3362. fi
  3363. XGETTEXT="$ac_cv_path_XGETTEXT"
  3364. if test -n "$XGETTEXT"; then
  3365. echo "$ac_t""$XGETTEXT" 1>&6
  3366. else
  3367. echo "$ac_t""no" 1>&6
  3368. fi
  3369. USE_INCLUDED_LIBINTL=yes
  3370. CATOBJEXT=.cat
  3371. INSTOBJEXT=.cat
  3372. DATADIRNAME=lib
  3373. INTLDEPS='$(top_builddir)/intl/libintl.a'
  3374. INTLLIBS=$INTLDEPS
  3375. LIBS=`echo $LIBS | sed -e 's/-lintl//'`
  3376. nls_cv_header_intl=intl/libintl.h
  3377. nls_cv_header_libgt=intl/libgettext.h
  3378. fi
  3379. else
  3380. echo "$ac_t""no" 1>&6
  3381. fi
  3382. fi
  3383. fi
  3384. if test "$CATOBJEXT" = "NONE"; then
  3385. nls_cv_use_gnu_gettext=yes
  3386. fi
  3387. fi
  3388. if test "$nls_cv_use_gnu_gettext" = "yes"; then
  3389. INTLOBJS="\$(GETTOBJS)"
  3390. # Extract the first word of "msgfmt", so it can be a program name with args.
  3391. set dummy msgfmt; ac_word=$2
  3392. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3393. echo "configure:3745: checking for $ac_word" >&5
  3394. if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
  3395. echo $ac_n "(cached) $ac_c" 1>&6
  3396. else
  3397. case "$MSGFMT" in
  3398. /*)
  3399. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  3400. ;;
  3401. *)
  3402. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  3403. for ac_dir in $PATH; do
  3404. test -z "$ac_dir" && ac_dir=.
  3405. if test -f $ac_dir/$ac_word; then
  3406. if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
  3407. ac_cv_path_MSGFMT="$ac_dir/$ac_word"
  3408. break
  3409. fi
  3410. fi
  3411. done
  3412. IFS="$ac_save_ifs"
  3413. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
  3414. ;;
  3415. esac
  3416. fi
  3417. MSGFMT="$ac_cv_path_MSGFMT"
  3418. if test -n "$MSGFMT"; then
  3419. echo "$ac_t""$MSGFMT" 1>&6
  3420. else
  3421. echo "$ac_t""no" 1>&6
  3422. fi
  3423. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  3424. set dummy gmsgfmt; ac_word=$2
  3425. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3426. echo "configure:3779: checking for $ac_word" >&5
  3427. if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
  3428. echo $ac_n "(cached) $ac_c" 1>&6
  3429. else
  3430. case "$GMSGFMT" in
  3431. /*)
  3432. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  3433. ;;
  3434. ?:/*)
  3435. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
  3436. ;;
  3437. *)
  3438. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  3439. ac_dummy="$PATH"
  3440. for ac_dir in $ac_dummy; do
  3441. test -z "$ac_dir" && ac_dir=.
  3442. if test -f $ac_dir/$ac_word; then
  3443. ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
  3444. break
  3445. fi
  3446. done
  3447. IFS="$ac_save_ifs"
  3448. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  3449. ;;
  3450. esac
  3451. fi
  3452. GMSGFMT="$ac_cv_path_GMSGFMT"
  3453. if test -n "$GMSGFMT"; then
  3454. echo "$ac_t""$GMSGFMT" 1>&6
  3455. else
  3456. echo "$ac_t""no" 1>&6
  3457. fi
  3458. # Extract the first word of "xgettext", so it can be a program name with args.
  3459. set dummy xgettext; ac_word=$2
  3460. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3461. echo "configure:3815: checking for $ac_word" >&5
  3462. if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
  3463. echo $ac_n "(cached) $ac_c" 1>&6
  3464. else
  3465. case "$XGETTEXT" in
  3466. /*)
  3467. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  3468. ;;
  3469. *)
  3470. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  3471. for ac_dir in $PATH; do
  3472. test -z "$ac_dir" && ac_dir=.
  3473. if test -f $ac_dir/$ac_word; then
  3474. if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
  3475. ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
  3476. break
  3477. fi
  3478. fi
  3479. done
  3480. IFS="$ac_save_ifs"
  3481. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  3482. ;;
  3483. esac
  3484. fi
  3485. XGETTEXT="$ac_cv_path_XGETTEXT"
  3486. if test -n "$XGETTEXT"; then
  3487. echo "$ac_t""$XGETTEXT" 1>&6
  3488. else
  3489. echo "$ac_t""no" 1>&6
  3490. fi
  3491. USE_INCLUDED_LIBINTL=yes
  3492. CATOBJEXT=.gmo
  3493. INSTOBJEXT=.mo
  3494. DATADIRNAME=share
  3495. INTLDEPS='$(top_builddir)/intl/libintl.a'
  3496. INTLLIBS=$INTLDEPS
  3497. LIBS=`echo $LIBS | sed -e 's/-lintl//'`
  3498. nls_cv_header_intl=intl/libintl.h
  3499. nls_cv_header_libgt=intl/libgettext.h
  3500. fi
  3501. if test "$XGETTEXT" != ":"; then
  3502. if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
  3503. : ;
  3504. else
  3505. echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
  3506. XGETTEXT=":"
  3507. fi
  3508. fi
  3509. # We need to process the po/ directory.
  3510. POSUB=po
  3511. else
  3512. DATADIRNAME=share
  3513. nls_cv_header_intl=intl/libintl.h
  3514. nls_cv_header_libgt=intl/libgettext.h
  3515. fi
  3516. # If this is used in GNU gettext we have to set USE_NLS to `yes'
  3517. # because some of the sources are only built for this goal.
  3518. if test "$PACKAGE" = gettext; then
  3519. USE_NLS=yes
  3520. USE_INCLUDED_LIBINTL=yes
  3521. fi
  3522. for lang in $ALL_LINGUAS; do
  3523. GMOFILES="$GMOFILES $lang.gmo"
  3524. POFILES="$POFILES $lang.po"
  3525. done
  3526. if test "x$CATOBJEXT" != "x"; then
  3527. if test "x$ALL_LINGUAS" = "x"; then
  3528. LINGUAS=
  3529. else
  3530. echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
  3531. echo "configure:3908: checking for catalogs to be installed" >&5
  3532. NEW_LINGUAS=
  3533. for lang in ${LINGUAS=$ALL_LINGUAS}; do
  3534. case "$ALL_LINGUAS" in
  3535. *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
  3536. esac
  3537. done
  3538. LINGUAS=$NEW_LINGUAS
  3539. echo "$ac_t""$LINGUAS" 1>&6
  3540. fi
  3541. if test -n "$LINGUAS"; then
  3542. for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
  3543. fi
  3544. fi
  3545. if test $ac_cv_header_locale_h = yes; then
  3546. INCLUDE_LOCALE_H="#include <locale.h>"
  3547. else
  3548. INCLUDE_LOCALE_H="\
  3549. /* The system does not provide the header <locale.h>. Take care yourself. */"
  3550. fi
  3551. test -d intl || mkdir intl
  3552. if test "$CATOBJEXT" = ".cat"; then
  3553. ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
  3554. echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
  3555. echo "configure:3936: checking for linux/version.h" >&5
  3556. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  3557. echo $ac_n "(cached) $ac_c" 1>&6
  3558. else
  3559. cat > conftest.$ac_ext <<EOF
  3560. #line 3941 "configure"
  3561. #include "confdefs.h"
  3562. #include <linux/version.h>
  3563. EOF
  3564. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3565. { (eval echo configure:3946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  3566. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  3567. if test -z "$ac_err"; then
  3568. rm -rf conftest*
  3569. eval "ac_cv_header_$ac_safe=yes"
  3570. else
  3571. echo "$ac_err" >&5
  3572. echo "configure: failed program was:" >&5
  3573. cat conftest.$ac_ext >&5
  3574. rm -rf conftest*
  3575. eval "ac_cv_header_$ac_safe=no"
  3576. fi
  3577. rm -f conftest*
  3578. fi
  3579. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  3580. echo "$ac_t""yes" 1>&6
  3581. msgformat=linux
  3582. else
  3583. echo "$ac_t""no" 1>&6
  3584. msgformat=xopen
  3585. fi
  3586. sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
  3587. fi
  3588. sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
  3589. $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
  3590. if test "$PACKAGE" = "gettext"; then
  3591. GT_NO="#NO#"
  3592. GT_YES=
  3593. else
  3594. GT_NO=
  3595. GT_YES="#YES#"
  3596. fi
  3597. MKINSTALLDIRS=
  3598. if test -n "$ac_aux_dir"; then
  3599. MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
  3600. fi
  3601. if test -z "$MKINSTALLDIRS"; then
  3602. MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
  3603. fi
  3604. l=
  3605. test -d po || mkdir po
  3606. if test "x$srcdir" != "x."; then
  3607. if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
  3608. posrcprefix="$srcdir/"
  3609. else
  3610. posrcprefix="../$srcdir/"
  3611. fi
  3612. else
  3613. posrcprefix="../"
  3614. fi
  3615. rm -f po/POTFILES
  3616. sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
  3617. < $srcdir/po/POTFILES.in > po/POTFILES
  3618. localedir='${prefix}/${DATADIRNAME}/locale'
  3619. manualdir='${prefix}/${DATADIRNAME}/${PACKAGE}/manual'
  3620. # Check whether --with-glib-prefix or --without-glib-prefix was given.
  3621. if test "${with_glib_prefix+set}" = set; then
  3622. withval="$with_glib_prefix"
  3623. glib_config_prefix="$withval"
  3624. else
  3625. glib_config_prefix=""
  3626. fi
  3627. # Check whether --with-glib-exec-prefix or --without-glib-exec-prefix was given.
  3628. if test "${with_glib_exec_prefix+set}" = set; then
  3629. withval="$with_glib_exec_prefix"
  3630. glib_config_exec_prefix="$withval"
  3631. else
  3632. glib_config_exec_prefix=""
  3633. fi
  3634. # Check whether --enable-glibtest or --disable-glibtest was given.
  3635. if test "${enable_glibtest+set}" = set; then
  3636. enableval="$enable_glibtest"
  3637. :
  3638. else
  3639. enable_glibtest=yes
  3640. fi
  3641. if test x$glib_config_exec_prefix != x ; then
  3642. glib_config_args="$glib_config_args --exec-prefix=$glib_config_exec_prefix"
  3643. if test x${GLIB_CONFIG+set} != xset ; then
  3644. GLIB_CONFIG=$glib_config_exec_prefix/bin/glib-config
  3645. fi
  3646. fi
  3647. if test x$glib_config_prefix != x ; then
  3648. glib_config_args="$glib_config_args --prefix=$glib_config_prefix"
  3649. if test x${GLIB_CONFIG+set} != xset ; then
  3650. GLIB_CONFIG=$glib_config_prefix/bin/glib-config
  3651. fi
  3652. fi
  3653. for module in . gthread
  3654. do
  3655. case "$module" in
  3656. gmodule)
  3657. glib_config_args="$glib_config_args gmodule"
  3658. ;;
  3659. gthread)
  3660. glib_config_args="$glib_config_args gthread"
  3661. ;;
  3662. esac
  3663. done
  3664. # Extract the first word of "glib-config", so it can be a program name with args.
  3665. set dummy glib-config; ac_word=$2
  3666. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3667. echo "configure:4069: checking for $ac_word" >&5
  3668. if eval "test \"`echo '$''{'ac_cv_path_GLIB_CONFIG'+set}'`\" = set"; then
  3669. echo $ac_n "(cached) $ac_c" 1>&6
  3670. else
  3671. case "$GLIB_CONFIG" in
  3672. /*)
  3673. ac_cv_path_GLIB_CONFIG="$GLIB_CONFIG" # Let the user override the test with a path.
  3674. ;;
  3675. ?:/*)
  3676. ac_cv_path_GLIB_CONFIG="$GLIB_CONFIG" # Let the user override the test with a dos path.
  3677. ;;
  3678. *)
  3679. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  3680. ac_dummy="$PATH"
  3681. for ac_dir in $ac_dummy; do
  3682. test -z "$ac_dir" && ac_dir=.
  3683. if test -f $ac_dir/$ac_word; then
  3684. ac_cv_path_GLIB_CONFIG="$ac_dir/$ac_word"
  3685. break
  3686. fi
  3687. done
  3688. IFS="$ac_save_ifs"
  3689. test -z "$ac_cv_path_GLIB_CONFIG" && ac_cv_path_GLIB_CONFIG="no"
  3690. ;;
  3691. esac
  3692. fi
  3693. GLIB_CONFIG="$ac_cv_path_GLIB_CONFIG"
  3694. if test -n "$GLIB_CONFIG"; then
  3695. echo "$ac_t""$GLIB_CONFIG" 1>&6
  3696. else
  3697. echo "$ac_t""no" 1>&6
  3698. fi
  3699. min_glib_version=1.2.6
  3700. echo $ac_n "checking for GLIB - version >= $min_glib_version""... $ac_c" 1>&6
  3701. echo "configure:4104: checking for GLIB - version >= $min_glib_version" >&5
  3702. no_glib=""
  3703. if test "$GLIB_CONFIG" = "no" ; then
  3704. no_glib=yes
  3705. else
  3706. GLIB_CFLAGS=`$GLIB_CONFIG $glib_config_args --cflags`
  3707. GLIB_LIBS=`$GLIB_CONFIG $glib_config_args --libs`
  3708. glib_config_major_version=`$GLIB_CONFIG $glib_config_args --version | \
  3709. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  3710. glib_config_minor_version=`$GLIB_CONFIG $glib_config_args --version | \
  3711. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  3712. glib_config_micro_version=`$GLIB_CONFIG $glib_config_args --version | \
  3713. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  3714. if test "x$enable_glibtest" = "xyes" ; then
  3715. ac_save_CFLAGS="$CFLAGS"
  3716. ac_save_LIBS="$LIBS"
  3717. CFLAGS="$CFLAGS $GLIB_CFLAGS"
  3718. LIBS="$GLIB_LIBS $LIBS"
  3719. rm -f conf.glibtest
  3720. if test "$cross_compiling" = yes; then
  3721. echo $ac_n "cross compiling; assumed OK... $ac_c"
  3722. else
  3723. cat > conftest.$ac_ext <<EOF
  3724. #line 4127 "configure"
  3725. #include "confdefs.h"
  3726. #include <glib.h>
  3727. #include <stdio.h>
  3728. #include <stdlib.h>
  3729. int
  3730. main ()
  3731. {
  3732. int major, minor, micro;
  3733. char *tmp_version;
  3734. system ("touch conf.glibtest");
  3735. /* HP/UX 9 (%@#!) writes to sscanf strings */
  3736. tmp_version = g_strdup("$min_glib_version");
  3737. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  3738. printf("%s, bad version string\n", "$min_glib_version");
  3739. exit(1);
  3740. }
  3741. if ((glib_major_version != $glib_config_major_version) ||
  3742. (glib_minor_version != $glib_config_minor_version) ||
  3743. (glib_micro_version != $glib_config_micro_version))
  3744. {
  3745. printf("\n*** 'glib-config --version' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
  3746. $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
  3747. glib_major_version, glib_minor_version, glib_micro_version);
  3748. printf ("*** was found! If glib-config was correct, then it is best\n");
  3749. printf ("*** to remove the old version of GLIB. You may also be able to fix the error\n");
  3750. printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  3751. printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  3752. printf("*** required on your system.\n");
  3753. printf("*** If glib-config was wrong, set the environment variable GLIB_CONFIG\n");
  3754. printf("*** to point to the correct copy of glib-config, and remove the file config.cache\n");
  3755. printf("*** before re-running configure\n");
  3756. }
  3757. else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
  3758. (glib_minor_version != GLIB_MINOR_VERSION) ||
  3759. (glib_micro_version != GLIB_MICRO_VERSION))
  3760. {
  3761. printf("*** GLIB header files (version %d.%d.%d) do not match\n",
  3762. GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
  3763. printf("*** library (version %d.%d.%d)\n",
  3764. glib_major_version, glib_minor_version, glib_micro_version);
  3765. }
  3766. else
  3767. {
  3768. if ((glib_major_version > major) ||
  3769. ((glib_major_version == major) && (glib_minor_version > minor)) ||
  3770. ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
  3771. {
  3772. return 0;
  3773. }
  3774. else
  3775. {
  3776. printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
  3777. glib_major_version, glib_minor_version, glib_micro_version);
  3778. printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
  3779. major, minor, micro);
  3780. printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
  3781. printf("***\n");
  3782. printf("*** If you have already installed a sufficiently new version, this error\n");
  3783. printf("*** probably means that the wrong copy of the glib-config shell script is\n");
  3784. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  3785. printf("*** of GLIB, but you can also set the GLIB_CONFIG environment to point to the\n");
  3786. printf("*** correct copy of glib-config. (In this case, you will have to\n");
  3787. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  3788. printf("*** so that the correct libraries are found at run-time))\n");
  3789. }
  3790. }
  3791. return 1;
  3792. }
  3793. EOF
  3794. if { (eval echo configure:4203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  3795. then
  3796. :
  3797. else
  3798. echo "configure: failed program was:" >&5
  3799. cat conftest.$ac_ext >&5
  3800. rm -fr conftest*
  3801. no_glib=yes
  3802. fi
  3803. rm -fr conftest*
  3804. fi
  3805. CFLAGS="$ac_save_CFLAGS"
  3806. LIBS="$ac_save_LIBS"
  3807. fi
  3808. fi
  3809. if test "x$no_glib" = x ; then
  3810. echo "$ac_t""yes" 1>&6
  3811. :
  3812. else
  3813. echo "$ac_t""no" 1>&6
  3814. if test "$GLIB_CONFIG" = "no" ; then
  3815. echo "*** The glib-config script installed by GLIB could not be found"
  3816. echo "*** If GLIB was installed in PREFIX, make sure PREFIX/bin is in"
  3817. echo "*** your path, or set the GLIB_CONFIG environment variable to the"
  3818. echo "*** full path to glib-config."
  3819. else
  3820. if test -f conf.glibtest ; then
  3821. :
  3822. else
  3823. echo "*** Could not run GLIB test program, checking why..."
  3824. CFLAGS="$CFLAGS $GLIB_CFLAGS"
  3825. LIBS="$LIBS $GLIB_LIBS"
  3826. cat > conftest.$ac_ext <<EOF
  3827. #line 4237 "configure"
  3828. #include "confdefs.h"
  3829. #include <glib.h>
  3830. #include <stdio.h>
  3831. int main() {
  3832. return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
  3833. ; return 0; }
  3834. EOF
  3835. if { (eval echo configure:4247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3836. rm -rf conftest*
  3837. echo "*** The test program compiled, but did not run. This usually means"
  3838. echo "*** that the run-time linker is not finding GLIB or finding the wrong"
  3839. echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
  3840. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  3841. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  3842. echo "*** is required on your system"
  3843. echo "***"
  3844. echo "*** If you have an old version installed, it is best to remove it, although"
  3845. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  3846. echo "***"
  3847. echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
  3848. echo "*** came with the system with the command"
  3849. echo "***"
  3850. echo "*** rpm --erase --nodeps gtk gtk-devel"
  3851. else
  3852. echo "configure: failed program was:" >&5
  3853. cat conftest.$ac_ext >&5
  3854. rm -rf conftest*
  3855. echo "*** The test program failed to compile or link. See the file config.log for the"
  3856. echo "*** exact error that occured. This usually means GLIB was incorrectly installed"
  3857. echo "*** or that you have moved GLIB since it was installed. In the latter case, you"
  3858. echo "*** may want to edit the glib-config script: $GLIB_CONFIG"
  3859. fi
  3860. rm -f conftest*
  3861. CFLAGS="$ac_save_CFLAGS"
  3862. LIBS="$ac_save_LIBS"
  3863. fi
  3864. fi
  3865. GLIB_CFLAGS=""
  3866. GLIB_LIBS=""
  3867. { echo "configure: error: Test for GLIB failed. See the file 'INSTALL' for help." 1>&2; exit 1; }
  3868. fi
  3869. rm -f conf.glibtest
  3870. # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
  3871. if test "${with_gtk_prefix+set}" = set; then
  3872. withval="$with_gtk_prefix"
  3873. gtk_config_prefix="$withval"
  3874. else
  3875. gtk_config_prefix=""
  3876. fi
  3877. # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
  3878. if test "${with_gtk_exec_prefix+set}" = set; then
  3879. withval="$with_gtk_exec_prefix"
  3880. gtk_config_exec_prefix="$withval"
  3881. else
  3882. gtk_config_exec_prefix=""
  3883. fi
  3884. # Check whether --enable-gtktest or --disable-gtktest was given.
  3885. if test "${enable_gtktest+set}" = set; then
  3886. enableval="$enable_gtktest"
  3887. :
  3888. else
  3889. enable_gtktest=yes
  3890. fi
  3891. for module in .
  3892. do
  3893. case "$module" in
  3894. gthread)
  3895. gtk_config_args="$gtk_config_args gthread"
  3896. ;;
  3897. esac
  3898. done
  3899. if test x$gtk_config_exec_prefix != x ; then
  3900. gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
  3901. if test x${GTK_CONFIG+set} != xset ; then
  3902. GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
  3903. fi
  3904. fi
  3905. if test x$gtk_config_prefix != x ; then
  3906. gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
  3907. if test x${GTK_CONFIG+set} != xset ; then
  3908. GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
  3909. fi
  3910. fi
  3911. # Extract the first word of "gtk-config", so it can be a program name with args.
  3912. set dummy gtk-config; ac_word=$2
  3913. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3914. echo "configure:4335: checking for $ac_word" >&5
  3915. if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
  3916. echo $ac_n "(cached) $ac_c" 1>&6
  3917. else
  3918. case "$GTK_CONFIG" in
  3919. /*)
  3920. ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
  3921. ;;
  3922. ?:/*)
  3923. ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
  3924. ;;
  3925. *)
  3926. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  3927. ac_dummy="$PATH"
  3928. for ac_dir in $ac_dummy; do
  3929. test -z "$ac_dir" && ac_dir=.
  3930. if test -f $ac_dir/$ac_word; then
  3931. ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
  3932. break
  3933. fi
  3934. done
  3935. IFS="$ac_save_ifs"
  3936. test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
  3937. ;;
  3938. esac
  3939. fi
  3940. GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
  3941. if test -n "$GTK_CONFIG"; then
  3942. echo "$ac_t""$GTK_CONFIG" 1>&6
  3943. else
  3944. echo "$ac_t""no" 1>&6
  3945. fi
  3946. min_gtk_version=1.2.6
  3947. echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
  3948. echo "configure:4370: checking for GTK - version >= $min_gtk_version" >&5
  3949. no_gtk=""
  3950. if test "$GTK_CONFIG" = "no" ; then
  3951. no_gtk=yes
  3952. else
  3953. GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
  3954. GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
  3955. gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
  3956. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  3957. gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
  3958. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  3959. gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
  3960. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  3961. if test "x$enable_gtktest" = "xyes" ; then
  3962. ac_save_CFLAGS="$CFLAGS"
  3963. ac_save_LIBS="$LIBS"
  3964. CFLAGS="$CFLAGS $GTK_CFLAGS"
  3965. LIBS="$GTK_LIBS $LIBS"
  3966. rm -f conf.gtktest
  3967. if test "$cross_compiling" = yes; then
  3968. echo $ac_n "cross compiling; assumed OK... $ac_c"
  3969. else
  3970. cat > conftest.$ac_ext <<EOF
  3971. #line 4393 "configure"
  3972. #include "confdefs.h"
  3973. #include <gtk/gtk.h>
  3974. #include <stdio.h>
  3975. #include <stdlib.h>
  3976. int
  3977. main ()
  3978. {
  3979. int major, minor, micro;
  3980. char *tmp_version;
  3981. system ("touch conf.gtktest");
  3982. /* HP/UX 9 (%@#!) writes to sscanf strings */
  3983. tmp_version = g_strdup("$min_gtk_version");
  3984. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  3985. printf("%s, bad version string\n", "$min_gtk_version");
  3986. exit(1);
  3987. }
  3988. if ((gtk_major_version != $gtk_config_major_version) ||
  3989. (gtk_minor_version != $gtk_config_minor_version) ||
  3990. (gtk_micro_version != $gtk_config_micro_version))
  3991. {
  3992. printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
  3993. $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
  3994. gtk_major_version, gtk_minor_version, gtk_micro_version);
  3995. printf ("*** was found! If gtk-config was correct, then it is best\n");
  3996. printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
  3997. printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  3998. printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  3999. printf("*** required on your system.\n");
  4000. printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
  4001. printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
  4002. printf("*** before re-running configure\n");
  4003. }
  4004. #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
  4005. else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
  4006. (gtk_minor_version != GTK_MINOR_VERSION) ||
  4007. (gtk_micro_version != GTK_MICRO_VERSION))
  4008. {
  4009. printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
  4010. GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
  4011. printf("*** library (version %d.%d.%d)\n",
  4012. gtk_major_version, gtk_minor_version, gtk_micro_version);
  4013. }
  4014. #endif /* defined (GTK_MAJOR_VERSION) ... */
  4015. else
  4016. {
  4017. if ((gtk_major_version > major) ||
  4018. ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
  4019. ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
  4020. {
  4021. return 0;
  4022. }
  4023. else
  4024. {
  4025. printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
  4026. gtk_major_version, gtk_minor_version, gtk_micro_version);
  4027. printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
  4028. major, minor, micro);
  4029. printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
  4030. printf("***\n");
  4031. printf("*** If you have already installed a sufficiently new version, this error\n");
  4032. printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
  4033. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  4034. printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
  4035. printf("*** correct copy of gtk-config. (In this case, you will have to\n");
  4036. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  4037. printf("*** so that the correct libraries are found at run-time))\n");
  4038. }
  4039. }
  4040. return 1;
  4041. }
  4042. EOF
  4043. if { (eval echo configure:4471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  4044. then
  4045. :
  4046. else
  4047. echo "configure: failed program was:" >&5
  4048. cat conftest.$ac_ext >&5
  4049. rm -fr conftest*
  4050. no_gtk=yes
  4051. fi
  4052. rm -fr conftest*
  4053. fi
  4054. CFLAGS="$ac_save_CFLAGS"
  4055. LIBS="$ac_save_LIBS"
  4056. fi
  4057. fi
  4058. if test "x$no_gtk" = x ; then
  4059. echo "$ac_t""yes" 1>&6
  4060. :
  4061. else
  4062. echo "$ac_t""no" 1>&6
  4063. if test "$GTK_CONFIG" = "no" ; then
  4064. echo "*** The gtk-config script installed by GTK could not be found"
  4065. echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
  4066. echo "*** your path, or set the GTK_CONFIG environment variable to the"
  4067. echo "*** full path to gtk-config."
  4068. else
  4069. if test -f conf.gtktest ; then
  4070. :
  4071. else
  4072. echo "*** Could not run GTK test program, checking why..."
  4073. CFLAGS="$CFLAGS $GTK_CFLAGS"
  4074. LIBS="$LIBS $GTK_LIBS"
  4075. cat > conftest.$ac_ext <<EOF
  4076. #line 4505 "configure"
  4077. #include "confdefs.h"
  4078. #include <gtk/gtk.h>
  4079. #include <stdio.h>
  4080. int main() {
  4081. return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
  4082. ; return 0; }
  4083. EOF
  4084. if { (eval echo configure:4515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4085. rm -rf conftest*
  4086. echo "*** The test program compiled, but did not run. This usually means"
  4087. echo "*** that the run-time linker is not finding GTK or finding the wrong"
  4088. echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
  4089. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  4090. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  4091. echo "*** is required on your system"
  4092. echo "***"
  4093. echo "*** If you have an old version installed, it is best to remove it, although"
  4094. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  4095. echo "***"
  4096. echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
  4097. echo "*** came with the system with the command"
  4098. echo "***"
  4099. echo "*** rpm --erase --nodeps gtk gtk-devel"
  4100. else
  4101. echo "configure: failed program was:" >&5
  4102. cat conftest.$ac_ext >&5
  4103. rm -rf conftest*
  4104. echo "*** The test program failed to compile or link. See the file config.log for the"
  4105. echo "*** exact error that occured. This usually means GTK was incorrectly installed"
  4106. echo "*** or that you have moved GTK since it was installed. In the latter case, you"
  4107. echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
  4108. fi
  4109. rm -f conftest*
  4110. CFLAGS="$ac_save_CFLAGS"
  4111. LIBS="$ac_save_LIBS"
  4112. fi
  4113. fi
  4114. GTK_CFLAGS=""
  4115. GTK_LIBS=""
  4116. { echo "configure: error: Test for GTK failed. See the file 'INSTALL' for help." 1>&2; exit 1; }
  4117. fi
  4118. rm -f conf.gtktest
  4119. # Check whether --enable-gdk-pixbuf or --disable-gdk-pixbuf was given.
  4120. if test "${enable_gdk_pixbuf+set}" = set; then
  4121. enableval="$enable_gdk_pixbuf"
  4122. ac_cv_disable_gdk_pixbuf=disable
  4123. else
  4124. ac_cv_disable_gdk_pixbuf=no
  4125. fi
  4126. # Check whether --enable-imlib or --disable-imlib was given.
  4127. if test "${enable_imlib+set}" = set; then
  4128. enableval="$enable_imlib"
  4129. ac_cv_disable_imlib=disable
  4130. else
  4131. ac_cv_disable_imlib=no
  4132. fi
  4133. if test "$ac_cv_disable_gdk_pixbuf" = no; then
  4134. # Check whether --with-gdk-pixbuf-prefix or --without-gdk-pixbuf-prefix was given.
  4135. if test "${with_gdk_pixbuf_prefix+set}" = set; then
  4136. withval="$with_gdk_pixbuf_prefix"
  4137. gdk_pixbuf_prefix="$withval"
  4138. else
  4139. gdk_pixbuf_prefix=""
  4140. fi
  4141. # Check whether --with-gdk-pixbuf-exec-prefix or --without-gdk-pixbuf-exec-prefix was given.
  4142. if test "${with_gdk_pixbuf_exec_prefix+set}" = set; then
  4143. withval="$with_gdk_pixbuf_exec_prefix"
  4144. gdk_pixbuf_exec_prefix="$withval"
  4145. else
  4146. gdk_pixbuf_exec_prefix=""
  4147. fi
  4148. # Check whether --enable-gdk_pixbuftest or --disable-gdk_pixbuftest was given.
  4149. if test "${enable_gdk_pixbuftest+set}" = set; then
  4150. enableval="$enable_gdk_pixbuftest"
  4151. :
  4152. else
  4153. enable_gdk_pixbuftest=yes
  4154. fi
  4155. if test x$gdk_pixbuf_exec_prefix != x ; then
  4156. gdk_pixbuf_args="$gdk_pixbuf_args --exec-prefix=$gdk_pixbuf_exec_prefix"
  4157. if test x${GDK_PIXBUF_CONFIG+set} = xset ; then
  4158. GDK_PIXBUF_CONFIG=$gdk_pixbuf_exec_prefix/gdk-pixbuf-config
  4159. fi
  4160. fi
  4161. if test x$gdk_pixbuf_prefix != x ; then
  4162. gdk_pixbuf_args="$gdk_pixbuf_args --prefix=$gdk_pixbuf_prefix"
  4163. if test x${GDK_PIXBUF_CONFIG+set} = xset ; then
  4164. GDK_PIXBUF_CONFIG=$gdk_pixbuf_prefix/bin/gdk-pixbuf-config
  4165. fi
  4166. fi
  4167. # Extract the first word of "gdk-pixbuf-config", so it can be a program name with args.
  4168. set dummy gdk-pixbuf-config; ac_word=$2
  4169. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  4170. echo "configure:4613: checking for $ac_word" >&5
  4171. if eval "test \"`echo '$''{'ac_cv_path_GDK_PIXBUF_CONFIG'+set}'`\" = set"; then
  4172. echo $ac_n "(cached) $ac_c" 1>&6
  4173. else
  4174. case "$GDK_PIXBUF_CONFIG" in
  4175. /*)
  4176. ac_cv_path_GDK_PIXBUF_CONFIG="$GDK_PIXBUF_CONFIG" # Let the user override the test with a path.
  4177. ;;
  4178. ?:/*)
  4179. ac_cv_path_GDK_PIXBUF_CONFIG="$GDK_PIXBUF_CONFIG" # Let the user override the test with a dos path.
  4180. ;;
  4181. *)
  4182. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  4183. ac_dummy="$PATH"
  4184. for ac_dir in $ac_dummy; do
  4185. test -z "$ac_dir" && ac_dir=.
  4186. if test -f $ac_dir/$ac_word; then
  4187. ac_cv_path_GDK_PIXBUF_CONFIG="$ac_dir/$ac_word"
  4188. break
  4189. fi
  4190. done
  4191. IFS="$ac_save_ifs"
  4192. test -z "$ac_cv_path_GDK_PIXBUF_CONFIG" && ac_cv_path_GDK_PIXBUF_CONFIG="no"
  4193. ;;
  4194. esac
  4195. fi
  4196. GDK_PIXBUF_CONFIG="$ac_cv_path_GDK_PIXBUF_CONFIG"
  4197. if test -n "$GDK_PIXBUF_CONFIG"; then
  4198. echo "$ac_t""$GDK_PIXBUF_CONFIG" 1>&6
  4199. else
  4200. echo "$ac_t""no" 1>&6
  4201. fi
  4202. min_gdk_pixbuf_version=0.8.0
  4203. echo $ac_n "checking for GDK_PIXBUF - version >= $min_gdk_pixbuf_version""... $ac_c" 1>&6
  4204. echo "configure:4648: checking for GDK_PIXBUF - version >= $min_gdk_pixbuf_version" >&5
  4205. no_gdk_pixbuf=""
  4206. if test "$GDK_PIXBUF_CONFIG" = "no" ; then
  4207. no_gdk_pixbuf=yes
  4208. else
  4209. GDK_PIXBUF_CFLAGS=`$GDK_PIXBUF_CONFIG $gdk_pixbufconf_args --cflags`
  4210. GDK_PIXBUF_LIBS=`$GDK_PIXBUF_CONFIG $gdk_pixbufconf_args --libs`
  4211. gdk_pixbuf_major_version=`$GDK_PIXBUF_CONFIG $gdk_pixbuf_args --version | \
  4212. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  4213. gdk_pixbuf_minor_version=`$GDK_PIXBUF_CONFIG $gdk_pixbuf_args --version | \
  4214. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  4215. gdk_pixbuf_micro_version=`$GDK_PIXBUF_CONFIG $gdk_pixbuf_config_args --version | \
  4216. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  4217. if test "x$enable_gdk_pixbuftest" = "xyes" ; then
  4218. ac_save_CFLAGS="$CFLAGS"
  4219. ac_save_LIBS="$LIBS"
  4220. CFLAGS="$CFLAGS $GDK_PIXBUF_CFLAGS"
  4221. LIBS="$LIBS $GDK_PIXBUF_LIBS"
  4222. rm -f conf.gdk_pixbuftest
  4223. if test "$cross_compiling" = yes; then
  4224. echo $ac_n "cross compiling; assumed OK... $ac_c"
  4225. else
  4226. cat > conftest.$ac_ext <<EOF
  4227. #line 4672 "configure"
  4228. #include "confdefs.h"
  4229. #include <stdio.h>
  4230. #include <stdlib.h>
  4231. #include <string.h>
  4232. #include <gdk-pixbuf/gdk-pixbuf.h>
  4233. char*
  4234. my_strdup (char *str)
  4235. {
  4236. char *new_str;
  4237. if (str)
  4238. {
  4239. new_str = malloc ((strlen (str) + 1) * sizeof(char));
  4240. strcpy (new_str, str);
  4241. }
  4242. else
  4243. new_str = NULL;
  4244. return new_str;
  4245. }
  4246. int main ()
  4247. {
  4248. int major, minor, micro;
  4249. char *tmp_version;
  4250. system ("touch conf.gdk_pixbuftest");
  4251. /* HP/UX 9 (%@#!) writes to sscanf strings */
  4252. tmp_version = my_strdup("$min_gdk_pixbuf_version");
  4253. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  4254. printf("%s, bad version string\n", "$min_gdk_pixbuf_version");
  4255. exit(1);
  4256. }
  4257. if (($gdk_pixbuf_major_version > major) ||
  4258. (($gdk_pixbuf_major_version == major) && ($gdk_pixbuf_minor_version > minor)) ||
  4259. (($gdk_pixbuf_major_version == major) && ($gdk_pixbuf_minor_version == minor) && ($gdk_pixbuf_micro_version >= micro)))
  4260. {
  4261. return 0;
  4262. }
  4263. else
  4264. {
  4265. printf("\n*** 'gdk-pixbuf-config --version' returned %d.%d.%d, but the minimum version\n", $gdk_pixbuf_major_version, $gdk_pixbuf_minor_version, $gdk_pixbuf_micro_version);
  4266. printf("*** of GDK_PIXBUF required is %d.%d.%d. If gdk-pixbuf-config is correct, then it is\n", major, minor, micro);
  4267. printf("*** best to upgrade to the required version.\n");
  4268. printf("*** If gdk-pixbuf-config was wrong, set the environment variable GDK_PIXBUF_CONFIG\n");
  4269. printf("*** to point to the correct copy of gdk-pixbuf-config, and remove the file\n");
  4270. printf("*** config.cache before re-running configure\n");
  4271. return 1;
  4272. }
  4273. }
  4274. EOF
  4275. if { (eval echo configure:4730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  4276. then
  4277. :
  4278. else
  4279. echo "configure: failed program was:" >&5
  4280. cat conftest.$ac_ext >&5
  4281. rm -fr conftest*
  4282. no_gdk_pixbuf=yes
  4283. fi
  4284. rm -fr conftest*
  4285. fi
  4286. CFLAGS="$ac_save_CFLAGS"
  4287. LIBS="$ac_save_LIBS"
  4288. fi
  4289. fi
  4290. if test "x$no_gdk_pixbuf" = x ; then
  4291. echo "$ac_t""yes" 1>&6
  4292. cat >> confdefs.h <<\EOF
  4293. #define HAVE_GDK_PIXBUF 1
  4294. EOF
  4295. else
  4296. echo "$ac_t""no" 1>&6
  4297. if test "$GDK_PIXBUF_CONFIG" = "no" ; then
  4298. echo "*** The gdk-pixbuf-config script installed by GDK_PIXBUF could not be found"
  4299. echo "*** If GDK_PIXBUF was installed in PREFIX, make sure PREFIX/bin is in"
  4300. echo "*** your path, or set the GDK_PIXBUF_CONFIG environment variable to the"
  4301. echo "*** full path to gdk-pixbuf-config."
  4302. else
  4303. if test -f conf.gdk_pixbuftest ; then
  4304. :
  4305. else
  4306. echo "*** Could not run GDK_PIXBUF test program, checking why..."
  4307. CFLAGS="$CFLAGS $GDK_PIXBUF_CFLAGS"
  4308. LIBS="$LIBS $GDK_PIXBUF_LIBS"
  4309. cat > conftest.$ac_ext <<EOF
  4310. #line 4767 "configure"
  4311. #include "confdefs.h"
  4312. #include <stdio.h>
  4313. #include <gdk-pixbuf/gdk-pixbuf.h>
  4314. int main() {
  4315. return 0;
  4316. ; return 0; }
  4317. EOF
  4318. if { (eval echo configure:4777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4319. rm -rf conftest*
  4320. echo "*** The test program compiled, but did not run. This usually means"
  4321. echo "*** that the run-time linker is not finding GDK_PIXBUF or finding the wrong"
  4322. echo "*** version of GDK_PIXBUF. If it is not finding GDK_PIXBUF, you'll need to set your"
  4323. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  4324. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  4325. echo "*** is required on your system"
  4326. echo "***"
  4327. echo "*** If you have an old version installed, it is best to remove it, although"
  4328. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  4329. else
  4330. echo "configure: failed program was:" >&5
  4331. cat conftest.$ac_ext >&5
  4332. rm -rf conftest*
  4333. echo "*** The test program failed to compile or link. See the file config.log for the"
  4334. echo "*** exact error that occured. This usually means GDK_PIXBUF was incorrectly installed"
  4335. echo "*** or that you have moved GDK_PIXBUF since it was installed. In the latter case, you"
  4336. echo "*** may want to edit the gdk-pixbuf-config script: $GDK_PIXBUF_CONFIG"
  4337. fi
  4338. rm -f conftest*
  4339. CFLAGS="$ac_save_CFLAGS"
  4340. LIBS="$ac_save_LIBS"
  4341. fi
  4342. fi
  4343. GDK_PIXBUF_CFLAGS=""
  4344. GDK_PIXBUF_LIBS=""
  4345. ac_cv_disable_gdk_pixbuf=disable
  4346. fi
  4347. rm -f conf.gdk_pixbuftest
  4348. fi
  4349. if test "$ac_cv_disable_gdk_pixbuf" = disable -a "$ac_cv_disable_imlib" = no; then
  4350. # Check whether --with-imlib-prefix or --without-imlib-prefix was given.
  4351. if test "${with_imlib_prefix+set}" = set; then
  4352. withval="$with_imlib_prefix"
  4353. imlib_prefix="$withval"
  4354. else
  4355. imlib_prefix=""
  4356. fi
  4357. # Check whether --with-imlib-exec-prefix or --without-imlib-exec-prefix was given.
  4358. if test "${with_imlib_exec_prefix+set}" = set; then
  4359. withval="$with_imlib_exec_prefix"
  4360. imlib_exec_prefix="$withval"
  4361. else
  4362. imlib_exec_prefix=""
  4363. fi
  4364. # Check whether --enable-imlibtest or --disable-imlibtest was given.
  4365. if test "${enable_imlibtest+set}" = set; then
  4366. enableval="$enable_imlibtest"
  4367. :
  4368. else
  4369. enable_imlibtest=yes
  4370. fi
  4371. if test x$imlib_exec_prefix != x ; then
  4372. imlib_args="$imlib_args --exec-prefix=$imlib_exec_prefix"
  4373. if test x${IMLIB_CONFIG+set} != xset ; then
  4374. IMLIB_CONFIG=$imlib_exec_prefix/bin/imlib-config
  4375. fi
  4376. fi
  4377. if test x$imlib_prefix != x ; then
  4378. imlib_args="$imlib_args --prefix=$imlib_prefix"
  4379. if test x${IMLIB_CONFIG+set} != xset ; then
  4380. IMLIB_CONFIG=$imlib_prefix/bin/imlib-config
  4381. fi
  4382. fi
  4383. # Extract the first word of "imlib-config", so it can be a program name with args.
  4384. set dummy imlib-config; ac_word=$2
  4385. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  4386. echo "configure:4853: checking for $ac_word" >&5
  4387. if eval "test \"`echo '$''{'ac_cv_path_IMLIB_CONFIG'+set}'`\" = set"; then
  4388. echo $ac_n "(cached) $ac_c" 1>&6
  4389. else
  4390. case "$IMLIB_CONFIG" in
  4391. /*)
  4392. ac_cv_path_IMLIB_CONFIG="$IMLIB_CONFIG" # Let the user override the test with a path.
  4393. ;;
  4394. ?:/*)
  4395. ac_cv_path_IMLIB_CONFIG="$IMLIB_CONFIG" # Let the user override the test with a dos path.
  4396. ;;
  4397. *)
  4398. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  4399. ac_dummy="$PATH"
  4400. for ac_dir in $ac_dummy; do
  4401. test -z "$ac_dir" && ac_dir=.
  4402. if test -f $ac_dir/$ac_word; then
  4403. ac_cv_path_IMLIB_CONFIG="$ac_dir/$ac_word"
  4404. break
  4405. fi
  4406. done
  4407. IFS="$ac_save_ifs"
  4408. test -z "$ac_cv_path_IMLIB_CONFIG" && ac_cv_path_IMLIB_CONFIG="no"
  4409. ;;
  4410. esac
  4411. fi
  4412. IMLIB_CONFIG="$ac_cv_path_IMLIB_CONFIG"
  4413. if test -n "$IMLIB_CONFIG"; then
  4414. echo "$ac_t""$IMLIB_CONFIG" 1>&6
  4415. else
  4416. echo "$ac_t""no" 1>&6
  4417. fi
  4418. min_imlib_version=1.9
  4419. echo $ac_n "checking for IMLIB - version >= $min_imlib_version""... $ac_c" 1>&6
  4420. echo "configure:4888: checking for IMLIB - version >= $min_imlib_version" >&5
  4421. no_imlib=""
  4422. if test "$IMLIB_CONFIG" = "no" ; then
  4423. no_imlib=yes
  4424. else
  4425. GDK_IMLIB_CFLAGS=`$IMLIB_CONFIG $imlibconf_args --cflags-gdk`
  4426. GDK_IMLIB_LIBS=`$IMLIB_CONFIG $imlibconf_args --libs-gdk`
  4427. imlib_major_version=`$IMLIB_CONFIG $imlib_args --version | \
  4428. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  4429. imlib_minor_version=`$IMLIB_CONFIG $imlib_args --version | \
  4430. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  4431. if test "x$enable_imlibtest" = "xyes" ; then
  4432. ac_save_CFLAGS="$CFLAGS"
  4433. ac_save_LIBS="$LIBS"
  4434. CFLAGS="$CFLAGS $GDK_IMLIB_CFLAGS"
  4435. LIBS="$LIBS $GDK_IMLIB_LIBS"
  4436. rm -f conf.imlibtest
  4437. if test "$cross_compiling" = yes; then
  4438. echo $ac_n "cross compiling; assumed OK... $ac_c"
  4439. else
  4440. cat > conftest.$ac_ext <<EOF
  4441. #line 4910 "configure"
  4442. #include "confdefs.h"
  4443. #include <stdio.h>
  4444. #include <stdlib.h>
  4445. #include <gdk_imlib.h>
  4446. int main ()
  4447. {
  4448. int major, minor;
  4449. char *tmp_version;
  4450. system ("touch conf.gdkimlibtest");
  4451. /* HP/UX 9 (%@#!) writes to sscanf strings */
  4452. tmp_version = g_strdup("$min_imlib_version");
  4453. if (sscanf(tmp_version, "%d.%d", &major, &minor) != 2) {
  4454. printf("%s, bad version string\n", "$min_imlib_version");
  4455. exit(1);
  4456. }
  4457. if (($imlib_major_version > major) ||
  4458. (($imlib_major_version == major) && ($imlib_minor_version >= minor)))
  4459. {
  4460. return 0;
  4461. }
  4462. else
  4463. {
  4464. printf("\n*** 'imlib-config --version' returned %d.%d, but the minimum version\n", $imlib_major_version, $imlib_minor_version);
  4465. printf("*** of IMLIB required is %d.%d. If imlib-config is correct, then it is\n", major, minor);
  4466. printf("*** best to upgrade to the required version.\n");
  4467. printf("*** If imlib-config was wrong, set the environment variable IMLIB_CONFIG\n");
  4468. printf("*** to point to the correct copy of imlib-config, and remove the file\n");
  4469. printf("*** config.cache before re-running configure\n");
  4470. return 1;
  4471. }
  4472. }
  4473. EOF
  4474. if { (eval echo configure:4950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  4475. then
  4476. :
  4477. else
  4478. echo "configure: failed program was:" >&5
  4479. cat conftest.$ac_ext >&5
  4480. rm -fr conftest*
  4481. no_imlib=yes
  4482. fi
  4483. rm -fr conftest*
  4484. fi
  4485. CFLAGS="$ac_save_CFLAGS"
  4486. LIBS="$ac_save_LIBS"
  4487. fi
  4488. fi
  4489. if test "x$no_imlib" = x ; then
  4490. echo "$ac_t""yes" 1>&6
  4491. cat >> confdefs.h <<\EOF
  4492. #define HAVE_GDK_IMLIB 1
  4493. EOF
  4494. else
  4495. echo "$ac_t""no" 1>&6
  4496. if test "$IMLIB_CONFIG" = "no" ; then
  4497. echo "*** The imlib-config script installed by IMLIB could not be found"
  4498. echo "*** If IMLIB was installed in PREFIX, make sure PREFIX/bin is in"
  4499. echo "*** your path, or set the IMLIB_CONFIG environment variable to the"
  4500. echo "*** full path to imlib-config."
  4501. else
  4502. if test -f conf.gdkimlibtest ; then
  4503. :
  4504. else
  4505. echo "*** Could not run IMLIB test program, checking why..."
  4506. CFLAGS="$CFLAGS $GDK_IMLIB_CFLAGS"
  4507. LIBS="$LIBS $GDK_IMLIB_LIBS"
  4508. cat > conftest.$ac_ext <<EOF
  4509. #line 4987 "configure"
  4510. #include "confdefs.h"
  4511. #include <stdio.h>
  4512. #include <gdk_imlib.h>
  4513. int main() {
  4514. return 0;
  4515. ; return 0; }
  4516. EOF
  4517. if { (eval echo configure:4997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4518. rm -rf conftest*
  4519. echo "*** The test program compiled, but did not run. This usually means"
  4520. echo "*** that the run-time linker is not finding IMLIB or finding the wrong"
  4521. echo "*** version of IMLIB. If it is not finding IMLIB, you'll need to set your"
  4522. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  4523. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  4524. echo "*** is required on your system"
  4525. echo "***"
  4526. echo "*** If you have an old version installed, it is best to remove it, although"
  4527. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  4528. else
  4529. echo "configure: failed program was:" >&5
  4530. cat conftest.$ac_ext >&5
  4531. rm -rf conftest*
  4532. echo "*** The test program failed to compile or link. See the file config.log for the"
  4533. echo "*** exact error that occured. This usually means IMLIB was incorrectly installed"
  4534. echo "*** or that you have moved IMLIB since it was installed. In the latter case, you"
  4535. echo "*** may want to edit the imlib-config script: $IMLIB_CONFIG"
  4536. fi
  4537. rm -f conftest*
  4538. CFLAGS="$ac_save_CFLAGS"
  4539. LIBS="$ac_save_LIBS"
  4540. fi
  4541. fi
  4542. IMLIB_CFLAGS=""
  4543. IMLIB_LIBS=""
  4544. ac_cv_disable_imlib=disable
  4545. fi
  4546. rm -f conf.gdkimlibtest
  4547. fi
  4548. if test "$ac_cv_disable_gdk_pixbuf" = disable -a "$ac_cv_disable_imlib" = disable; then
  4549. echo "configure: warning: *** Built-in image view will not be supported ***" 1>&2
  4550. fi
  4551. # Check whether --enable-gpgme or --disable-gpgme was given.
  4552. if test "${enable_gpgme+set}" = set; then
  4553. enableval="$enable_gpgme"
  4554. ac_cv_enable_gpgme=$enableval
  4555. else
  4556. ac_cv_enable_gpgme=no
  4557. fi
  4558. if test $ac_cv_enable_gpgme = yes; then
  4559. # Check whether --with-gpgme-prefix or --without-gpgme-prefix was given.
  4560. if test "${with_gpgme_prefix+set}" = set; then
  4561. withval="$with_gpgme_prefix"
  4562. gpgme_config_prefix="$withval"
  4563. else
  4564. gpgme_config_prefix=""
  4565. fi
  4566. # Check whether --enable-gpgmetest or --disable-gpgmetest was given.
  4567. if test "${enable_gpgmetest+set}" = set; then
  4568. enableval="$enable_gpgmetest"
  4569. :
  4570. else
  4571. enable_gpgmetest=yes
  4572. fi
  4573. if test x$gpgme_config_prefix != x ; then
  4574. gpgme_config_args="$gpgme_config_args --prefix=$gpgme_config_prefix"
  4575. if test x${GPGME_CONFIG+set} != xset ; then
  4576. GPGME_CONFIG=$gpgme_config_prefix/bin/gpgme-config
  4577. fi
  4578. fi
  4579. # Extract the first word of "gpgme-config", so it can be a program name with args.
  4580. set dummy gpgme-config; ac_word=$2
  4581. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  4582. echo "configure:5071: checking for $ac_word" >&5
  4583. if eval "test \"`echo '$''{'ac_cv_path_GPGME_CONFIG'+set}'`\" = set"; then
  4584. echo $ac_n "(cached) $ac_c" 1>&6
  4585. else
  4586. case "$GPGME_CONFIG" in
  4587. /*)
  4588. ac_cv_path_GPGME_CONFIG="$GPGME_CONFIG" # Let the user override the test with a path.
  4589. ;;
  4590. ?:/*)
  4591. ac_cv_path_GPGME_CONFIG="$GPGME_CONFIG" # Let the user override the test with a dos path.
  4592. ;;
  4593. *)
  4594. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  4595. ac_dummy="$PATH"
  4596. for ac_dir in $ac_dummy; do
  4597. test -z "$ac_dir" && ac_dir=.
  4598. if test -f $ac_dir/$ac_word; then
  4599. ac_cv_path_GPGME_CONFIG="$ac_dir/$ac_word"
  4600. break
  4601. fi
  4602. done
  4603. IFS="$ac_save_ifs"
  4604. test -z "$ac_cv_path_GPGME_CONFIG" && ac_cv_path_GPGME_CONFIG="no"
  4605. ;;
  4606. esac
  4607. fi
  4608. GPGME_CONFIG="$ac_cv_path_GPGME_CONFIG"
  4609. if test -n "$GPGME_CONFIG"; then
  4610. echo "$ac_t""$GPGME_CONFIG" 1>&6
  4611. else
  4612. echo "$ac_t""no" 1>&6
  4613. fi
  4614. min_gpgme_version=0.1.4
  4615. echo $ac_n "checking for GPGME - version >= $min_gpgme_version""... $ac_c" 1>&6
  4616. echo "configure:5106: checking for GPGME - version >= $min_gpgme_version" >&5
  4617. no_gpgme=""
  4618. if test "$GPGME_CONFIG" = "no" ; then
  4619. no_gpgme=yes
  4620. else
  4621. GPGME_CFLAGS=`$GPGME_CONFIG $gpgme_config_args --cflags`
  4622. GPGME_LIBS=`$GPGME_CONFIG $gpgme_config_args --libs`
  4623. gpgme_config_version=`$GPGME_CONFIG $gpgme_config_args --version`
  4624. if test "x$enable_gpgmetest" = "xyes" ; then
  4625. ac_save_CFLAGS="$CFLAGS"
  4626. ac_save_LIBS="$LIBS"
  4627. CFLAGS="$CFLAGS $GPGME_CFLAGS"
  4628. LIBS="$LIBS $GPGME_LIBS"
  4629. rm -f conf.gpgmetest
  4630. if test "$cross_compiling" = yes; then
  4631. echo $ac_n "cross compiling; assumed OK... $ac_c"
  4632. else
  4633. cat > conftest.$ac_ext <<EOF
  4634. #line 5124 "configure"
  4635. #include "confdefs.h"
  4636. #include <stdio.h>
  4637. #include <stdlib.h>
  4638. #include <string.h>
  4639. #include <gpgme.h>
  4640. int
  4641. main ()
  4642. {
  4643. system ("touch conf.gpgmetest");
  4644. if( strcmp( gpgme_check_version(NULL), "$gpgme_config_version" ) )
  4645. {
  4646. printf("\n"
  4647. "*** 'gpgme-config --version' returned %s, but GPGME (%s) was found!\n",
  4648. "$gpgme_config_version", gpgme_check_version(NULL) );
  4649. printf(
  4650. "*** If gpgme-config was correct, then it is best to remove the old\n"
  4651. "*** version of GPGME. You may also be able to fix the error\n"
  4652. "*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"
  4653. "*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"
  4654. "*** required on your system.\n"
  4655. "*** If gpgme-config was wrong, set the environment variable GPGME_CONFIG\n"
  4656. "*** to point to the correct copy of gpgme-config, \n"
  4657. "*** and remove the file config.cache before re-running configure\n"
  4658. );
  4659. }
  4660. else if ( strcmp(gpgme_check_version(NULL), GPGME_VERSION ) )
  4661. {
  4662. printf("\n*** GPGME header file (version %s) does not match\n",
  4663. GPGME_VERSION);
  4664. printf("*** library (version %s)\n", gpgme_check_version(NULL) );
  4665. }
  4666. else
  4667. {
  4668. if ( gpgme_check_version( "$min_gpgme_version" ) )
  4669. return 0;
  4670. printf("no\n"
  4671. "*** An old version of GPGME (%s) was found.\n", gpgme_check_version(NULL) );
  4672. printf(
  4673. "*** You need a version of GPGME newer than %s.\n", "$min_gpgme_version" );
  4674. printf(
  4675. "*** The latest version of GPGME is always available at\n"
  4676. "*** ftp://ftp.gnupg.org/pub/gcrypt/alpha/gpgme/\n"
  4677. "*** \n"
  4678. "*** If you have already installed a sufficiently new version, this error\n"
  4679. "*** probably means that the wrong copy of the gpgme-config shell script is\n"
  4680. "*** being found. The easiest way to fix this is to remove the old version\n"
  4681. "*** of GPGME, but you can also set the GPGME_CONFIG environment to point to\n"
  4682. "*** the correct copy of gpgme-config. (In this case, you will have to\n"
  4683. "*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"
  4684. "*** so that the correct libraries are found at run-time).\n"
  4685. );
  4686. }
  4687. return 1;
  4688. }
  4689. EOF
  4690. if { (eval echo configure:5184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  4691. then
  4692. :
  4693. else
  4694. echo "configure: failed program was:" >&5
  4695. cat conftest.$ac_ext >&5
  4696. rm -fr conftest*
  4697. no_gpgme=yes
  4698. fi
  4699. rm -fr conftest*
  4700. fi
  4701. CFLAGS="$ac_save_CFLAGS"
  4702. LIBS="$ac_save_LIBS"
  4703. fi
  4704. fi
  4705. if test "x$no_gpgme" = x ; then
  4706. echo "$ac_t""yes" 1>&6
  4707. cat >> confdefs.h <<\EOF
  4708. #define USE_GPGME 1
  4709. EOF
  4710. else
  4711. if test -f conf.gpgmetest ; then
  4712. :
  4713. else
  4714. echo "$ac_t""no" 1>&6
  4715. fi
  4716. if test "$GPGME_CONFIG" = "no" ; then
  4717. echo "*** The gpgme-config script installed by GPGME could not be found"
  4718. echo "*** If GPGME was installed in PREFIX, make sure PREFIX/bin is in"
  4719. echo "*** your path, or set the GPGME_CONFIG environment variable to the"
  4720. echo "*** full path to gpgme-config."
  4721. else
  4722. if test -f conf.gpgmetest ; then
  4723. :
  4724. else
  4725. echo "*** Could not run gpgme test program, checking why..."
  4726. CFLAGS="$CFLAGS $GPGME_CFLAGS"
  4727. LIBS="$LIBS $GPGME_LIBS"
  4728. cat > conftest.$ac_ext <<EOF
  4729. #line 5225 "configure"
  4730. #include "confdefs.h"
  4731. #include <stdio.h>
  4732. #include <stdlib.h>
  4733. #include <string.h>
  4734. #include <gpgme.h>
  4735. int main() {
  4736. gpgme_check_version(NULL); return 0
  4737. ; return 0; }
  4738. EOF
  4739. if { (eval echo configure:5237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4740. rm -rf conftest*
  4741. echo "*** The test program compiled, but did not run. This usually means"
  4742. echo "*** that the run-time linker is not finding GPGME or finding the wrong"
  4743. echo "*** version of GPGME. If it is not finding GPGME, you'll need to set your"
  4744. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  4745. echo "*** to the installed location Also, make sure you have run ldconfig if"
  4746. echo "*** that is required on your system"
  4747. echo "***"
  4748. echo "*** If you have an old version installed, it is best to remove it,"
  4749. echo "*** although you may also be able to get things to work by"
  4750. echo "*** modifying LD_LIBRARY_PATH"
  4751. echo "***"
  4752. else
  4753. echo "configure: failed program was:" >&5
  4754. cat conftest.$ac_ext >&5
  4755. rm -rf conftest*
  4756. echo "*** The test program failed to compile or link. See the file config.log"
  4757. echo "*** for the exact error that occured. This usually means GPGME was"
  4758. echo "*** incorrectly installed or that you have moved GPGME since it was"
  4759. echo "*** installed. In the latter case, you may want to edit the"
  4760. echo "*** gpgme-config script: $GPGME_CONFIG"
  4761. fi
  4762. rm -f conftest*
  4763. CFLAGS="$ac_save_CFLAGS"
  4764. LIBS="$ac_save_LIBS"
  4765. fi
  4766. fi
  4767. GPGME_CFLAGS=""
  4768. GPGME_LIBS=""
  4769. use_gpgme=no
  4770. fi
  4771. rm -f conf.gpgmetest
  4772. fi
  4773. # Check whether --enable-compface or --disable-compface was given.
  4774. if test "${enable_compface+set}" = set; then
  4775. enableval="$enable_compface"
  4776. ac_cv_disable_compface=disable
  4777. else
  4778. ac_cv_disable_compface=no
  4779. fi
  4780. if test "$ac_cv_disable_compface" = no; then
  4781. echo $ac_n "checking for uncompface in -lcompface""... $ac_c" 1>&6
  4782. echo "configure:5289: checking for uncompface in -lcompface" >&5
  4783. ac_lib_var=`echo compface'_'uncompface | sed 'y%./+-%__p_%'`
  4784. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4785. echo $ac_n "(cached) $ac_c" 1>&6
  4786. else
  4787. ac_save_LIBS="$LIBS"
  4788. LIBS="-lcompface $LIBS"
  4789. cat > conftest.$ac_ext <<EOF
  4790. #line 5297 "configure"
  4791. #include "confdefs.h"
  4792. /* Override any gcc2 internal prototype to avoid an error. */
  4793. /* We use char because int might match the return type of a gcc2
  4794. builtin and then its argument prototype would still apply. */
  4795. char uncompface();
  4796. int main() {
  4797. uncompface()
  4798. ; return 0; }
  4799. EOF
  4800. if { (eval echo configure:5308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4801. rm -rf conftest*
  4802. eval "ac_cv_lib_$ac_lib_var=yes"
  4803. else
  4804. echo "configure: failed program was:" >&5
  4805. cat conftest.$ac_ext >&5
  4806. rm -rf conftest*
  4807. eval "ac_cv_lib_$ac_lib_var=no"
  4808. fi
  4809. rm -f conftest*
  4810. LIBS="$ac_save_LIBS"
  4811. fi
  4812. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4813. echo "$ac_t""yes" 1>&6
  4814. ac_tr_lib=HAVE_LIB`echo compface | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  4815. -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  4816. cat >> confdefs.h <<EOF
  4817. #define $ac_tr_lib 1
  4818. EOF
  4819. LIBS="-lcompface $LIBS"
  4820. else
  4821. echo "$ac_t""no" 1>&6
  4822. fi
  4823. fi
  4824. # Check whether --enable-jconv or --disable-jconv was given.
  4825. if test "${enable_jconv+set}" = set; then
  4826. enableval="$enable_jconv"
  4827. ac_cv_disable_jconv=disable
  4828. else
  4829. ac_cv_disable_jconv=no
  4830. fi
  4831. if test "$ac_cv_disable_jconv" = no; then
  4832. echo $ac_n "checking for jconv_alloc_conv in -ljconv""... $ac_c" 1>&6
  4833. echo "configure:5347: checking for jconv_alloc_conv in -ljconv" >&5
  4834. ac_lib_var=`echo jconv'_'jconv_alloc_conv | sed 'y%./+-%__p_%'`
  4835. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4836. echo $ac_n "(cached) $ac_c" 1>&6
  4837. else
  4838. ac_save_LIBS="$LIBS"
  4839. LIBS="-ljconv $LIBS"
  4840. cat > conftest.$ac_ext <<EOF
  4841. #line 5355 "configure"
  4842. #include "confdefs.h"
  4843. /* Override any gcc2 internal prototype to avoid an error. */
  4844. /* We use char because int might match the return type of a gcc2
  4845. builtin and then its argument prototype would still apply. */
  4846. char jconv_alloc_conv();
  4847. int main() {
  4848. jconv_alloc_conv()
  4849. ; return 0; }
  4850. EOF
  4851. if { (eval echo configure:5366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4852. rm -rf conftest*
  4853. eval "ac_cv_lib_$ac_lib_var=yes"
  4854. else
  4855. echo "configure: failed program was:" >&5
  4856. cat conftest.$ac_ext >&5
  4857. rm -rf conftest*
  4858. eval "ac_cv_lib_$ac_lib_var=no"
  4859. fi
  4860. rm -f conftest*
  4861. LIBS="$ac_save_LIBS"
  4862. fi
  4863. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4864. echo "$ac_t""yes" 1>&6
  4865. ac_tr_lib=HAVE_LIB`echo jconv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  4866. -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  4867. cat >> confdefs.h <<EOF
  4868. #define $ac_tr_lib 1
  4869. EOF
  4870. LIBS="-ljconv $LIBS"
  4871. else
  4872. echo "$ac_t""no" 1>&6
  4873. fi
  4874. fi
  4875. echo $ac_n "checking for setlocale in -lxpg4""... $ac_c" 1>&6
  4876. echo "configure:5396: checking for setlocale in -lxpg4" >&5
  4877. ac_lib_var=`echo xpg4'_'setlocale | sed 'y%./+-%__p_%'`
  4878. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4879. echo $ac_n "(cached) $ac_c" 1>&6
  4880. else
  4881. ac_save_LIBS="$LIBS"
  4882. LIBS="-lxpg4 $LIBS"
  4883. cat > conftest.$ac_ext <<EOF
  4884. #line 5404 "configure"
  4885. #include "confdefs.h"
  4886. /* Override any gcc2 internal prototype to avoid an error. */
  4887. /* We use char because int might match the return type of a gcc2
  4888. builtin and then its argument prototype would still apply. */
  4889. char setlocale();
  4890. int main() {
  4891. setlocale()
  4892. ; return 0; }
  4893. EOF
  4894. if { (eval echo configure:5415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4895. rm -rf conftest*
  4896. eval "ac_cv_lib_$ac_lib_var=yes"
  4897. else
  4898. echo "configure: failed program was:" >&5
  4899. cat conftest.$ac_ext >&5
  4900. rm -rf conftest*
  4901. eval "ac_cv_lib_$ac_lib_var=no"
  4902. fi
  4903. rm -f conftest*
  4904. LIBS="$ac_save_LIBS"
  4905. fi
  4906. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4907. echo "$ac_t""yes" 1>&6
  4908. ac_tr_lib=HAVE_LIB`echo xpg4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  4909. -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  4910. cat >> confdefs.h <<EOF
  4911. #define $ac_tr_lib 1
  4912. EOF
  4913. LIBS="-lxpg4 $LIBS"
  4914. else
  4915. echo "$ac_t""no" 1>&6
  4916. fi
  4917. # Check whether --enable-threads or --disable-threads was given.
  4918. if test "${enable_threads+set}" = set; then
  4919. enableval="$enable_threads"
  4920. use_threads=$enableval
  4921. else
  4922. use_threads=no
  4923. fi
  4924. echo $ac_n "checking whether to use threads""... $ac_c" 1>&6
  4925. echo "configure:5453: checking whether to use threads" >&5
  4926. if test x"$use_threads" = xyes ; then
  4927. echo "$ac_t""yes" 1>&6
  4928. if test ! -z `$GLIB_CONFIG --help 2>&1 |grep 'gthread'` ; then
  4929. CFLAGS="$CFLAGS `$GLIB_CONFIG --cflags gthread`"
  4930. LIBS="$LIBS `$GLIB_CONFIG --libs gthread`"
  4931. cat >> confdefs.h <<\EOF
  4932. #define USE_THREADS 1
  4933. EOF
  4934. else
  4935. { echo "configure: error: Sylpheed requires GThread from GLib to use threading." 1>&2; exit 1; }
  4936. fi
  4937. else
  4938. echo "$ac_t""no" 1>&6
  4939. fi
  4940. # Check whether --enable-ipv6 or --disable-ipv6 was given.
  4941. if test "${enable_ipv6+set}" = set; then
  4942. enableval="$enable_ipv6"
  4943. ac_cv_enableipv6=$enableval
  4944. else
  4945. ac_cv_enableipv6=no
  4946. fi
  4947. if test x"$ac_cv_enableipv6" = xyes; then
  4948. echo $ac_n "checking for IPv6 support""... $ac_c" 1>&6
  4949. echo "configure:5481: checking for IPv6 support" >&5
  4950. if eval "test \"`echo '$''{'ac_cv_ipv6'+set}'`\" = set"; then
  4951. echo $ac_n "(cached) $ac_c" 1>&6
  4952. else
  4953. cat > conftest.$ac_ext <<EOF
  4954. #line 5487 "configure"
  4955. #include "confdefs.h"
  4956. #define INET6
  4957. #include <sys/types.h>
  4958. #include <netinet/in.h>
  4959. int main() {
  4960. int x = IPPROTO_IPV6; struct in6_addr a;
  4961. ; return 0; }
  4962. EOF
  4963. if { (eval echo configure:5496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  4964. rm -rf conftest*
  4965. ac_cv_ipv6=yes
  4966. else
  4967. echo "configure: failed program was:" >&5
  4968. cat conftest.$ac_ext >&5
  4969. rm -rf conftest*
  4970. ac_cv_ipv6=no
  4971. fi
  4972. rm -f conftest*
  4973. fi
  4974. echo "$ac_t""$ac_cv_ipv6" 1>&6
  4975. if test $ac_cv_ipv6 = yes; then
  4976. cat >> confdefs.h <<\EOF
  4977. #define INET6 1
  4978. EOF
  4979. fi
  4980. fi
  4981. ac_header_dirent=no
  4982. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
  4983. do
  4984. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  4985. echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
  4986. echo "configure:5523: checking for $ac_hdr that defines DIR" >&5
  4987. if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
  4988. echo $ac_n "(cached) $ac_c" 1>&6
  4989. else
  4990. cat > conftest.$ac_ext <<EOF
  4991. #line 5528 "configure"
  4992. #include "confdefs.h"
  4993. #include <sys/types.h>
  4994. #include <$ac_hdr>
  4995. int main() {
  4996. DIR *dirp = 0;
  4997. ; return 0; }
  4998. EOF
  4999. if { (eval echo configure:5536: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  5000. rm -rf conftest*
  5001. eval "ac_cv_header_dirent_$ac_safe=yes"
  5002. else
  5003. echo "configure: failed program was:" >&5
  5004. cat conftest.$ac_ext >&5
  5005. rm -rf conftest*
  5006. eval "ac_cv_header_dirent_$ac_safe=no"
  5007. fi
  5008. rm -f conftest*
  5009. fi
  5010. if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
  5011. echo "$ac_t""yes" 1>&6
  5012. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  5013. cat >> confdefs.h <<EOF
  5014. #define $ac_tr_hdr 1
  5015. EOF
  5016. ac_header_dirent=$ac_hdr; break
  5017. else
  5018. echo "$ac_t""no" 1>&6
  5019. fi
  5020. done
  5021. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  5022. if test $ac_header_dirent = dirent.h; then
  5023. echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
  5024. echo "configure:5561: checking for opendir in -ldir" >&5
  5025. ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
  5026. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  5027. echo $ac_n "(cached) $ac_c" 1>&6
  5028. else
  5029. ac_save_LIBS="$LIBS"
  5030. LIBS="-ldir $LIBS"
  5031. cat > conftest.$ac_ext <<EOF
  5032. #line 5569 "configure"
  5033. #include "confdefs.h"
  5034. /* Override any gcc2 internal prototype to avoid an error. */
  5035. /* We use char because int might match the return type of a gcc2
  5036. builtin and then its argument prototype would still apply. */
  5037. char opendir();
  5038. int main() {
  5039. opendir()
  5040. ; return 0; }
  5041. EOF
  5042. if { (eval echo configure:5580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5043. rm -rf conftest*
  5044. eval "ac_cv_lib_$ac_lib_var=yes"
  5045. else
  5046. echo "configure: failed program was:" >&5
  5047. cat conftest.$ac_ext >&5
  5048. rm -rf conftest*
  5049. eval "ac_cv_lib_$ac_lib_var=no"
  5050. fi
  5051. rm -f conftest*
  5052. LIBS="$ac_save_LIBS"
  5053. fi
  5054. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5055. echo "$ac_t""yes" 1>&6
  5056. LIBS="$LIBS -ldir"
  5057. else
  5058. echo "$ac_t""no" 1>&6
  5059. fi
  5060. else
  5061. echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
  5062. echo "configure:5602: checking for opendir in -lx" >&5
  5063. ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
  5064. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  5065. echo $ac_n "(cached) $ac_c" 1>&6
  5066. else
  5067. ac_save_LIBS="$LIBS"
  5068. LIBS="-lx $LIBS"
  5069. cat > conftest.$ac_ext <<EOF
  5070. #line 5610 "configure"
  5071. #include "confdefs.h"
  5072. /* Override any gcc2 internal prototype to avoid an error. */
  5073. /* We use char because int might match the return type of a gcc2
  5074. builtin and then its argument prototype would still apply. */
  5075. char opendir();
  5076. int main() {
  5077. opendir()
  5078. ; return 0; }
  5079. EOF
  5080. if { (eval echo configure:5621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5081. rm -rf conftest*
  5082. eval "ac_cv_lib_$ac_lib_var=yes"
  5083. else
  5084. echo "configure: failed program was:" >&5
  5085. cat conftest.$ac_ext >&5
  5086. rm -rf conftest*
  5087. eval "ac_cv_lib_$ac_lib_var=no"
  5088. fi
  5089. rm -f conftest*
  5090. LIBS="$ac_save_LIBS"
  5091. fi
  5092. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5093. echo "$ac_t""yes" 1>&6
  5094. LIBS="$LIBS -lx"
  5095. else
  5096. echo "$ac_t""no" 1>&6
  5097. fi
  5098. fi
  5099. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  5100. echo "configure:5644: checking for ANSI C header files" >&5
  5101. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  5102. echo $ac_n "(cached) $ac_c" 1>&6
  5103. else
  5104. cat > conftest.$ac_ext <<EOF
  5105. #line 5649 "configure"
  5106. #include "confdefs.h"
  5107. #include <stdlib.h>
  5108. #include <stdarg.h>
  5109. #include <string.h>
  5110. #include <float.h>
  5111. EOF
  5112. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5113. { (eval echo configure:5657: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  5114. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  5115. if test -z "$ac_err"; then
  5116. rm -rf conftest*
  5117. ac_cv_header_stdc=yes
  5118. else
  5119. echo "$ac_err" >&5
  5120. echo "configure: failed program was:" >&5
  5121. cat conftest.$ac_ext >&5
  5122. rm -rf conftest*
  5123. ac_cv_header_stdc=no
  5124. fi
  5125. rm -f conftest*
  5126. if test $ac_cv_header_stdc = yes; then
  5127. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5128. cat > conftest.$ac_ext <<EOF
  5129. #line 5674 "configure"
  5130. #include "confdefs.h"
  5131. #include <string.h>
  5132. EOF
  5133. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5134. egrep "memchr" >/dev/null 2>&1; then
  5135. :
  5136. else
  5137. rm -rf conftest*
  5138. ac_cv_header_stdc=no
  5139. fi
  5140. rm -f conftest*
  5141. fi
  5142. if test $ac_cv_header_stdc = yes; then
  5143. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5144. cat > conftest.$ac_ext <<EOF
  5145. #line 5692 "configure"
  5146. #include "confdefs.h"
  5147. #include <stdlib.h>
  5148. EOF
  5149. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5150. egrep "free" >/dev/null 2>&1; then
  5151. :
  5152. else
  5153. rm -rf conftest*
  5154. ac_cv_header_stdc=no
  5155. fi
  5156. rm -f conftest*
  5157. fi
  5158. if test $ac_cv_header_stdc = yes; then
  5159. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5160. if test "$cross_compiling" = yes; then
  5161. :
  5162. else
  5163. cat > conftest.$ac_ext <<EOF
  5164. #line 5713 "configure"
  5165. #include "confdefs.h"
  5166. #include <ctype.h>
  5167. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5168. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5169. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5170. int main () { int i; for (i = 0; i < 256; i++)
  5171. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  5172. exit (0); }
  5173. EOF
  5174. if { (eval echo configure:5724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  5175. then
  5176. :
  5177. else
  5178. echo "configure: failed program was:" >&5
  5179. cat conftest.$ac_ext >&5
  5180. rm -fr conftest*
  5181. ac_cv_header_stdc=no
  5182. fi
  5183. rm -fr conftest*
  5184. fi
  5185. fi
  5186. fi
  5187. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  5188. if test $ac_cv_header_stdc = yes; then
  5189. cat >> confdefs.h <<\EOF
  5190. #define STDC_HEADERS 1
  5191. EOF
  5192. fi
  5193. echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
  5194. echo "configure:5748: checking for sys/wait.h that is POSIX.1 compatible" >&5
  5195. if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
  5196. echo $ac_n "(cached) $ac_c" 1>&6
  5197. else
  5198. cat > conftest.$ac_ext <<EOF
  5199. #line 5753 "configure"
  5200. #include "confdefs.h"
  5201. #include <sys/types.h>
  5202. #include <sys/wait.h>
  5203. #ifndef WEXITSTATUS
  5204. #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  5205. #endif
  5206. #ifndef WIFEXITED
  5207. #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  5208. #endif
  5209. int main() {
  5210. int s;
  5211. wait (&s);
  5212. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  5213. ; return 0; }
  5214. EOF
  5215. if { (eval echo configure:5769: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  5216. rm -rf conftest*
  5217. ac_cv_header_sys_wait_h=yes
  5218. else
  5219. echo "configure: failed program was:" >&5
  5220. cat conftest.$ac_ext >&5
  5221. rm -rf conftest*
  5222. ac_cv_header_sys_wait_h=no
  5223. fi
  5224. rm -f conftest*
  5225. fi
  5226. echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
  5227. if test $ac_cv_header_sys_wait_h = yes; then
  5228. cat >> confdefs.h <<\EOF
  5229. #define HAVE_SYS_WAIT_H 1
  5230. EOF
  5231. fi
  5232. for ac_hdr in fcntl.h sys/file.h unistd.h paths.h sys/param.h
  5233. do
  5234. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  5235. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  5236. echo "configure:5793: checking for $ac_hdr" >&5
  5237. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  5238. echo $ac_n "(cached) $ac_c" 1>&6
  5239. else
  5240. cat > conftest.$ac_ext <<EOF
  5241. #line 5798 "configure"
  5242. #include "confdefs.h"
  5243. #include <$ac_hdr>
  5244. EOF
  5245. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5246. { (eval echo configure:5803: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  5247. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  5248. if test -z "$ac_err"; then
  5249. rm -rf conftest*
  5250. eval "ac_cv_header_$ac_safe=yes"
  5251. else
  5252. echo "$ac_err" >&5
  5253. echo "configure: failed program was:" >&5
  5254. cat conftest.$ac_ext >&5
  5255. rm -rf conftest*
  5256. eval "ac_cv_header_$ac_safe=no"
  5257. fi
  5258. rm -f conftest*
  5259. fi
  5260. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  5261. echo "$ac_t""yes" 1>&6
  5262. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  5263. cat >> confdefs.h <<EOF
  5264. #define $ac_tr_hdr 1
  5265. EOF
  5266. else
  5267. echo "$ac_t""no" 1>&6
  5268. fi
  5269. done
  5270. echo $ac_n "checking for working const""... $ac_c" 1>&6
  5271. echo "configure:5831: checking for working const" >&5
  5272. if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  5273. echo $ac_n "(cached) $ac_c" 1>&6
  5274. else
  5275. cat > conftest.$ac_ext <<EOF
  5276. #line 5836 "configure"
  5277. #include "confdefs.h"
  5278. int main() {
  5279. /* Ultrix mips cc rejects this. */
  5280. typedef int charset[2]; const charset x;
  5281. /* SunOS 4.1.1 cc rejects this. */
  5282. char const *const *ccp;
  5283. char **p;
  5284. /* NEC SVR4.0.2 mips cc rejects this. */
  5285. struct point {int x, y;};
  5286. static struct point const zero = {0,0};
  5287. /* AIX XL C 1.02.0.0 rejects this.
  5288. It does not let you subtract one const X* pointer from another in an arm
  5289. of an if-expression whose if-part is not a constant expression */
  5290. const char *g = "string";
  5291. ccp = &g + (g ? g-g : 0);
  5292. /* HPUX 7.0 cc rejects these. */
  5293. ++ccp;
  5294. p = (char**) ccp;
  5295. ccp = (char const *const *) p;
  5296. { /* SCO 3.2v4 cc rejects this. */
  5297. char *t;
  5298. char const *s = 0 ? (char *) 0 : (char const *) 0;
  5299. *t++ = 0;
  5300. }
  5301. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  5302. int x[] = {25, 17};
  5303. const int *foo = &x[0];
  5304. ++foo;
  5305. }
  5306. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  5307. typedef const int *iptr;
  5308. iptr p = 0;
  5309. ++p;
  5310. }
  5311. { /* AIX XL C 1.02.0.0 rejects this saying
  5312. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  5313. struct s { int j; const int *ap[3]; };
  5314. struct s *b; b->j = 5;
  5315. }
  5316. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  5317. const int foo = 10;
  5318. }
  5319. ; return 0; }
  5320. EOF
  5321. if { (eval echo configure:5885: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  5322. rm -rf conftest*
  5323. ac_cv_c_const=yes
  5324. else
  5325. echo "configure: failed program was:" >&5
  5326. cat conftest.$ac_ext >&5
  5327. rm -rf conftest*
  5328. ac_cv_c_const=no
  5329. fi
  5330. rm -f conftest*
  5331. fi
  5332. echo "$ac_t""$ac_cv_c_const" 1>&6
  5333. if test $ac_cv_c_const = no; then
  5334. cat >> confdefs.h <<\EOF
  5335. #define const
  5336. EOF
  5337. fi
  5338. echo $ac_n "checking for off_t""... $ac_c" 1>&6
  5339. echo "configure:5906: checking for off_t" >&5
  5340. if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
  5341. echo $ac_n "(cached) $ac_c" 1>&6
  5342. else
  5343. cat > conftest.$ac_ext <<EOF
  5344. #line 5911 "configure"
  5345. #include "confdefs.h"
  5346. #include <sys/types.h>
  5347. #if STDC_HEADERS
  5348. #include <stdlib.h>
  5349. #include <stddef.h>
  5350. #endif
  5351. EOF
  5352. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5353. egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  5354. rm -rf conftest*
  5355. ac_cv_type_off_t=yes
  5356. else
  5357. rm -rf conftest*
  5358. ac_cv_type_off_t=no
  5359. fi
  5360. rm -f conftest*
  5361. fi
  5362. echo "$ac_t""$ac_cv_type_off_t" 1>&6
  5363. if test $ac_cv_type_off_t = no; then
  5364. cat >> confdefs.h <<\EOF
  5365. #define off_t long
  5366. EOF
  5367. fi
  5368. echo $ac_n "checking for pid_t""... $ac_c" 1>&6
  5369. echo "configure:5939: checking for pid_t" >&5
  5370. if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
  5371. echo $ac_n "(cached) $ac_c" 1>&6
  5372. else
  5373. cat > conftest.$ac_ext <<EOF
  5374. #line 5944 "configure"
  5375. #include "confdefs.h"
  5376. #include <sys/types.h>
  5377. #if STDC_HEADERS
  5378. #include <stdlib.h>
  5379. #include <stddef.h>
  5380. #endif
  5381. EOF
  5382. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5383. egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  5384. rm -rf conftest*
  5385. ac_cv_type_pid_t=yes
  5386. else
  5387. rm -rf conftest*
  5388. ac_cv_type_pid_t=no
  5389. fi
  5390. rm -f conftest*
  5391. fi
  5392. echo "$ac_t""$ac_cv_type_pid_t" 1>&6
  5393. if test $ac_cv_type_pid_t = no; then
  5394. cat >> confdefs.h <<\EOF
  5395. #define pid_t int
  5396. EOF
  5397. fi
  5398. echo $ac_n "checking for size_t""... $ac_c" 1>&6
  5399. echo "configure:5972: checking for size_t" >&5
  5400. if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
  5401. echo $ac_n "(cached) $ac_c" 1>&6
  5402. else
  5403. cat > conftest.$ac_ext <<EOF
  5404. #line 5977 "configure"
  5405. #include "confdefs.h"
  5406. #include <sys/types.h>
  5407. #if STDC_HEADERS
  5408. #include <stdlib.h>
  5409. #include <stddef.h>
  5410. #endif
  5411. EOF
  5412. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5413. egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  5414. rm -rf conftest*
  5415. ac_cv_type_size_t=yes
  5416. else
  5417. rm -rf conftest*
  5418. ac_cv_type_size_t=no
  5419. fi
  5420. rm -f conftest*
  5421. fi
  5422. echo "$ac_t""$ac_cv_type_size_t" 1>&6
  5423. if test $ac_cv_type_size_t = no; then
  5424. cat >> confdefs.h <<\EOF
  5425. #define size_t unsigned
  5426. EOF
  5427. fi
  5428. echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
  5429. echo "configure:6005: checking whether struct tm is in sys/time.h or time.h" >&5
  5430. if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
  5431. echo $ac_n "(cached) $ac_c" 1>&6
  5432. else
  5433. cat > conftest.$ac_ext <<EOF
  5434. #line 6010 "configure"
  5435. #include "confdefs.h"
  5436. #include <sys/types.h>
  5437. #include <time.h>
  5438. int main() {
  5439. struct tm *tp; tp->tm_sec;
  5440. ; return 0; }
  5441. EOF
  5442. if { (eval echo configure:6018: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  5443. rm -rf conftest*
  5444. ac_cv_struct_tm=time.h
  5445. else
  5446. echo "configure: failed program was:" >&5
  5447. cat conftest.$ac_ext >&5
  5448. rm -rf conftest*
  5449. ac_cv_struct_tm=sys/time.h
  5450. fi
  5451. rm -f conftest*
  5452. fi
  5453. echo "$ac_t""$ac_cv_struct_tm" 1>&6
  5454. if test $ac_cv_struct_tm = sys/time.h; then
  5455. cat >> confdefs.h <<\EOF
  5456. #define TM_IN_SYS_TIME 1
  5457. EOF
  5458. fi
  5459. echo $ac_n "checking for wint_t""... $ac_c" 1>&6
  5460. echo "configure:6039: checking for wint_t" >&5
  5461. if eval "test \"`echo '$''{'ac_cv_type_wint_t'+set}'`\" = set"; then
  5462. echo $ac_n "(cached) $ac_c" 1>&6
  5463. else
  5464. cat > conftest.$ac_ext <<EOF
  5465. #line 6044 "configure"
  5466. #include "confdefs.h"
  5467. #include <sys/types.h>
  5468. #if STDC_HEADERS
  5469. #include <stdlib.h>
  5470. #include <stddef.h>
  5471. #endif
  5472. EOF
  5473. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5474. egrep "(^|[^a-zA-Z_0-9])wint_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  5475. rm -rf conftest*
  5476. ac_cv_type_wint_t=yes
  5477. else
  5478. rm -rf conftest*
  5479. ac_cv_type_wint_t=no
  5480. fi
  5481. rm -f conftest*
  5482. fi
  5483. echo "$ac_t""$ac_cv_type_wint_t" 1>&6
  5484. if test $ac_cv_type_wint_t = no; then
  5485. cat >> confdefs.h <<\EOF
  5486. #define wint_t unsigned int
  5487. EOF
  5488. fi
  5489. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  5490. # for constant arguments. Useless!
  5491. echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
  5492. echo "configure:6075: checking for working alloca.h" >&5
  5493. if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
  5494. echo $ac_n "(cached) $ac_c" 1>&6
  5495. else
  5496. cat > conftest.$ac_ext <<EOF
  5497. #line 6080 "configure"
  5498. #include "confdefs.h"
  5499. #include <alloca.h>
  5500. int main() {
  5501. char *p = alloca(2 * sizeof(int));
  5502. ; return 0; }
  5503. EOF
  5504. if { (eval echo configure:6087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5505. rm -rf conftest*
  5506. ac_cv_header_alloca_h=yes
  5507. else
  5508. echo "configure: failed program was:" >&5
  5509. cat conftest.$ac_ext >&5
  5510. rm -rf conftest*
  5511. ac_cv_header_alloca_h=no
  5512. fi
  5513. rm -f conftest*
  5514. fi
  5515. echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
  5516. if test $ac_cv_header_alloca_h = yes; then
  5517. cat >> confdefs.h <<\EOF
  5518. #define HAVE_ALLOCA_H 1
  5519. EOF
  5520. fi
  5521. echo $ac_n "checking for alloca""... $ac_c" 1>&6
  5522. echo "configure:6108: checking for alloca" >&5
  5523. if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
  5524. echo $ac_n "(cached) $ac_c" 1>&6
  5525. else
  5526. cat > conftest.$ac_ext <<EOF
  5527. #line 6113 "configure"
  5528. #include "confdefs.h"
  5529. #ifdef __GNUC__
  5530. # define alloca __builtin_alloca
  5531. #else
  5532. # ifdef _MSC_VER
  5533. # include <malloc.h>
  5534. # define alloca _alloca
  5535. # else
  5536. # if HAVE_ALLOCA_H
  5537. # include <alloca.h>
  5538. # else
  5539. # ifdef _AIX
  5540. #pragma alloca
  5541. # else
  5542. # ifndef alloca /* predefined by HP cc +Olibcalls */
  5543. char *alloca ();
  5544. # endif
  5545. # endif
  5546. # endif
  5547. # endif
  5548. #endif
  5549. int main() {
  5550. char *p = (char *) alloca(1);
  5551. ; return 0; }
  5552. EOF
  5553. if { (eval echo configure:6141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5554. rm -rf conftest*
  5555. ac_cv_func_alloca_works=yes
  5556. else
  5557. echo "configure: failed program was:" >&5
  5558. cat conftest.$ac_ext >&5
  5559. rm -rf conftest*
  5560. ac_cv_func_alloca_works=no
  5561. fi
  5562. rm -f conftest*
  5563. fi
  5564. echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
  5565. if test $ac_cv_func_alloca_works = yes; then
  5566. cat >> confdefs.h <<\EOF
  5567. #define HAVE_ALLOCA 1
  5568. EOF
  5569. fi
  5570. if test $ac_cv_func_alloca_works = no; then
  5571. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  5572. # that cause trouble. Some versions do not even contain alloca or
  5573. # contain a buggy version. If you still want to use their alloca,
  5574. # use ar to extract alloca.o from them instead of compiling alloca.c.
  5575. ALLOCA=alloca.${ac_objext}
  5576. cat >> confdefs.h <<\EOF
  5577. #define C_ALLOCA 1
  5578. EOF
  5579. echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
  5580. echo "configure:6173: checking whether alloca needs Cray hooks" >&5
  5581. if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
  5582. echo $ac_n "(cached) $ac_c" 1>&6
  5583. else
  5584. cat > conftest.$ac_ext <<EOF
  5585. #line 6178 "configure"
  5586. #include "confdefs.h"
  5587. #if defined(CRAY) && ! defined(CRAY2)
  5588. webecray
  5589. #else
  5590. wenotbecray
  5591. #endif
  5592. EOF
  5593. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5594. egrep "webecray" >/dev/null 2>&1; then
  5595. rm -rf conftest*
  5596. ac_cv_os_cray=yes
  5597. else
  5598. rm -rf conftest*
  5599. ac_cv_os_cray=no
  5600. fi
  5601. rm -f conftest*
  5602. fi
  5603. echo "$ac_t""$ac_cv_os_cray" 1>&6
  5604. if test $ac_cv_os_cray = yes; then
  5605. for ac_func in _getb67 GETB67 getb67; do
  5606. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  5607. echo "configure:6203: checking for $ac_func" >&5
  5608. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  5609. echo $ac_n "(cached) $ac_c" 1>&6
  5610. else
  5611. cat > conftest.$ac_ext <<EOF
  5612. #line 6208 "configure"
  5613. #include "confdefs.h"
  5614. /* System header to define __stub macros and hopefully few prototypes,
  5615. which can conflict with char $ac_func(); below. */
  5616. #include <assert.h>
  5617. /* Override any gcc2 internal prototype to avoid an error. */
  5618. /* We use char because int might match the return type of a gcc2
  5619. builtin and then its argument prototype would still apply. */
  5620. char $ac_func();
  5621. int main() {
  5622. /* The GNU C library defines this for functions which it implements
  5623. to always fail with ENOSYS. Some functions are actually named
  5624. something starting with __ and the normal name is an alias. */
  5625. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  5626. choke me
  5627. #else
  5628. $ac_func();
  5629. #endif
  5630. ; return 0; }
  5631. EOF
  5632. if { (eval echo configure:6231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5633. rm -rf conftest*
  5634. eval "ac_cv_func_$ac_func=yes"
  5635. else
  5636. echo "configure: failed program was:" >&5
  5637. cat conftest.$ac_ext >&5
  5638. rm -rf conftest*
  5639. eval "ac_cv_func_$ac_func=no"
  5640. fi
  5641. rm -f conftest*
  5642. fi
  5643. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  5644. echo "$ac_t""yes" 1>&6
  5645. cat >> confdefs.h <<EOF
  5646. #define CRAY_STACKSEG_END $ac_func
  5647. EOF
  5648. break
  5649. else
  5650. echo "$ac_t""no" 1>&6
  5651. fi
  5652. done
  5653. fi
  5654. echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
  5655. echo "configure:6258: checking stack direction for C alloca" >&5
  5656. if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
  5657. echo $ac_n "(cached) $ac_c" 1>&6
  5658. else
  5659. if test "$cross_compiling" = yes; then
  5660. ac_cv_c_stack_direction=0
  5661. else
  5662. cat > conftest.$ac_ext <<EOF
  5663. #line 6266 "configure"
  5664. #include "confdefs.h"
  5665. find_stack_direction ()
  5666. {
  5667. static char *addr = 0;
  5668. auto char dummy;
  5669. if (addr == 0)
  5670. {
  5671. addr = &dummy;
  5672. return find_stack_direction ();
  5673. }
  5674. else
  5675. return (&dummy > addr) ? 1 : -1;
  5676. }
  5677. main ()
  5678. {
  5679. exit (find_stack_direction() < 0);
  5680. }
  5681. EOF
  5682. if { (eval echo configure:6285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  5683. then
  5684. ac_cv_c_stack_direction=1
  5685. else
  5686. echo "configure: failed program was:" >&5
  5687. cat conftest.$ac_ext >&5
  5688. rm -fr conftest*
  5689. ac_cv_c_stack_direction=-1
  5690. fi
  5691. rm -fr conftest*
  5692. fi
  5693. fi
  5694. echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
  5695. cat >> confdefs.h <<EOF
  5696. #define STACK_DIRECTION $ac_cv_c_stack_direction
  5697. EOF
  5698. fi
  5699. for ac_hdr in wchar.h wctype.h
  5700. do
  5701. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  5702. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  5703. echo "configure:6310: checking for $ac_hdr" >&5
  5704. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  5705. echo $ac_n "(cached) $ac_c" 1>&6
  5706. else
  5707. cat > conftest.$ac_ext <<EOF
  5708. #line 6315 "configure"
  5709. #include "confdefs.h"
  5710. #include <$ac_hdr>
  5711. EOF
  5712. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5713. { (eval echo configure:6320: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  5714. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  5715. if test -z "$ac_err"; then
  5716. rm -rf conftest*
  5717. eval "ac_cv_header_$ac_safe=yes"
  5718. else
  5719. echo "$ac_err" >&5
  5720. echo "configure: failed program was:" >&5
  5721. cat conftest.$ac_ext >&5
  5722. rm -rf conftest*
  5723. eval "ac_cv_header_$ac_safe=no"
  5724. fi
  5725. rm -f conftest*
  5726. fi
  5727. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  5728. echo "$ac_t""yes" 1>&6
  5729. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  5730. cat >> confdefs.h <<EOF
  5731. #define $ac_tr_hdr 1
  5732. EOF
  5733. else
  5734. echo "$ac_t""no" 1>&6
  5735. fi
  5736. done
  5737. for ac_func in gethostname mkdir mktime socket strstr \
  5738. wcsstr wcswcs iswalnum iswspace towlower \
  5739. wcslen wcscpy wcsncpy \
  5740. uname flock lockf inet_aton inet_addr \
  5741. fchmod mkstemp
  5742. do
  5743. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  5744. echo "configure:6353: checking for $ac_func" >&5
  5745. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  5746. echo $ac_n "(cached) $ac_c" 1>&6
  5747. else
  5748. cat > conftest.$ac_ext <<EOF
  5749. #line 6358 "configure"
  5750. #include "confdefs.h"
  5751. /* System header to define __stub macros and hopefully few prototypes,
  5752. which can conflict with char $ac_func(); below. */
  5753. #include <assert.h>
  5754. /* Override any gcc2 internal prototype to avoid an error. */
  5755. /* We use char because int might match the return type of a gcc2
  5756. builtin and then its argument prototype would still apply. */
  5757. char $ac_func();
  5758. int main() {
  5759. /* The GNU C library defines this for functions which it implements
  5760. to always fail with ENOSYS. Some functions are actually named
  5761. something starting with __ and the normal name is an alias. */
  5762. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  5763. choke me
  5764. #else
  5765. $ac_func();
  5766. #endif
  5767. ; return 0; }
  5768. EOF
  5769. if { (eval echo configure:6381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5770. rm -rf conftest*
  5771. eval "ac_cv_func_$ac_func=yes"
  5772. else
  5773. echo "configure: failed program was:" >&5
  5774. cat conftest.$ac_ext >&5
  5775. rm -rf conftest*
  5776. eval "ac_cv_func_$ac_func=no"
  5777. fi
  5778. rm -f conftest*
  5779. fi
  5780. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  5781. echo "$ac_t""yes" 1>&6
  5782. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  5783. cat >> confdefs.h <<EOF
  5784. #define $ac_tr_func 1
  5785. EOF
  5786. else
  5787. echo "$ac_t""no" 1>&6
  5788. fi
  5789. done
  5790. trap '' 1 2 15
  5791. cat > confcache <<\EOF
  5792. # This file is a shell script that caches the results of configure
  5793. # tests run on this system so they can be shared between configure
  5794. # scripts and configure runs. It is not useful on other systems.
  5795. # If it contains results you don't want to keep, you may remove or edit it.
  5796. #
  5797. # By default, configure uses ./config.cache as the cache file,
  5798. # creating it if it does not exist already. You can give configure
  5799. # the --cache-file=FILE option to use a different cache file; that is
  5800. # what configure does when it calls configure scripts in
  5801. # subdirectories, so they share the cache.
  5802. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  5803. # config.status only pays attention to the cache file if you give it the
  5804. # --recheck option to rerun configure.
  5805. #
  5806. EOF
  5807. # The following way of writing the cache mishandles newlines in values,
  5808. # but we know of no workaround that is simple, portable, and efficient.
  5809. # So, don't put newlines in cache variables' values.
  5810. # Ultrix sh set writes to stderr and can't be redirected directly,
  5811. # and sets the high bit in the cache file unless we assign to the vars.
  5812. (set) 2>&1 |
  5813. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  5814. *ac_space=\ *)
  5815. # `set' does not quote correctly, so add quotes (double-quote substitution
  5816. # turns \\\\ into \\, and sed turns \\ into \).
  5817. sed -n \
  5818. -e "s/'/'\\\\''/g" \
  5819. -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  5820. ;;
  5821. *)
  5822. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5823. sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  5824. ;;
  5825. esac >> confcache
  5826. if cmp -s $cache_file confcache; then
  5827. :
  5828. else
  5829. if test -w $cache_file; then
  5830. echo "updating cache $cache_file"
  5831. cat confcache > $cache_file
  5832. else
  5833. echo "not updating unwritable cache $cache_file"
  5834. fi
  5835. fi
  5836. rm -f confcache
  5837. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  5838. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  5839. # Let make expand exec_prefix.
  5840. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  5841. # Any assignment to VPATH causes Sun make to only execute
  5842. # the first set of double-colon rules, so remove it if not needed.
  5843. # If there is a colon in the path, we need to keep it.
  5844. if test "x$srcdir" = x.; then
  5845. ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
  5846. fi
  5847. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  5848. DEFS=-DHAVE_CONFIG_H
  5849. # Without the "./", some shells look in PATH for config.status.
  5850. : ${CONFIG_STATUS=./config.status}
  5851. echo creating $CONFIG_STATUS
  5852. rm -f $CONFIG_STATUS
  5853. cat > $CONFIG_STATUS <<EOF
  5854. #! /bin/sh
  5855. # Generated automatically by configure.
  5856. # Run this file to recreate the current configuration.
  5857. # This directory was configured as follows,
  5858. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  5859. #
  5860. # $0 $ac_configure_args
  5861. #
  5862. # Compiler output produced by configure, useful for debugging
  5863. # configure, is in ./config.log if it exists.
  5864. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  5865. for ac_option
  5866. do
  5867. case "\$ac_option" in
  5868. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  5869. echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  5870. exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  5871. -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  5872. echo "$CONFIG_STATUS generated by autoconf version 2.13"
  5873. exit 0 ;;
  5874. -help | --help | --hel | --he | --h)
  5875. echo "\$ac_cs_usage"; exit 0 ;;
  5876. *) echo "\$ac_cs_usage"; exit 1 ;;
  5877. esac
  5878. done
  5879. ac_given_srcdir=$srcdir
  5880. ac_given_INSTALL="$INSTALL"
  5881. trap 'rm -fr `echo "
  5882. Makefile
  5883. sylpheed.spec
  5884. intl/Makefile
  5885. ac/Makefile
  5886. po/Makefile.in
  5887. libkcc/Makefile
  5888. src/Makefile
  5889. manual/Makefile
  5890. manual/ja/Makefile
  5891. config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  5892. EOF
  5893. cat >> $CONFIG_STATUS <<EOF
  5894. # Protect against being on the right side of a sed subst in config.status.
  5895. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  5896. s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  5897. $ac_vpsub
  5898. $extrasub
  5899. s%@SHELL@%$SHELL%g
  5900. s%@CFLAGS@%$CFLAGS%g
  5901. s%@CPPFLAGS@%$CPPFLAGS%g
  5902. s%@CXXFLAGS@%$CXXFLAGS%g
  5903. s%@FFLAGS@%$FFLAGS%g
  5904. s%@DEFS@%$DEFS%g
  5905. s%@LDFLAGS@%$LDFLAGS%g
  5906. s%@LIBS@%$LIBS%g
  5907. s%@exec_prefix@%$exec_prefix%g
  5908. s%@prefix@%$prefix%g
  5909. s%@program_transform_name@%$program_transform_name%g
  5910. s%@bindir@%$bindir%g
  5911. s%@sbindir@%$sbindir%g
  5912. s%@libexecdir@%$libexecdir%g
  5913. s%@datadir@%$datadir%g
  5914. s%@sysconfdir@%$sysconfdir%g
  5915. s%@sharedstatedir@%$sharedstatedir%g
  5916. s%@localstatedir@%$localstatedir%g
  5917. s%@libdir@%$libdir%g
  5918. s%@includedir@%$includedir%g
  5919. s%@oldincludedir@%$oldincludedir%g
  5920. s%@infodir@%$infodir%g
  5921. s%@mandir@%$mandir%g
  5922. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  5923. s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
  5924. s%@INSTALL_DATA@%$INSTALL_DATA%g
  5925. s%@PACKAGE@%$PACKAGE%g
  5926. s%@VERSION@%$VERSION%g
  5927. s%@ACLOCAL@%$ACLOCAL%g
  5928. s%@AUTOCONF@%$AUTOCONF%g
  5929. s%@AUTOMAKE@%$AUTOMAKE%g
  5930. s%@AUTOHEADER@%$AUTOHEADER%g
  5931. s%@MAKEINFO@%$MAKEINFO%g
  5932. s%@SET_MAKE@%$SET_MAKE%g
  5933. s%@LT_RELEASE@%$LT_RELEASE%g
  5934. s%@LT_CURRENT@%$LT_CURRENT%g
  5935. s%@LT_REVISION@%$LT_REVISION%g
  5936. s%@LT_AGE@%$LT_AGE%g
  5937. s%@host@%$host%g
  5938. s%@host_alias@%$host_alias%g
  5939. s%@host_cpu@%$host_cpu%g
  5940. s%@host_vendor@%$host_vendor%g
  5941. s%@host_os@%$host_os%g
  5942. s%@build@%$build%g
  5943. s%@build_alias@%$build_alias%g
  5944. s%@build_cpu@%$build_cpu%g
  5945. s%@build_vendor@%$build_vendor%g
  5946. s%@build_os@%$build_os%g
  5947. s%@RANLIB@%$RANLIB%g
  5948. s%@CC@%$CC%g
  5949. s%@LN_S@%$LN_S%g
  5950. s%@LIBTOOL@%$LIBTOOL%g
  5951. s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
  5952. s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
  5953. s%@MAINT@%$MAINT%g
  5954. s%@CPP@%$CPP%g
  5955. s%@ALLOCA@%$ALLOCA%g
  5956. s%@USE_NLS@%$USE_NLS%g
  5957. s%@MSGFMT@%$MSGFMT%g
  5958. s%@GMSGFMT@%$GMSGFMT%g
  5959. s%@XGETTEXT@%$XGETTEXT%g
  5960. s%@GENCAT@%$GENCAT%g
  5961. s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
  5962. s%@CATALOGS@%$CATALOGS%g
  5963. s%@CATOBJEXT@%$CATOBJEXT%g
  5964. s%@DATADIRNAME@%$DATADIRNAME%g
  5965. s%@GMOFILES@%$GMOFILES%g
  5966. s%@INSTOBJEXT@%$INSTOBJEXT%g
  5967. s%@INTLDEPS@%$INTLDEPS%g
  5968. s%@INTLLIBS@%$INTLLIBS%g
  5969. s%@INTLOBJS@%$INTLOBJS%g
  5970. s%@POFILES@%$POFILES%g
  5971. s%@POSUB@%$POSUB%g
  5972. s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
  5973. s%@GT_NO@%$GT_NO%g
  5974. s%@GT_YES@%$GT_YES%g
  5975. s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
  5976. s%@l@%$l%g
  5977. s%@localedir@%$localedir%g
  5978. s%@manualdir@%$manualdir%g
  5979. s%@GLIB_CONFIG@%$GLIB_CONFIG%g
  5980. s%@GLIB_CFLAGS@%$GLIB_CFLAGS%g
  5981. s%@GLIB_LIBS@%$GLIB_LIBS%g
  5982. s%@GTK_CONFIG@%$GTK_CONFIG%g
  5983. s%@GTK_CFLAGS@%$GTK_CFLAGS%g
  5984. s%@GTK_LIBS@%$GTK_LIBS%g
  5985. s%@GDK_PIXBUF_CONFIG@%$GDK_PIXBUF_CONFIG%g
  5986. s%@GDK_PIXBUF_CFLAGS@%$GDK_PIXBUF_CFLAGS%g
  5987. s%@GDK_PIXBUF_LIBS@%$GDK_PIXBUF_LIBS%g
  5988. s%@IMLIB_CONFIG@%$IMLIB_CONFIG%g
  5989. s%@GDK_IMLIB_CFLAGS@%$GDK_IMLIB_CFLAGS%g
  5990. s%@GDK_IMLIB_LIBS@%$GDK_IMLIB_LIBS%g
  5991. s%@GPGME_CONFIG@%$GPGME_CONFIG%g
  5992. s%@GPGME_CFLAGS@%$GPGME_CFLAGS%g
  5993. s%@GPGME_LIBS@%$GPGME_LIBS%g
  5994. CEOF
  5995. EOF
  5996. cat >> $CONFIG_STATUS <<\EOF
  5997. # Split the substitutions into bite-sized pieces for seds with
  5998. # small command number limits, like on Digital OSF/1 and HP-UX.
  5999. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  6000. ac_file=1 # Number of current file.
  6001. ac_beg=1 # First line for current file.
  6002. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  6003. ac_more_lines=:
  6004. ac_sed_cmds=""
  6005. while $ac_more_lines; do
  6006. if test $ac_beg -gt 1; then
  6007. sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  6008. else
  6009. sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  6010. fi
  6011. if test ! -s conftest.s$ac_file; then
  6012. ac_more_lines=false
  6013. rm -f conftest.s$ac_file
  6014. else
  6015. if test -z "$ac_sed_cmds"; then
  6016. ac_sed_cmds="sed -f conftest.s$ac_file"
  6017. else
  6018. ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  6019. fi
  6020. ac_file=`expr $ac_file + 1`
  6021. ac_beg=$ac_end
  6022. ac_end=`expr $ac_end + $ac_max_sed_cmds`
  6023. fi
  6024. done
  6025. if test -z "$ac_sed_cmds"; then
  6026. ac_sed_cmds=cat
  6027. fi
  6028. EOF
  6029. cat >> $CONFIG_STATUS <<EOF
  6030. CONFIG_FILES=\${CONFIG_FILES-"Makefile
  6031. sylpheed.spec
  6032. intl/Makefile
  6033. ac/Makefile
  6034. po/Makefile.in
  6035. libkcc/Makefile
  6036. src/Makefile
  6037. manual/Makefile
  6038. manual/ja/Makefile
  6039. "}
  6040. EOF
  6041. cat >> $CONFIG_STATUS <<\EOF
  6042. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  6043. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  6044. case "$ac_file" in
  6045. *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  6046. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  6047. *) ac_file_in="${ac_file}.in" ;;
  6048. esac
  6049. # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  6050. # Remove last slash and all that follows it. Not all systems have dirname.
  6051. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  6052. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  6053. # The file is in a subdirectory.
  6054. test ! -d "$ac_dir" && mkdir "$ac_dir"
  6055. ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  6056. # A "../" for each directory in $ac_dir_suffix.
  6057. ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  6058. else
  6059. ac_dir_suffix= ac_dots=
  6060. fi
  6061. case "$ac_given_srcdir" in
  6062. .) srcdir=.
  6063. if test -z "$ac_dots"; then top_srcdir=.
  6064. else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  6065. /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  6066. *) # Relative path.
  6067. srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  6068. top_srcdir="$ac_dots$ac_given_srcdir" ;;
  6069. esac
  6070. case "$ac_given_INSTALL" in
  6071. [/$]*) INSTALL="$ac_given_INSTALL" ;;
  6072. *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  6073. esac
  6074. echo creating "$ac_file"
  6075. rm -f "$ac_file"
  6076. configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  6077. case "$ac_file" in
  6078. *Makefile*) ac_comsub="1i\\
  6079. # $configure_input" ;;
  6080. *) ac_comsub= ;;
  6081. esac
  6082. ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  6083. sed -e "$ac_comsub
  6084. s%@configure_input@%$configure_input%g
  6085. s%@srcdir@%$srcdir%g
  6086. s%@top_srcdir@%$top_srcdir%g
  6087. s%@INSTALL@%$INSTALL%g
  6088. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  6089. fi; done
  6090. rm -f conftest.s*
  6091. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  6092. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  6093. #
  6094. # ac_d sets the value in "#define NAME VALUE" lines.
  6095. ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  6096. ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
  6097. ac_dC='\3'
  6098. ac_dD='%g'
  6099. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  6100. ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  6101. ac_uB='\([ ]\)%\1#\2define\3'
  6102. ac_uC=' '
  6103. ac_uD='\4%g'
  6104. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  6105. ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  6106. ac_eB='$%\1#\2define\3'
  6107. ac_eC=' '
  6108. ac_eD='%g'
  6109. if test "${CONFIG_HEADERS+set}" != set; then
  6110. EOF
  6111. cat >> $CONFIG_STATUS <<EOF
  6112. CONFIG_HEADERS="config.h"
  6113. EOF
  6114. cat >> $CONFIG_STATUS <<\EOF
  6115. fi
  6116. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  6117. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  6118. case "$ac_file" in
  6119. *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  6120. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  6121. *) ac_file_in="${ac_file}.in" ;;
  6122. esac
  6123. echo creating $ac_file
  6124. rm -f conftest.frag conftest.in conftest.out
  6125. ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  6126. cat $ac_file_inputs > conftest.in
  6127. EOF
  6128. # Transform confdefs.h into a sed script conftest.vals that substitutes
  6129. # the proper values into config.h.in to produce config.h. And first:
  6130. # Protect against being on the right side of a sed subst in config.status.
  6131. # Protect against being in an unquoted here document in config.status.
  6132. rm -f conftest.vals
  6133. cat > conftest.hdr <<\EOF
  6134. s/[\\&%]/\\&/g
  6135. s%[\\$`]%\\&%g
  6136. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  6137. s%ac_d%ac_u%gp
  6138. s%ac_u%ac_e%gp
  6139. EOF
  6140. sed -n -f conftest.hdr confdefs.h > conftest.vals
  6141. rm -f conftest.hdr
  6142. # This sed command replaces #undef with comments. This is necessary, for
  6143. # example, in the case of _POSIX_SOURCE, which is predefined and required
  6144. # on some systems where configure will not decide to define it.
  6145. cat >> conftest.vals <<\EOF
  6146. s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  6147. EOF
  6148. # Break up conftest.vals because some shells have a limit on
  6149. # the size of here documents, and old seds have small limits too.
  6150. rm -f conftest.tail
  6151. while :
  6152. do
  6153. ac_lines=`grep -c . conftest.vals`
  6154. # grep -c gives empty output for an empty file on some AIX systems.
  6155. if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  6156. # Write a limited-size here document to conftest.frag.
  6157. echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  6158. sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  6159. echo 'CEOF
  6160. sed -f conftest.frag conftest.in > conftest.out
  6161. rm -f conftest.in
  6162. mv conftest.out conftest.in
  6163. ' >> $CONFIG_STATUS
  6164. sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  6165. rm -f conftest.vals
  6166. mv conftest.tail conftest.vals
  6167. done
  6168. rm -f conftest.vals
  6169. cat >> $CONFIG_STATUS <<\EOF
  6170. rm -f conftest.frag conftest.h
  6171. echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
  6172. cat conftest.in >> conftest.h
  6173. rm -f conftest.in
  6174. if cmp -s $ac_file conftest.h 2>/dev/null; then
  6175. echo "$ac_file is unchanged"
  6176. rm -f conftest.h
  6177. else
  6178. # Remove last slash and all that follows it. Not all systems have dirname.
  6179. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  6180. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  6181. # The file is in a subdirectory.
  6182. test ! -d "$ac_dir" && mkdir "$ac_dir"
  6183. fi
  6184. rm -f $ac_file
  6185. mv conftest.h $ac_file
  6186. fi
  6187. fi; done
  6188. EOF
  6189. cat >> $CONFIG_STATUS <<EOF
  6190. ac_sources="$nls_cv_header_libgt"
  6191. ac_dests="$nls_cv_header_intl"
  6192. EOF
  6193. cat >> $CONFIG_STATUS <<\EOF
  6194. srcdir=$ac_given_srcdir
  6195. while test -n "$ac_sources"; do
  6196. set $ac_dests; ac_dest=$1; shift; ac_dests=$*
  6197. set $ac_sources; ac_source=$1; shift; ac_sources=$*
  6198. echo "linking $srcdir/$ac_source to $ac_dest"
  6199. if test ! -r $srcdir/$ac_source; then
  6200. { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
  6201. fi
  6202. rm -f $ac_dest
  6203. # Make relative symlinks.
  6204. # Remove last slash and all that follows it. Not all systems have dirname.
  6205. ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
  6206. if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
  6207. # The dest file is in a subdirectory.
  6208. test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
  6209. ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
  6210. # A "../" for each directory in $ac_dest_dir_suffix.
  6211. ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
  6212. else
  6213. ac_dest_dir_suffix= ac_dots=
  6214. fi
  6215. case "$srcdir" in
  6216. [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
  6217. *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
  6218. esac
  6219. # Make a symlink if possible; otherwise try a hard link.
  6220. if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
  6221. ln $srcdir/$ac_source $ac_dest; then :
  6222. else
  6223. { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
  6224. fi
  6225. done
  6226. EOF
  6227. cat >> $CONFIG_STATUS <<EOF
  6228. EOF
  6229. cat >> $CONFIG_STATUS <<\EOF
  6230. test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
  6231. case "$CONFIG_FILES" in *po/Makefile.in*)
  6232. sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
  6233. esac
  6234. exit 0
  6235. EOF
  6236. chmod +x $CONFIG_STATUS
  6237. rm -fr confdefs* $ac_clean_files
  6238. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1