configure 335 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.57.
  4. #
  5. # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
  6. # Free Software Foundation, Inc.
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9. ## --------------------- ##
  10. ## M4sh Initialization. ##
  11. ## --------------------- ##
  12. # Be Bourne compatible
  13. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  14. emulate sh
  15. NULLCMD=:
  16. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  17. # is contrary to our usage. Disable this feature.
  18. alias -g '${1+"$@"}'='"$@"'
  19. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  20. set -o posix
  21. fi
  22. # Support unset when possible.
  23. if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  24. as_unset=unset
  25. else
  26. as_unset=false
  27. fi
  28. # Work around bugs in pre-3.0 UWIN ksh.
  29. $as_unset ENV MAIL MAILPATH
  30. PS1='$ '
  31. PS2='> '
  32. PS4='+ '
  33. # NLS nuisances.
  34. for as_var in \
  35. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  36. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  37. LC_TELEPHONE LC_TIME
  38. do
  39. if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
  40. eval $as_var=C; export $as_var
  41. else
  42. $as_unset $as_var
  43. fi
  44. done
  45. # Required to use basename.
  46. if expr a : '\(a\)' >/dev/null 2>&1; then
  47. as_expr=expr
  48. else
  49. as_expr=false
  50. fi
  51. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  52. as_basename=basename
  53. else
  54. as_basename=false
  55. fi
  56. # Name of the executable.
  57. as_me=`$as_basename "$0" ||
  58. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  59. X"$0" : 'X\(//\)$' \| \
  60. X"$0" : 'X\(/\)$' \| \
  61. . : '\(.\)' 2>/dev/null ||
  62. echo X/"$0" |
  63. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  64. /^X\/\(\/\/\)$/{ s//\1/; q; }
  65. /^X\/\(\/\).*/{ s//\1/; q; }
  66. s/.*/./; q'`
  67. # PATH needs CR, and LINENO needs CR and PATH.
  68. # Avoid depending upon Character Ranges.
  69. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  70. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  71. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  72. as_cr_digits='0123456789'
  73. as_cr_alnum=$as_cr_Letters$as_cr_digits
  74. # The user is always right.
  75. if test "${PATH_SEPARATOR+set}" != set; then
  76. echo "#! /bin/sh" >conf$$.sh
  77. echo "exit 0" >>conf$$.sh
  78. chmod +x conf$$.sh
  79. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  80. PATH_SEPARATOR=';'
  81. else
  82. PATH_SEPARATOR=:
  83. fi
  84. rm -f conf$$.sh
  85. fi
  86. as_lineno_1=$LINENO
  87. as_lineno_2=$LINENO
  88. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  89. test "x$as_lineno_1" != "x$as_lineno_2" &&
  90. test "x$as_lineno_3" = "x$as_lineno_2" || {
  91. # Find who we are. Look in the path if we contain no path at all
  92. # relative or not.
  93. case $0 in
  94. *[\\/]* ) as_myself=$0 ;;
  95. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  96. for as_dir in $PATH
  97. do
  98. IFS=$as_save_IFS
  99. test -z "$as_dir" && as_dir=.
  100. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  101. done
  102. ;;
  103. esac
  104. # We did not find ourselves, most probably we were run as `sh COMMAND'
  105. # in which case we are not to be found in the path.
  106. if test "x$as_myself" = x; then
  107. as_myself=$0
  108. fi
  109. if test ! -f "$as_myself"; then
  110. { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  111. { (exit 1); exit 1; }; }
  112. fi
  113. case $CONFIG_SHELL in
  114. '')
  115. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  116. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  117. do
  118. IFS=$as_save_IFS
  119. test -z "$as_dir" && as_dir=.
  120. for as_base in sh bash ksh sh5; do
  121. case $as_dir in
  122. /*)
  123. if ("$as_dir/$as_base" -c '
  124. as_lineno_1=$LINENO
  125. as_lineno_2=$LINENO
  126. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  127. test "x$as_lineno_1" != "x$as_lineno_2" &&
  128. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  129. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  130. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  131. CONFIG_SHELL=$as_dir/$as_base
  132. export CONFIG_SHELL
  133. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  134. fi;;
  135. esac
  136. done
  137. done
  138. ;;
  139. esac
  140. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  141. # uniformly replaced by the line number. The first 'sed' inserts a
  142. # line-number line before each line; the second 'sed' does the real
  143. # work. The second script uses 'N' to pair each line-number line
  144. # with the numbered line, and appends trailing '-' during
  145. # substitution so that $LINENO is not a special case at line end.
  146. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  147. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  148. sed '=' <$as_myself |
  149. sed '
  150. N
  151. s,$,-,
  152. : loop
  153. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  154. t loop
  155. s,-$,,
  156. s,^['$as_cr_digits']*\n,,
  157. ' >$as_me.lineno &&
  158. chmod +x $as_me.lineno ||
  159. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  160. { (exit 1); exit 1; }; }
  161. # Don't try to exec as it changes $[0], causing all sort of problems
  162. # (the dirname of $[0] is not the place where we might find the
  163. # original and so on. Autoconf is especially sensible to this).
  164. . ./$as_me.lineno
  165. # Exit status is that of the last command.
  166. exit
  167. }
  168. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  169. *c*,-n*) ECHO_N= ECHO_C='
  170. ' ECHO_T=' ' ;;
  171. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  172. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  173. esac
  174. if expr a : '\(a\)' >/dev/null 2>&1; then
  175. as_expr=expr
  176. else
  177. as_expr=false
  178. fi
  179. rm -f conf$$ conf$$.exe conf$$.file
  180. echo >conf$$.file
  181. if ln -s conf$$.file conf$$ 2>/dev/null; then
  182. # We could just check for DJGPP; but this test a) works b) is more generic
  183. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  184. if test -f conf$$.exe; then
  185. # Don't use ln at all; we don't have any links
  186. as_ln_s='cp -p'
  187. else
  188. as_ln_s='ln -s'
  189. fi
  190. elif ln conf$$.file conf$$ 2>/dev/null; then
  191. as_ln_s=ln
  192. else
  193. as_ln_s='cp -p'
  194. fi
  195. rm -f conf$$ conf$$.exe conf$$.file
  196. if mkdir -p . 2>/dev/null; then
  197. as_mkdir_p=:
  198. else
  199. as_mkdir_p=false
  200. fi
  201. as_executable_p="test -f"
  202. # Sed expression to map a string onto a valid CPP name.
  203. as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
  204. # Sed expression to map a string onto a valid variable name.
  205. as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
  206. # IFS
  207. # We need space, tab and new line, in precisely that order.
  208. as_nl='
  209. '
  210. IFS=" $as_nl"
  211. # CDPATH.
  212. $as_unset CDPATH
  213. # Find the correct PATH separator. Usually this is `:', but
  214. # DJGPP uses `;' like DOS.
  215. if test "X${PATH_SEPARATOR+set}" != Xset; then
  216. UNAME=${UNAME-`uname 2>/dev/null`}
  217. case X$UNAME in
  218. *-DOS) lt_cv_sys_path_separator=';' ;;
  219. *) lt_cv_sys_path_separator=':' ;;
  220. esac
  221. PATH_SEPARATOR=$lt_cv_sys_path_separator
  222. fi
  223. # Check that we are running under the correct shell.
  224. SHELL=${CONFIG_SHELL-/bin/sh}
  225. case X$ECHO in
  226. X*--fallback-echo)
  227. # Remove one level of quotation (which was required for Make).
  228. ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  229. ;;
  230. esac
  231. echo=${ECHO-echo}
  232. if test "X$1" = X--no-reexec; then
  233. # Discard the --no-reexec flag, and continue.
  234. shift
  235. elif test "X$1" = X--fallback-echo; then
  236. # Avoid inline document here, it may be left over
  237. :
  238. elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
  239. # Yippee, $echo works!
  240. :
  241. else
  242. # Restart under the correct shell.
  243. exec $SHELL "$0" --no-reexec ${1+"$@"}
  244. fi
  245. if test "X$1" = X--fallback-echo; then
  246. # used as fallback echo
  247. shift
  248. cat <<EOF
  249. EOF
  250. exit 0
  251. fi
  252. # The HP-UX ksh and POSIX shell print the target directory to stdout
  253. # if CDPATH is set.
  254. if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
  255. if test -z "$ECHO"; then
  256. if test "X${echo_test_string+set}" != Xset; then
  257. # find a string as large as possible, as long as the shell can cope with it
  258. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  259. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  260. if (echo_test_string="`eval $cmd`") 2>/dev/null &&
  261. echo_test_string="`eval $cmd`" &&
  262. (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  263. then
  264. break
  265. fi
  266. done
  267. fi
  268. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  269. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  270. test "X$echo_testing_string" = "X$echo_test_string"; then
  271. :
  272. else
  273. # The Solaris, AIX, and Digital Unix default echo programs unquote
  274. # backslashes. This makes it impossible to quote backslashes using
  275. # echo "$something" | sed 's/\\/\\\\/g'
  276. #
  277. # So, first we look for a working echo in the user's PATH.
  278. IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  279. for dir in $PATH /usr/ucb; do
  280. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  281. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  282. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  283. test "X$echo_testing_string" = "X$echo_test_string"; then
  284. echo="$dir/echo"
  285. break
  286. fi
  287. done
  288. IFS="$save_ifs"
  289. if test "X$echo" = Xecho; then
  290. # We didn't find a better echo, so look for alternatives.
  291. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  292. echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  293. test "X$echo_testing_string" = "X$echo_test_string"; then
  294. # This shell has a builtin print -r that does the trick.
  295. echo='print -r'
  296. elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  297. test "X$CONFIG_SHELL" != X/bin/ksh; then
  298. # If we have ksh, try running configure again with it.
  299. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  300. export ORIGINAL_CONFIG_SHELL
  301. CONFIG_SHELL=/bin/ksh
  302. export CONFIG_SHELL
  303. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  304. else
  305. # Try using printf.
  306. echo='printf %s\n'
  307. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  308. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  309. test "X$echo_testing_string" = "X$echo_test_string"; then
  310. # Cool, printf works
  311. :
  312. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  313. test "X$echo_testing_string" = 'X\t' &&
  314. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  315. test "X$echo_testing_string" = "X$echo_test_string"; then
  316. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  317. export CONFIG_SHELL
  318. SHELL="$CONFIG_SHELL"
  319. export SHELL
  320. echo="$CONFIG_SHELL $0 --fallback-echo"
  321. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  322. test "X$echo_testing_string" = 'X\t' &&
  323. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  324. test "X$echo_testing_string" = "X$echo_test_string"; then
  325. echo="$CONFIG_SHELL $0 --fallback-echo"
  326. else
  327. # maybe with a smaller string...
  328. prev=:
  329. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  330. if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  331. then
  332. break
  333. fi
  334. prev="$cmd"
  335. done
  336. if test "$prev" != 'sed 50q "$0"'; then
  337. echo_test_string=`eval $prev`
  338. export echo_test_string
  339. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  340. else
  341. # Oops. We lost completely, so just stick with echo.
  342. echo=echo
  343. fi
  344. fi
  345. fi
  346. fi
  347. fi
  348. fi
  349. # Copy echo and quote the copy suitably for passing to libtool from
  350. # the Makefile, instead of quoting the original, which is used later.
  351. ECHO=$echo
  352. if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  353. ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  354. fi
  355. # Name of the host.
  356. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  357. # so uname gets run too.
  358. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  359. exec 6>&1
  360. #
  361. # Initializations.
  362. #
  363. ac_default_prefix=/usr/local
  364. ac_config_libobj_dir=.
  365. cross_compiling=no
  366. subdirs=
  367. MFLAGS=
  368. MAKEFLAGS=
  369. SHELL=${CONFIG_SHELL-/bin/sh}
  370. # Maximum number of lines to put in a shell here document.
  371. # This variable seems obsolete. It should probably be removed, and
  372. # only ac_max_sed_lines should be used.
  373. : ${ac_max_here_lines=38}
  374. # Identity of this package.
  375. PACKAGE_NAME=
  376. PACKAGE_TARNAME=
  377. PACKAGE_VERSION=
  378. PACKAGE_STRING=
  379. PACKAGE_BUGREPORT=
  380. ac_unique_file="src/songinfo.c"
  381. # Factoring default headers for most tests.
  382. ac_includes_default="\
  383. #include <stdio.h>
  384. #if HAVE_SYS_TYPES_H
  385. # include <sys/types.h>
  386. #endif
  387. #if HAVE_SYS_STAT_H
  388. # include <sys/stat.h>
  389. #endif
  390. #if STDC_HEADERS
  391. # include <stdlib.h>
  392. # include <stddef.h>
  393. #else
  394. # if HAVE_STDLIB_H
  395. # include <stdlib.h>
  396. # endif
  397. #endif
  398. #if HAVE_STRING_H
  399. # if !STDC_HEADERS && HAVE_MEMORY_H
  400. # include <memory.h>
  401. # endif
  402. # include <string.h>
  403. #endif
  404. #if HAVE_STRINGS_H
  405. # include <strings.h>
  406. #endif
  407. #if HAVE_INTTYPES_H
  408. # include <inttypes.h>
  409. #else
  410. # if HAVE_STDINT_H
  411. # include <stdint.h>
  412. # endif
  413. #endif
  414. #if HAVE_UNISTD_H
  415. # include <unistd.h>
  416. #endif"
  417. ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC LN_S build build_cpu build_vendor build_os host host_cpu host_vendor host_os ECHO RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP EGREP LIBTOOL GLIB_CONFIG GLIB_CFLAGS GLIB_LIBS GTK_CONFIG GTK_CFLAGS GTK_LIBS XMMS_CONFIG AWK XMMS_CFLAGS XMMS_LIBS XMMS_VERSION XMMS_DATA_DIR XMMS_PLUGIN_DIR XMMS_VISUALIZATION_PLUGIN_DIR XMMS_INPUT_PLUGIN_DIR XMMS_OUTPUT_PLUGIN_DIR XMMS_GENERAL_PLUGIN_DIR XMMS_EFFECT_PLUGIN_DIR LIBOBJS LTLIBOBJS'
  418. ac_subst_files=''
  419. # Initialize some variables set by options.
  420. ac_init_help=
  421. ac_init_version=false
  422. # The variables have the same names as the options, with
  423. # dashes changed to underlines.
  424. cache_file=/dev/null
  425. exec_prefix=NONE
  426. no_create=
  427. no_recursion=
  428. prefix=NONE
  429. program_prefix=NONE
  430. program_suffix=NONE
  431. program_transform_name=s,x,x,
  432. silent=
  433. site=
  434. srcdir=
  435. verbose=
  436. x_includes=NONE
  437. x_libraries=NONE
  438. # Installation directory options.
  439. # These are left unexpanded so users can "make install exec_prefix=/foo"
  440. # and all the variables that are supposed to be based on exec_prefix
  441. # by default will actually change.
  442. # Use braces instead of parens because sh, perl, etc. also accept them.
  443. bindir='${exec_prefix}/bin'
  444. sbindir='${exec_prefix}/sbin'
  445. libexecdir='${exec_prefix}/libexec'
  446. datadir='${prefix}/share'
  447. sysconfdir='${prefix}/etc'
  448. sharedstatedir='${prefix}/com'
  449. localstatedir='${prefix}/var'
  450. libdir='${exec_prefix}/lib'
  451. includedir='${prefix}/include'
  452. oldincludedir='/usr/include'
  453. infodir='${prefix}/info'
  454. mandir='${prefix}/man'
  455. ac_prev=
  456. for ac_option
  457. do
  458. # If the previous option needs an argument, assign it.
  459. if test -n "$ac_prev"; then
  460. eval "$ac_prev=\$ac_option"
  461. ac_prev=
  462. continue
  463. fi
  464. ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  465. # Accept the important Cygnus configure options, so we can diagnose typos.
  466. case $ac_option in
  467. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  468. ac_prev=bindir ;;
  469. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  470. bindir=$ac_optarg ;;
  471. -build | --build | --buil | --bui | --bu)
  472. ac_prev=build_alias ;;
  473. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  474. build_alias=$ac_optarg ;;
  475. -cache-file | --cache-file | --cache-fil | --cache-fi \
  476. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  477. ac_prev=cache_file ;;
  478. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  479. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  480. cache_file=$ac_optarg ;;
  481. --config-cache | -C)
  482. cache_file=config.cache ;;
  483. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  484. ac_prev=datadir ;;
  485. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  486. | --da=*)
  487. datadir=$ac_optarg ;;
  488. -disable-* | --disable-*)
  489. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  490. # Reject names that are not valid shell variable names.
  491. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  492. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  493. { (exit 1); exit 1; }; }
  494. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  495. eval "enable_$ac_feature=no" ;;
  496. -enable-* | --enable-*)
  497. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  498. # Reject names that are not valid shell variable names.
  499. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  500. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  501. { (exit 1); exit 1; }; }
  502. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  503. case $ac_option in
  504. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  505. *) ac_optarg=yes ;;
  506. esac
  507. eval "enable_$ac_feature='$ac_optarg'" ;;
  508. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  509. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  510. | --exec | --exe | --ex)
  511. ac_prev=exec_prefix ;;
  512. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  513. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  514. | --exec=* | --exe=* | --ex=*)
  515. exec_prefix=$ac_optarg ;;
  516. -gas | --gas | --ga | --g)
  517. # Obsolete; use --with-gas.
  518. with_gas=yes ;;
  519. -help | --help | --hel | --he | -h)
  520. ac_init_help=long ;;
  521. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  522. ac_init_help=recursive ;;
  523. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  524. ac_init_help=short ;;
  525. -host | --host | --hos | --ho)
  526. ac_prev=host_alias ;;
  527. -host=* | --host=* | --hos=* | --ho=*)
  528. host_alias=$ac_optarg ;;
  529. -includedir | --includedir | --includedi | --included | --include \
  530. | --includ | --inclu | --incl | --inc)
  531. ac_prev=includedir ;;
  532. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  533. | --includ=* | --inclu=* | --incl=* | --inc=*)
  534. includedir=$ac_optarg ;;
  535. -infodir | --infodir | --infodi | --infod | --info | --inf)
  536. ac_prev=infodir ;;
  537. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  538. infodir=$ac_optarg ;;
  539. -libdir | --libdir | --libdi | --libd)
  540. ac_prev=libdir ;;
  541. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  542. libdir=$ac_optarg ;;
  543. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  544. | --libexe | --libex | --libe)
  545. ac_prev=libexecdir ;;
  546. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  547. | --libexe=* | --libex=* | --libe=*)
  548. libexecdir=$ac_optarg ;;
  549. -localstatedir | --localstatedir | --localstatedi | --localstated \
  550. | --localstate | --localstat | --localsta | --localst \
  551. | --locals | --local | --loca | --loc | --lo)
  552. ac_prev=localstatedir ;;
  553. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  554. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  555. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  556. localstatedir=$ac_optarg ;;
  557. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  558. ac_prev=mandir ;;
  559. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  560. mandir=$ac_optarg ;;
  561. -nfp | --nfp | --nf)
  562. # Obsolete; use --without-fp.
  563. with_fp=no ;;
  564. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  565. | --no-cr | --no-c | -n)
  566. no_create=yes ;;
  567. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  568. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  569. no_recursion=yes ;;
  570. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  571. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  572. | --oldin | --oldi | --old | --ol | --o)
  573. ac_prev=oldincludedir ;;
  574. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  575. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  576. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  577. oldincludedir=$ac_optarg ;;
  578. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  579. ac_prev=prefix ;;
  580. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  581. prefix=$ac_optarg ;;
  582. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  583. | --program-pre | --program-pr | --program-p)
  584. ac_prev=program_prefix ;;
  585. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  586. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  587. program_prefix=$ac_optarg ;;
  588. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  589. | --program-suf | --program-su | --program-s)
  590. ac_prev=program_suffix ;;
  591. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  592. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  593. program_suffix=$ac_optarg ;;
  594. -program-transform-name | --program-transform-name \
  595. | --program-transform-nam | --program-transform-na \
  596. | --program-transform-n | --program-transform- \
  597. | --program-transform | --program-transfor \
  598. | --program-transfo | --program-transf \
  599. | --program-trans | --program-tran \
  600. | --progr-tra | --program-tr | --program-t)
  601. ac_prev=program_transform_name ;;
  602. -program-transform-name=* | --program-transform-name=* \
  603. | --program-transform-nam=* | --program-transform-na=* \
  604. | --program-transform-n=* | --program-transform-=* \
  605. | --program-transform=* | --program-transfor=* \
  606. | --program-transfo=* | --program-transf=* \
  607. | --program-trans=* | --program-tran=* \
  608. | --progr-tra=* | --program-tr=* | --program-t=*)
  609. program_transform_name=$ac_optarg ;;
  610. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  611. | -silent | --silent | --silen | --sile | --sil)
  612. silent=yes ;;
  613. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  614. ac_prev=sbindir ;;
  615. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  616. | --sbi=* | --sb=*)
  617. sbindir=$ac_optarg ;;
  618. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  619. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  620. | --sharedst | --shareds | --shared | --share | --shar \
  621. | --sha | --sh)
  622. ac_prev=sharedstatedir ;;
  623. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  624. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  625. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  626. | --sha=* | --sh=*)
  627. sharedstatedir=$ac_optarg ;;
  628. -site | --site | --sit)
  629. ac_prev=site ;;
  630. -site=* | --site=* | --sit=*)
  631. site=$ac_optarg ;;
  632. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  633. ac_prev=srcdir ;;
  634. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  635. srcdir=$ac_optarg ;;
  636. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  637. | --syscon | --sysco | --sysc | --sys | --sy)
  638. ac_prev=sysconfdir ;;
  639. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  640. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  641. sysconfdir=$ac_optarg ;;
  642. -target | --target | --targe | --targ | --tar | --ta | --t)
  643. ac_prev=target_alias ;;
  644. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  645. target_alias=$ac_optarg ;;
  646. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  647. verbose=yes ;;
  648. -version | --version | --versio | --versi | --vers | -V)
  649. ac_init_version=: ;;
  650. -with-* | --with-*)
  651. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  652. # Reject names that are not valid shell variable names.
  653. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  654. { echo "$as_me: error: invalid package name: $ac_package" >&2
  655. { (exit 1); exit 1; }; }
  656. ac_package=`echo $ac_package| sed 's/-/_/g'`
  657. case $ac_option in
  658. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  659. *) ac_optarg=yes ;;
  660. esac
  661. eval "with_$ac_package='$ac_optarg'" ;;
  662. -without-* | --without-*)
  663. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  664. # Reject names that are not valid shell variable names.
  665. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  666. { echo "$as_me: error: invalid package name: $ac_package" >&2
  667. { (exit 1); exit 1; }; }
  668. ac_package=`echo $ac_package | sed 's/-/_/g'`
  669. eval "with_$ac_package=no" ;;
  670. --x)
  671. # Obsolete; use --with-x.
  672. with_x=yes ;;
  673. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  674. | --x-incl | --x-inc | --x-in | --x-i)
  675. ac_prev=x_includes ;;
  676. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  677. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  678. x_includes=$ac_optarg ;;
  679. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  680. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  681. ac_prev=x_libraries ;;
  682. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  683. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  684. x_libraries=$ac_optarg ;;
  685. -*) { echo "$as_me: error: unrecognized option: $ac_option
  686. Try \`$0 --help' for more information." >&2
  687. { (exit 1); exit 1; }; }
  688. ;;
  689. *=*)
  690. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  691. # Reject names that are not valid shell variable names.
  692. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  693. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  694. { (exit 1); exit 1; }; }
  695. ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  696. eval "$ac_envvar='$ac_optarg'"
  697. export $ac_envvar ;;
  698. *)
  699. # FIXME: should be removed in autoconf 3.0.
  700. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  701. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  702. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  703. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  704. ;;
  705. esac
  706. done
  707. if test -n "$ac_prev"; then
  708. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  709. { echo "$as_me: error: missing argument to $ac_option" >&2
  710. { (exit 1); exit 1; }; }
  711. fi
  712. # Be sure to have absolute paths.
  713. for ac_var in exec_prefix prefix
  714. do
  715. eval ac_val=$`echo $ac_var`
  716. case $ac_val in
  717. [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  718. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  719. { (exit 1); exit 1; }; };;
  720. esac
  721. done
  722. # Be sure to have absolute paths.
  723. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  724. localstatedir libdir includedir oldincludedir infodir mandir
  725. do
  726. eval ac_val=$`echo $ac_var`
  727. case $ac_val in
  728. [\\/$]* | ?:[\\/]* ) ;;
  729. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  730. { (exit 1); exit 1; }; };;
  731. esac
  732. done
  733. # There might be people who depend on the old broken behavior: `$host'
  734. # used to hold the argument of --host etc.
  735. # FIXME: To remove some day.
  736. build=$build_alias
  737. host=$host_alias
  738. target=$target_alias
  739. # FIXME: To remove some day.
  740. if test "x$host_alias" != x; then
  741. if test "x$build_alias" = x; then
  742. cross_compiling=maybe
  743. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  744. If a cross compiler is detected then cross compile mode will be used." >&2
  745. elif test "x$build_alias" != "x$host_alias"; then
  746. cross_compiling=yes
  747. fi
  748. fi
  749. ac_tool_prefix=
  750. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  751. test "$silent" = yes && exec 6>/dev/null
  752. # Find the source files, if location was not specified.
  753. if test -z "$srcdir"; then
  754. ac_srcdir_defaulted=yes
  755. # Try the directory containing this script, then its parent.
  756. ac_confdir=`(dirname "$0") 2>/dev/null ||
  757. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  758. X"$0" : 'X\(//\)[^/]' \| \
  759. X"$0" : 'X\(//\)$' \| \
  760. X"$0" : 'X\(/\)' \| \
  761. . : '\(.\)' 2>/dev/null ||
  762. echo X"$0" |
  763. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  764. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  765. /^X\(\/\/\)$/{ s//\1/; q; }
  766. /^X\(\/\).*/{ s//\1/; q; }
  767. s/.*/./; q'`
  768. srcdir=$ac_confdir
  769. if test ! -r $srcdir/$ac_unique_file; then
  770. srcdir=..
  771. fi
  772. else
  773. ac_srcdir_defaulted=no
  774. fi
  775. if test ! -r $srcdir/$ac_unique_file; then
  776. if test "$ac_srcdir_defaulted" = yes; then
  777. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  778. { (exit 1); exit 1; }; }
  779. else
  780. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  781. { (exit 1); exit 1; }; }
  782. fi
  783. fi
  784. (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  785. { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  786. { (exit 1); exit 1; }; }
  787. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  788. ac_env_build_alias_set=${build_alias+set}
  789. ac_env_build_alias_value=$build_alias
  790. ac_cv_env_build_alias_set=${build_alias+set}
  791. ac_cv_env_build_alias_value=$build_alias
  792. ac_env_host_alias_set=${host_alias+set}
  793. ac_env_host_alias_value=$host_alias
  794. ac_cv_env_host_alias_set=${host_alias+set}
  795. ac_cv_env_host_alias_value=$host_alias
  796. ac_env_target_alias_set=${target_alias+set}
  797. ac_env_target_alias_value=$target_alias
  798. ac_cv_env_target_alias_set=${target_alias+set}
  799. ac_cv_env_target_alias_value=$target_alias
  800. ac_env_CXX_set=${CXX+set}
  801. ac_env_CXX_value=$CXX
  802. ac_cv_env_CXX_set=${CXX+set}
  803. ac_cv_env_CXX_value=$CXX
  804. ac_env_CXXFLAGS_set=${CXXFLAGS+set}
  805. ac_env_CXXFLAGS_value=$CXXFLAGS
  806. ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
  807. ac_cv_env_CXXFLAGS_value=$CXXFLAGS
  808. ac_env_LDFLAGS_set=${LDFLAGS+set}
  809. ac_env_LDFLAGS_value=$LDFLAGS
  810. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  811. ac_cv_env_LDFLAGS_value=$LDFLAGS
  812. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  813. ac_env_CPPFLAGS_value=$CPPFLAGS
  814. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  815. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  816. ac_env_CC_set=${CC+set}
  817. ac_env_CC_value=$CC
  818. ac_cv_env_CC_set=${CC+set}
  819. ac_cv_env_CC_value=$CC
  820. ac_env_CFLAGS_set=${CFLAGS+set}
  821. ac_env_CFLAGS_value=$CFLAGS
  822. ac_cv_env_CFLAGS_set=${CFLAGS+set}
  823. ac_cv_env_CFLAGS_value=$CFLAGS
  824. ac_env_CPP_set=${CPP+set}
  825. ac_env_CPP_value=$CPP
  826. ac_cv_env_CPP_set=${CPP+set}
  827. ac_cv_env_CPP_value=$CPP
  828. #
  829. # Report the --help message.
  830. #
  831. if test "$ac_init_help" = "long"; then
  832. # Omit some internal or obsolete options to make the list less imposing.
  833. # This message is too long to be a string in the A/UX 3.1 sh.
  834. cat <<_ACEOF
  835. \`configure' configures this package to adapt to many kinds of systems.
  836. Usage: $0 [OPTION]... [VAR=VALUE]...
  837. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  838. VAR=VALUE. See below for descriptions of some of the useful variables.
  839. Defaults for the options are specified in brackets.
  840. Configuration:
  841. -h, --help display this help and exit
  842. --help=short display options specific to this package
  843. --help=recursive display the short help of all the included packages
  844. -V, --version display version information and exit
  845. -q, --quiet, --silent do not print \`checking...' messages
  846. --cache-file=FILE cache test results in FILE [disabled]
  847. -C, --config-cache alias for \`--cache-file=config.cache'
  848. -n, --no-create do not create output files
  849. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  850. _ACEOF
  851. cat <<_ACEOF
  852. Installation directories:
  853. --prefix=PREFIX install architecture-independent files in PREFIX
  854. [$ac_default_prefix]
  855. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  856. [PREFIX]
  857. By default, \`make install' will install all the files in
  858. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  859. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  860. for instance \`--prefix=\$HOME'.
  861. For better control, use the options below.
  862. Fine tuning of the installation directories:
  863. --bindir=DIR user executables [EPREFIX/bin]
  864. --sbindir=DIR system admin executables [EPREFIX/sbin]
  865. --libexecdir=DIR program executables [EPREFIX/libexec]
  866. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  867. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  868. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  869. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  870. --libdir=DIR object code libraries [EPREFIX/lib]
  871. --includedir=DIR C header files [PREFIX/include]
  872. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  873. --infodir=DIR info documentation [PREFIX/info]
  874. --mandir=DIR man documentation [PREFIX/man]
  875. _ACEOF
  876. cat <<\_ACEOF
  877. Program names:
  878. --program-prefix=PREFIX prepend PREFIX to installed program names
  879. --program-suffix=SUFFIX append SUFFIX to installed program names
  880. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  881. System types:
  882. --build=BUILD configure for building on BUILD [guessed]
  883. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  884. _ACEOF
  885. fi
  886. if test -n "$ac_init_help"; then
  887. cat <<\_ACEOF
  888. Optional Features:
  889. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  890. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  891. --enable-shared=PKGS build shared libraries default=yes
  892. --enable-static=PKGS build static libraries default=yes
  893. --enable-fast-install=PKGS optimize for fast installation default=yes
  894. --disable-libtool-lock avoid locking (might break parallel builds)
  895. --disable-glibtest Do not try to compile and run a test GLIB program
  896. --disable-gtktest Do not try to compile and run a test GTK program
  897. Optional Packages:
  898. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  899. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  900. --with-gnu-ld assume the C compiler uses GNU ld default=no
  901. --with-pic try to use only PIC/non-PIC objects default=use both
  902. --with-glib-prefix=PFX Prefix where GLIB is installed (optional)
  903. --with-glib-exec-prefix=PFX Exec prefix where GLIB is installed (optional)
  904. --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
  905. --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
  906. --with-xmms-prefix=PFX Prefix where XMMS is installed (optional)
  907. --with-xmms-exec-prefix=PFX Exec prefix where XMMS is installed (optional)
  908. Some influential environment variables:
  909. CXX C++ compiler command
  910. CXXFLAGS C++ compiler flags
  911. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  912. nonstandard directory <lib dir>
  913. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  914. headers in a nonstandard directory <include dir>
  915. CC C compiler command
  916. CFLAGS C compiler flags
  917. CPP C preprocessor
  918. Use these variables to override the choices made by `configure' or to help
  919. it to find libraries and programs with nonstandard names/locations.
  920. _ACEOF
  921. fi
  922. if test "$ac_init_help" = "recursive"; then
  923. # If there are subdirs, report their specific --help.
  924. ac_popdir=`pwd`
  925. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  926. test -d $ac_dir || continue
  927. ac_builddir=.
  928. if test "$ac_dir" != .; then
  929. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  930. # A "../" for each directory in $ac_dir_suffix.
  931. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  932. else
  933. ac_dir_suffix= ac_top_builddir=
  934. fi
  935. case $srcdir in
  936. .) # No --srcdir option. We are building in place.
  937. ac_srcdir=.
  938. if test -z "$ac_top_builddir"; then
  939. ac_top_srcdir=.
  940. else
  941. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  942. fi ;;
  943. [\\/]* | ?:[\\/]* ) # Absolute path.
  944. ac_srcdir=$srcdir$ac_dir_suffix;
  945. ac_top_srcdir=$srcdir ;;
  946. *) # Relative path.
  947. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  948. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  949. esac
  950. # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
  951. # absolute.
  952. ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
  953. ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
  954. ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
  955. ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
  956. cd $ac_dir
  957. # Check for guested configure; otherwise get Cygnus style configure.
  958. if test -f $ac_srcdir/configure.gnu; then
  959. echo
  960. $SHELL $ac_srcdir/configure.gnu --help=recursive
  961. elif test -f $ac_srcdir/configure; then
  962. echo
  963. $SHELL $ac_srcdir/configure --help=recursive
  964. elif test -f $ac_srcdir/configure.ac ||
  965. test -f $ac_srcdir/configure.in; then
  966. echo
  967. $ac_configure --help
  968. else
  969. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  970. fi
  971. cd $ac_popdir
  972. done
  973. fi
  974. test -n "$ac_init_help" && exit 0
  975. if $ac_init_version; then
  976. cat <<\_ACEOF
  977. Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
  978. Free Software Foundation, Inc.
  979. This configure script is free software; the Free Software Foundation
  980. gives unlimited permission to copy, distribute and modify it.
  981. _ACEOF
  982. exit 0
  983. fi
  984. exec 5>config.log
  985. cat >&5 <<_ACEOF
  986. This file contains any messages produced by compilers while
  987. running configure, to aid debugging if configure makes a mistake.
  988. It was created by $as_me, which was
  989. generated by GNU Autoconf 2.57. Invocation command line was
  990. $ $0 $@
  991. _ACEOF
  992. {
  993. cat <<_ASUNAME
  994. ## --------- ##
  995. ## Platform. ##
  996. ## --------- ##
  997. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  998. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  999. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1000. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1001. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1002. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1003. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1004. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1005. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1006. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1007. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  1008. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1009. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1010. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1011. _ASUNAME
  1012. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1013. for as_dir in $PATH
  1014. do
  1015. IFS=$as_save_IFS
  1016. test -z "$as_dir" && as_dir=.
  1017. echo "PATH: $as_dir"
  1018. done
  1019. } >&5
  1020. cat >&5 <<_ACEOF
  1021. ## ----------- ##
  1022. ## Core tests. ##
  1023. ## ----------- ##
  1024. _ACEOF
  1025. # Keep a trace of the command line.
  1026. # Strip out --no-create and --no-recursion so they do not pile up.
  1027. # Strip out --silent because we don't want to record it for future runs.
  1028. # Also quote any args containing shell meta-characters.
  1029. # Make two passes to allow for proper duplicate-argument suppression.
  1030. ac_configure_args=
  1031. ac_configure_args0=
  1032. ac_configure_args1=
  1033. ac_sep=
  1034. ac_must_keep_next=false
  1035. for ac_pass in 1 2
  1036. do
  1037. for ac_arg
  1038. do
  1039. case $ac_arg in
  1040. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1041. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1042. | -silent | --silent | --silen | --sile | --sil)
  1043. continue ;;
  1044. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1045. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1046. esac
  1047. case $ac_pass in
  1048. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1049. 2)
  1050. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1051. if test $ac_must_keep_next = true; then
  1052. ac_must_keep_next=false # Got value, back to normal.
  1053. else
  1054. case $ac_arg in
  1055. *=* | --config-cache | -C | -disable-* | --disable-* \
  1056. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1057. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1058. | -with-* | --with-* | -without-* | --without-* | --x)
  1059. case "$ac_configure_args0 " in
  1060. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1061. esac
  1062. ;;
  1063. -* ) ac_must_keep_next=true ;;
  1064. esac
  1065. fi
  1066. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  1067. # Get rid of the leading space.
  1068. ac_sep=" "
  1069. ;;
  1070. esac
  1071. done
  1072. done
  1073. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1074. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1075. # When interrupted or exit'd, cleanup temporary files, and complete
  1076. # config.log. We remove comments because anyway the quotes in there
  1077. # would cause problems or look ugly.
  1078. # WARNING: Be sure not to use single quotes in there, as some shells,
  1079. # such as our DU 5.0 friend, will then `close' the trap.
  1080. trap 'exit_status=$?
  1081. # Save into config.log some information that might help in debugging.
  1082. {
  1083. echo
  1084. cat <<\_ASBOX
  1085. ## ---------------- ##
  1086. ## Cache variables. ##
  1087. ## ---------------- ##
  1088. _ASBOX
  1089. echo
  1090. # The following way of writing the cache mishandles newlines in values,
  1091. {
  1092. (set) 2>&1 |
  1093. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  1094. *ac_space=\ *)
  1095. sed -n \
  1096. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  1097. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  1098. ;;
  1099. *)
  1100. sed -n \
  1101. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  1102. ;;
  1103. esac;
  1104. }
  1105. echo
  1106. cat <<\_ASBOX
  1107. ## ----------------- ##
  1108. ## Output variables. ##
  1109. ## ----------------- ##
  1110. _ASBOX
  1111. echo
  1112. for ac_var in $ac_subst_vars
  1113. do
  1114. eval ac_val=$`echo $ac_var`
  1115. echo "$ac_var='"'"'$ac_val'"'"'"
  1116. done | sort
  1117. echo
  1118. if test -n "$ac_subst_files"; then
  1119. cat <<\_ASBOX
  1120. ## ------------- ##
  1121. ## Output files. ##
  1122. ## ------------- ##
  1123. _ASBOX
  1124. echo
  1125. for ac_var in $ac_subst_files
  1126. do
  1127. eval ac_val=$`echo $ac_var`
  1128. echo "$ac_var='"'"'$ac_val'"'"'"
  1129. done | sort
  1130. echo
  1131. fi
  1132. if test -s confdefs.h; then
  1133. cat <<\_ASBOX
  1134. ## ----------- ##
  1135. ## confdefs.h. ##
  1136. ## ----------- ##
  1137. _ASBOX
  1138. echo
  1139. sed "/^$/d" confdefs.h | sort
  1140. echo
  1141. fi
  1142. test "$ac_signal" != 0 &&
  1143. echo "$as_me: caught signal $ac_signal"
  1144. echo "$as_me: exit $exit_status"
  1145. } >&5
  1146. rm -f core core.* *.core &&
  1147. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1148. exit $exit_status
  1149. ' 0
  1150. for ac_signal in 1 2 13 15; do
  1151. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1152. done
  1153. ac_signal=0
  1154. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1155. rm -rf conftest* confdefs.h
  1156. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1157. echo >confdefs.h
  1158. # Predefined preprocessor variables.
  1159. cat >>confdefs.h <<_ACEOF
  1160. #define PACKAGE_NAME "$PACKAGE_NAME"
  1161. _ACEOF
  1162. cat >>confdefs.h <<_ACEOF
  1163. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1164. _ACEOF
  1165. cat >>confdefs.h <<_ACEOF
  1166. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1167. _ACEOF
  1168. cat >>confdefs.h <<_ACEOF
  1169. #define PACKAGE_STRING "$PACKAGE_STRING"
  1170. _ACEOF
  1171. cat >>confdefs.h <<_ACEOF
  1172. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1173. _ACEOF
  1174. # Let the site file select an alternate cache file if it wants to.
  1175. # Prefer explicitly selected file to automatically selected ones.
  1176. if test -z "$CONFIG_SITE"; then
  1177. if test "x$prefix" != xNONE; then
  1178. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1179. else
  1180. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1181. fi
  1182. fi
  1183. for ac_site_file in $CONFIG_SITE; do
  1184. if test -r "$ac_site_file"; then
  1185. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1186. echo "$as_me: loading site script $ac_site_file" >&6;}
  1187. sed 's/^/| /' "$ac_site_file" >&5
  1188. . "$ac_site_file"
  1189. fi
  1190. done
  1191. if test -r "$cache_file"; then
  1192. # Some versions of bash will fail to source /dev/null (special
  1193. # files actually), so we avoid doing that.
  1194. if test -f "$cache_file"; then
  1195. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1196. echo "$as_me: loading cache $cache_file" >&6;}
  1197. case $cache_file in
  1198. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1199. *) . ./$cache_file;;
  1200. esac
  1201. fi
  1202. else
  1203. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1204. echo "$as_me: creating cache $cache_file" >&6;}
  1205. >$cache_file
  1206. fi
  1207. # Check that the precious variables saved in the cache have kept the same
  1208. # value.
  1209. ac_cache_corrupted=false
  1210. for ac_var in `(set) 2>&1 |
  1211. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1212. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1213. eval ac_new_set=\$ac_env_${ac_var}_set
  1214. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1215. eval ac_new_val="\$ac_env_${ac_var}_value"
  1216. case $ac_old_set,$ac_new_set in
  1217. set,)
  1218. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1219. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1220. ac_cache_corrupted=: ;;
  1221. ,set)
  1222. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1223. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1224. ac_cache_corrupted=: ;;
  1225. ,);;
  1226. *)
  1227. if test "x$ac_old_val" != "x$ac_new_val"; then
  1228. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1229. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1230. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1231. echo "$as_me: former value: $ac_old_val" >&2;}
  1232. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1233. echo "$as_me: current value: $ac_new_val" >&2;}
  1234. ac_cache_corrupted=:
  1235. fi;;
  1236. esac
  1237. # Pass precious variables to config.status.
  1238. if test "$ac_new_set" = set; then
  1239. case $ac_new_val in
  1240. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1241. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1242. *) ac_arg=$ac_var=$ac_new_val ;;
  1243. esac
  1244. case " $ac_configure_args " in
  1245. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1246. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1247. esac
  1248. fi
  1249. done
  1250. if $ac_cache_corrupted; then
  1251. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1252. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1253. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1254. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1255. { (exit 1); exit 1; }; }
  1256. fi
  1257. ac_ext=c
  1258. ac_cpp='$CPP $CPPFLAGS'
  1259. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1260. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1261. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1262. am__api_version="1.4"
  1263. ac_aux_dir=
  1264. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  1265. if test -f $ac_dir/install-sh; then
  1266. ac_aux_dir=$ac_dir
  1267. ac_install_sh="$ac_aux_dir/install-sh -c"
  1268. break
  1269. elif test -f $ac_dir/install.sh; then
  1270. ac_aux_dir=$ac_dir
  1271. ac_install_sh="$ac_aux_dir/install.sh -c"
  1272. break
  1273. elif test -f $ac_dir/shtool; then
  1274. ac_aux_dir=$ac_dir
  1275. ac_install_sh="$ac_aux_dir/shtool install -c"
  1276. break
  1277. fi
  1278. done
  1279. if test -z "$ac_aux_dir"; then
  1280. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  1281. echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  1282. { (exit 1); exit 1; }; }
  1283. fi
  1284. ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  1285. ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  1286. ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  1287. # Find a good install program. We prefer a C program (faster),
  1288. # so one script is as good as another. But avoid the broken or
  1289. # incompatible versions:
  1290. # SysV /etc/install, /usr/sbin/install
  1291. # SunOS /usr/etc/install
  1292. # IRIX /sbin/install
  1293. # AIX /bin/install
  1294. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1295. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1296. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1297. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1298. # ./install, which can be erroneously created by make from ./install.sh.
  1299. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1300. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  1301. if test -z "$INSTALL"; then
  1302. if test "${ac_cv_path_install+set}" = set; then
  1303. echo $ECHO_N "(cached) $ECHO_C" >&6
  1304. else
  1305. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1306. for as_dir in $PATH
  1307. do
  1308. IFS=$as_save_IFS
  1309. test -z "$as_dir" && as_dir=.
  1310. # Account for people who put trailing slashes in PATH elements.
  1311. case $as_dir/ in
  1312. ./ | .// | /cC/* | \
  1313. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1314. /usr/ucb/* ) ;;
  1315. *)
  1316. # OSF1 and SCO ODT 3.0 have their own names for install.
  1317. # Don't use installbsd from OSF since it installs stuff as root
  1318. # by default.
  1319. for ac_prog in ginstall scoinst install; do
  1320. for ac_exec_ext in '' $ac_executable_extensions; do
  1321. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  1322. if test $ac_prog = install &&
  1323. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1324. # AIX install. It has an incompatible calling convention.
  1325. :
  1326. elif test $ac_prog = install &&
  1327. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1328. # program-specific install script used by HP pwplus--don't use.
  1329. :
  1330. else
  1331. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1332. break 3
  1333. fi
  1334. fi
  1335. done
  1336. done
  1337. ;;
  1338. esac
  1339. done
  1340. fi
  1341. if test "${ac_cv_path_install+set}" = set; then
  1342. INSTALL=$ac_cv_path_install
  1343. else
  1344. # As a last resort, use the slow shell script. We don't cache a
  1345. # path for INSTALL within a source directory, because that will
  1346. # break other packages using the cache if that directory is
  1347. # removed, or if the path is relative.
  1348. INSTALL=$ac_install_sh
  1349. fi
  1350. fi
  1351. echo "$as_me:$LINENO: result: $INSTALL" >&5
  1352. echo "${ECHO_T}$INSTALL" >&6
  1353. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1354. # It thinks the first close brace ends the variable substitution.
  1355. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1356. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1357. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1358. echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1359. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
  1360. # Just in case
  1361. sleep 1
  1362. echo timestamp > conftestfile
  1363. # Do `set' in a subshell so we don't clobber the current shell's
  1364. # arguments. Must try -L first in case configure is actually a
  1365. # symlink; some systems play weird games with the mod time of symlinks
  1366. # (eg FreeBSD returns the mod time of the symlink's containing
  1367. # directory).
  1368. if (
  1369. set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
  1370. if test "$*" = "X"; then
  1371. # -L didn't work.
  1372. set X `ls -t $srcdir/configure conftestfile`
  1373. fi
  1374. if test "$*" != "X $srcdir/configure conftestfile" \
  1375. && test "$*" != "X conftestfile $srcdir/configure"; then
  1376. # If neither matched, then we have a broken ls. This can happen
  1377. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1378. # broken ls alias from the environment. This has actually
  1379. # happened. Such a system could not be considered "sane".
  1380. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1381. alias in your environment" >&5
  1382. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1383. alias in your environment" >&2;}
  1384. { (exit 1); exit 1; }; }
  1385. fi
  1386. test "$2" = conftestfile
  1387. )
  1388. then
  1389. # Ok.
  1390. :
  1391. else
  1392. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1393. Check your system clock" >&5
  1394. echo "$as_me: error: newly created file is older than distributed files!
  1395. Check your system clock" >&2;}
  1396. { (exit 1); exit 1; }; }
  1397. fi
  1398. rm -f conftest*
  1399. echo "$as_me:$LINENO: result: yes" >&5
  1400. echo "${ECHO_T}yes" >&6
  1401. test "$program_prefix" != NONE &&
  1402. program_transform_name="s,^,$program_prefix,;$program_transform_name"
  1403. # Use a double $ so make ignores it.
  1404. test "$program_suffix" != NONE &&
  1405. program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  1406. # Double any \ or $. echo might interpret backslashes.
  1407. # By default was `s,x,x', remove it if useless.
  1408. cat <<\_ACEOF >conftest.sed
  1409. s/[\\$]/&&/g;s/;s,x,x,$//
  1410. _ACEOF
  1411. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1412. rm conftest.sed
  1413. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1414. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  1415. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
  1416. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  1417. echo $ECHO_N "(cached) $ECHO_C" >&6
  1418. else
  1419. cat >conftest.make <<\_ACEOF
  1420. all:
  1421. @echo 'ac_maketemp="$(MAKE)"'
  1422. _ACEOF
  1423. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1424. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  1425. if test -n "$ac_maketemp"; then
  1426. eval ac_cv_prog_make_${ac_make}_set=yes
  1427. else
  1428. eval ac_cv_prog_make_${ac_make}_set=no
  1429. fi
  1430. rm -f conftest.make
  1431. fi
  1432. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  1433. echo "$as_me:$LINENO: result: yes" >&5
  1434. echo "${ECHO_T}yes" >&6
  1435. SET_MAKE=
  1436. else
  1437. echo "$as_me:$LINENO: result: no" >&5
  1438. echo "${ECHO_T}no" >&6
  1439. SET_MAKE="MAKE=${MAKE-make}"
  1440. fi
  1441. PACKAGE=xmms-songinfo
  1442. VERSION=0.0.1
  1443. if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
  1444. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  1445. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  1446. { (exit 1); exit 1; }; }
  1447. fi
  1448. cat >>confdefs.h <<_ACEOF
  1449. #define PACKAGE "$PACKAGE"
  1450. _ACEOF
  1451. cat >>confdefs.h <<_ACEOF
  1452. #define VERSION "$VERSION"
  1453. _ACEOF
  1454. missing_dir=`cd $ac_aux_dir && pwd`
  1455. echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5
  1456. echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6
  1457. # Run test in a subshell; some versions of sh will print an error if
  1458. # an executable is not found, even if stderr is redirected.
  1459. # Redirect stdin to placate older versions of autoconf. Sigh.
  1460. if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
  1461. ACLOCAL=aclocal-${am__api_version}
  1462. echo "$as_me:$LINENO: result: found" >&5
  1463. echo "${ECHO_T}found" >&6
  1464. else
  1465. ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
  1466. echo "$as_me:$LINENO: result: missing" >&5
  1467. echo "${ECHO_T}missing" >&6
  1468. fi
  1469. echo "$as_me:$LINENO: checking for working autoconf" >&5
  1470. echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
  1471. # Run test in a subshell; some versions of sh will print an error if
  1472. # an executable is not found, even if stderr is redirected.
  1473. # Redirect stdin to placate older versions of autoconf. Sigh.
  1474. if (autoconf --version) < /dev/null > /dev/null 2>&1; then
  1475. AUTOCONF=autoconf
  1476. echo "$as_me:$LINENO: result: found" >&5
  1477. echo "${ECHO_T}found" >&6
  1478. else
  1479. AUTOCONF="$missing_dir/missing autoconf"
  1480. echo "$as_me:$LINENO: result: missing" >&5
  1481. echo "${ECHO_T}missing" >&6
  1482. fi
  1483. echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5
  1484. echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6
  1485. # Run test in a subshell; some versions of sh will print an error if
  1486. # an executable is not found, even if stderr is redirected.
  1487. # Redirect stdin to placate older versions of autoconf. Sigh.
  1488. if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
  1489. AUTOMAKE=automake-${am__api_version}
  1490. echo "$as_me:$LINENO: result: found" >&5
  1491. echo "${ECHO_T}found" >&6
  1492. else
  1493. AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
  1494. echo "$as_me:$LINENO: result: missing" >&5
  1495. echo "${ECHO_T}missing" >&6
  1496. fi
  1497. echo "$as_me:$LINENO: checking for working autoheader" >&5
  1498. echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
  1499. # Run test in a subshell; some versions of sh will print an error if
  1500. # an executable is not found, even if stderr is redirected.
  1501. # Redirect stdin to placate older versions of autoconf. Sigh.
  1502. if (autoheader --version) < /dev/null > /dev/null 2>&1; then
  1503. AUTOHEADER=autoheader
  1504. echo "$as_me:$LINENO: result: found" >&5
  1505. echo "${ECHO_T}found" >&6
  1506. else
  1507. AUTOHEADER="$missing_dir/missing autoheader"
  1508. echo "$as_me:$LINENO: result: missing" >&5
  1509. echo "${ECHO_T}missing" >&6
  1510. fi
  1511. echo "$as_me:$LINENO: checking for working makeinfo" >&5
  1512. echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
  1513. # Run test in a subshell; some versions of sh will print an error if
  1514. # an executable is not found, even if stderr is redirected.
  1515. # Redirect stdin to placate older versions of autoconf. Sigh.
  1516. if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
  1517. MAKEINFO=makeinfo
  1518. echo "$as_me:$LINENO: result: found" >&5
  1519. echo "${ECHO_T}found" >&6
  1520. else
  1521. MAKEINFO="$missing_dir/missing makeinfo"
  1522. echo "$as_me:$LINENO: result: missing" >&5
  1523. echo "${ECHO_T}missing" >&6
  1524. fi
  1525. CFLAGS_ADD="-I/usr/local/include -I/usr/X11R6/include"
  1526. CFLAGS_ADD="$CFLAGS_ADD -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include"
  1527. LDFLAGS_ADD="-L/usr/X11R6/lib -L/usr/local/lib -lstdc++"
  1528. CFLAGS="$CFLAGS $CFLAGS_ADD"
  1529. CXXFLAGS="$CXXFLAGS $CFLAGS_ADD"
  1530. LDFLAGS="$LDFLAGS $LDFLAGS_ADD"
  1531. #AC_LANG_CPLUSPLUS
  1532. ac_ext=cc
  1533. ac_cpp='$CXXCPP $CPPFLAGS'
  1534. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1535. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1536. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1537. if test -n "$ac_tool_prefix"; then
  1538. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  1539. do
  1540. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1541. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1542. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1543. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1544. if test "${ac_cv_prog_CXX+set}" = set; then
  1545. echo $ECHO_N "(cached) $ECHO_C" >&6
  1546. else
  1547. if test -n "$CXX"; then
  1548. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  1549. else
  1550. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1551. for as_dir in $PATH
  1552. do
  1553. IFS=$as_save_IFS
  1554. test -z "$as_dir" && as_dir=.
  1555. for ac_exec_ext in '' $ac_executable_extensions; do
  1556. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1557. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  1558. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1559. break 2
  1560. fi
  1561. done
  1562. done
  1563. fi
  1564. fi
  1565. CXX=$ac_cv_prog_CXX
  1566. if test -n "$CXX"; then
  1567. echo "$as_me:$LINENO: result: $CXX" >&5
  1568. echo "${ECHO_T}$CXX" >&6
  1569. else
  1570. echo "$as_me:$LINENO: result: no" >&5
  1571. echo "${ECHO_T}no" >&6
  1572. fi
  1573. test -n "$CXX" && break
  1574. done
  1575. fi
  1576. if test -z "$CXX"; then
  1577. ac_ct_CXX=$CXX
  1578. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  1579. do
  1580. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1581. set dummy $ac_prog; ac_word=$2
  1582. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1583. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1584. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  1585. echo $ECHO_N "(cached) $ECHO_C" >&6
  1586. else
  1587. if test -n "$ac_ct_CXX"; then
  1588. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  1589. else
  1590. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1591. for as_dir in $PATH
  1592. do
  1593. IFS=$as_save_IFS
  1594. test -z "$as_dir" && as_dir=.
  1595. for ac_exec_ext in '' $ac_executable_extensions; do
  1596. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1597. ac_cv_prog_ac_ct_CXX="$ac_prog"
  1598. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1599. break 2
  1600. fi
  1601. done
  1602. done
  1603. fi
  1604. fi
  1605. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  1606. if test -n "$ac_ct_CXX"; then
  1607. echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  1608. echo "${ECHO_T}$ac_ct_CXX" >&6
  1609. else
  1610. echo "$as_me:$LINENO: result: no" >&5
  1611. echo "${ECHO_T}no" >&6
  1612. fi
  1613. test -n "$ac_ct_CXX" && break
  1614. done
  1615. test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
  1616. CXX=$ac_ct_CXX
  1617. fi
  1618. # Provide some information about the compiler.
  1619. echo "$as_me:$LINENO:" \
  1620. "checking for C++ compiler version" >&5
  1621. ac_compiler=`set X $ac_compile; echo $2`
  1622. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1623. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1624. ac_status=$?
  1625. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1626. (exit $ac_status); }
  1627. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1628. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1629. ac_status=$?
  1630. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1631. (exit $ac_status); }
  1632. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  1633. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1634. ac_status=$?
  1635. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1636. (exit $ac_status); }
  1637. cat >conftest.$ac_ext <<_ACEOF
  1638. #line $LINENO "configure"
  1639. /* confdefs.h. */
  1640. _ACEOF
  1641. cat confdefs.h >>conftest.$ac_ext
  1642. cat >>conftest.$ac_ext <<_ACEOF
  1643. /* end confdefs.h. */
  1644. int
  1645. main ()
  1646. {
  1647. ;
  1648. return 0;
  1649. }
  1650. _ACEOF
  1651. ac_clean_files_save=$ac_clean_files
  1652. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1653. # Try to create an executable without -o first, disregard a.out.
  1654. # It will help us diagnose broken compilers, and finding out an intuition
  1655. # of exeext.
  1656. echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
  1657. echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
  1658. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1659. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1660. (eval $ac_link_default) 2>&5
  1661. ac_status=$?
  1662. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1663. (exit $ac_status); }; then
  1664. # Find the output, starting from the most likely. This scheme is
  1665. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1666. # resort.
  1667. # Be careful to initialize this variable, since it used to be cached.
  1668. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  1669. ac_cv_exeext=
  1670. # b.out is created by i960 compilers.
  1671. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  1672. do
  1673. test -f "$ac_file" || continue
  1674. case $ac_file in
  1675. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  1676. ;;
  1677. conftest.$ac_ext )
  1678. # This is the source file.
  1679. ;;
  1680. [ab].out )
  1681. # We found the default executable, but exeext='' is most
  1682. # certainly right.
  1683. break;;
  1684. *.* )
  1685. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1686. # FIXME: I believe we export ac_cv_exeext for Libtool,
  1687. # but it would be cool to find out if it's true. Does anybody
  1688. # maintain Libtool? --akim.
  1689. export ac_cv_exeext
  1690. break;;
  1691. * )
  1692. break;;
  1693. esac
  1694. done
  1695. else
  1696. echo "$as_me: failed program was:" >&5
  1697. sed 's/^/| /' conftest.$ac_ext >&5
  1698. { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  1699. See \`config.log' for more details." >&5
  1700. echo "$as_me: error: C++ compiler cannot create executables
  1701. See \`config.log' for more details." >&2;}
  1702. { (exit 77); exit 77; }; }
  1703. fi
  1704. ac_exeext=$ac_cv_exeext
  1705. echo "$as_me:$LINENO: result: $ac_file" >&5
  1706. echo "${ECHO_T}$ac_file" >&6
  1707. # Check the compiler produces executables we can run. If not, either
  1708. # the compiler is broken, or we cross compile.
  1709. echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  1710. echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
  1711. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1712. # If not cross compiling, check that we can run a simple program.
  1713. if test "$cross_compiling" != yes; then
  1714. if { ac_try='./$ac_file'
  1715. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1716. (eval $ac_try) 2>&5
  1717. ac_status=$?
  1718. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1719. (exit $ac_status); }; }; then
  1720. cross_compiling=no
  1721. else
  1722. if test "$cross_compiling" = maybe; then
  1723. cross_compiling=yes
  1724. else
  1725. { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  1726. If you meant to cross compile, use \`--host'.
  1727. See \`config.log' for more details." >&5
  1728. echo "$as_me: error: cannot run C++ compiled programs.
  1729. If you meant to cross compile, use \`--host'.
  1730. See \`config.log' for more details." >&2;}
  1731. { (exit 1); exit 1; }; }
  1732. fi
  1733. fi
  1734. fi
  1735. echo "$as_me:$LINENO: result: yes" >&5
  1736. echo "${ECHO_T}yes" >&6
  1737. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  1738. ac_clean_files=$ac_clean_files_save
  1739. # Check the compiler produces executables we can run. If not, either
  1740. # the compiler is broken, or we cross compile.
  1741. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1742. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  1743. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1744. echo "${ECHO_T}$cross_compiling" >&6
  1745. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1746. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  1747. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  1748. (eval $ac_link) 2>&5
  1749. ac_status=$?
  1750. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1751. (exit $ac_status); }; then
  1752. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1753. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1754. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1755. # `rm'.
  1756. for ac_file in conftest.exe conftest conftest.*; do
  1757. test -f "$ac_file" || continue
  1758. case $ac_file in
  1759. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  1760. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1761. export ac_cv_exeext
  1762. break;;
  1763. * ) break;;
  1764. esac
  1765. done
  1766. else
  1767. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1768. See \`config.log' for more details." >&5
  1769. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1770. See \`config.log' for more details." >&2;}
  1771. { (exit 1); exit 1; }; }
  1772. fi
  1773. rm -f conftest$ac_cv_exeext
  1774. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1775. echo "${ECHO_T}$ac_cv_exeext" >&6
  1776. rm -f conftest.$ac_ext
  1777. EXEEXT=$ac_cv_exeext
  1778. ac_exeext=$EXEEXT
  1779. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1780. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  1781. if test "${ac_cv_objext+set}" = set; then
  1782. echo $ECHO_N "(cached) $ECHO_C" >&6
  1783. else
  1784. cat >conftest.$ac_ext <<_ACEOF
  1785. #line $LINENO "configure"
  1786. /* confdefs.h. */
  1787. _ACEOF
  1788. cat confdefs.h >>conftest.$ac_ext
  1789. cat >>conftest.$ac_ext <<_ACEOF
  1790. /* end confdefs.h. */
  1791. int
  1792. main ()
  1793. {
  1794. ;
  1795. return 0;
  1796. }
  1797. _ACEOF
  1798. rm -f conftest.o conftest.obj
  1799. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1800. (eval $ac_compile) 2>&5
  1801. ac_status=$?
  1802. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1803. (exit $ac_status); }; then
  1804. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  1805. case $ac_file in
  1806. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  1807. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1808. break;;
  1809. esac
  1810. done
  1811. else
  1812. echo "$as_me: failed program was:" >&5
  1813. sed 's/^/| /' conftest.$ac_ext >&5
  1814. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  1815. See \`config.log' for more details." >&5
  1816. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  1817. See \`config.log' for more details." >&2;}
  1818. { (exit 1); exit 1; }; }
  1819. fi
  1820. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1821. fi
  1822. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  1823. echo "${ECHO_T}$ac_cv_objext" >&6
  1824. OBJEXT=$ac_cv_objext
  1825. ac_objext=$OBJEXT
  1826. echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  1827. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
  1828. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  1829. echo $ECHO_N "(cached) $ECHO_C" >&6
  1830. else
  1831. cat >conftest.$ac_ext <<_ACEOF
  1832. #line $LINENO "configure"
  1833. /* confdefs.h. */
  1834. _ACEOF
  1835. cat confdefs.h >>conftest.$ac_ext
  1836. cat >>conftest.$ac_ext <<_ACEOF
  1837. /* end confdefs.h. */
  1838. int
  1839. main ()
  1840. {
  1841. #ifndef __GNUC__
  1842. choke me
  1843. #endif
  1844. ;
  1845. return 0;
  1846. }
  1847. _ACEOF
  1848. rm -f conftest.$ac_objext
  1849. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1850. (eval $ac_compile) 2>&5
  1851. ac_status=$?
  1852. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1853. (exit $ac_status); } &&
  1854. { ac_try='test -s conftest.$ac_objext'
  1855. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1856. (eval $ac_try) 2>&5
  1857. ac_status=$?
  1858. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1859. (exit $ac_status); }; }; then
  1860. ac_compiler_gnu=yes
  1861. else
  1862. echo "$as_me: failed program was:" >&5
  1863. sed 's/^/| /' conftest.$ac_ext >&5
  1864. ac_compiler_gnu=no
  1865. fi
  1866. rm -f conftest.$ac_objext conftest.$ac_ext
  1867. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  1868. fi
  1869. echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  1870. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
  1871. GXX=`test $ac_compiler_gnu = yes && echo yes`
  1872. ac_test_CXXFLAGS=${CXXFLAGS+set}
  1873. ac_save_CXXFLAGS=$CXXFLAGS
  1874. CXXFLAGS="-g"
  1875. echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  1876. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
  1877. if test "${ac_cv_prog_cxx_g+set}" = set; then
  1878. echo $ECHO_N "(cached) $ECHO_C" >&6
  1879. else
  1880. cat >conftest.$ac_ext <<_ACEOF
  1881. #line $LINENO "configure"
  1882. /* confdefs.h. */
  1883. _ACEOF
  1884. cat confdefs.h >>conftest.$ac_ext
  1885. cat >>conftest.$ac_ext <<_ACEOF
  1886. /* end confdefs.h. */
  1887. int
  1888. main ()
  1889. {
  1890. ;
  1891. return 0;
  1892. }
  1893. _ACEOF
  1894. rm -f conftest.$ac_objext
  1895. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1896. (eval $ac_compile) 2>&5
  1897. ac_status=$?
  1898. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1899. (exit $ac_status); } &&
  1900. { ac_try='test -s conftest.$ac_objext'
  1901. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1902. (eval $ac_try) 2>&5
  1903. ac_status=$?
  1904. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1905. (exit $ac_status); }; }; then
  1906. ac_cv_prog_cxx_g=yes
  1907. else
  1908. echo "$as_me: failed program was:" >&5
  1909. sed 's/^/| /' conftest.$ac_ext >&5
  1910. ac_cv_prog_cxx_g=no
  1911. fi
  1912. rm -f conftest.$ac_objext conftest.$ac_ext
  1913. fi
  1914. echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  1915. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
  1916. if test "$ac_test_CXXFLAGS" = set; then
  1917. CXXFLAGS=$ac_save_CXXFLAGS
  1918. elif test $ac_cv_prog_cxx_g = yes; then
  1919. if test "$GXX" = yes; then
  1920. CXXFLAGS="-g -O2"
  1921. else
  1922. CXXFLAGS="-g"
  1923. fi
  1924. else
  1925. if test "$GXX" = yes; then
  1926. CXXFLAGS="-O2"
  1927. else
  1928. CXXFLAGS=
  1929. fi
  1930. fi
  1931. for ac_declaration in \
  1932. ''\
  1933. '#include <stdlib.h>' \
  1934. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  1935. 'extern "C" void std::exit (int); using std::exit;' \
  1936. 'extern "C" void exit (int) throw ();' \
  1937. 'extern "C" void exit (int);' \
  1938. 'void exit (int);'
  1939. do
  1940. cat >conftest.$ac_ext <<_ACEOF
  1941. #line $LINENO "configure"
  1942. /* confdefs.h. */
  1943. _ACEOF
  1944. cat confdefs.h >>conftest.$ac_ext
  1945. cat >>conftest.$ac_ext <<_ACEOF
  1946. /* end confdefs.h. */
  1947. #include <stdlib.h>
  1948. $ac_declaration
  1949. int
  1950. main ()
  1951. {
  1952. exit (42);
  1953. ;
  1954. return 0;
  1955. }
  1956. _ACEOF
  1957. rm -f conftest.$ac_objext
  1958. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1959. (eval $ac_compile) 2>&5
  1960. ac_status=$?
  1961. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1962. (exit $ac_status); } &&
  1963. { ac_try='test -s conftest.$ac_objext'
  1964. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1965. (eval $ac_try) 2>&5
  1966. ac_status=$?
  1967. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1968. (exit $ac_status); }; }; then
  1969. :
  1970. else
  1971. echo "$as_me: failed program was:" >&5
  1972. sed 's/^/| /' conftest.$ac_ext >&5
  1973. continue
  1974. fi
  1975. rm -f conftest.$ac_objext conftest.$ac_ext
  1976. cat >conftest.$ac_ext <<_ACEOF
  1977. #line $LINENO "configure"
  1978. /* confdefs.h. */
  1979. _ACEOF
  1980. cat confdefs.h >>conftest.$ac_ext
  1981. cat >>conftest.$ac_ext <<_ACEOF
  1982. /* end confdefs.h. */
  1983. $ac_declaration
  1984. int
  1985. main ()
  1986. {
  1987. exit (42);
  1988. ;
  1989. return 0;
  1990. }
  1991. _ACEOF
  1992. rm -f conftest.$ac_objext
  1993. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1994. (eval $ac_compile) 2>&5
  1995. ac_status=$?
  1996. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1997. (exit $ac_status); } &&
  1998. { ac_try='test -s conftest.$ac_objext'
  1999. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2000. (eval $ac_try) 2>&5
  2001. ac_status=$?
  2002. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2003. (exit $ac_status); }; }; then
  2004. break
  2005. else
  2006. echo "$as_me: failed program was:" >&5
  2007. sed 's/^/| /' conftest.$ac_ext >&5
  2008. fi
  2009. rm -f conftest.$ac_objext conftest.$ac_ext
  2010. done
  2011. rm -f conftest*
  2012. if test -n "$ac_declaration"; then
  2013. echo '#ifdef __cplusplus' >>confdefs.h
  2014. echo $ac_declaration >>confdefs.h
  2015. echo '#endif' >>confdefs.h
  2016. fi
  2017. ac_ext=c
  2018. ac_cpp='$CPP $CPPFLAGS'
  2019. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2020. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2021. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2022. ac_ext=c
  2023. ac_cpp='$CPP $CPPFLAGS'
  2024. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2025. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2026. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2027. if test -n "$ac_tool_prefix"; then
  2028. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2029. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2030. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2031. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2032. if test "${ac_cv_prog_CC+set}" = set; then
  2033. echo $ECHO_N "(cached) $ECHO_C" >&6
  2034. else
  2035. if test -n "$CC"; then
  2036. ac_cv_prog_CC="$CC" # Let the user override the test.
  2037. else
  2038. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2039. for as_dir in $PATH
  2040. do
  2041. IFS=$as_save_IFS
  2042. test -z "$as_dir" && as_dir=.
  2043. for ac_exec_ext in '' $ac_executable_extensions; do
  2044. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2045. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2046. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2047. break 2
  2048. fi
  2049. done
  2050. done
  2051. fi
  2052. fi
  2053. CC=$ac_cv_prog_CC
  2054. if test -n "$CC"; then
  2055. echo "$as_me:$LINENO: result: $CC" >&5
  2056. echo "${ECHO_T}$CC" >&6
  2057. else
  2058. echo "$as_me:$LINENO: result: no" >&5
  2059. echo "${ECHO_T}no" >&6
  2060. fi
  2061. fi
  2062. if test -z "$ac_cv_prog_CC"; then
  2063. ac_ct_CC=$CC
  2064. # Extract the first word of "gcc", so it can be a program name with args.
  2065. set dummy gcc; ac_word=$2
  2066. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2067. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2068. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2069. echo $ECHO_N "(cached) $ECHO_C" >&6
  2070. else
  2071. if test -n "$ac_ct_CC"; then
  2072. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2073. else
  2074. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2075. for as_dir in $PATH
  2076. do
  2077. IFS=$as_save_IFS
  2078. test -z "$as_dir" && as_dir=.
  2079. for ac_exec_ext in '' $ac_executable_extensions; do
  2080. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2081. ac_cv_prog_ac_ct_CC="gcc"
  2082. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2083. break 2
  2084. fi
  2085. done
  2086. done
  2087. fi
  2088. fi
  2089. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2090. if test -n "$ac_ct_CC"; then
  2091. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2092. echo "${ECHO_T}$ac_ct_CC" >&6
  2093. else
  2094. echo "$as_me:$LINENO: result: no" >&5
  2095. echo "${ECHO_T}no" >&6
  2096. fi
  2097. CC=$ac_ct_CC
  2098. else
  2099. CC="$ac_cv_prog_CC"
  2100. fi
  2101. if test -z "$CC"; then
  2102. if test -n "$ac_tool_prefix"; then
  2103. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2104. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2105. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2106. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2107. if test "${ac_cv_prog_CC+set}" = set; then
  2108. echo $ECHO_N "(cached) $ECHO_C" >&6
  2109. else
  2110. if test -n "$CC"; then
  2111. ac_cv_prog_CC="$CC" # Let the user override the test.
  2112. else
  2113. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2114. for as_dir in $PATH
  2115. do
  2116. IFS=$as_save_IFS
  2117. test -z "$as_dir" && as_dir=.
  2118. for ac_exec_ext in '' $ac_executable_extensions; do
  2119. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2120. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2121. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2122. break 2
  2123. fi
  2124. done
  2125. done
  2126. fi
  2127. fi
  2128. CC=$ac_cv_prog_CC
  2129. if test -n "$CC"; then
  2130. echo "$as_me:$LINENO: result: $CC" >&5
  2131. echo "${ECHO_T}$CC" >&6
  2132. else
  2133. echo "$as_me:$LINENO: result: no" >&5
  2134. echo "${ECHO_T}no" >&6
  2135. fi
  2136. fi
  2137. if test -z "$ac_cv_prog_CC"; then
  2138. ac_ct_CC=$CC
  2139. # Extract the first word of "cc", so it can be a program name with args.
  2140. set dummy cc; ac_word=$2
  2141. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2142. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2143. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2144. echo $ECHO_N "(cached) $ECHO_C" >&6
  2145. else
  2146. if test -n "$ac_ct_CC"; then
  2147. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2148. else
  2149. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2150. for as_dir in $PATH
  2151. do
  2152. IFS=$as_save_IFS
  2153. test -z "$as_dir" && as_dir=.
  2154. for ac_exec_ext in '' $ac_executable_extensions; do
  2155. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2156. ac_cv_prog_ac_ct_CC="cc"
  2157. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2158. break 2
  2159. fi
  2160. done
  2161. done
  2162. fi
  2163. fi
  2164. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2165. if test -n "$ac_ct_CC"; then
  2166. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2167. echo "${ECHO_T}$ac_ct_CC" >&6
  2168. else
  2169. echo "$as_me:$LINENO: result: no" >&5
  2170. echo "${ECHO_T}no" >&6
  2171. fi
  2172. CC=$ac_ct_CC
  2173. else
  2174. CC="$ac_cv_prog_CC"
  2175. fi
  2176. fi
  2177. if test -z "$CC"; then
  2178. # Extract the first word of "cc", so it can be a program name with args.
  2179. set dummy cc; ac_word=$2
  2180. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2181. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2182. if test "${ac_cv_prog_CC+set}" = set; then
  2183. echo $ECHO_N "(cached) $ECHO_C" >&6
  2184. else
  2185. if test -n "$CC"; then
  2186. ac_cv_prog_CC="$CC" # Let the user override the test.
  2187. else
  2188. ac_prog_rejected=no
  2189. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2190. for as_dir in $PATH
  2191. do
  2192. IFS=$as_save_IFS
  2193. test -z "$as_dir" && as_dir=.
  2194. for ac_exec_ext in '' $ac_executable_extensions; do
  2195. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2196. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2197. ac_prog_rejected=yes
  2198. continue
  2199. fi
  2200. ac_cv_prog_CC="cc"
  2201. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2202. break 2
  2203. fi
  2204. done
  2205. done
  2206. if test $ac_prog_rejected = yes; then
  2207. # We found a bogon in the path, so make sure we never use it.
  2208. set dummy $ac_cv_prog_CC
  2209. shift
  2210. if test $# != 0; then
  2211. # We chose a different compiler from the bogus one.
  2212. # However, it has the same basename, so the bogon will be chosen
  2213. # first if we set CC to just the basename; use the full file name.
  2214. shift
  2215. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2216. fi
  2217. fi
  2218. fi
  2219. fi
  2220. CC=$ac_cv_prog_CC
  2221. if test -n "$CC"; then
  2222. echo "$as_me:$LINENO: result: $CC" >&5
  2223. echo "${ECHO_T}$CC" >&6
  2224. else
  2225. echo "$as_me:$LINENO: result: no" >&5
  2226. echo "${ECHO_T}no" >&6
  2227. fi
  2228. fi
  2229. if test -z "$CC"; then
  2230. if test -n "$ac_tool_prefix"; then
  2231. for ac_prog in cl
  2232. do
  2233. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2234. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2235. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2236. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2237. if test "${ac_cv_prog_CC+set}" = set; then
  2238. echo $ECHO_N "(cached) $ECHO_C" >&6
  2239. else
  2240. if test -n "$CC"; then
  2241. ac_cv_prog_CC="$CC" # Let the user override the test.
  2242. else
  2243. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2244. for as_dir in $PATH
  2245. do
  2246. IFS=$as_save_IFS
  2247. test -z "$as_dir" && as_dir=.
  2248. for ac_exec_ext in '' $ac_executable_extensions; do
  2249. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2250. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2251. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2252. break 2
  2253. fi
  2254. done
  2255. done
  2256. fi
  2257. fi
  2258. CC=$ac_cv_prog_CC
  2259. if test -n "$CC"; then
  2260. echo "$as_me:$LINENO: result: $CC" >&5
  2261. echo "${ECHO_T}$CC" >&6
  2262. else
  2263. echo "$as_me:$LINENO: result: no" >&5
  2264. echo "${ECHO_T}no" >&6
  2265. fi
  2266. test -n "$CC" && break
  2267. done
  2268. fi
  2269. if test -z "$CC"; then
  2270. ac_ct_CC=$CC
  2271. for ac_prog in cl
  2272. do
  2273. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2274. set dummy $ac_prog; ac_word=$2
  2275. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2276. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2277. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2278. echo $ECHO_N "(cached) $ECHO_C" >&6
  2279. else
  2280. if test -n "$ac_ct_CC"; then
  2281. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2282. else
  2283. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2284. for as_dir in $PATH
  2285. do
  2286. IFS=$as_save_IFS
  2287. test -z "$as_dir" && as_dir=.
  2288. for ac_exec_ext in '' $ac_executable_extensions; do
  2289. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2290. ac_cv_prog_ac_ct_CC="$ac_prog"
  2291. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2292. break 2
  2293. fi
  2294. done
  2295. done
  2296. fi
  2297. fi
  2298. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2299. if test -n "$ac_ct_CC"; then
  2300. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2301. echo "${ECHO_T}$ac_ct_CC" >&6
  2302. else
  2303. echo "$as_me:$LINENO: result: no" >&5
  2304. echo "${ECHO_T}no" >&6
  2305. fi
  2306. test -n "$ac_ct_CC" && break
  2307. done
  2308. CC=$ac_ct_CC
  2309. fi
  2310. fi
  2311. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2312. See \`config.log' for more details." >&5
  2313. echo "$as_me: error: no acceptable C compiler found in \$PATH
  2314. See \`config.log' for more details." >&2;}
  2315. { (exit 1); exit 1; }; }
  2316. # Provide some information about the compiler.
  2317. echo "$as_me:$LINENO:" \
  2318. "checking for C compiler version" >&5
  2319. ac_compiler=`set X $ac_compile; echo $2`
  2320. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  2321. (eval $ac_compiler --version </dev/null >&5) 2>&5
  2322. ac_status=$?
  2323. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2324. (exit $ac_status); }
  2325. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  2326. (eval $ac_compiler -v </dev/null >&5) 2>&5
  2327. ac_status=$?
  2328. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2329. (exit $ac_status); }
  2330. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  2331. (eval $ac_compiler -V </dev/null >&5) 2>&5
  2332. ac_status=$?
  2333. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2334. (exit $ac_status); }
  2335. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2336. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  2337. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2338. echo $ECHO_N "(cached) $ECHO_C" >&6
  2339. else
  2340. cat >conftest.$ac_ext <<_ACEOF
  2341. #line $LINENO "configure"
  2342. /* confdefs.h. */
  2343. _ACEOF
  2344. cat confdefs.h >>conftest.$ac_ext
  2345. cat >>conftest.$ac_ext <<_ACEOF
  2346. /* end confdefs.h. */
  2347. int
  2348. main ()
  2349. {
  2350. #ifndef __GNUC__
  2351. choke me
  2352. #endif
  2353. ;
  2354. return 0;
  2355. }
  2356. _ACEOF
  2357. rm -f conftest.$ac_objext
  2358. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2359. (eval $ac_compile) 2>&5
  2360. ac_status=$?
  2361. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2362. (exit $ac_status); } &&
  2363. { ac_try='test -s conftest.$ac_objext'
  2364. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2365. (eval $ac_try) 2>&5
  2366. ac_status=$?
  2367. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2368. (exit $ac_status); }; }; then
  2369. ac_compiler_gnu=yes
  2370. else
  2371. echo "$as_me: failed program was:" >&5
  2372. sed 's/^/| /' conftest.$ac_ext >&5
  2373. ac_compiler_gnu=no
  2374. fi
  2375. rm -f conftest.$ac_objext conftest.$ac_ext
  2376. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2377. fi
  2378. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2379. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  2380. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2381. ac_test_CFLAGS=${CFLAGS+set}
  2382. ac_save_CFLAGS=$CFLAGS
  2383. CFLAGS="-g"
  2384. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2385. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  2386. if test "${ac_cv_prog_cc_g+set}" = set; then
  2387. echo $ECHO_N "(cached) $ECHO_C" >&6
  2388. else
  2389. cat >conftest.$ac_ext <<_ACEOF
  2390. #line $LINENO "configure"
  2391. /* confdefs.h. */
  2392. _ACEOF
  2393. cat confdefs.h >>conftest.$ac_ext
  2394. cat >>conftest.$ac_ext <<_ACEOF
  2395. /* end confdefs.h. */
  2396. int
  2397. main ()
  2398. {
  2399. ;
  2400. return 0;
  2401. }
  2402. _ACEOF
  2403. rm -f conftest.$ac_objext
  2404. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2405. (eval $ac_compile) 2>&5
  2406. ac_status=$?
  2407. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2408. (exit $ac_status); } &&
  2409. { ac_try='test -s conftest.$ac_objext'
  2410. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2411. (eval $ac_try) 2>&5
  2412. ac_status=$?
  2413. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2414. (exit $ac_status); }; }; then
  2415. ac_cv_prog_cc_g=yes
  2416. else
  2417. echo "$as_me: failed program was:" >&5
  2418. sed 's/^/| /' conftest.$ac_ext >&5
  2419. ac_cv_prog_cc_g=no
  2420. fi
  2421. rm -f conftest.$ac_objext conftest.$ac_ext
  2422. fi
  2423. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2424. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  2425. if test "$ac_test_CFLAGS" = set; then
  2426. CFLAGS=$ac_save_CFLAGS
  2427. elif test $ac_cv_prog_cc_g = yes; then
  2428. if test "$GCC" = yes; then
  2429. CFLAGS="-g -O2"
  2430. else
  2431. CFLAGS="-g"
  2432. fi
  2433. else
  2434. if test "$GCC" = yes; then
  2435. CFLAGS="-O2"
  2436. else
  2437. CFLAGS=
  2438. fi
  2439. fi
  2440. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  2441. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  2442. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  2443. echo $ECHO_N "(cached) $ECHO_C" >&6
  2444. else
  2445. ac_cv_prog_cc_stdc=no
  2446. ac_save_CC=$CC
  2447. cat >conftest.$ac_ext <<_ACEOF
  2448. #line $LINENO "configure"
  2449. /* confdefs.h. */
  2450. _ACEOF
  2451. cat confdefs.h >>conftest.$ac_ext
  2452. cat >>conftest.$ac_ext <<_ACEOF
  2453. /* end confdefs.h. */
  2454. #include <stdarg.h>
  2455. #include <stdio.h>
  2456. #include <sys/types.h>
  2457. #include <sys/stat.h>
  2458. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2459. struct buf { int x; };
  2460. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2461. static char *e (p, i)
  2462. char **p;
  2463. int i;
  2464. {
  2465. return p[i];
  2466. }
  2467. static char *f (char * (*g) (char **, int), char **p, ...)
  2468. {
  2469. char *s;
  2470. va_list v;
  2471. va_start (v,p);
  2472. s = g (p, va_arg (v,int));
  2473. va_end (v);
  2474. return s;
  2475. }
  2476. int test (int i, double x);
  2477. struct s1 {int (*f) (int a);};
  2478. struct s2 {int (*f) (double a);};
  2479. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2480. int argc;
  2481. char **argv;
  2482. int
  2483. main ()
  2484. {
  2485. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2486. ;
  2487. return 0;
  2488. }
  2489. _ACEOF
  2490. # Don't try gcc -ansi; that turns off useful extensions and
  2491. # breaks some systems' header files.
  2492. # AIX -qlanglvl=ansi
  2493. # Ultrix and OSF/1 -std1
  2494. # HP-UX 10.20 and later -Ae
  2495. # HP-UX older versions -Aa -D_HPUX_SOURCE
  2496. # SVR4 -Xc -D__EXTENSIONS__
  2497. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2498. do
  2499. CC="$ac_save_CC $ac_arg"
  2500. rm -f conftest.$ac_objext
  2501. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2502. (eval $ac_compile) 2>&5
  2503. ac_status=$?
  2504. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2505. (exit $ac_status); } &&
  2506. { ac_try='test -s conftest.$ac_objext'
  2507. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2508. (eval $ac_try) 2>&5
  2509. ac_status=$?
  2510. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2511. (exit $ac_status); }; }; then
  2512. ac_cv_prog_cc_stdc=$ac_arg
  2513. break
  2514. else
  2515. echo "$as_me: failed program was:" >&5
  2516. sed 's/^/| /' conftest.$ac_ext >&5
  2517. fi
  2518. rm -f conftest.$ac_objext
  2519. done
  2520. rm -f conftest.$ac_ext conftest.$ac_objext
  2521. CC=$ac_save_CC
  2522. fi
  2523. case "x$ac_cv_prog_cc_stdc" in
  2524. x|xno)
  2525. echo "$as_me:$LINENO: result: none needed" >&5
  2526. echo "${ECHO_T}none needed" >&6 ;;
  2527. *)
  2528. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  2529. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  2530. CC="$CC $ac_cv_prog_cc_stdc" ;;
  2531. esac
  2532. # Some people use a C++ compiler to compile C. Since we use `exit',
  2533. # in C++ we need to declare it. In case someone uses the same compiler
  2534. # for both compiling C and C++ we need to have the C++ compiler decide
  2535. # the declaration of exit, since it's the most demanding environment.
  2536. cat >conftest.$ac_ext <<_ACEOF
  2537. #ifndef __cplusplus
  2538. choke me
  2539. #endif
  2540. _ACEOF
  2541. rm -f conftest.$ac_objext
  2542. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2543. (eval $ac_compile) 2>&5
  2544. ac_status=$?
  2545. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2546. (exit $ac_status); } &&
  2547. { ac_try='test -s conftest.$ac_objext'
  2548. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2549. (eval $ac_try) 2>&5
  2550. ac_status=$?
  2551. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2552. (exit $ac_status); }; }; then
  2553. for ac_declaration in \
  2554. ''\
  2555. '#include <stdlib.h>' \
  2556. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2557. 'extern "C" void std::exit (int); using std::exit;' \
  2558. 'extern "C" void exit (int) throw ();' \
  2559. 'extern "C" void exit (int);' \
  2560. 'void exit (int);'
  2561. do
  2562. cat >conftest.$ac_ext <<_ACEOF
  2563. #line $LINENO "configure"
  2564. /* confdefs.h. */
  2565. _ACEOF
  2566. cat confdefs.h >>conftest.$ac_ext
  2567. cat >>conftest.$ac_ext <<_ACEOF
  2568. /* end confdefs.h. */
  2569. #include <stdlib.h>
  2570. $ac_declaration
  2571. int
  2572. main ()
  2573. {
  2574. exit (42);
  2575. ;
  2576. return 0;
  2577. }
  2578. _ACEOF
  2579. rm -f conftest.$ac_objext
  2580. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2581. (eval $ac_compile) 2>&5
  2582. ac_status=$?
  2583. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2584. (exit $ac_status); } &&
  2585. { ac_try='test -s conftest.$ac_objext'
  2586. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2587. (eval $ac_try) 2>&5
  2588. ac_status=$?
  2589. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2590. (exit $ac_status); }; }; then
  2591. :
  2592. else
  2593. echo "$as_me: failed program was:" >&5
  2594. sed 's/^/| /' conftest.$ac_ext >&5
  2595. continue
  2596. fi
  2597. rm -f conftest.$ac_objext conftest.$ac_ext
  2598. cat >conftest.$ac_ext <<_ACEOF
  2599. #line $LINENO "configure"
  2600. /* confdefs.h. */
  2601. _ACEOF
  2602. cat confdefs.h >>conftest.$ac_ext
  2603. cat >>conftest.$ac_ext <<_ACEOF
  2604. /* end confdefs.h. */
  2605. $ac_declaration
  2606. int
  2607. main ()
  2608. {
  2609. exit (42);
  2610. ;
  2611. return 0;
  2612. }
  2613. _ACEOF
  2614. rm -f conftest.$ac_objext
  2615. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2616. (eval $ac_compile) 2>&5
  2617. ac_status=$?
  2618. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2619. (exit $ac_status); } &&
  2620. { ac_try='test -s conftest.$ac_objext'
  2621. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2622. (eval $ac_try) 2>&5
  2623. ac_status=$?
  2624. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2625. (exit $ac_status); }; }; then
  2626. break
  2627. else
  2628. echo "$as_me: failed program was:" >&5
  2629. sed 's/^/| /' conftest.$ac_ext >&5
  2630. fi
  2631. rm -f conftest.$ac_objext conftest.$ac_ext
  2632. done
  2633. rm -f conftest*
  2634. if test -n "$ac_declaration"; then
  2635. echo '#ifdef __cplusplus' >>confdefs.h
  2636. echo $ac_declaration >>confdefs.h
  2637. echo '#endif' >>confdefs.h
  2638. fi
  2639. else
  2640. echo "$as_me: failed program was:" >&5
  2641. sed 's/^/| /' conftest.$ac_ext >&5
  2642. fi
  2643. rm -f conftest.$ac_objext conftest.$ac_ext
  2644. ac_ext=c
  2645. ac_cpp='$CPP $CPPFLAGS'
  2646. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2647. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2648. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2649. # Find a good install program. We prefer a C program (faster),
  2650. # so one script is as good as another. But avoid the broken or
  2651. # incompatible versions:
  2652. # SysV /etc/install, /usr/sbin/install
  2653. # SunOS /usr/etc/install
  2654. # IRIX /sbin/install
  2655. # AIX /bin/install
  2656. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2657. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2658. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2659. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2660. # ./install, which can be erroneously created by make from ./install.sh.
  2661. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  2662. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  2663. if test -z "$INSTALL"; then
  2664. if test "${ac_cv_path_install+set}" = set; then
  2665. echo $ECHO_N "(cached) $ECHO_C" >&6
  2666. else
  2667. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2668. for as_dir in $PATH
  2669. do
  2670. IFS=$as_save_IFS
  2671. test -z "$as_dir" && as_dir=.
  2672. # Account for people who put trailing slashes in PATH elements.
  2673. case $as_dir/ in
  2674. ./ | .// | /cC/* | \
  2675. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2676. /usr/ucb/* ) ;;
  2677. *)
  2678. # OSF1 and SCO ODT 3.0 have their own names for install.
  2679. # Don't use installbsd from OSF since it installs stuff as root
  2680. # by default.
  2681. for ac_prog in ginstall scoinst install; do
  2682. for ac_exec_ext in '' $ac_executable_extensions; do
  2683. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2684. if test $ac_prog = install &&
  2685. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2686. # AIX install. It has an incompatible calling convention.
  2687. :
  2688. elif test $ac_prog = install &&
  2689. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2690. # program-specific install script used by HP pwplus--don't use.
  2691. :
  2692. else
  2693. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2694. break 3
  2695. fi
  2696. fi
  2697. done
  2698. done
  2699. ;;
  2700. esac
  2701. done
  2702. fi
  2703. if test "${ac_cv_path_install+set}" = set; then
  2704. INSTALL=$ac_cv_path_install
  2705. else
  2706. # As a last resort, use the slow shell script. We don't cache a
  2707. # path for INSTALL within a source directory, because that will
  2708. # break other packages using the cache if that directory is
  2709. # removed, or if the path is relative.
  2710. INSTALL=$ac_install_sh
  2711. fi
  2712. fi
  2713. echo "$as_me:$LINENO: result: $INSTALL" >&5
  2714. echo "${ECHO_T}$INSTALL" >&6
  2715. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2716. # It thinks the first close brace ends the variable substitution.
  2717. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2718. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2719. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2720. echo "$as_me:$LINENO: checking whether ln -s works" >&5
  2721. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
  2722. LN_S=$as_ln_s
  2723. if test "$LN_S" = "ln -s"; then
  2724. echo "$as_me:$LINENO: result: yes" >&5
  2725. echo "${ECHO_T}yes" >&6
  2726. else
  2727. echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  2728. echo "${ECHO_T}no, using $LN_S" >&6
  2729. fi
  2730. # Check whether --enable-shared or --disable-shared was given.
  2731. if test "${enable_shared+set}" = set; then
  2732. enableval="$enable_shared"
  2733. p=${PACKAGE-default}
  2734. case $enableval in
  2735. yes) enable_shared=yes ;;
  2736. no) enable_shared=no ;;
  2737. *)
  2738. enable_shared=no
  2739. # Look at the argument we got. We use all the common list separators.
  2740. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  2741. for pkg in $enableval; do
  2742. if test "X$pkg" = "X$p"; then
  2743. enable_shared=yes
  2744. fi
  2745. done
  2746. IFS="$ac_save_ifs"
  2747. ;;
  2748. esac
  2749. else
  2750. enable_shared=yes
  2751. fi;
  2752. # Check whether --enable-static or --disable-static was given.
  2753. if test "${enable_static+set}" = set; then
  2754. enableval="$enable_static"
  2755. p=${PACKAGE-default}
  2756. case $enableval in
  2757. yes) enable_static=yes ;;
  2758. no) enable_static=no ;;
  2759. *)
  2760. enable_static=no
  2761. # Look at the argument we got. We use all the common list separators.
  2762. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  2763. for pkg in $enableval; do
  2764. if test "X$pkg" = "X$p"; then
  2765. enable_static=yes
  2766. fi
  2767. done
  2768. IFS="$ac_save_ifs"
  2769. ;;
  2770. esac
  2771. else
  2772. enable_static=yes
  2773. fi;
  2774. # Check whether --enable-fast-install or --disable-fast-install was given.
  2775. if test "${enable_fast_install+set}" = set; then
  2776. enableval="$enable_fast_install"
  2777. p=${PACKAGE-default}
  2778. case $enableval in
  2779. yes) enable_fast_install=yes ;;
  2780. no) enable_fast_install=no ;;
  2781. *)
  2782. enable_fast_install=no
  2783. # Look at the argument we got. We use all the common list separators.
  2784. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  2785. for pkg in $enableval; do
  2786. if test "X$pkg" = "X$p"; then
  2787. enable_fast_install=yes
  2788. fi
  2789. done
  2790. IFS="$ac_save_ifs"
  2791. ;;
  2792. esac
  2793. else
  2794. enable_fast_install=yes
  2795. fi;
  2796. # Make sure we can run config.sub.
  2797. $ac_config_sub sun4 >/dev/null 2>&1 ||
  2798. { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
  2799. echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  2800. { (exit 1); exit 1; }; }
  2801. echo "$as_me:$LINENO: checking build system type" >&5
  2802. echo $ECHO_N "checking build system type... $ECHO_C" >&6
  2803. if test "${ac_cv_build+set}" = set; then
  2804. echo $ECHO_N "(cached) $ECHO_C" >&6
  2805. else
  2806. ac_cv_build_alias=$build_alias
  2807. test -z "$ac_cv_build_alias" &&
  2808. ac_cv_build_alias=`$ac_config_guess`
  2809. test -z "$ac_cv_build_alias" &&
  2810. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  2811. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  2812. { (exit 1); exit 1; }; }
  2813. ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  2814. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
  2815. echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
  2816. { (exit 1); exit 1; }; }
  2817. fi
  2818. echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  2819. echo "${ECHO_T}$ac_cv_build" >&6
  2820. build=$ac_cv_build
  2821. build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  2822. build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  2823. build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  2824. echo "$as_me:$LINENO: checking host system type" >&5
  2825. echo $ECHO_N "checking host system type... $ECHO_C" >&6
  2826. if test "${ac_cv_host+set}" = set; then
  2827. echo $ECHO_N "(cached) $ECHO_C" >&6
  2828. else
  2829. ac_cv_host_alias=$host_alias
  2830. test -z "$ac_cv_host_alias" &&
  2831. ac_cv_host_alias=$ac_cv_build_alias
  2832. ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  2833. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  2834. echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  2835. { (exit 1); exit 1; }; }
  2836. fi
  2837. echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  2838. echo "${ECHO_T}$ac_cv_host" >&6
  2839. host=$ac_cv_host
  2840. host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  2841. host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  2842. host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  2843. # Find the correct PATH separator. Usually this is `:', but
  2844. # DJGPP uses `;' like DOS.
  2845. if test "X${PATH_SEPARATOR+set}" != Xset; then
  2846. UNAME=${UNAME-`uname 2>/dev/null`}
  2847. case X$UNAME in
  2848. *-DOS) lt_cv_sys_path_separator=';' ;;
  2849. *) lt_cv_sys_path_separator=':' ;;
  2850. esac
  2851. PATH_SEPARATOR=$lt_cv_sys_path_separator
  2852. fi
  2853. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  2854. if test "${with_gnu_ld+set}" = set; then
  2855. withval="$with_gnu_ld"
  2856. test "$withval" = no || with_gnu_ld=yes
  2857. else
  2858. with_gnu_ld=no
  2859. fi;
  2860. ac_prog=ld
  2861. if test "$GCC" = yes; then
  2862. # Check if gcc -print-prog-name=ld gives a path.
  2863. echo "$as_me:$LINENO: checking for ld used by GCC" >&5
  2864. echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
  2865. case $host in
  2866. *-*-mingw*)
  2867. # gcc leaves a trailing carriage return which upsets mingw
  2868. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  2869. *)
  2870. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  2871. esac
  2872. case $ac_prog in
  2873. # Accept absolute paths.
  2874. [\\/]* | [A-Za-z]:[\\/]*)
  2875. re_direlt='/[^/][^/]*/\.\./'
  2876. # Canonicalize the path of ld
  2877. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  2878. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  2879. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  2880. done
  2881. test -z "$LD" && LD="$ac_prog"
  2882. ;;
  2883. "")
  2884. # If it fails, then pretend we aren't using GCC.
  2885. ac_prog=ld
  2886. ;;
  2887. *)
  2888. # If it is relative, then search for the first ld in PATH.
  2889. with_gnu_ld=unknown
  2890. ;;
  2891. esac
  2892. elif test "$with_gnu_ld" = yes; then
  2893. echo "$as_me:$LINENO: checking for GNU ld" >&5
  2894. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  2895. else
  2896. echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  2897. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  2898. fi
  2899. if test "${lt_cv_path_LD+set}" = set; then
  2900. echo $ECHO_N "(cached) $ECHO_C" >&6
  2901. else
  2902. if test -z "$LD"; then
  2903. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2904. for ac_dir in $PATH; do
  2905. test -z "$ac_dir" && ac_dir=.
  2906. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  2907. lt_cv_path_LD="$ac_dir/$ac_prog"
  2908. # Check to see if the program is GNU ld. I'd rather use --version,
  2909. # but apparently some GNU ld's only accept -v.
  2910. # Break only if it was the GNU/non-GNU ld that we prefer.
  2911. if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  2912. test "$with_gnu_ld" != no && break
  2913. else
  2914. test "$with_gnu_ld" != yes && break
  2915. fi
  2916. fi
  2917. done
  2918. IFS="$ac_save_ifs"
  2919. else
  2920. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  2921. fi
  2922. fi
  2923. LD="$lt_cv_path_LD"
  2924. if test -n "$LD"; then
  2925. echo "$as_me:$LINENO: result: $LD" >&5
  2926. echo "${ECHO_T}$LD" >&6
  2927. else
  2928. echo "$as_me:$LINENO: result: no" >&5
  2929. echo "${ECHO_T}no" >&6
  2930. fi
  2931. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  2932. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  2933. { (exit 1); exit 1; }; }
  2934. echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  2935. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  2936. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  2937. echo $ECHO_N "(cached) $ECHO_C" >&6
  2938. else
  2939. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  2940. if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  2941. lt_cv_prog_gnu_ld=yes
  2942. else
  2943. lt_cv_prog_gnu_ld=no
  2944. fi
  2945. fi
  2946. echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  2947. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  2948. with_gnu_ld=$lt_cv_prog_gnu_ld
  2949. echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  2950. echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
  2951. if test "${lt_cv_ld_reload_flag+set}" = set; then
  2952. echo $ECHO_N "(cached) $ECHO_C" >&6
  2953. else
  2954. lt_cv_ld_reload_flag='-r'
  2955. fi
  2956. echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  2957. echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
  2958. reload_flag=$lt_cv_ld_reload_flag
  2959. test -n "$reload_flag" && reload_flag=" $reload_flag"
  2960. echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  2961. echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
  2962. if test "${lt_cv_path_NM+set}" = set; then
  2963. echo $ECHO_N "(cached) $ECHO_C" >&6
  2964. else
  2965. if test -n "$NM"; then
  2966. # Let the user override the test.
  2967. lt_cv_path_NM="$NM"
  2968. else
  2969. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2970. for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  2971. test -z "$ac_dir" && ac_dir=.
  2972. tmp_nm=$ac_dir/${ac_tool_prefix}nm
  2973. if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
  2974. # Check to see if the nm accepts a BSD-compat flag.
  2975. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  2976. # nm: unknown option "B" ignored
  2977. # Tru64's nm complains that /dev/null is an invalid object file
  2978. if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
  2979. lt_cv_path_NM="$tmp_nm -B"
  2980. break
  2981. elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
  2982. lt_cv_path_NM="$tmp_nm -p"
  2983. break
  2984. else
  2985. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  2986. continue # so that we can try to find one that supports BSD flags
  2987. fi
  2988. fi
  2989. done
  2990. IFS="$ac_save_ifs"
  2991. test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  2992. fi
  2993. fi
  2994. NM="$lt_cv_path_NM"
  2995. echo "$as_me:$LINENO: result: $NM" >&5
  2996. echo "${ECHO_T}$NM" >&6
  2997. echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  2998. echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
  2999. if test "${lt_cv_path_SED+set}" = set; then
  3000. echo $ECHO_N "(cached) $ECHO_C" >&6
  3001. else
  3002. # Loop through the user's path and test for sed and gsed.
  3003. # Then use that list of sed's as ones to test for truncation.
  3004. as_executable_p="test -f"
  3005. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3006. for as_dir in $PATH
  3007. do
  3008. IFS=$as_save_IFS
  3009. test -z "$as_dir" && as_dir=.
  3010. for ac_prog in sed gsed; do
  3011. for ac_exec_ext in '' $ac_executable_extensions; do
  3012. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  3013. _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
  3014. fi
  3015. done
  3016. done
  3017. done
  3018. # Create a temporary directory, and hook for its removal unless debugging.
  3019. $debug ||
  3020. {
  3021. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  3022. trap '{ (exit 1); exit 1; }' 1 2 13 15
  3023. }
  3024. # Create a (secure) tmp directory for tmp files.
  3025. : ${TMPDIR=/tmp}
  3026. {
  3027. tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
  3028. test -n "$tmp" && test -d "$tmp"
  3029. } ||
  3030. {
  3031. tmp=$TMPDIR/sed$$-$RANDOM
  3032. (umask 077 && mkdir $tmp)
  3033. } ||
  3034. {
  3035. echo "$me: cannot create a temporary directory in $TMPDIR" >&2
  3036. { (exit 1); exit 1; }
  3037. }
  3038. _max=0
  3039. _count=0
  3040. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  3041. # along with /bin/sed that truncates output.
  3042. for _sed in $_sed_list /usr/xpg4/bin/sed; do
  3043. test ! -f ${_sed} && break
  3044. cat /dev/null > "$tmp/sed.in"
  3045. _count=0
  3046. echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
  3047. # Check for GNU sed and select it if it is found.
  3048. if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
  3049. lt_cv_path_SED=${_sed}
  3050. break
  3051. fi
  3052. while true; do
  3053. cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
  3054. mv "$tmp/sed.tmp" "$tmp/sed.in"
  3055. cp "$tmp/sed.in" "$tmp/sed.nl"
  3056. echo >>"$tmp/sed.nl"
  3057. ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
  3058. cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
  3059. # 40000 chars as input seems more than enough
  3060. test $_count -gt 10 && break
  3061. _count=`expr $_count + 1`
  3062. if test $_count -gt $_max; then
  3063. _max=$_count
  3064. lt_cv_path_SED=$_sed
  3065. fi
  3066. done
  3067. done
  3068. rm -rf "$tmp"
  3069. fi
  3070. if test "X$SED" != "X"; then
  3071. lt_cv_path_SED=$SED
  3072. else
  3073. SED=$lt_cv_path_SED
  3074. fi
  3075. echo "$as_me:$LINENO: result: $SED" >&5
  3076. echo "${ECHO_T}$SED" >&6
  3077. echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
  3078. echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
  3079. if test "${lt_cv_deplibs_check_method+set}" = set; then
  3080. echo $ECHO_N "(cached) $ECHO_C" >&6
  3081. else
  3082. lt_cv_file_magic_cmd='$MAGIC_CMD'
  3083. lt_cv_file_magic_test_file=
  3084. lt_cv_deplibs_check_method='unknown'
  3085. # Need to set the preceding variable on all platforms that support
  3086. # interlibrary dependencies.
  3087. # 'none' -- dependencies not supported.
  3088. # `unknown' -- same as none, but documents that we really don't know.
  3089. # 'pass_all' -- all dependencies passed with no checks.
  3090. # 'test_compile' -- check by making test program.
  3091. # 'file_magic [[regex]]' -- check by looking for files in library path
  3092. # which responds to the $file_magic_cmd with a given egrep regex.
  3093. # If you have `file' or equivalent on your system and you're not sure
  3094. # whether `pass_all' will *always* work, you probably want this one.
  3095. case $host_os in
  3096. aix4* | aix5*)
  3097. lt_cv_deplibs_check_method=pass_all
  3098. ;;
  3099. beos*)
  3100. lt_cv_deplibs_check_method=pass_all
  3101. ;;
  3102. bsdi4*)
  3103. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  3104. lt_cv_file_magic_cmd='/usr/bin/file -L'
  3105. lt_cv_file_magic_test_file=/shlib/libc.so
  3106. ;;
  3107. cygwin* | mingw* | pw32*)
  3108. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  3109. lt_cv_file_magic_cmd='$OBJDUMP -f'
  3110. ;;
  3111. darwin* | rhapsody*)
  3112. lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
  3113. lt_cv_file_magic_cmd='/usr/bin/file -L'
  3114. case "$host_os" in
  3115. rhapsody* | darwin1.[012])
  3116. lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
  3117. ;;
  3118. *) # Darwin 1.3 on
  3119. lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
  3120. ;;
  3121. esac
  3122. ;;
  3123. freebsd*)
  3124. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3125. case $host_cpu in
  3126. i*86 )
  3127. # Not sure whether the presence of OpenBSD here was a mistake.
  3128. # Let's accept both of them until this is cleared up.
  3129. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
  3130. lt_cv_file_magic_cmd=/usr/bin/file
  3131. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  3132. ;;
  3133. esac
  3134. else
  3135. lt_cv_deplibs_check_method=pass_all
  3136. fi
  3137. ;;
  3138. gnu*)
  3139. lt_cv_deplibs_check_method=pass_all
  3140. ;;
  3141. hpux10.20*|hpux11*)
  3142. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  3143. lt_cv_file_magic_cmd=/usr/bin/file
  3144. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  3145. ;;
  3146. irix5* | irix6* | nonstopux*)
  3147. case $host_os in
  3148. irix5* | nonstopux*)
  3149. # this will be overridden with pass_all, but let us keep it just in case
  3150. lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
  3151. ;;
  3152. *)
  3153. case $LD in
  3154. *-32|*"-32 ") libmagic=32-bit;;
  3155. *-n32|*"-n32 ") libmagic=N32;;
  3156. *-64|*"-64 ") libmagic=64-bit;;
  3157. *) libmagic=never-match;;
  3158. esac
  3159. # this will be overridden with pass_all, but let us keep it just in case
  3160. lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
  3161. ;;
  3162. esac
  3163. lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
  3164. lt_cv_deplibs_check_method=pass_all
  3165. ;;
  3166. # This must be Linux ELF.
  3167. linux-gnu*)
  3168. case $host_cpu in
  3169. alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | x86_64*)
  3170. lt_cv_deplibs_check_method=pass_all ;;
  3171. *)
  3172. # glibc up to 2.1.1 does not perform some relocations on ARM
  3173. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
  3174. esac
  3175. lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
  3176. ;;
  3177. netbsd*)
  3178. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3179. lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
  3180. else
  3181. lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
  3182. fi
  3183. ;;
  3184. newos6*)
  3185. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  3186. lt_cv_file_magic_cmd=/usr/bin/file
  3187. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  3188. ;;
  3189. openbsd*)
  3190. lt_cv_file_magic_cmd=/usr/bin/file
  3191. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  3192. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3193. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
  3194. else
  3195. lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
  3196. fi
  3197. ;;
  3198. osf3* | osf4* | osf5*)
  3199. # this will be overridden with pass_all, but let us keep it just in case
  3200. lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
  3201. lt_cv_file_magic_test_file=/shlib/libc.so
  3202. lt_cv_deplibs_check_method=pass_all
  3203. ;;
  3204. sco3.2v5*)
  3205. lt_cv_deplibs_check_method=pass_all
  3206. ;;
  3207. solaris*)
  3208. lt_cv_deplibs_check_method=pass_all
  3209. lt_cv_file_magic_test_file=/lib/libc.so
  3210. ;;
  3211. sysv5uw[78]* | sysv4*uw2*)
  3212. lt_cv_deplibs_check_method=pass_all
  3213. ;;
  3214. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  3215. case $host_vendor in
  3216. motorola)
  3217. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
  3218. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  3219. ;;
  3220. ncr)
  3221. lt_cv_deplibs_check_method=pass_all
  3222. ;;
  3223. sequent)
  3224. lt_cv_file_magic_cmd='/bin/file'
  3225. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  3226. ;;
  3227. sni)
  3228. lt_cv_file_magic_cmd='/bin/file'
  3229. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  3230. lt_cv_file_magic_test_file=/lib/libc.so
  3231. ;;
  3232. siemens)
  3233. lt_cv_deplibs_check_method=pass_all
  3234. ;;
  3235. esac
  3236. ;;
  3237. esac
  3238. fi
  3239. echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  3240. echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
  3241. file_magic_cmd=$lt_cv_file_magic_cmd
  3242. deplibs_check_method=$lt_cv_deplibs_check_method
  3243. # Check for command to grab the raw symbol name followed by C symbol from nm.
  3244. echo "$as_me:$LINENO: checking command to parse $NM output" >&5
  3245. echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
  3246. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  3247. echo $ECHO_N "(cached) $ECHO_C" >&6
  3248. else
  3249. # These are sane defaults that work on at least a few old systems.
  3250. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  3251. # Character class describing NM global symbol codes.
  3252. symcode='[BCDEGRST]'
  3253. # Regexp to match symbols that can be accessed directly from C.
  3254. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  3255. # Transform the above into a raw symbol and a C symbol.
  3256. symxfrm='\1 \2\3 \3'
  3257. # Transform an extracted symbol line into a proper C declaration
  3258. lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
  3259. # Transform an extracted symbol line into symbol name and symbol address
  3260. lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  3261. # Define system-specific variables.
  3262. case $host_os in
  3263. aix*)
  3264. symcode='[BCDT]'
  3265. ;;
  3266. cygwin* | mingw* | pw32*)
  3267. symcode='[ABCDGISTW]'
  3268. ;;
  3269. hpux*) # Its linker distinguishes data from code symbols
  3270. lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  3271. lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  3272. ;;
  3273. irix* | nonstopux*)
  3274. symcode='[BCDEGRST]'
  3275. ;;
  3276. osf*)
  3277. symcode='[BCDEGQRST]'
  3278. ;;
  3279. solaris* | sysv5*)
  3280. symcode='[BDT]'
  3281. ;;
  3282. sysv4)
  3283. symcode='[DFNSTU]'
  3284. ;;
  3285. esac
  3286. # Handle CRLF in mingw tool chain
  3287. opt_cr=
  3288. case $host_os in
  3289. mingw*)
  3290. opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  3291. ;;
  3292. esac
  3293. # If we're using GNU nm, then use its standard symbol codes.
  3294. if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
  3295. symcode='[ABCDGISTW]'
  3296. fi
  3297. # Try without a prefix undercore, then with it.
  3298. for ac_symprfx in "" "_"; do
  3299. # Write the raw and C identifiers.
  3300. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
  3301. # Check to see that the pipe works correctly.
  3302. pipe_works=no
  3303. rm -f conftest*
  3304. cat > conftest.$ac_ext <<EOF
  3305. #ifdef __cplusplus
  3306. extern "C" {
  3307. #endif
  3308. char nm_test_var;
  3309. void nm_test_func(){}
  3310. #ifdef __cplusplus
  3311. }
  3312. #endif
  3313. int main(){nm_test_var='a';nm_test_func();return(0);}
  3314. EOF
  3315. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3316. (eval $ac_compile) 2>&5
  3317. ac_status=$?
  3318. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3319. (exit $ac_status); }; then
  3320. # Now try to grab the symbols.
  3321. nlist=conftest.nm
  3322. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  3323. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  3324. ac_status=$?
  3325. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3326. (exit $ac_status); } && test -s "$nlist"; then
  3327. # Try sorting and uniquifying the output.
  3328. if sort "$nlist" | uniq > "$nlist"T; then
  3329. mv -f "$nlist"T "$nlist"
  3330. else
  3331. rm -f "$nlist"T
  3332. fi
  3333. # Make sure that we snagged all the symbols we need.
  3334. if egrep ' nm_test_var$' "$nlist" >/dev/null; then
  3335. if egrep ' nm_test_func$' "$nlist" >/dev/null; then
  3336. cat <<EOF > conftest.$ac_ext
  3337. #ifdef __cplusplus
  3338. extern "C" {
  3339. #endif
  3340. EOF
  3341. # Now generate the symbol file.
  3342. eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
  3343. cat <<EOF >> conftest.$ac_ext
  3344. #if defined (__STDC__) && __STDC__
  3345. # define lt_ptr void *
  3346. #else
  3347. # define lt_ptr char *
  3348. # define const
  3349. #endif
  3350. /* The mapping between symbol names and symbols. */
  3351. const struct {
  3352. const char *name;
  3353. lt_ptr address;
  3354. }
  3355. lt_preloaded_symbols[] =
  3356. {
  3357. EOF
  3358. sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
  3359. cat <<\EOF >> conftest.$ac_ext
  3360. {0, (lt_ptr) 0}
  3361. };
  3362. #ifdef __cplusplus
  3363. }
  3364. #endif
  3365. EOF
  3366. # Now try linking the two files.
  3367. mv conftest.$ac_objext conftstm.$ac_objext
  3368. save_LIBS="$LIBS"
  3369. save_CFLAGS="$CFLAGS"
  3370. LIBS="conftstm.$ac_objext"
  3371. CFLAGS="$CFLAGS$no_builtin_flag"
  3372. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3373. (eval $ac_link) 2>&5
  3374. ac_status=$?
  3375. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3376. (exit $ac_status); } && test -s conftest$ac_exeext; then
  3377. pipe_works=yes
  3378. fi
  3379. LIBS="$save_LIBS"
  3380. CFLAGS="$save_CFLAGS"
  3381. else
  3382. echo "cannot find nm_test_func in $nlist" >&5
  3383. fi
  3384. else
  3385. echo "cannot find nm_test_var in $nlist" >&5
  3386. fi
  3387. else
  3388. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  3389. fi
  3390. else
  3391. echo "$progname: failed program was:" >&5
  3392. cat conftest.$ac_ext >&5
  3393. fi
  3394. rm -f conftest* conftst*
  3395. # Do not use the global_symbol_pipe unless it works.
  3396. if test "$pipe_works" = yes; then
  3397. break
  3398. else
  3399. lt_cv_sys_global_symbol_pipe=
  3400. fi
  3401. done
  3402. fi
  3403. global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
  3404. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  3405. global_symbol_to_cdecl=
  3406. global_symbol_to_c_name_address=
  3407. else
  3408. global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
  3409. global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
  3410. fi
  3411. if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
  3412. then
  3413. echo "$as_me:$LINENO: result: failed" >&5
  3414. echo "${ECHO_T}failed" >&6
  3415. else
  3416. echo "$as_me:$LINENO: result: ok" >&5
  3417. echo "${ECHO_T}ok" >&6
  3418. fi
  3419. ac_ext=c
  3420. ac_cpp='$CPP $CPPFLAGS'
  3421. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3422. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3423. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3424. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  3425. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  3426. # On Suns, sometimes $CPP names a directory.
  3427. if test -n "$CPP" && test -d "$CPP"; then
  3428. CPP=
  3429. fi
  3430. if test -z "$CPP"; then
  3431. if test "${ac_cv_prog_CPP+set}" = set; then
  3432. echo $ECHO_N "(cached) $ECHO_C" >&6
  3433. else
  3434. # Double quotes because CPP needs to be expanded
  3435. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3436. do
  3437. ac_preproc_ok=false
  3438. for ac_c_preproc_warn_flag in '' yes
  3439. do
  3440. # Use a header file that comes with gcc, so configuring glibc
  3441. # with a fresh cross-compiler works.
  3442. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3443. # <limits.h> exists even on freestanding compilers.
  3444. # On the NeXT, cc -E runs the code through the compiler's parser,
  3445. # not just through cpp. "Syntax error" is here to catch this case.
  3446. cat >conftest.$ac_ext <<_ACEOF
  3447. #line $LINENO "configure"
  3448. /* confdefs.h. */
  3449. _ACEOF
  3450. cat confdefs.h >>conftest.$ac_ext
  3451. cat >>conftest.$ac_ext <<_ACEOF
  3452. /* end confdefs.h. */
  3453. #ifdef __STDC__
  3454. # include <limits.h>
  3455. #else
  3456. # include <assert.h>
  3457. #endif
  3458. Syntax error
  3459. _ACEOF
  3460. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3461. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3462. ac_status=$?
  3463. grep -v '^ *+' conftest.er1 >conftest.err
  3464. rm -f conftest.er1
  3465. cat conftest.err >&5
  3466. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3467. (exit $ac_status); } >/dev/null; then
  3468. if test -s conftest.err; then
  3469. ac_cpp_err=$ac_c_preproc_warn_flag
  3470. else
  3471. ac_cpp_err=
  3472. fi
  3473. else
  3474. ac_cpp_err=yes
  3475. fi
  3476. if test -z "$ac_cpp_err"; then
  3477. :
  3478. else
  3479. echo "$as_me: failed program was:" >&5
  3480. sed 's/^/| /' conftest.$ac_ext >&5
  3481. # Broken: fails on valid input.
  3482. continue
  3483. fi
  3484. rm -f conftest.err conftest.$ac_ext
  3485. # OK, works on sane cases. Now check whether non-existent headers
  3486. # can be detected and how.
  3487. cat >conftest.$ac_ext <<_ACEOF
  3488. #line $LINENO "configure"
  3489. /* confdefs.h. */
  3490. _ACEOF
  3491. cat confdefs.h >>conftest.$ac_ext
  3492. cat >>conftest.$ac_ext <<_ACEOF
  3493. /* end confdefs.h. */
  3494. #include <ac_nonexistent.h>
  3495. _ACEOF
  3496. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3497. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3498. ac_status=$?
  3499. grep -v '^ *+' conftest.er1 >conftest.err
  3500. rm -f conftest.er1
  3501. cat conftest.err >&5
  3502. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3503. (exit $ac_status); } >/dev/null; then
  3504. if test -s conftest.err; then
  3505. ac_cpp_err=$ac_c_preproc_warn_flag
  3506. else
  3507. ac_cpp_err=
  3508. fi
  3509. else
  3510. ac_cpp_err=yes
  3511. fi
  3512. if test -z "$ac_cpp_err"; then
  3513. # Broken: success on invalid input.
  3514. continue
  3515. else
  3516. echo "$as_me: failed program was:" >&5
  3517. sed 's/^/| /' conftest.$ac_ext >&5
  3518. # Passes both tests.
  3519. ac_preproc_ok=:
  3520. break
  3521. fi
  3522. rm -f conftest.err conftest.$ac_ext
  3523. done
  3524. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3525. rm -f conftest.err conftest.$ac_ext
  3526. if $ac_preproc_ok; then
  3527. break
  3528. fi
  3529. done
  3530. ac_cv_prog_CPP=$CPP
  3531. fi
  3532. CPP=$ac_cv_prog_CPP
  3533. else
  3534. ac_cv_prog_CPP=$CPP
  3535. fi
  3536. echo "$as_me:$LINENO: result: $CPP" >&5
  3537. echo "${ECHO_T}$CPP" >&6
  3538. ac_preproc_ok=false
  3539. for ac_c_preproc_warn_flag in '' yes
  3540. do
  3541. # Use a header file that comes with gcc, so configuring glibc
  3542. # with a fresh cross-compiler works.
  3543. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3544. # <limits.h> exists even on freestanding compilers.
  3545. # On the NeXT, cc -E runs the code through the compiler's parser,
  3546. # not just through cpp. "Syntax error" is here to catch this case.
  3547. cat >conftest.$ac_ext <<_ACEOF
  3548. #line $LINENO "configure"
  3549. /* confdefs.h. */
  3550. _ACEOF
  3551. cat confdefs.h >>conftest.$ac_ext
  3552. cat >>conftest.$ac_ext <<_ACEOF
  3553. /* end confdefs.h. */
  3554. #ifdef __STDC__
  3555. # include <limits.h>
  3556. #else
  3557. # include <assert.h>
  3558. #endif
  3559. Syntax error
  3560. _ACEOF
  3561. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3562. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3563. ac_status=$?
  3564. grep -v '^ *+' conftest.er1 >conftest.err
  3565. rm -f conftest.er1
  3566. cat conftest.err >&5
  3567. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3568. (exit $ac_status); } >/dev/null; then
  3569. if test -s conftest.err; then
  3570. ac_cpp_err=$ac_c_preproc_warn_flag
  3571. else
  3572. ac_cpp_err=
  3573. fi
  3574. else
  3575. ac_cpp_err=yes
  3576. fi
  3577. if test -z "$ac_cpp_err"; then
  3578. :
  3579. else
  3580. echo "$as_me: failed program was:" >&5
  3581. sed 's/^/| /' conftest.$ac_ext >&5
  3582. # Broken: fails on valid input.
  3583. continue
  3584. fi
  3585. rm -f conftest.err conftest.$ac_ext
  3586. # OK, works on sane cases. Now check whether non-existent headers
  3587. # can be detected and how.
  3588. cat >conftest.$ac_ext <<_ACEOF
  3589. #line $LINENO "configure"
  3590. /* confdefs.h. */
  3591. _ACEOF
  3592. cat confdefs.h >>conftest.$ac_ext
  3593. cat >>conftest.$ac_ext <<_ACEOF
  3594. /* end confdefs.h. */
  3595. #include <ac_nonexistent.h>
  3596. _ACEOF
  3597. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3598. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3599. ac_status=$?
  3600. grep -v '^ *+' conftest.er1 >conftest.err
  3601. rm -f conftest.er1
  3602. cat conftest.err >&5
  3603. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3604. (exit $ac_status); } >/dev/null; then
  3605. if test -s conftest.err; then
  3606. ac_cpp_err=$ac_c_preproc_warn_flag
  3607. else
  3608. ac_cpp_err=
  3609. fi
  3610. else
  3611. ac_cpp_err=yes
  3612. fi
  3613. if test -z "$ac_cpp_err"; then
  3614. # Broken: success on invalid input.
  3615. continue
  3616. else
  3617. echo "$as_me: failed program was:" >&5
  3618. sed 's/^/| /' conftest.$ac_ext >&5
  3619. # Passes both tests.
  3620. ac_preproc_ok=:
  3621. break
  3622. fi
  3623. rm -f conftest.err conftest.$ac_ext
  3624. done
  3625. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3626. rm -f conftest.err conftest.$ac_ext
  3627. if $ac_preproc_ok; then
  3628. :
  3629. else
  3630. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  3631. See \`config.log' for more details." >&5
  3632. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  3633. See \`config.log' for more details." >&2;}
  3634. { (exit 1); exit 1; }; }
  3635. fi
  3636. ac_ext=c
  3637. ac_cpp='$CPP $CPPFLAGS'
  3638. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3639. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3640. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3641. echo "$as_me:$LINENO: checking for egrep" >&5
  3642. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  3643. if test "${ac_cv_prog_egrep+set}" = set; then
  3644. echo $ECHO_N "(cached) $ECHO_C" >&6
  3645. else
  3646. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  3647. then ac_cv_prog_egrep='grep -E'
  3648. else ac_cv_prog_egrep='egrep'
  3649. fi
  3650. fi
  3651. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  3652. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  3653. EGREP=$ac_cv_prog_egrep
  3654. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  3655. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  3656. if test "${ac_cv_header_stdc+set}" = set; then
  3657. echo $ECHO_N "(cached) $ECHO_C" >&6
  3658. else
  3659. cat >conftest.$ac_ext <<_ACEOF
  3660. #line $LINENO "configure"
  3661. /* confdefs.h. */
  3662. _ACEOF
  3663. cat confdefs.h >>conftest.$ac_ext
  3664. cat >>conftest.$ac_ext <<_ACEOF
  3665. /* end confdefs.h. */
  3666. #include <stdlib.h>
  3667. #include <stdarg.h>
  3668. #include <string.h>
  3669. #include <float.h>
  3670. int
  3671. main ()
  3672. {
  3673. ;
  3674. return 0;
  3675. }
  3676. _ACEOF
  3677. rm -f conftest.$ac_objext
  3678. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3679. (eval $ac_compile) 2>&5
  3680. ac_status=$?
  3681. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3682. (exit $ac_status); } &&
  3683. { ac_try='test -s conftest.$ac_objext'
  3684. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3685. (eval $ac_try) 2>&5
  3686. ac_status=$?
  3687. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3688. (exit $ac_status); }; }; then
  3689. ac_cv_header_stdc=yes
  3690. else
  3691. echo "$as_me: failed program was:" >&5
  3692. sed 's/^/| /' conftest.$ac_ext >&5
  3693. ac_cv_header_stdc=no
  3694. fi
  3695. rm -f conftest.$ac_objext conftest.$ac_ext
  3696. if test $ac_cv_header_stdc = yes; then
  3697. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3698. cat >conftest.$ac_ext <<_ACEOF
  3699. #line $LINENO "configure"
  3700. /* confdefs.h. */
  3701. _ACEOF
  3702. cat confdefs.h >>conftest.$ac_ext
  3703. cat >>conftest.$ac_ext <<_ACEOF
  3704. /* end confdefs.h. */
  3705. #include <string.h>
  3706. _ACEOF
  3707. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3708. $EGREP "memchr" >/dev/null 2>&1; then
  3709. :
  3710. else
  3711. ac_cv_header_stdc=no
  3712. fi
  3713. rm -f conftest*
  3714. fi
  3715. if test $ac_cv_header_stdc = yes; then
  3716. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3717. cat >conftest.$ac_ext <<_ACEOF
  3718. #line $LINENO "configure"
  3719. /* confdefs.h. */
  3720. _ACEOF
  3721. cat confdefs.h >>conftest.$ac_ext
  3722. cat >>conftest.$ac_ext <<_ACEOF
  3723. /* end confdefs.h. */
  3724. #include <stdlib.h>
  3725. _ACEOF
  3726. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3727. $EGREP "free" >/dev/null 2>&1; then
  3728. :
  3729. else
  3730. ac_cv_header_stdc=no
  3731. fi
  3732. rm -f conftest*
  3733. fi
  3734. if test $ac_cv_header_stdc = yes; then
  3735. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3736. if test "$cross_compiling" = yes; then
  3737. :
  3738. else
  3739. cat >conftest.$ac_ext <<_ACEOF
  3740. #line $LINENO "configure"
  3741. /* confdefs.h. */
  3742. _ACEOF
  3743. cat confdefs.h >>conftest.$ac_ext
  3744. cat >>conftest.$ac_ext <<_ACEOF
  3745. /* end confdefs.h. */
  3746. #include <ctype.h>
  3747. #if ((' ' & 0x0FF) == 0x020)
  3748. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3749. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3750. #else
  3751. # define ISLOWER(c) \
  3752. (('a' <= (c) && (c) <= 'i') \
  3753. || ('j' <= (c) && (c) <= 'r') \
  3754. || ('s' <= (c) && (c) <= 'z'))
  3755. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3756. #endif
  3757. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3758. int
  3759. main ()
  3760. {
  3761. int i;
  3762. for (i = 0; i < 256; i++)
  3763. if (XOR (islower (i), ISLOWER (i))
  3764. || toupper (i) != TOUPPER (i))
  3765. exit(2);
  3766. exit (0);
  3767. }
  3768. _ACEOF
  3769. rm -f conftest$ac_exeext
  3770. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3771. (eval $ac_link) 2>&5
  3772. ac_status=$?
  3773. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3774. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3775. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3776. (eval $ac_try) 2>&5
  3777. ac_status=$?
  3778. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3779. (exit $ac_status); }; }; then
  3780. :
  3781. else
  3782. echo "$as_me: program exited with status $ac_status" >&5
  3783. echo "$as_me: failed program was:" >&5
  3784. sed 's/^/| /' conftest.$ac_ext >&5
  3785. ( exit $ac_status )
  3786. ac_cv_header_stdc=no
  3787. fi
  3788. rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3789. fi
  3790. fi
  3791. fi
  3792. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  3793. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  3794. if test $ac_cv_header_stdc = yes; then
  3795. cat >>confdefs.h <<\_ACEOF
  3796. #define STDC_HEADERS 1
  3797. _ACEOF
  3798. fi
  3799. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3800. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3801. inttypes.h stdint.h unistd.h
  3802. do
  3803. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3804. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3805. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3806. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3807. echo $ECHO_N "(cached) $ECHO_C" >&6
  3808. else
  3809. cat >conftest.$ac_ext <<_ACEOF
  3810. #line $LINENO "configure"
  3811. /* confdefs.h. */
  3812. _ACEOF
  3813. cat confdefs.h >>conftest.$ac_ext
  3814. cat >>conftest.$ac_ext <<_ACEOF
  3815. /* end confdefs.h. */
  3816. $ac_includes_default
  3817. #include <$ac_header>
  3818. _ACEOF
  3819. rm -f conftest.$ac_objext
  3820. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3821. (eval $ac_compile) 2>&5
  3822. ac_status=$?
  3823. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3824. (exit $ac_status); } &&
  3825. { ac_try='test -s conftest.$ac_objext'
  3826. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3827. (eval $ac_try) 2>&5
  3828. ac_status=$?
  3829. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3830. (exit $ac_status); }; }; then
  3831. eval "$as_ac_Header=yes"
  3832. else
  3833. echo "$as_me: failed program was:" >&5
  3834. sed 's/^/| /' conftest.$ac_ext >&5
  3835. eval "$as_ac_Header=no"
  3836. fi
  3837. rm -f conftest.$ac_objext conftest.$ac_ext
  3838. fi
  3839. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3840. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3841. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3842. cat >>confdefs.h <<_ACEOF
  3843. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3844. _ACEOF
  3845. fi
  3846. done
  3847. for ac_header in dlfcn.h
  3848. do
  3849. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3850. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3851. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3852. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3853. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3854. echo $ECHO_N "(cached) $ECHO_C" >&6
  3855. fi
  3856. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3857. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3858. else
  3859. # Is the header compilable?
  3860. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  3861. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  3862. cat >conftest.$ac_ext <<_ACEOF
  3863. #line $LINENO "configure"
  3864. /* confdefs.h. */
  3865. _ACEOF
  3866. cat confdefs.h >>conftest.$ac_ext
  3867. cat >>conftest.$ac_ext <<_ACEOF
  3868. /* end confdefs.h. */
  3869. $ac_includes_default
  3870. #include <$ac_header>
  3871. _ACEOF
  3872. rm -f conftest.$ac_objext
  3873. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3874. (eval $ac_compile) 2>&5
  3875. ac_status=$?
  3876. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3877. (exit $ac_status); } &&
  3878. { ac_try='test -s conftest.$ac_objext'
  3879. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3880. (eval $ac_try) 2>&5
  3881. ac_status=$?
  3882. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3883. (exit $ac_status); }; }; then
  3884. ac_header_compiler=yes
  3885. else
  3886. echo "$as_me: failed program was:" >&5
  3887. sed 's/^/| /' conftest.$ac_ext >&5
  3888. ac_header_compiler=no
  3889. fi
  3890. rm -f conftest.$ac_objext conftest.$ac_ext
  3891. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  3892. echo "${ECHO_T}$ac_header_compiler" >&6
  3893. # Is the header present?
  3894. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  3895. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  3896. cat >conftest.$ac_ext <<_ACEOF
  3897. #line $LINENO "configure"
  3898. /* confdefs.h. */
  3899. _ACEOF
  3900. cat confdefs.h >>conftest.$ac_ext
  3901. cat >>conftest.$ac_ext <<_ACEOF
  3902. /* end confdefs.h. */
  3903. #include <$ac_header>
  3904. _ACEOF
  3905. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3906. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3907. ac_status=$?
  3908. grep -v '^ *+' conftest.er1 >conftest.err
  3909. rm -f conftest.er1
  3910. cat conftest.err >&5
  3911. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3912. (exit $ac_status); } >/dev/null; then
  3913. if test -s conftest.err; then
  3914. ac_cpp_err=$ac_c_preproc_warn_flag
  3915. else
  3916. ac_cpp_err=
  3917. fi
  3918. else
  3919. ac_cpp_err=yes
  3920. fi
  3921. if test -z "$ac_cpp_err"; then
  3922. ac_header_preproc=yes
  3923. else
  3924. echo "$as_me: failed program was:" >&5
  3925. sed 's/^/| /' conftest.$ac_ext >&5
  3926. ac_header_preproc=no
  3927. fi
  3928. rm -f conftest.err conftest.$ac_ext
  3929. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  3930. echo "${ECHO_T}$ac_header_preproc" >&6
  3931. # So? What about this header?
  3932. case $ac_header_compiler:$ac_header_preproc in
  3933. yes:no )
  3934. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  3935. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  3936. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  3937. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  3938. (
  3939. cat <<\_ASBOX
  3940. ## ------------------------------------ ##
  3941. ## Report this to bug-autoconf@gnu.org. ##
  3942. ## ------------------------------------ ##
  3943. _ASBOX
  3944. ) |
  3945. sed "s/^/$as_me: WARNING: /" >&2
  3946. ;;
  3947. no:yes )
  3948. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  3949. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  3950. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  3951. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  3952. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  3953. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  3954. (
  3955. cat <<\_ASBOX
  3956. ## ------------------------------------ ##
  3957. ## Report this to bug-autoconf@gnu.org. ##
  3958. ## ------------------------------------ ##
  3959. _ASBOX
  3960. ) |
  3961. sed "s/^/$as_me: WARNING: /" >&2
  3962. ;;
  3963. esac
  3964. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3965. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3966. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3967. echo $ECHO_N "(cached) $ECHO_C" >&6
  3968. else
  3969. eval "$as_ac_Header=$ac_header_preproc"
  3970. fi
  3971. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3972. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3973. fi
  3974. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3975. cat >>confdefs.h <<_ACEOF
  3976. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3977. _ACEOF
  3978. fi
  3979. done
  3980. # Only perform the check for file, if the check method requires it
  3981. case $deplibs_check_method in
  3982. file_magic*)
  3983. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  3984. echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  3985. echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
  3986. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  3987. echo $ECHO_N "(cached) $ECHO_C" >&6
  3988. else
  3989. case $MAGIC_CMD in
  3990. /*)
  3991. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  3992. ;;
  3993. ?:/*)
  3994. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
  3995. ;;
  3996. *)
  3997. ac_save_MAGIC_CMD="$MAGIC_CMD"
  3998. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  3999. ac_dummy="/usr/bin:$PATH"
  4000. for ac_dir in $ac_dummy; do
  4001. test -z "$ac_dir" && ac_dir=.
  4002. if test -f $ac_dir/${ac_tool_prefix}file; then
  4003. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  4004. if test -n "$file_magic_test_file"; then
  4005. case $deplibs_check_method in
  4006. "file_magic "*)
  4007. file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  4008. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  4009. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  4010. egrep "$file_magic_regex" > /dev/null; then
  4011. :
  4012. else
  4013. cat <<EOF 1>&2
  4014. *** Warning: the command libtool uses to detect shared libraries,
  4015. *** $file_magic_cmd, produces output that libtool cannot recognize.
  4016. *** The result is that libtool may fail to recognize shared libraries
  4017. *** as such. This will affect the creation of libtool libraries that
  4018. *** depend on shared libraries, but programs linked with such libtool
  4019. *** libraries will work regardless of this problem. Nevertheless, you
  4020. *** may want to report the problem to your system manager and/or to
  4021. *** bug-libtool@gnu.org
  4022. EOF
  4023. fi ;;
  4024. esac
  4025. fi
  4026. break
  4027. fi
  4028. done
  4029. IFS="$ac_save_ifs"
  4030. MAGIC_CMD="$ac_save_MAGIC_CMD"
  4031. ;;
  4032. esac
  4033. fi
  4034. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  4035. if test -n "$MAGIC_CMD"; then
  4036. echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  4037. echo "${ECHO_T}$MAGIC_CMD" >&6
  4038. else
  4039. echo "$as_me:$LINENO: result: no" >&5
  4040. echo "${ECHO_T}no" >&6
  4041. fi
  4042. if test -z "$lt_cv_path_MAGIC_CMD"; then
  4043. if test -n "$ac_tool_prefix"; then
  4044. echo "$as_me:$LINENO: checking for file" >&5
  4045. echo $ECHO_N "checking for file... $ECHO_C" >&6
  4046. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  4047. echo $ECHO_N "(cached) $ECHO_C" >&6
  4048. else
  4049. case $MAGIC_CMD in
  4050. /*)
  4051. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  4052. ;;
  4053. ?:/*)
  4054. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
  4055. ;;
  4056. *)
  4057. ac_save_MAGIC_CMD="$MAGIC_CMD"
  4058. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  4059. ac_dummy="/usr/bin:$PATH"
  4060. for ac_dir in $ac_dummy; do
  4061. test -z "$ac_dir" && ac_dir=.
  4062. if test -f $ac_dir/file; then
  4063. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  4064. if test -n "$file_magic_test_file"; then
  4065. case $deplibs_check_method in
  4066. "file_magic "*)
  4067. file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  4068. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  4069. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  4070. egrep "$file_magic_regex" > /dev/null; then
  4071. :
  4072. else
  4073. cat <<EOF 1>&2
  4074. *** Warning: the command libtool uses to detect shared libraries,
  4075. *** $file_magic_cmd, produces output that libtool cannot recognize.
  4076. *** The result is that libtool may fail to recognize shared libraries
  4077. *** as such. This will affect the creation of libtool libraries that
  4078. *** depend on shared libraries, but programs linked with such libtool
  4079. *** libraries will work regardless of this problem. Nevertheless, you
  4080. *** may want to report the problem to your system manager and/or to
  4081. *** bug-libtool@gnu.org
  4082. EOF
  4083. fi ;;
  4084. esac
  4085. fi
  4086. break
  4087. fi
  4088. done
  4089. IFS="$ac_save_ifs"
  4090. MAGIC_CMD="$ac_save_MAGIC_CMD"
  4091. ;;
  4092. esac
  4093. fi
  4094. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  4095. if test -n "$MAGIC_CMD"; then
  4096. echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  4097. echo "${ECHO_T}$MAGIC_CMD" >&6
  4098. else
  4099. echo "$as_me:$LINENO: result: no" >&5
  4100. echo "${ECHO_T}no" >&6
  4101. fi
  4102. else
  4103. MAGIC_CMD=:
  4104. fi
  4105. fi
  4106. fi
  4107. ;;
  4108. esac
  4109. if test -n "$ac_tool_prefix"; then
  4110. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4111. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4112. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4113. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4114. if test "${ac_cv_prog_RANLIB+set}" = set; then
  4115. echo $ECHO_N "(cached) $ECHO_C" >&6
  4116. else
  4117. if test -n "$RANLIB"; then
  4118. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4119. else
  4120. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4121. for as_dir in $PATH
  4122. do
  4123. IFS=$as_save_IFS
  4124. test -z "$as_dir" && as_dir=.
  4125. for ac_exec_ext in '' $ac_executable_extensions; do
  4126. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4127. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4128. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4129. break 2
  4130. fi
  4131. done
  4132. done
  4133. fi
  4134. fi
  4135. RANLIB=$ac_cv_prog_RANLIB
  4136. if test -n "$RANLIB"; then
  4137. echo "$as_me:$LINENO: result: $RANLIB" >&5
  4138. echo "${ECHO_T}$RANLIB" >&6
  4139. else
  4140. echo "$as_me:$LINENO: result: no" >&5
  4141. echo "${ECHO_T}no" >&6
  4142. fi
  4143. fi
  4144. if test -z "$ac_cv_prog_RANLIB"; then
  4145. ac_ct_RANLIB=$RANLIB
  4146. # Extract the first word of "ranlib", so it can be a program name with args.
  4147. set dummy ranlib; ac_word=$2
  4148. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4149. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4150. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  4151. echo $ECHO_N "(cached) $ECHO_C" >&6
  4152. else
  4153. if test -n "$ac_ct_RANLIB"; then
  4154. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4155. else
  4156. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4157. for as_dir in $PATH
  4158. do
  4159. IFS=$as_save_IFS
  4160. test -z "$as_dir" && as_dir=.
  4161. for ac_exec_ext in '' $ac_executable_extensions; do
  4162. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4163. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4164. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4165. break 2
  4166. fi
  4167. done
  4168. done
  4169. test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  4170. fi
  4171. fi
  4172. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4173. if test -n "$ac_ct_RANLIB"; then
  4174. echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  4175. echo "${ECHO_T}$ac_ct_RANLIB" >&6
  4176. else
  4177. echo "$as_me:$LINENO: result: no" >&5
  4178. echo "${ECHO_T}no" >&6
  4179. fi
  4180. RANLIB=$ac_ct_RANLIB
  4181. else
  4182. RANLIB="$ac_cv_prog_RANLIB"
  4183. fi
  4184. if test -n "$ac_tool_prefix"; then
  4185. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4186. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4187. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4188. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4189. if test "${ac_cv_prog_STRIP+set}" = set; then
  4190. echo $ECHO_N "(cached) $ECHO_C" >&6
  4191. else
  4192. if test -n "$STRIP"; then
  4193. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4194. else
  4195. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4196. for as_dir in $PATH
  4197. do
  4198. IFS=$as_save_IFS
  4199. test -z "$as_dir" && as_dir=.
  4200. for ac_exec_ext in '' $ac_executable_extensions; do
  4201. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4202. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4203. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4204. break 2
  4205. fi
  4206. done
  4207. done
  4208. fi
  4209. fi
  4210. STRIP=$ac_cv_prog_STRIP
  4211. if test -n "$STRIP"; then
  4212. echo "$as_me:$LINENO: result: $STRIP" >&5
  4213. echo "${ECHO_T}$STRIP" >&6
  4214. else
  4215. echo "$as_me:$LINENO: result: no" >&5
  4216. echo "${ECHO_T}no" >&6
  4217. fi
  4218. fi
  4219. if test -z "$ac_cv_prog_STRIP"; then
  4220. ac_ct_STRIP=$STRIP
  4221. # Extract the first word of "strip", so it can be a program name with args.
  4222. set dummy strip; ac_word=$2
  4223. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4224. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4225. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  4226. echo $ECHO_N "(cached) $ECHO_C" >&6
  4227. else
  4228. if test -n "$ac_ct_STRIP"; then
  4229. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4230. else
  4231. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4232. for as_dir in $PATH
  4233. do
  4234. IFS=$as_save_IFS
  4235. test -z "$as_dir" && as_dir=.
  4236. for ac_exec_ext in '' $ac_executable_extensions; do
  4237. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4238. ac_cv_prog_ac_ct_STRIP="strip"
  4239. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4240. break 2
  4241. fi
  4242. done
  4243. done
  4244. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  4245. fi
  4246. fi
  4247. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4248. if test -n "$ac_ct_STRIP"; then
  4249. echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  4250. echo "${ECHO_T}$ac_ct_STRIP" >&6
  4251. else
  4252. echo "$as_me:$LINENO: result: no" >&5
  4253. echo "${ECHO_T}no" >&6
  4254. fi
  4255. STRIP=$ac_ct_STRIP
  4256. else
  4257. STRIP="$ac_cv_prog_STRIP"
  4258. fi
  4259. enable_dlopen=no
  4260. enable_win32_dll=no
  4261. # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  4262. if test "${enable_libtool_lock+set}" = set; then
  4263. enableval="$enable_libtool_lock"
  4264. fi;
  4265. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  4266. # Some flags need to be propagated to the compiler or linker for good
  4267. # libtool support.
  4268. case $host in
  4269. *-*-irix6*)
  4270. # Find out which ABI we are using.
  4271. echo '#line 4726 "configure"' > conftest.$ac_ext
  4272. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4273. (eval $ac_compile) 2>&5
  4274. ac_status=$?
  4275. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4276. (exit $ac_status); }; then
  4277. case `/usr/bin/file conftest.$ac_objext` in
  4278. *32-bit*)
  4279. LD="${LD-ld} -32"
  4280. ;;
  4281. *N32*)
  4282. LD="${LD-ld} -n32"
  4283. ;;
  4284. *64-bit*)
  4285. LD="${LD-ld} -64"
  4286. ;;
  4287. esac
  4288. fi
  4289. rm -rf conftest*
  4290. ;;
  4291. *-*-linux*)
  4292. # Test if the compiler is 64bit
  4293. echo 'int i;' > conftest.$ac_ext
  4294. lt_cv_cc_64bit_output=no
  4295. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4296. (eval $ac_compile) 2>&5
  4297. ac_status=$?
  4298. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4299. (exit $ac_status); }; then
  4300. case `/usr/bin/file conftest.$ac_objext` in
  4301. *"ELF 64"*)
  4302. lt_cv_cc_64bit_output=yes
  4303. ;;
  4304. esac
  4305. fi
  4306. rm -rf conftest*
  4307. ;;
  4308. *-*-sco3.2v5*)
  4309. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  4310. SAVE_CFLAGS="$CFLAGS"
  4311. CFLAGS="$CFLAGS -belf"
  4312. echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  4313. echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
  4314. if test "${lt_cv_cc_needs_belf+set}" = set; then
  4315. echo $ECHO_N "(cached) $ECHO_C" >&6
  4316. else
  4317. ac_ext=c
  4318. ac_cpp='$CPP $CPPFLAGS'
  4319. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4320. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4321. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4322. cat >conftest.$ac_ext <<_ACEOF
  4323. #line $LINENO "configure"
  4324. /* confdefs.h. */
  4325. _ACEOF
  4326. cat confdefs.h >>conftest.$ac_ext
  4327. cat >>conftest.$ac_ext <<_ACEOF
  4328. /* end confdefs.h. */
  4329. int
  4330. main ()
  4331. {
  4332. ;
  4333. return 0;
  4334. }
  4335. _ACEOF
  4336. rm -f conftest.$ac_objext conftest$ac_exeext
  4337. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4338. (eval $ac_link) 2>&5
  4339. ac_status=$?
  4340. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4341. (exit $ac_status); } &&
  4342. { ac_try='test -s conftest$ac_exeext'
  4343. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4344. (eval $ac_try) 2>&5
  4345. ac_status=$?
  4346. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4347. (exit $ac_status); }; }; then
  4348. lt_cv_cc_needs_belf=yes
  4349. else
  4350. echo "$as_me: failed program was:" >&5
  4351. sed 's/^/| /' conftest.$ac_ext >&5
  4352. lt_cv_cc_needs_belf=no
  4353. fi
  4354. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  4355. ac_ext=c
  4356. ac_cpp='$CPP $CPPFLAGS'
  4357. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4358. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4359. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4360. fi
  4361. echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  4362. echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
  4363. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  4364. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  4365. CFLAGS="$SAVE_CFLAGS"
  4366. fi
  4367. ;;
  4368. esac
  4369. # Sed substitution that helps us do robust quoting. It backslashifies
  4370. # metacharacters that are still active within double-quoted strings.
  4371. Xsed='sed -e s/^X//'
  4372. sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  4373. # Same as above, but do not quote variable references.
  4374. double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  4375. # Sed substitution to delay expansion of an escaped shell variable in a
  4376. # double_quote_subst'ed string.
  4377. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4378. # Constants:
  4379. rm="rm -f"
  4380. # Global variables:
  4381. default_ofile=libtool
  4382. can_build_shared=yes
  4383. # All known linkers require a `.a' archive for static linking (except M$VC,
  4384. # which needs '.lib').
  4385. libext=a
  4386. ltmain="$ac_aux_dir/ltmain.sh"
  4387. ofile="$default_ofile"
  4388. with_gnu_ld="$lt_cv_prog_gnu_ld"
  4389. need_locks="$enable_libtool_lock"
  4390. old_CC="$CC"
  4391. old_CFLAGS="$CFLAGS"
  4392. # Set sane defaults for various variables
  4393. test -z "$AR" && AR=ar
  4394. test -z "$AR_FLAGS" && AR_FLAGS=cru
  4395. test -z "$AS" && AS=as
  4396. test -z "$CC" && CC=cc
  4397. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4398. test -z "$LD" && LD=ld
  4399. test -z "$LN_S" && LN_S="ln -s"
  4400. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  4401. test -z "$NM" && NM=nm
  4402. test -z "$OBJDUMP" && OBJDUMP=objdump
  4403. test -z "$RANLIB" && RANLIB=:
  4404. test -z "$STRIP" && STRIP=:
  4405. test -z "$ac_objext" && ac_objext=o
  4406. if test x"$host" != x"$build"; then
  4407. ac_tool_prefix=${host_alias}-
  4408. else
  4409. ac_tool_prefix=
  4410. fi
  4411. # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
  4412. case $host_os in
  4413. linux-gnu*) ;;
  4414. linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
  4415. esac
  4416. case $host_os in
  4417. aix3*)
  4418. # AIX sometimes has problems with the GCC collect2 program. For some
  4419. # reason, if we set the COLLECT_NAMES environment variable, the problems
  4420. # vanish in a puff of smoke.
  4421. if test "X${COLLECT_NAMES+set}" != Xset; then
  4422. COLLECT_NAMES=
  4423. export COLLECT_NAMES
  4424. fi
  4425. ;;
  4426. esac
  4427. # Determine commands to create old-style static archives.
  4428. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  4429. old_postinstall_cmds='chmod 644 $oldlib'
  4430. old_postuninstall_cmds=
  4431. if test -n "$RANLIB"; then
  4432. case $host_os in
  4433. openbsd*)
  4434. old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
  4435. ;;
  4436. *)
  4437. old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
  4438. ;;
  4439. esac
  4440. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  4441. fi
  4442. # Allow CC to be a program name with arguments.
  4443. set dummy $CC
  4444. compiler="$2"
  4445. echo "$as_me:$LINENO: checking for objdir" >&5
  4446. echo $ECHO_N "checking for objdir... $ECHO_C" >&6
  4447. rm -f .libs 2>/dev/null
  4448. mkdir .libs 2>/dev/null
  4449. if test -d .libs; then
  4450. objdir=.libs
  4451. else
  4452. # MS-DOS does not allow filenames that begin with a dot.
  4453. objdir=_libs
  4454. fi
  4455. rmdir .libs 2>/dev/null
  4456. echo "$as_me:$LINENO: result: $objdir" >&5
  4457. echo "${ECHO_T}$objdir" >&6
  4458. # Check whether --with-pic or --without-pic was given.
  4459. if test "${with_pic+set}" = set; then
  4460. withval="$with_pic"
  4461. pic_mode="$withval"
  4462. else
  4463. pic_mode=default
  4464. fi;
  4465. test -z "$pic_mode" && pic_mode=default
  4466. # We assume here that the value for lt_cv_prog_cc_pic will not be cached
  4467. # in isolation, and that seeing it set (from the cache) indicates that
  4468. # the associated values are set (in the cache) correctly too.
  4469. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  4470. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  4471. if test "${lt_cv_prog_cc_pic+set}" = set; then
  4472. echo $ECHO_N "(cached) $ECHO_C" >&6
  4473. else
  4474. lt_cv_prog_cc_pic=
  4475. lt_cv_prog_cc_shlib=
  4476. lt_cv_prog_cc_wl=
  4477. lt_cv_prog_cc_static=
  4478. lt_cv_prog_cc_no_builtin=
  4479. lt_cv_prog_cc_can_build_shared=$can_build_shared
  4480. if test "$GCC" = yes; then
  4481. lt_cv_prog_cc_wl='-Wl,'
  4482. lt_cv_prog_cc_static='-static'
  4483. case $host_os in
  4484. aix*)
  4485. # Below there is a dirty hack to force normal static linking with -ldl
  4486. # The problem is because libdl dynamically linked with both libc and
  4487. # libC (AIX C++ library), which obviously doesn't included in libraries
  4488. # list by gcc. This cause undefined symbols with -static flags.
  4489. # This hack allows C programs to be linked with "-static -ldl", but
  4490. # not sure about C++ programs.
  4491. lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
  4492. ;;
  4493. amigaos*)
  4494. # FIXME: we need at least 68020 code to build shared libraries, but
  4495. # adding the `-m68020' flag to GCC prevents building anything better,
  4496. # like `-m68040'.
  4497. lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
  4498. ;;
  4499. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  4500. # PIC is the default for these OSes.
  4501. ;;
  4502. darwin* | rhapsody*)
  4503. # PIC is the default on this platform
  4504. # Common symbols not allowed in MH_DYLIB files
  4505. lt_cv_prog_cc_pic='-fno-common'
  4506. ;;
  4507. cygwin* | mingw* | pw32* | os2*)
  4508. # This hack is so that the source file can tell whether it is being
  4509. # built for inclusion in a dll (and should export symbols for example).
  4510. lt_cv_prog_cc_pic='-DDLL_EXPORT'
  4511. ;;
  4512. sysv4*MP*)
  4513. if test -d /usr/nec; then
  4514. lt_cv_prog_cc_pic=-Kconform_pic
  4515. fi
  4516. ;;
  4517. *)
  4518. lt_cv_prog_cc_pic='-fPIC'
  4519. ;;
  4520. esac
  4521. else
  4522. # PORTME Check for PIC flags for the system compiler.
  4523. case $host_os in
  4524. aix3* | aix4* | aix5*)
  4525. lt_cv_prog_cc_wl='-Wl,'
  4526. # All AIX code is PIC.
  4527. if test "$host_cpu" = ia64; then
  4528. # AIX 5 now supports IA64 processor
  4529. lt_cv_prog_cc_static='-Bstatic'
  4530. else
  4531. lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
  4532. fi
  4533. ;;
  4534. hpux9* | hpux10* | hpux11*)
  4535. # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
  4536. lt_cv_prog_cc_wl='-Wl,'
  4537. lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
  4538. lt_cv_prog_cc_pic='+Z'
  4539. ;;
  4540. irix5* | irix6* | nonstopux*)
  4541. lt_cv_prog_cc_wl='-Wl,'
  4542. lt_cv_prog_cc_static='-non_shared'
  4543. # PIC (with -KPIC) is the default.
  4544. ;;
  4545. cygwin* | mingw* | pw32* | os2*)
  4546. # This hack is so that the source file can tell whether it is being
  4547. # built for inclusion in a dll (and should export symbols for example).
  4548. lt_cv_prog_cc_pic='-DDLL_EXPORT'
  4549. ;;
  4550. newsos6)
  4551. lt_cv_prog_cc_pic='-KPIC'
  4552. lt_cv_prog_cc_static='-Bstatic'
  4553. ;;
  4554. osf3* | osf4* | osf5*)
  4555. # All OSF/1 code is PIC.
  4556. lt_cv_prog_cc_wl='-Wl,'
  4557. lt_cv_prog_cc_static='-non_shared'
  4558. ;;
  4559. sco3.2v5*)
  4560. lt_cv_prog_cc_pic='-Kpic'
  4561. lt_cv_prog_cc_static='-dn'
  4562. lt_cv_prog_cc_shlib='-belf'
  4563. ;;
  4564. solaris*)
  4565. lt_cv_prog_cc_pic='-KPIC'
  4566. lt_cv_prog_cc_static='-Bstatic'
  4567. lt_cv_prog_cc_wl='-Wl,'
  4568. ;;
  4569. sunos4*)
  4570. lt_cv_prog_cc_pic='-PIC'
  4571. lt_cv_prog_cc_static='-Bstatic'
  4572. lt_cv_prog_cc_wl='-Qoption ld '
  4573. ;;
  4574. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  4575. lt_cv_prog_cc_pic='-KPIC'
  4576. lt_cv_prog_cc_static='-Bstatic'
  4577. lt_cv_prog_cc_wl='-Wl,'
  4578. ;;
  4579. uts4*)
  4580. lt_cv_prog_cc_pic='-pic'
  4581. lt_cv_prog_cc_static='-Bstatic'
  4582. ;;
  4583. sysv4*MP*)
  4584. if test -d /usr/nec ;then
  4585. lt_cv_prog_cc_pic='-Kconform_pic'
  4586. lt_cv_prog_cc_static='-Bstatic'
  4587. fi
  4588. ;;
  4589. *)
  4590. lt_cv_prog_cc_can_build_shared=no
  4591. ;;
  4592. esac
  4593. fi
  4594. fi
  4595. if test -z "$lt_cv_prog_cc_pic"; then
  4596. echo "$as_me:$LINENO: result: none" >&5
  4597. echo "${ECHO_T}none" >&6
  4598. else
  4599. echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
  4600. echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
  4601. # Check to make sure the pic_flag actually works.
  4602. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
  4603. echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
  4604. if test "${lt_cv_prog_cc_pic_works+set}" = set; then
  4605. echo $ECHO_N "(cached) $ECHO_C" >&6
  4606. else
  4607. save_CFLAGS="$CFLAGS"
  4608. CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
  4609. cat >conftest.$ac_ext <<_ACEOF
  4610. #line $LINENO "configure"
  4611. /* confdefs.h. */
  4612. _ACEOF
  4613. cat confdefs.h >>conftest.$ac_ext
  4614. cat >>conftest.$ac_ext <<_ACEOF
  4615. /* end confdefs.h. */
  4616. int
  4617. main ()
  4618. {
  4619. ;
  4620. return 0;
  4621. }
  4622. _ACEOF
  4623. rm -f conftest.$ac_objext
  4624. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4625. (eval $ac_compile) 2>&5
  4626. ac_status=$?
  4627. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4628. (exit $ac_status); } &&
  4629. { ac_try='test -s conftest.$ac_objext'
  4630. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4631. (eval $ac_try) 2>&5
  4632. ac_status=$?
  4633. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4634. (exit $ac_status); }; }; then
  4635. case $host_os in
  4636. hpux9* | hpux10* | hpux11*)
  4637. # On HP-UX, both CC and GCC only warn that PIC is supported... then
  4638. # they create non-PIC objects. So, if there were any warnings, we
  4639. # assume that PIC is not supported.
  4640. if test -s conftest.err; then
  4641. lt_cv_prog_cc_pic_works=no
  4642. else
  4643. lt_cv_prog_cc_pic_works=yes
  4644. fi
  4645. ;;
  4646. *)
  4647. lt_cv_prog_cc_pic_works=yes
  4648. ;;
  4649. esac
  4650. else
  4651. echo "$as_me: failed program was:" >&5
  4652. sed 's/^/| /' conftest.$ac_ext >&5
  4653. lt_cv_prog_cc_pic_works=no
  4654. fi
  4655. rm -f conftest.$ac_objext conftest.$ac_ext
  4656. CFLAGS="$save_CFLAGS"
  4657. fi
  4658. if test "X$lt_cv_prog_cc_pic_works" = Xno; then
  4659. lt_cv_prog_cc_pic=
  4660. lt_cv_prog_cc_can_build_shared=no
  4661. else
  4662. lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
  4663. fi
  4664. echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
  4665. echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
  4666. fi
  4667. # Check for any special shared library compilation flags.
  4668. if test -n "$lt_cv_prog_cc_shlib"; then
  4669. { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
  4670. echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
  4671. if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
  4672. else
  4673. { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
  4674. echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
  4675. lt_cv_prog_cc_can_build_shared=no
  4676. fi
  4677. fi
  4678. echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
  4679. echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
  4680. if test "${lt_cv_prog_cc_static_works+set}" = set; then
  4681. echo $ECHO_N "(cached) $ECHO_C" >&6
  4682. else
  4683. lt_cv_prog_cc_static_works=no
  4684. save_LDFLAGS="$LDFLAGS"
  4685. LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
  4686. cat >conftest.$ac_ext <<_ACEOF
  4687. #line $LINENO "configure"
  4688. /* confdefs.h. */
  4689. _ACEOF
  4690. cat confdefs.h >>conftest.$ac_ext
  4691. cat >>conftest.$ac_ext <<_ACEOF
  4692. /* end confdefs.h. */
  4693. int
  4694. main ()
  4695. {
  4696. ;
  4697. return 0;
  4698. }
  4699. _ACEOF
  4700. rm -f conftest.$ac_objext conftest$ac_exeext
  4701. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4702. (eval $ac_link) 2>&5
  4703. ac_status=$?
  4704. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4705. (exit $ac_status); } &&
  4706. { ac_try='test -s conftest$ac_exeext'
  4707. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4708. (eval $ac_try) 2>&5
  4709. ac_status=$?
  4710. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4711. (exit $ac_status); }; }; then
  4712. lt_cv_prog_cc_static_works=yes
  4713. else
  4714. echo "$as_me: failed program was:" >&5
  4715. sed 's/^/| /' conftest.$ac_ext >&5
  4716. fi
  4717. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  4718. LDFLAGS="$save_LDFLAGS"
  4719. fi
  4720. # Belt *and* braces to stop my trousers falling down:
  4721. test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
  4722. echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
  4723. echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
  4724. pic_flag="$lt_cv_prog_cc_pic"
  4725. special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
  4726. wl="$lt_cv_prog_cc_wl"
  4727. link_static_flag="$lt_cv_prog_cc_static"
  4728. no_builtin_flag="$lt_cv_prog_cc_no_builtin"
  4729. can_build_shared="$lt_cv_prog_cc_can_build_shared"
  4730. # Check to see if options -o and -c are simultaneously supported by compiler
  4731. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  4732. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  4733. if test "${lt_cv_compiler_c_o+set}" = set; then
  4734. echo $ECHO_N "(cached) $ECHO_C" >&6
  4735. else
  4736. $rm -r conftest 2>/dev/null
  4737. mkdir conftest
  4738. cd conftest
  4739. echo "int some_variable = 0;" > conftest.$ac_ext
  4740. mkdir out
  4741. # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
  4742. # that will create temporary files in the current directory regardless of
  4743. # the output directory. Thus, making CWD read-only will cause this test
  4744. # to fail, enabling locking or at least warning the user not to do parallel
  4745. # builds.
  4746. chmod -w .
  4747. save_CFLAGS="$CFLAGS"
  4748. CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
  4749. compiler_c_o=no
  4750. if { (eval echo configure:5273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
  4751. # The compiler can only warn and ignore the option if not recognized
  4752. # So say no if there are warnings
  4753. if test -s out/conftest.err; then
  4754. lt_cv_compiler_c_o=no
  4755. else
  4756. lt_cv_compiler_c_o=yes
  4757. fi
  4758. else
  4759. # Append any errors to the config.log.
  4760. cat out/conftest.err 1>&5
  4761. lt_cv_compiler_c_o=no
  4762. fi
  4763. CFLAGS="$save_CFLAGS"
  4764. chmod u+w .
  4765. $rm conftest* out/*
  4766. rmdir out
  4767. cd ..
  4768. rmdir conftest
  4769. $rm -r conftest 2>/dev/null
  4770. fi
  4771. compiler_c_o=$lt_cv_compiler_c_o
  4772. echo "$as_me:$LINENO: result: $compiler_c_o" >&5
  4773. echo "${ECHO_T}$compiler_c_o" >&6
  4774. if test x"$compiler_c_o" = x"yes"; then
  4775. # Check to see if we can write to a .lo
  4776. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
  4777. echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
  4778. if test "${lt_cv_compiler_o_lo+set}" = set; then
  4779. echo $ECHO_N "(cached) $ECHO_C" >&6
  4780. else
  4781. lt_cv_compiler_o_lo=no
  4782. save_CFLAGS="$CFLAGS"
  4783. CFLAGS="$CFLAGS -c -o conftest.lo"
  4784. save_objext="$ac_objext"
  4785. ac_objext=lo
  4786. cat >conftest.$ac_ext <<_ACEOF
  4787. #line $LINENO "configure"
  4788. /* confdefs.h. */
  4789. _ACEOF
  4790. cat confdefs.h >>conftest.$ac_ext
  4791. cat >>conftest.$ac_ext <<_ACEOF
  4792. /* end confdefs.h. */
  4793. int
  4794. main ()
  4795. {
  4796. int some_variable = 0;
  4797. ;
  4798. return 0;
  4799. }
  4800. _ACEOF
  4801. rm -f conftest.$ac_objext
  4802. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4803. (eval $ac_compile) 2>&5
  4804. ac_status=$?
  4805. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4806. (exit $ac_status); } &&
  4807. { ac_try='test -s conftest.$ac_objext'
  4808. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4809. (eval $ac_try) 2>&5
  4810. ac_status=$?
  4811. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4812. (exit $ac_status); }; }; then
  4813. # The compiler can only warn and ignore the option if not recognized
  4814. # So say no if there are warnings
  4815. if test -s conftest.err; then
  4816. lt_cv_compiler_o_lo=no
  4817. else
  4818. lt_cv_compiler_o_lo=yes
  4819. fi
  4820. else
  4821. echo "$as_me: failed program was:" >&5
  4822. sed 's/^/| /' conftest.$ac_ext >&5
  4823. fi
  4824. rm -f conftest.$ac_objext conftest.$ac_ext
  4825. ac_objext="$save_objext"
  4826. CFLAGS="$save_CFLAGS"
  4827. fi
  4828. compiler_o_lo=$lt_cv_compiler_o_lo
  4829. echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
  4830. echo "${ECHO_T}$compiler_o_lo" >&6
  4831. else
  4832. compiler_o_lo=no
  4833. fi
  4834. # Check to see if we can do hard links to lock some files if needed
  4835. hard_links="nottested"
  4836. if test "$compiler_c_o" = no && test "$need_locks" != no; then
  4837. # do not overwrite the value of need_locks provided by the user
  4838. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  4839. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  4840. hard_links=yes
  4841. $rm conftest*
  4842. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  4843. touch conftest.a
  4844. ln conftest.a conftest.b 2>&5 || hard_links=no
  4845. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  4846. echo "$as_me:$LINENO: result: $hard_links" >&5
  4847. echo "${ECHO_T}$hard_links" >&6
  4848. if test "$hard_links" = no; then
  4849. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  4850. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  4851. need_locks=warn
  4852. fi
  4853. else
  4854. need_locks=no
  4855. fi
  4856. if test "$GCC" = yes; then
  4857. # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
  4858. echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  4859. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  4860. echo "int some_variable = 0;" > conftest.$ac_ext
  4861. save_CFLAGS="$CFLAGS"
  4862. CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
  4863. compiler_rtti_exceptions=no
  4864. cat >conftest.$ac_ext <<_ACEOF
  4865. #line $LINENO "configure"
  4866. /* confdefs.h. */
  4867. _ACEOF
  4868. cat confdefs.h >>conftest.$ac_ext
  4869. cat >>conftest.$ac_ext <<_ACEOF
  4870. /* end confdefs.h. */
  4871. int
  4872. main ()
  4873. {
  4874. int some_variable = 0;
  4875. ;
  4876. return 0;
  4877. }
  4878. _ACEOF
  4879. rm -f conftest.$ac_objext
  4880. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4881. (eval $ac_compile) 2>&5
  4882. ac_status=$?
  4883. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4884. (exit $ac_status); } &&
  4885. { ac_try='test -s conftest.$ac_objext'
  4886. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4887. (eval $ac_try) 2>&5
  4888. ac_status=$?
  4889. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4890. (exit $ac_status); }; }; then
  4891. # The compiler can only warn and ignore the option if not recognized
  4892. # So say no if there are warnings
  4893. if test -s conftest.err; then
  4894. compiler_rtti_exceptions=no
  4895. else
  4896. compiler_rtti_exceptions=yes
  4897. fi
  4898. else
  4899. echo "$as_me: failed program was:" >&5
  4900. sed 's/^/| /' conftest.$ac_ext >&5
  4901. fi
  4902. rm -f conftest.$ac_objext conftest.$ac_ext
  4903. CFLAGS="$save_CFLAGS"
  4904. echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
  4905. echo "${ECHO_T}$compiler_rtti_exceptions" >&6
  4906. if test "$compiler_rtti_exceptions" = "yes"; then
  4907. no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
  4908. else
  4909. no_builtin_flag=' -fno-builtin'
  4910. fi
  4911. fi
  4912. # See if the linker supports building shared libraries.
  4913. echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
  4914. echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
  4915. allow_undefined_flag=
  4916. no_undefined_flag=
  4917. need_lib_prefix=unknown
  4918. need_version=unknown
  4919. # when you set need_version to no, make sure it does not cause -set_version
  4920. # flags to be left without arguments
  4921. archive_cmds=
  4922. archive_expsym_cmds=
  4923. old_archive_from_new_cmds=
  4924. old_archive_from_expsyms_cmds=
  4925. export_dynamic_flag_spec=
  4926. whole_archive_flag_spec=
  4927. thread_safe_flag_spec=
  4928. hardcode_into_libs=no
  4929. hardcode_libdir_flag_spec=
  4930. hardcode_libdir_separator=
  4931. hardcode_direct=no
  4932. hardcode_minus_L=no
  4933. hardcode_shlibpath_var=unsupported
  4934. runpath_var=
  4935. link_all_deplibs=unknown
  4936. always_export_symbols=no
  4937. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4938. # include_expsyms should be a list of space-separated symbols to be *always*
  4939. # included in the symbol list
  4940. include_expsyms=
  4941. # exclude_expsyms can be an egrep regular expression of symbols to exclude
  4942. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  4943. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  4944. # as well as any symbol that contains `d'.
  4945. exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  4946. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  4947. # platforms (ab)use it in PIC code, but their linkers get confused if
  4948. # the symbol is explicitly referenced. Since portable code cannot
  4949. # rely on this symbol name, it's probably fine to never include it in
  4950. # preloaded symbol tables.
  4951. extract_expsyms_cmds=
  4952. case $host_os in
  4953. cygwin* | mingw* | pw32*)
  4954. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  4955. # When not using gcc, we currently assume that we are using
  4956. # Microsoft Visual C++.
  4957. if test "$GCC" != yes; then
  4958. with_gnu_ld=no
  4959. fi
  4960. ;;
  4961. openbsd*)
  4962. with_gnu_ld=no
  4963. ;;
  4964. esac
  4965. ld_shlibs=yes
  4966. if test "$with_gnu_ld" = yes; then
  4967. # If archive_cmds runs LD, not CC, wlarc should be empty
  4968. wlarc='${wl}'
  4969. # See if GNU ld supports shared libraries.
  4970. case $host_os in
  4971. aix3* | aix4* | aix5*)
  4972. # On AIX, the GNU linker is very broken
  4973. # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
  4974. ld_shlibs=no
  4975. cat <<EOF 1>&2
  4976. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  4977. *** to be unable to reliably create shared libraries on AIX.
  4978. *** Therefore, libtool is disabling shared libraries support. If you
  4979. *** really care for shared libraries, you may want to modify your PATH
  4980. *** so that a non-GNU linker is found, and then restart.
  4981. EOF
  4982. ;;
  4983. amigaos*)
  4984. archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  4985. hardcode_libdir_flag_spec='-L$libdir'
  4986. hardcode_minus_L=yes
  4987. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  4988. # that the semantics of dynamic libraries on AmigaOS, at least up
  4989. # to version 4, is to share data among multiple programs linked
  4990. # with the same dynamic library. Since this doesn't match the
  4991. # behavior of shared libraries on other platforms, we can use
  4992. # them.
  4993. ld_shlibs=no
  4994. ;;
  4995. beos*)
  4996. if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  4997. allow_undefined_flag=unsupported
  4998. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  4999. # support --undefined. This deserves some investigation. FIXME
  5000. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5001. else
  5002. ld_shlibs=no
  5003. fi
  5004. ;;
  5005. cygwin* | mingw* | pw32*)
  5006. # hardcode_libdir_flag_spec is actually meaningless, as there is
  5007. # no search path for DLLs.
  5008. hardcode_libdir_flag_spec='-L$libdir'
  5009. allow_undefined_flag=unsupported
  5010. always_export_symbols=yes
  5011. extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
  5012. sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
  5013. test -f $output_objdir/impgen.exe || (cd $output_objdir && \
  5014. if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
  5015. else $CC -o impgen impgen.c ; fi)~
  5016. $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
  5017. old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
  5018. # cygwin and mingw dlls have different entry points and sets of symbols
  5019. # to exclude.
  5020. # FIXME: what about values for MSVC?
  5021. dll_entry=__cygwin_dll_entry@12
  5022. dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
  5023. case $host_os in
  5024. mingw*)
  5025. # mingw values
  5026. dll_entry=_DllMainCRTStartup@12
  5027. dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
  5028. ;;
  5029. esac
  5030. # mingw and cygwin differ, and it's simplest to just exclude the union
  5031. # of the two symbol sets.
  5032. dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
  5033. # recent cygwin and mingw systems supply a stub DllMain which the user
  5034. # can override, but on older systems we have to supply one (in ltdll.c)
  5035. if test "x$lt_cv_need_dllmain" = "xyes"; then
  5036. ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
  5037. ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
  5038. test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
  5039. else
  5040. ltdll_obj=
  5041. ltdll_cmds=
  5042. fi
  5043. # Extract the symbol export list from an `--export-all' def file,
  5044. # then regenerate the def file from the symbol export list, so that
  5045. # the compiled dll only exports the symbol export list.
  5046. # Be careful not to strip the DATA tag left be newer dlltools.
  5047. export_symbols_cmds="$ltdll_cmds"'
  5048. $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
  5049. sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
  5050. # If the export-symbols file already is a .def file (1st line
  5051. # is EXPORTS), use it as is.
  5052. # If DATA tags from a recent dlltool are present, honour them!
  5053. archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
  5054. cp $export_symbols $output_objdir/$soname-def;
  5055. else
  5056. echo EXPORTS > $output_objdir/$soname-def;
  5057. _lt_hint=1;
  5058. cat $export_symbols | while read symbol; do
  5059. set dummy \$symbol;
  5060. case \$# in
  5061. 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
  5062. 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
  5063. *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
  5064. esac;
  5065. _lt_hint=`expr 1 + \$_lt_hint`;
  5066. done;
  5067. fi~
  5068. '"$ltdll_cmds"'
  5069. $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
  5070. $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
  5071. $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
  5072. $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
  5073. $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
  5074. ;;
  5075. netbsd*)
  5076. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  5077. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  5078. wlarc=
  5079. else
  5080. archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5081. archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  5082. fi
  5083. ;;
  5084. solaris* | sysv5*)
  5085. if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
  5086. ld_shlibs=no
  5087. cat <<EOF 1>&2
  5088. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  5089. *** create shared libraries on Solaris systems. Therefore, libtool
  5090. *** is disabling shared libraries support. We urge you to upgrade GNU
  5091. *** binutils to release 2.9.1 or newer. Another option is to modify
  5092. *** your PATH or compiler configuration so that the native linker is
  5093. *** used, and then restart.
  5094. EOF
  5095. elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  5096. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5097. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  5098. else
  5099. ld_shlibs=no
  5100. fi
  5101. ;;
  5102. sunos4*)
  5103. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  5104. wlarc=
  5105. hardcode_direct=yes
  5106. hardcode_shlibpath_var=no
  5107. ;;
  5108. *)
  5109. if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  5110. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5111. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  5112. else
  5113. ld_shlibs=no
  5114. fi
  5115. ;;
  5116. esac
  5117. if test "$ld_shlibs" = yes; then
  5118. runpath_var=LD_RUN_PATH
  5119. hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  5120. export_dynamic_flag_spec='${wl}--export-dynamic'
  5121. case $host_os in
  5122. cygwin* | mingw* | pw32*)
  5123. # dlltool doesn't understand --whole-archive et. al.
  5124. whole_archive_flag_spec=
  5125. ;;
  5126. *)
  5127. # ancient GNU ld didn't support --whole-archive et. al.
  5128. if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
  5129. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  5130. else
  5131. whole_archive_flag_spec=
  5132. fi
  5133. ;;
  5134. esac
  5135. fi
  5136. else
  5137. # PORTME fill in a description of your system's linker (not GNU ld)
  5138. case $host_os in
  5139. aix3*)
  5140. allow_undefined_flag=unsupported
  5141. always_export_symbols=yes
  5142. archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  5143. # Note: this linker hardcodes the directories in LIBPATH if there
  5144. # are no directories specified by -L.
  5145. hardcode_minus_L=yes
  5146. if test "$GCC" = yes && test -z "$link_static_flag"; then
  5147. # Neither direct hardcoding nor static linking is supported with a
  5148. # broken collect2.
  5149. hardcode_direct=unsupported
  5150. fi
  5151. ;;
  5152. aix4* | aix5*)
  5153. if test "$host_cpu" = ia64; then
  5154. # On IA64, the linker does run time linking by default, so we don't
  5155. # have to do anything special.
  5156. aix_use_runtimelinking=no
  5157. exp_sym_flag='-Bexport'
  5158. no_entry_flag=""
  5159. else
  5160. aix_use_runtimelinking=no
  5161. # Test if we are trying to use run time linking or normal
  5162. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  5163. # need to do runtime linking.
  5164. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  5165. for ld_flag in $LDFLAGS; do
  5166. case $ld_flag in
  5167. *-brtl*)
  5168. aix_use_runtimelinking=yes
  5169. break
  5170. ;;
  5171. esac
  5172. done
  5173. esac
  5174. exp_sym_flag='-bexport'
  5175. no_entry_flag='-bnoentry'
  5176. fi
  5177. # When large executables or shared objects are built, AIX ld can
  5178. # have problems creating the table of contents. If linking a library
  5179. # or program results in "error TOC overflow" add -mminimal-toc to
  5180. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  5181. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  5182. hardcode_direct=yes
  5183. archive_cmds=''
  5184. hardcode_libdir_separator=':'
  5185. if test "$GCC" = yes; then
  5186. case $host_os in aix4.[012]|aix4.[012].*)
  5187. collect2name=`${CC} -print-prog-name=collect2`
  5188. if test -f "$collect2name" && \
  5189. strings "$collect2name" | grep resolve_lib_name >/dev/null
  5190. then
  5191. # We have reworked collect2
  5192. hardcode_direct=yes
  5193. else
  5194. # We have old collect2
  5195. hardcode_direct=unsupported
  5196. # It fails to find uninstalled libraries when the uninstalled
  5197. # path is not listed in the libpath. Setting hardcode_minus_L
  5198. # to unsupported forces relinking
  5199. hardcode_minus_L=yes
  5200. hardcode_libdir_flag_spec='-L$libdir'
  5201. hardcode_libdir_separator=
  5202. fi
  5203. esac
  5204. shared_flag='-shared'
  5205. else
  5206. # not using gcc
  5207. if test "$host_cpu" = ia64; then
  5208. shared_flag='${wl}-G'
  5209. else
  5210. if test "$aix_use_runtimelinking" = yes; then
  5211. shared_flag='${wl}-G'
  5212. else
  5213. shared_flag='${wl}-bM:SRE'
  5214. fi
  5215. fi
  5216. fi
  5217. # It seems that -bexpall can do strange things, so it is better to
  5218. # generate a list of symbols to export.
  5219. always_export_symbols=yes
  5220. if test "$aix_use_runtimelinking" = yes; then
  5221. # Warning - without using the other runtime loading flags (-brtl),
  5222. # -berok will link without error, but may produce a broken library.
  5223. allow_undefined_flag='-berok'
  5224. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
  5225. archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  5226. else
  5227. if test "$host_cpu" = ia64; then
  5228. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  5229. allow_undefined_flag="-z nodefs"
  5230. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  5231. else
  5232. hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
  5233. # Warning - without using the other run time loading flags,
  5234. # -berok will link without error, but may produce a broken library.
  5235. allow_undefined_flag='${wl}-berok'
  5236. # This is a bit strange, but is similar to how AIX traditionally builds
  5237. # it's shared libraries.
  5238. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
  5239. fi
  5240. fi
  5241. ;;
  5242. amigaos*)
  5243. archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  5244. hardcode_libdir_flag_spec='-L$libdir'
  5245. hardcode_minus_L=yes
  5246. # see comment about different semantics on the GNU ld section
  5247. ld_shlibs=no
  5248. ;;
  5249. cygwin* | mingw* | pw32*)
  5250. # When not using gcc, we currently assume that we are using
  5251. # Microsoft Visual C++.
  5252. # hardcode_libdir_flag_spec is actually meaningless, as there is
  5253. # no search path for DLLs.
  5254. hardcode_libdir_flag_spec=' '
  5255. allow_undefined_flag=unsupported
  5256. # Tell ltmain to make .lib files, not .a files.
  5257. libext=lib
  5258. # FIXME: Setting linknames here is a bad hack.
  5259. archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  5260. # The linker will automatically build a .lib file if we build a DLL.
  5261. old_archive_from_new_cmds='true'
  5262. # FIXME: Should let the user specify the lib program.
  5263. old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
  5264. fix_srcfile_path='`cygpath -w "$srcfile"`'
  5265. ;;
  5266. darwin* | rhapsody*)
  5267. case "$host_os" in
  5268. rhapsody* | darwin1.[012])
  5269. allow_undefined_flag='-undefined suppress'
  5270. ;;
  5271. *) # Darwin 1.3 on
  5272. allow_undefined_flag='-flat_namespace -undefined suppress'
  5273. ;;
  5274. esac
  5275. # FIXME: Relying on posixy $() will cause problems for
  5276. # cross-compilation, but unfortunately the echo tests do not
  5277. # yet detect zsh echo's removal of \ escapes. Also zsh mangles
  5278. # `"' quotes if we put them in here... so don't!
  5279. archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
  5280. # We need to add '_' to the symbols in $export_symbols first
  5281. #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
  5282. hardcode_direct=yes
  5283. hardcode_shlibpath_var=no
  5284. whole_archive_flag_spec='-all_load $convenience'
  5285. ;;
  5286. freebsd1*)
  5287. ld_shlibs=no
  5288. ;;
  5289. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  5290. # support. Future versions do this automatically, but an explicit c++rt0.o
  5291. # does not break anything, and helps significantly (at the cost of a little
  5292. # extra space).
  5293. freebsd2.2*)
  5294. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  5295. hardcode_libdir_flag_spec='-R$libdir'
  5296. hardcode_direct=yes
  5297. hardcode_shlibpath_var=no
  5298. ;;
  5299. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  5300. freebsd2*)
  5301. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  5302. hardcode_direct=yes
  5303. hardcode_minus_L=yes
  5304. hardcode_shlibpath_var=no
  5305. ;;
  5306. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  5307. freebsd*)
  5308. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  5309. hardcode_libdir_flag_spec='-R$libdir'
  5310. hardcode_direct=yes
  5311. hardcode_shlibpath_var=no
  5312. ;;
  5313. hpux9* | hpux10* | hpux11*)
  5314. case $host_os in
  5315. hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
  5316. *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
  5317. esac
  5318. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  5319. hardcode_libdir_separator=:
  5320. hardcode_direct=yes
  5321. hardcode_minus_L=yes # Not in the search PATH, but as the default
  5322. # location of the library.
  5323. export_dynamic_flag_spec='${wl}-E'
  5324. ;;
  5325. irix5* | irix6* | nonstopux*)
  5326. if test "$GCC" = yes; then
  5327. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  5328. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  5329. else
  5330. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  5331. hardcode_libdir_flag_spec='-rpath $libdir'
  5332. fi
  5333. hardcode_libdir_separator=:
  5334. link_all_deplibs=yes
  5335. ;;
  5336. netbsd*)
  5337. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  5338. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  5339. else
  5340. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  5341. fi
  5342. hardcode_libdir_flag_spec='-R$libdir'
  5343. hardcode_direct=yes
  5344. hardcode_shlibpath_var=no
  5345. ;;
  5346. newsos6)
  5347. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5348. hardcode_direct=yes
  5349. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  5350. hardcode_libdir_separator=:
  5351. hardcode_shlibpath_var=no
  5352. ;;
  5353. openbsd*)
  5354. hardcode_direct=yes
  5355. hardcode_shlibpath_var=no
  5356. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5357. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  5358. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  5359. export_dynamic_flag_spec='${wl}-E'
  5360. else
  5361. case "$host_os" in
  5362. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  5363. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  5364. hardcode_libdir_flag_spec='-R$libdir'
  5365. ;;
  5366. *)
  5367. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  5368. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  5369. ;;
  5370. esac
  5371. fi
  5372. ;;
  5373. os2*)
  5374. hardcode_libdir_flag_spec='-L$libdir'
  5375. hardcode_minus_L=yes
  5376. allow_undefined_flag=unsupported
  5377. archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  5378. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  5379. ;;
  5380. osf3*)
  5381. if test "$GCC" = yes; then
  5382. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  5383. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  5384. else
  5385. allow_undefined_flag=' -expect_unresolved \*'
  5386. archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  5387. fi
  5388. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  5389. hardcode_libdir_separator=:
  5390. ;;
  5391. osf4* | osf5*) # as osf3* with the addition of -msym flag
  5392. if test "$GCC" = yes; then
  5393. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  5394. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  5395. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  5396. else
  5397. allow_undefined_flag=' -expect_unresolved \*'
  5398. archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  5399. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  5400. $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
  5401. #Both c and cxx compiler support -rpath directly
  5402. hardcode_libdir_flag_spec='-rpath $libdir'
  5403. fi
  5404. hardcode_libdir_separator=:
  5405. ;;
  5406. sco3.2v5*)
  5407. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5408. hardcode_shlibpath_var=no
  5409. runpath_var=LD_RUN_PATH
  5410. hardcode_runpath_var=yes
  5411. export_dynamic_flag_spec='${wl}-Bexport'
  5412. ;;
  5413. solaris*)
  5414. # gcc --version < 3.0 without binutils cannot create self contained
  5415. # shared libraries reliably, requiring libgcc.a to resolve some of
  5416. # the object symbols generated in some cases. Libraries that use
  5417. # assert need libgcc.a to resolve __eprintf, for example. Linking
  5418. # a copy of libgcc.a into every shared library to guarantee resolving
  5419. # such symbols causes other problems: According to Tim Van Holder
  5420. # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
  5421. # (to the application) exception stack for one thing.
  5422. no_undefined_flag=' -z defs'
  5423. if test "$GCC" = yes; then
  5424. case `$CC --version 2>/dev/null` in
  5425. [12].*)
  5426. cat <<EOF 1>&2
  5427. *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
  5428. *** create self contained shared libraries on Solaris systems, without
  5429. *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
  5430. *** -no-undefined support, which will at least allow you to build shared
  5431. *** libraries. However, you may find that when you link such libraries
  5432. *** into an application without using GCC, you have to manually add
  5433. *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
  5434. *** upgrade to a newer version of GCC. Another option is to rebuild your
  5435. *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
  5436. EOF
  5437. no_undefined_flag=
  5438. ;;
  5439. esac
  5440. fi
  5441. # $CC -shared without GNU ld will not create a library from C++
  5442. # object files and a static libstdc++, better avoid it by now
  5443. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5444. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  5445. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  5446. hardcode_libdir_flag_spec='-R$libdir'
  5447. hardcode_shlibpath_var=no
  5448. case $host_os in
  5449. solaris2.[0-5] | solaris2.[0-5].*) ;;
  5450. *) # Supported since Solaris 2.6 (maybe 2.5.1?)
  5451. whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  5452. esac
  5453. link_all_deplibs=yes
  5454. ;;
  5455. sunos4*)
  5456. if test "x$host_vendor" = xsequent; then
  5457. # Use $CC to link under sequent, because it throws in some extra .o
  5458. # files that make .init and .fini sections work.
  5459. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  5460. else
  5461. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  5462. fi
  5463. hardcode_libdir_flag_spec='-L$libdir'
  5464. hardcode_direct=yes
  5465. hardcode_minus_L=yes
  5466. hardcode_shlibpath_var=no
  5467. ;;
  5468. sysv4)
  5469. case $host_vendor in
  5470. sni)
  5471. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5472. hardcode_direct=yes # is this really true???
  5473. ;;
  5474. siemens)
  5475. ## LD is ld it makes a PLAMLIB
  5476. ## CC just makes a GrossModule.
  5477. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  5478. reload_cmds='$CC -r -o $output$reload_objs'
  5479. hardcode_direct=no
  5480. ;;
  5481. motorola)
  5482. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5483. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  5484. ;;
  5485. esac
  5486. runpath_var='LD_RUN_PATH'
  5487. hardcode_shlibpath_var=no
  5488. ;;
  5489. sysv4.3*)
  5490. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5491. hardcode_shlibpath_var=no
  5492. export_dynamic_flag_spec='-Bexport'
  5493. ;;
  5494. sysv5*)
  5495. no_undefined_flag=' -z text'
  5496. # $CC -shared without GNU ld will not create a library from C++
  5497. # object files and a static libstdc++, better avoid it by now
  5498. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5499. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  5500. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  5501. hardcode_libdir_flag_spec=
  5502. hardcode_shlibpath_var=no
  5503. runpath_var='LD_RUN_PATH'
  5504. ;;
  5505. uts4*)
  5506. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5507. hardcode_libdir_flag_spec='-L$libdir'
  5508. hardcode_shlibpath_var=no
  5509. ;;
  5510. dgux*)
  5511. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5512. hardcode_libdir_flag_spec='-L$libdir'
  5513. hardcode_shlibpath_var=no
  5514. ;;
  5515. sysv4*MP*)
  5516. if test -d /usr/nec; then
  5517. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5518. hardcode_shlibpath_var=no
  5519. runpath_var=LD_RUN_PATH
  5520. hardcode_runpath_var=yes
  5521. ld_shlibs=yes
  5522. fi
  5523. ;;
  5524. sysv4.2uw2*)
  5525. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  5526. hardcode_direct=yes
  5527. hardcode_minus_L=no
  5528. hardcode_shlibpath_var=no
  5529. hardcode_runpath_var=yes
  5530. runpath_var=LD_RUN_PATH
  5531. ;;
  5532. sysv5uw7* | unixware7*)
  5533. no_undefined_flag='${wl}-z ${wl}text'
  5534. if test "$GCC" = yes; then
  5535. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  5536. else
  5537. archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  5538. fi
  5539. runpath_var='LD_RUN_PATH'
  5540. hardcode_shlibpath_var=no
  5541. ;;
  5542. *)
  5543. ld_shlibs=no
  5544. ;;
  5545. esac
  5546. fi
  5547. echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  5548. echo "${ECHO_T}$ld_shlibs" >&6
  5549. test "$ld_shlibs" = no && can_build_shared=no
  5550. # Check hardcoding attributes.
  5551. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  5552. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  5553. hardcode_action=
  5554. if test -n "$hardcode_libdir_flag_spec" || \
  5555. test -n "$runpath_var"; then
  5556. # We can hardcode non-existant directories.
  5557. if test "$hardcode_direct" != no &&
  5558. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  5559. # have to relink, otherwise we might link with an installed library
  5560. # when we should be linking with a yet-to-be-installed one
  5561. ## test "$hardcode_shlibpath_var" != no &&
  5562. test "$hardcode_minus_L" != no; then
  5563. # Linking always hardcodes the temporary library directory.
  5564. hardcode_action=relink
  5565. else
  5566. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  5567. hardcode_action=immediate
  5568. fi
  5569. else
  5570. # We cannot hardcode anything, or else we can only hardcode existing
  5571. # directories.
  5572. hardcode_action=unsupported
  5573. fi
  5574. echo "$as_me:$LINENO: result: $hardcode_action" >&5
  5575. echo "${ECHO_T}$hardcode_action" >&6
  5576. striplib=
  5577. old_striplib=
  5578. echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  5579. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  5580. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  5581. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  5582. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  5583. echo "$as_me:$LINENO: result: yes" >&5
  5584. echo "${ECHO_T}yes" >&6
  5585. else
  5586. echo "$as_me:$LINENO: result: no" >&5
  5587. echo "${ECHO_T}no" >&6
  5588. fi
  5589. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5590. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5591. # PORTME Fill in your ld.so characteristics
  5592. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  5593. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  5594. library_names_spec=
  5595. libname_spec='lib$name'
  5596. soname_spec=
  5597. postinstall_cmds=
  5598. postuninstall_cmds=
  5599. finish_cmds=
  5600. finish_eval=
  5601. shlibpath_var=
  5602. shlibpath_overrides_runpath=unknown
  5603. version_type=none
  5604. dynamic_linker="$host_os ld.so"
  5605. sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/X11R6/lib"
  5606. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib /usr/X11R6/lib"
  5607. case $host_os in
  5608. aix3*)
  5609. version_type=linux
  5610. library_names_spec='${libname}${release}.so$versuffix $libname.a'
  5611. shlibpath_var=LIBPATH
  5612. # AIX has no versioning support, so we append a major version to the name.
  5613. soname_spec='${libname}${release}.so$major'
  5614. ;;
  5615. aix4* | aix5*)
  5616. version_type=linux
  5617. need_lib_prefix=no
  5618. need_version=no
  5619. hardcode_into_libs=yes
  5620. if test "$host_cpu" = ia64; then
  5621. # AIX 5 supports IA64
  5622. library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
  5623. shlibpath_var=LD_LIBRARY_PATH
  5624. else
  5625. # With GCC up to 2.95.x, collect2 would create an import file
  5626. # for dependence libraries. The import file would start with
  5627. # the line `#! .'. This would cause the generated library to
  5628. # depend on `.', always an invalid library. This was fixed in
  5629. # development snapshots of GCC prior to 3.0.
  5630. case $host_os in
  5631. aix4 | aix4.[01] | aix4.[01].*)
  5632. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  5633. echo ' yes '
  5634. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  5635. :
  5636. else
  5637. can_build_shared=no
  5638. fi
  5639. ;;
  5640. esac
  5641. # AIX (on Power*) has no versioning support, so currently we can
  5642. # not hardcode correct soname into executable. Probably we can
  5643. # add versioning support to collect2, so additional links can
  5644. # be useful in future.
  5645. if test "$aix_use_runtimelinking" = yes; then
  5646. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  5647. # instead of lib<name>.a to let people know that these are not
  5648. # typical AIX shared libraries.
  5649. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  5650. else
  5651. # We preserve .a as extension for shared libraries through AIX4.2
  5652. # and later when we are not doing run time linking.
  5653. library_names_spec='${libname}${release}.a $libname.a'
  5654. soname_spec='${libname}${release}.so$major'
  5655. fi
  5656. shlibpath_var=LIBPATH
  5657. fi
  5658. hardcode_into_libs=yes
  5659. ;;
  5660. amigaos*)
  5661. library_names_spec='$libname.ixlibrary $libname.a'
  5662. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  5663. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
  5664. ;;
  5665. beos*)
  5666. library_names_spec='${libname}.so'
  5667. dynamic_linker="$host_os ld.so"
  5668. shlibpath_var=LIBRARY_PATH
  5669. ;;
  5670. bsdi4*)
  5671. version_type=linux
  5672. need_version=no
  5673. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  5674. soname_spec='${libname}${release}.so$major'
  5675. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  5676. shlibpath_var=LD_LIBRARY_PATH
  5677. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  5678. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  5679. export_dynamic_flag_spec=-rdynamic
  5680. # the default ld.so.conf also contains /usr/contrib/lib and
  5681. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  5682. # libtool to hard-code these into programs
  5683. ;;
  5684. cygwin* | mingw* | pw32*)
  5685. version_type=windows
  5686. need_version=no
  5687. need_lib_prefix=no
  5688. case $GCC,$host_os in
  5689. yes,cygwin*)
  5690. library_names_spec='$libname.dll.a'
  5691. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
  5692. postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
  5693. dldir=$destdir/`dirname \$dlpath`~
  5694. test -d \$dldir || mkdir -p \$dldir~
  5695. $install_prog .libs/$dlname \$dldir/$dlname'
  5696. postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
  5697. dlpath=$dir/\$dldll~
  5698. $rm \$dlpath'
  5699. ;;
  5700. yes,mingw*)
  5701. library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
  5702. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
  5703. ;;
  5704. yes,pw32*)
  5705. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
  5706. ;;
  5707. *)
  5708. library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
  5709. ;;
  5710. esac
  5711. dynamic_linker='Win32 ld.exe'
  5712. # FIXME: first we should search . and the directory the executable is in
  5713. shlibpath_var=PATH
  5714. ;;
  5715. darwin* | rhapsody*)
  5716. dynamic_linker="$host_os dyld"
  5717. version_type=darwin
  5718. need_lib_prefix=no
  5719. need_version=no
  5720. # FIXME: Relying on posixy $() will cause problems for
  5721. # cross-compilation, but unfortunately the echo tests do not
  5722. # yet detect zsh echo's removal of \ escapes.
  5723. library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
  5724. soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
  5725. shlibpath_overrides_runpath=yes
  5726. shlibpath_var=DYLD_LIBRARY_PATH
  5727. ;;
  5728. freebsd1*)
  5729. dynamic_linker=no
  5730. ;;
  5731. freebsd*)
  5732. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  5733. version_type=freebsd-$objformat
  5734. case $version_type in
  5735. freebsd-elf*)
  5736. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
  5737. need_version=no
  5738. need_lib_prefix=no
  5739. ;;
  5740. freebsd-*)
  5741. library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
  5742. need_version=yes
  5743. ;;
  5744. esac
  5745. shlibpath_var=LD_LIBRARY_PATH
  5746. case $host_os in
  5747. freebsd2*)
  5748. shlibpath_overrides_runpath=yes
  5749. ;;
  5750. *)
  5751. shlibpath_overrides_runpath=no
  5752. hardcode_into_libs=yes
  5753. ;;
  5754. esac
  5755. ;;
  5756. gnu*)
  5757. version_type=linux
  5758. need_lib_prefix=no
  5759. need_version=no
  5760. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
  5761. soname_spec='${libname}${release}.so$major'
  5762. shlibpath_var=LD_LIBRARY_PATH
  5763. hardcode_into_libs=yes
  5764. ;;
  5765. hpux9* | hpux10* | hpux11*)
  5766. # Give a soname corresponding to the major version so that dld.sl refuses to
  5767. # link against other versions.
  5768. dynamic_linker="$host_os dld.sl"
  5769. version_type=sunos
  5770. need_lib_prefix=no
  5771. need_version=no
  5772. shlibpath_var=SHLIB_PATH
  5773. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  5774. library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
  5775. soname_spec='${libname}${release}.sl$major'
  5776. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  5777. postinstall_cmds='chmod 555 $lib'
  5778. ;;
  5779. irix5* | irix6* | nonstopux*)
  5780. case $host_os in
  5781. nonstopux*) version_type=nonstopux ;;
  5782. *) version_type=irix ;;
  5783. esac
  5784. need_lib_prefix=no
  5785. need_version=no
  5786. soname_spec='${libname}${release}.so$major'
  5787. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
  5788. case $host_os in
  5789. irix5* | nonstopux*)
  5790. libsuff= shlibsuff=
  5791. ;;
  5792. *)
  5793. case $LD in # libtool.m4 will add one of these switches to LD
  5794. *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
  5795. *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
  5796. *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
  5797. *) libsuff= shlibsuff= libmagic=never-match;;
  5798. esac
  5799. ;;
  5800. esac
  5801. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  5802. shlibpath_overrides_runpath=no
  5803. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  5804. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  5805. ;;
  5806. # No shared lib support for Linux oldld, aout, or coff.
  5807. linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
  5808. dynamic_linker=no
  5809. ;;
  5810. # This must be Linux ELF.
  5811. linux-gnu*)
  5812. version_type=linux
  5813. need_lib_prefix=no
  5814. need_version=no
  5815. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  5816. soname_spec='${libname}${release}.so$major'
  5817. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  5818. shlibpath_var=LD_LIBRARY_PATH
  5819. shlibpath_overrides_runpath=no
  5820. # This implies no fast_install, which is unacceptable.
  5821. # Some rework will be needed to allow for fast_install
  5822. # before this can be enabled.
  5823. hardcode_into_libs=yes
  5824. case $host_cpu:$lt_cv_cc_64bit_output in
  5825. powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
  5826. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
  5827. sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
  5828. ;;
  5829. esac
  5830. # We used to test for /lib/ld.so.1 and disable shared libraries on
  5831. # powerpc, because MkLinux only supported shared libraries with the
  5832. # GNU dynamic linker. Since this was broken with cross compilers,
  5833. # most powerpc-linux boxes support dynamic linking these days and
  5834. # people can always --disable-shared, the test was removed, and we
  5835. # assume the GNU/Linux dynamic linker is in use.
  5836. dynamic_linker='GNU/Linux ld.so'
  5837. ;;
  5838. netbsd*)
  5839. version_type=sunos
  5840. need_lib_prefix=no
  5841. need_version=no
  5842. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  5843. library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  5844. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  5845. dynamic_linker='NetBSD (a.out) ld.so'
  5846. else
  5847. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
  5848. soname_spec='${libname}${release}.so$major'
  5849. dynamic_linker='NetBSD ld.elf_so'
  5850. fi
  5851. shlibpath_var=LD_LIBRARY_PATH
  5852. shlibpath_overrides_runpath=yes
  5853. hardcode_into_libs=yes
  5854. ;;
  5855. newsos6)
  5856. version_type=linux
  5857. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  5858. shlibpath_var=LD_LIBRARY_PATH
  5859. shlibpath_overrides_runpath=yes
  5860. ;;
  5861. openbsd*)
  5862. version_type=sunos
  5863. need_lib_prefix=no
  5864. need_version=no
  5865. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5866. case "$host_os" in
  5867. openbsd2.[89] | openbsd2.[89].*)
  5868. shlibpath_overrides_runpath=no
  5869. ;;
  5870. *)
  5871. shlibpath_overrides_runpath=yes
  5872. ;;
  5873. esac
  5874. else
  5875. shlibpath_overrides_runpath=yes
  5876. fi
  5877. library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  5878. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  5879. shlibpath_var=LD_LIBRARY_PATH
  5880. ;;
  5881. os2*)
  5882. libname_spec='$name'
  5883. need_lib_prefix=no
  5884. library_names_spec='$libname.dll $libname.a'
  5885. dynamic_linker='OS/2 ld.exe'
  5886. shlibpath_var=LIBPATH
  5887. ;;
  5888. osf3* | osf4* | osf5*)
  5889. version_type=osf
  5890. need_version=no
  5891. soname_spec='${libname}${release}.so$major'
  5892. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  5893. shlibpath_var=LD_LIBRARY_PATH
  5894. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  5895. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  5896. hardcode_into_libs=yes
  5897. ;;
  5898. sco3.2v5*)
  5899. version_type=osf
  5900. soname_spec='${libname}${release}.so$major'
  5901. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  5902. shlibpath_var=LD_LIBRARY_PATH
  5903. ;;
  5904. solaris*)
  5905. version_type=linux
  5906. need_lib_prefix=no
  5907. need_version=no
  5908. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  5909. soname_spec='${libname}${release}.so$major'
  5910. shlibpath_var=LD_LIBRARY_PATH
  5911. shlibpath_overrides_runpath=yes
  5912. hardcode_into_libs=yes
  5913. # ldd complains unless libraries are executable
  5914. postinstall_cmds='chmod +x $lib'
  5915. ;;
  5916. sunos4*)
  5917. version_type=sunos
  5918. library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  5919. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  5920. shlibpath_var=LD_LIBRARY_PATH
  5921. shlibpath_overrides_runpath=yes
  5922. if test "$with_gnu_ld" = yes; then
  5923. need_lib_prefix=no
  5924. fi
  5925. need_version=yes
  5926. ;;
  5927. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  5928. version_type=linux
  5929. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  5930. soname_spec='${libname}${release}.so$major'
  5931. shlibpath_var=LD_LIBRARY_PATH
  5932. case $host_vendor in
  5933. sni)
  5934. shlibpath_overrides_runpath=no
  5935. need_lib_prefix=no
  5936. export_dynamic_flag_spec='${wl}-Blargedynsym'
  5937. runpath_var=LD_RUN_PATH
  5938. ;;
  5939. siemens)
  5940. need_lib_prefix=no
  5941. ;;
  5942. motorola)
  5943. need_lib_prefix=no
  5944. need_version=no
  5945. shlibpath_overrides_runpath=no
  5946. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  5947. ;;
  5948. esac
  5949. ;;
  5950. uts4*)
  5951. version_type=linux
  5952. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  5953. soname_spec='${libname}${release}.so$major'
  5954. shlibpath_var=LD_LIBRARY_PATH
  5955. ;;
  5956. dgux*)
  5957. version_type=linux
  5958. need_lib_prefix=no
  5959. need_version=no
  5960. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  5961. soname_spec='${libname}${release}.so$major'
  5962. shlibpath_var=LD_LIBRARY_PATH
  5963. ;;
  5964. sysv4*MP*)
  5965. if test -d /usr/nec ;then
  5966. version_type=linux
  5967. library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
  5968. soname_spec='$libname.so.$major'
  5969. shlibpath_var=LD_LIBRARY_PATH
  5970. fi
  5971. ;;
  5972. *)
  5973. dynamic_linker=no
  5974. ;;
  5975. esac
  5976. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  5977. echo "${ECHO_T}$dynamic_linker" >&6
  5978. test "$dynamic_linker" = no && can_build_shared=no
  5979. # Report the final consequences.
  5980. echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  5981. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
  5982. echo "$as_me:$LINENO: result: $can_build_shared" >&5
  5983. echo "${ECHO_T}$can_build_shared" >&6
  5984. echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  5985. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
  5986. test "$can_build_shared" = "no" && enable_shared=no
  5987. # On AIX, shared libraries and static libraries use the same namespace, and
  5988. # are all built from PIC.
  5989. case "$host_os" in
  5990. aix3*)
  5991. test "$enable_shared" = yes && enable_static=no
  5992. if test -n "$RANLIB"; then
  5993. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  5994. postinstall_cmds='$RANLIB $lib'
  5995. fi
  5996. ;;
  5997. aix4*)
  5998. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  5999. test "$enable_shared" = yes && enable_static=no
  6000. fi
  6001. ;;
  6002. esac
  6003. echo "$as_me:$LINENO: result: $enable_shared" >&5
  6004. echo "${ECHO_T}$enable_shared" >&6
  6005. echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  6006. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
  6007. # Make sure either enable_shared or enable_static is yes.
  6008. test "$enable_shared" = yes || enable_static=yes
  6009. echo "$as_me:$LINENO: result: $enable_static" >&5
  6010. echo "${ECHO_T}$enable_static" >&6
  6011. if test "$hardcode_action" = relink; then
  6012. # Fast installation is not supported
  6013. enable_fast_install=no
  6014. elif test "$shlibpath_overrides_runpath" = yes ||
  6015. test "$enable_shared" = no; then
  6016. # Fast installation is not necessary
  6017. enable_fast_install=needless
  6018. fi
  6019. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  6020. if test "$GCC" = yes; then
  6021. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  6022. fi
  6023. if test "x$enable_dlopen" != xyes; then
  6024. enable_dlopen=unknown
  6025. enable_dlopen_self=unknown
  6026. enable_dlopen_self_static=unknown
  6027. else
  6028. lt_cv_dlopen=no
  6029. lt_cv_dlopen_libs=
  6030. case $host_os in
  6031. beos*)
  6032. lt_cv_dlopen="load_add_on"
  6033. lt_cv_dlopen_libs=
  6034. lt_cv_dlopen_self=yes
  6035. ;;
  6036. cygwin* | mingw* | pw32*)
  6037. lt_cv_dlopen="LoadLibrary"
  6038. lt_cv_dlopen_libs=
  6039. ;;
  6040. *)
  6041. echo "$as_me:$LINENO: checking for shl_load" >&5
  6042. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
  6043. if test "${ac_cv_func_shl_load+set}" = set; then
  6044. echo $ECHO_N "(cached) $ECHO_C" >&6
  6045. else
  6046. cat >conftest.$ac_ext <<_ACEOF
  6047. #line $LINENO "configure"
  6048. /* confdefs.h. */
  6049. _ACEOF
  6050. cat confdefs.h >>conftest.$ac_ext
  6051. cat >>conftest.$ac_ext <<_ACEOF
  6052. /* end confdefs.h. */
  6053. /* System header to define __stub macros and hopefully few prototypes,
  6054. which can conflict with char shl_load (); below.
  6055. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6056. <limits.h> exists even on freestanding compilers. */
  6057. #ifdef __STDC__
  6058. # include <limits.h>
  6059. #else
  6060. # include <assert.h>
  6061. #endif
  6062. /* Override any gcc2 internal prototype to avoid an error. */
  6063. #ifdef __cplusplus
  6064. extern "C"
  6065. {
  6066. #endif
  6067. /* We use char because int might match the return type of a gcc2
  6068. builtin and then its argument prototype would still apply. */
  6069. char shl_load ();
  6070. /* The GNU C library defines this for functions which it implements
  6071. to always fail with ENOSYS. Some functions are actually named
  6072. something starting with __ and the normal name is an alias. */
  6073. #if defined (__stub_shl_load) || defined (__stub___shl_load)
  6074. choke me
  6075. #else
  6076. char (*f) () = shl_load;
  6077. #endif
  6078. #ifdef __cplusplus
  6079. }
  6080. #endif
  6081. int
  6082. main ()
  6083. {
  6084. return f != shl_load;
  6085. ;
  6086. return 0;
  6087. }
  6088. _ACEOF
  6089. rm -f conftest.$ac_objext conftest$ac_exeext
  6090. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6091. (eval $ac_link) 2>&5
  6092. ac_status=$?
  6093. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6094. (exit $ac_status); } &&
  6095. { ac_try='test -s conftest$ac_exeext'
  6096. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6097. (eval $ac_try) 2>&5
  6098. ac_status=$?
  6099. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6100. (exit $ac_status); }; }; then
  6101. ac_cv_func_shl_load=yes
  6102. else
  6103. echo "$as_me: failed program was:" >&5
  6104. sed 's/^/| /' conftest.$ac_ext >&5
  6105. ac_cv_func_shl_load=no
  6106. fi
  6107. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  6108. fi
  6109. echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  6110. echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  6111. if test $ac_cv_func_shl_load = yes; then
  6112. lt_cv_dlopen="shl_load"
  6113. else
  6114. echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  6115. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  6116. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  6117. echo $ECHO_N "(cached) $ECHO_C" >&6
  6118. else
  6119. ac_check_lib_save_LIBS=$LIBS
  6120. LIBS="-ldld $LIBS"
  6121. cat >conftest.$ac_ext <<_ACEOF
  6122. #line $LINENO "configure"
  6123. /* confdefs.h. */
  6124. _ACEOF
  6125. cat confdefs.h >>conftest.$ac_ext
  6126. cat >>conftest.$ac_ext <<_ACEOF
  6127. /* end confdefs.h. */
  6128. /* Override any gcc2 internal prototype to avoid an error. */
  6129. #ifdef __cplusplus
  6130. extern "C"
  6131. #endif
  6132. /* We use char because int might match the return type of a gcc2
  6133. builtin and then its argument prototype would still apply. */
  6134. char shl_load ();
  6135. int
  6136. main ()
  6137. {
  6138. shl_load ();
  6139. ;
  6140. return 0;
  6141. }
  6142. _ACEOF
  6143. rm -f conftest.$ac_objext conftest$ac_exeext
  6144. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6145. (eval $ac_link) 2>&5
  6146. ac_status=$?
  6147. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6148. (exit $ac_status); } &&
  6149. { ac_try='test -s conftest$ac_exeext'
  6150. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6151. (eval $ac_try) 2>&5
  6152. ac_status=$?
  6153. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6154. (exit $ac_status); }; }; then
  6155. ac_cv_lib_dld_shl_load=yes
  6156. else
  6157. echo "$as_me: failed program was:" >&5
  6158. sed 's/^/| /' conftest.$ac_ext >&5
  6159. ac_cv_lib_dld_shl_load=no
  6160. fi
  6161. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  6162. LIBS=$ac_check_lib_save_LIBS
  6163. fi
  6164. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  6165. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  6166. if test $ac_cv_lib_dld_shl_load = yes; then
  6167. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  6168. else
  6169. echo "$as_me:$LINENO: checking for dlopen" >&5
  6170. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
  6171. if test "${ac_cv_func_dlopen+set}" = set; then
  6172. echo $ECHO_N "(cached) $ECHO_C" >&6
  6173. else
  6174. cat >conftest.$ac_ext <<_ACEOF
  6175. #line $LINENO "configure"
  6176. /* confdefs.h. */
  6177. _ACEOF
  6178. cat confdefs.h >>conftest.$ac_ext
  6179. cat >>conftest.$ac_ext <<_ACEOF
  6180. /* end confdefs.h. */
  6181. /* System header to define __stub macros and hopefully few prototypes,
  6182. which can conflict with char dlopen (); below.
  6183. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6184. <limits.h> exists even on freestanding compilers. */
  6185. #ifdef __STDC__
  6186. # include <limits.h>
  6187. #else
  6188. # include <assert.h>
  6189. #endif
  6190. /* Override any gcc2 internal prototype to avoid an error. */
  6191. #ifdef __cplusplus
  6192. extern "C"
  6193. {
  6194. #endif
  6195. /* We use char because int might match the return type of a gcc2
  6196. builtin and then its argument prototype would still apply. */
  6197. char dlopen ();
  6198. /* The GNU C library defines this for functions which it implements
  6199. to always fail with ENOSYS. Some functions are actually named
  6200. something starting with __ and the normal name is an alias. */
  6201. #if defined (__stub_dlopen) || defined (__stub___dlopen)
  6202. choke me
  6203. #else
  6204. char (*f) () = dlopen;
  6205. #endif
  6206. #ifdef __cplusplus
  6207. }
  6208. #endif
  6209. int
  6210. main ()
  6211. {
  6212. return f != dlopen;
  6213. ;
  6214. return 0;
  6215. }
  6216. _ACEOF
  6217. rm -f conftest.$ac_objext conftest$ac_exeext
  6218. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6219. (eval $ac_link) 2>&5
  6220. ac_status=$?
  6221. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6222. (exit $ac_status); } &&
  6223. { ac_try='test -s conftest$ac_exeext'
  6224. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6225. (eval $ac_try) 2>&5
  6226. ac_status=$?
  6227. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6228. (exit $ac_status); }; }; then
  6229. ac_cv_func_dlopen=yes
  6230. else
  6231. echo "$as_me: failed program was:" >&5
  6232. sed 's/^/| /' conftest.$ac_ext >&5
  6233. ac_cv_func_dlopen=no
  6234. fi
  6235. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  6236. fi
  6237. echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  6238. echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  6239. if test $ac_cv_func_dlopen = yes; then
  6240. lt_cv_dlopen="dlopen"
  6241. else
  6242. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  6243. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  6244. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  6245. echo $ECHO_N "(cached) $ECHO_C" >&6
  6246. else
  6247. ac_check_lib_save_LIBS=$LIBS
  6248. LIBS="-ldl $LIBS"
  6249. cat >conftest.$ac_ext <<_ACEOF
  6250. #line $LINENO "configure"
  6251. /* confdefs.h. */
  6252. _ACEOF
  6253. cat confdefs.h >>conftest.$ac_ext
  6254. cat >>conftest.$ac_ext <<_ACEOF
  6255. /* end confdefs.h. */
  6256. /* Override any gcc2 internal prototype to avoid an error. */
  6257. #ifdef __cplusplus
  6258. extern "C"
  6259. #endif
  6260. /* We use char because int might match the return type of a gcc2
  6261. builtin and then its argument prototype would still apply. */
  6262. char dlopen ();
  6263. int
  6264. main ()
  6265. {
  6266. dlopen ();
  6267. ;
  6268. return 0;
  6269. }
  6270. _ACEOF
  6271. rm -f conftest.$ac_objext conftest$ac_exeext
  6272. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6273. (eval $ac_link) 2>&5
  6274. ac_status=$?
  6275. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6276. (exit $ac_status); } &&
  6277. { ac_try='test -s conftest$ac_exeext'
  6278. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6279. (eval $ac_try) 2>&5
  6280. ac_status=$?
  6281. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6282. (exit $ac_status); }; }; then
  6283. ac_cv_lib_dl_dlopen=yes
  6284. else
  6285. echo "$as_me: failed program was:" >&5
  6286. sed 's/^/| /' conftest.$ac_ext >&5
  6287. ac_cv_lib_dl_dlopen=no
  6288. fi
  6289. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  6290. LIBS=$ac_check_lib_save_LIBS
  6291. fi
  6292. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  6293. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  6294. if test $ac_cv_lib_dl_dlopen = yes; then
  6295. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  6296. else
  6297. echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  6298. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
  6299. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  6300. echo $ECHO_N "(cached) $ECHO_C" >&6
  6301. else
  6302. ac_check_lib_save_LIBS=$LIBS
  6303. LIBS="-lsvld $LIBS"
  6304. cat >conftest.$ac_ext <<_ACEOF
  6305. #line $LINENO "configure"
  6306. /* confdefs.h. */
  6307. _ACEOF
  6308. cat confdefs.h >>conftest.$ac_ext
  6309. cat >>conftest.$ac_ext <<_ACEOF
  6310. /* end confdefs.h. */
  6311. /* Override any gcc2 internal prototype to avoid an error. */
  6312. #ifdef __cplusplus
  6313. extern "C"
  6314. #endif
  6315. /* We use char because int might match the return type of a gcc2
  6316. builtin and then its argument prototype would still apply. */
  6317. char dlopen ();
  6318. int
  6319. main ()
  6320. {
  6321. dlopen ();
  6322. ;
  6323. return 0;
  6324. }
  6325. _ACEOF
  6326. rm -f conftest.$ac_objext conftest$ac_exeext
  6327. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6328. (eval $ac_link) 2>&5
  6329. ac_status=$?
  6330. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6331. (exit $ac_status); } &&
  6332. { ac_try='test -s conftest$ac_exeext'
  6333. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6334. (eval $ac_try) 2>&5
  6335. ac_status=$?
  6336. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6337. (exit $ac_status); }; }; then
  6338. ac_cv_lib_svld_dlopen=yes
  6339. else
  6340. echo "$as_me: failed program was:" >&5
  6341. sed 's/^/| /' conftest.$ac_ext >&5
  6342. ac_cv_lib_svld_dlopen=no
  6343. fi
  6344. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  6345. LIBS=$ac_check_lib_save_LIBS
  6346. fi
  6347. echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  6348. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
  6349. if test $ac_cv_lib_svld_dlopen = yes; then
  6350. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  6351. else
  6352. echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  6353. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
  6354. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  6355. echo $ECHO_N "(cached) $ECHO_C" >&6
  6356. else
  6357. ac_check_lib_save_LIBS=$LIBS
  6358. LIBS="-ldld $LIBS"
  6359. cat >conftest.$ac_ext <<_ACEOF
  6360. #line $LINENO "configure"
  6361. /* confdefs.h. */
  6362. _ACEOF
  6363. cat confdefs.h >>conftest.$ac_ext
  6364. cat >>conftest.$ac_ext <<_ACEOF
  6365. /* end confdefs.h. */
  6366. /* Override any gcc2 internal prototype to avoid an error. */
  6367. #ifdef __cplusplus
  6368. extern "C"
  6369. #endif
  6370. /* We use char because int might match the return type of a gcc2
  6371. builtin and then its argument prototype would still apply. */
  6372. char dld_link ();
  6373. int
  6374. main ()
  6375. {
  6376. dld_link ();
  6377. ;
  6378. return 0;
  6379. }
  6380. _ACEOF
  6381. rm -f conftest.$ac_objext conftest$ac_exeext
  6382. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6383. (eval $ac_link) 2>&5
  6384. ac_status=$?
  6385. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6386. (exit $ac_status); } &&
  6387. { ac_try='test -s conftest$ac_exeext'
  6388. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6389. (eval $ac_try) 2>&5
  6390. ac_status=$?
  6391. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6392. (exit $ac_status); }; }; then
  6393. ac_cv_lib_dld_dld_link=yes
  6394. else
  6395. echo "$as_me: failed program was:" >&5
  6396. sed 's/^/| /' conftest.$ac_ext >&5
  6397. ac_cv_lib_dld_dld_link=no
  6398. fi
  6399. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  6400. LIBS=$ac_check_lib_save_LIBS
  6401. fi
  6402. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  6403. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
  6404. if test $ac_cv_lib_dld_dld_link = yes; then
  6405. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  6406. fi
  6407. fi
  6408. fi
  6409. fi
  6410. fi
  6411. fi
  6412. ;;
  6413. esac
  6414. if test "x$lt_cv_dlopen" != xno; then
  6415. enable_dlopen=yes
  6416. else
  6417. enable_dlopen=no
  6418. fi
  6419. case $lt_cv_dlopen in
  6420. dlopen)
  6421. save_CPPFLAGS="$CPPFLAGS"
  6422. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  6423. save_LDFLAGS="$LDFLAGS"
  6424. eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  6425. save_LIBS="$LIBS"
  6426. LIBS="$lt_cv_dlopen_libs $LIBS"
  6427. echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  6428. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
  6429. if test "${lt_cv_dlopen_self+set}" = set; then
  6430. echo $ECHO_N "(cached) $ECHO_C" >&6
  6431. else
  6432. if test "$cross_compiling" = yes; then :
  6433. lt_cv_dlopen_self=cross
  6434. else
  6435. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  6436. lt_status=$lt_dlunknown
  6437. cat > conftest.$ac_ext <<EOF
  6438. #line 7112 "configure"
  6439. #include "confdefs.h"
  6440. #if HAVE_DLFCN_H
  6441. #include <dlfcn.h>
  6442. #endif
  6443. #include <stdio.h>
  6444. #ifdef RTLD_GLOBAL
  6445. # define LT_DLGLOBAL RTLD_GLOBAL
  6446. #else
  6447. # ifdef DL_GLOBAL
  6448. # define LT_DLGLOBAL DL_GLOBAL
  6449. # else
  6450. # define LT_DLGLOBAL 0
  6451. # endif
  6452. #endif
  6453. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  6454. find out it does not work in some platform. */
  6455. #ifndef LT_DLLAZY_OR_NOW
  6456. # ifdef RTLD_LAZY
  6457. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  6458. # else
  6459. # ifdef DL_LAZY
  6460. # define LT_DLLAZY_OR_NOW DL_LAZY
  6461. # else
  6462. # ifdef RTLD_NOW
  6463. # define LT_DLLAZY_OR_NOW RTLD_NOW
  6464. # else
  6465. # ifdef DL_NOW
  6466. # define LT_DLLAZY_OR_NOW DL_NOW
  6467. # else
  6468. # define LT_DLLAZY_OR_NOW 0
  6469. # endif
  6470. # endif
  6471. # endif
  6472. # endif
  6473. #endif
  6474. #ifdef __cplusplus
  6475. extern "C" void exit (int);
  6476. #endif
  6477. void fnord() { int i=42;}
  6478. int main ()
  6479. {
  6480. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  6481. int status = $lt_dlunknown;
  6482. if (self)
  6483. {
  6484. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  6485. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  6486. /* dlclose (self); */
  6487. }
  6488. exit (status);
  6489. }
  6490. EOF
  6491. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6492. (eval $ac_link) 2>&5
  6493. ac_status=$?
  6494. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6495. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  6496. (./conftest; exit; ) 2>/dev/null
  6497. lt_status=$?
  6498. case x$lt_status in
  6499. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  6500. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  6501. x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  6502. esac
  6503. else :
  6504. # compilation failed
  6505. lt_cv_dlopen_self=no
  6506. fi
  6507. fi
  6508. rm -fr conftest*
  6509. fi
  6510. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  6511. echo "${ECHO_T}$lt_cv_dlopen_self" >&6
  6512. if test "x$lt_cv_dlopen_self" = xyes; then
  6513. LDFLAGS="$LDFLAGS $link_static_flag"
  6514. echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  6515. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
  6516. if test "${lt_cv_dlopen_self_static+set}" = set; then
  6517. echo $ECHO_N "(cached) $ECHO_C" >&6
  6518. else
  6519. if test "$cross_compiling" = yes; then :
  6520. lt_cv_dlopen_self_static=cross
  6521. else
  6522. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  6523. lt_status=$lt_dlunknown
  6524. cat > conftest.$ac_ext <<EOF
  6525. #line 7210 "configure"
  6526. #include "confdefs.h"
  6527. #if HAVE_DLFCN_H
  6528. #include <dlfcn.h>
  6529. #endif
  6530. #include <stdio.h>
  6531. #ifdef RTLD_GLOBAL
  6532. # define LT_DLGLOBAL RTLD_GLOBAL
  6533. #else
  6534. # ifdef DL_GLOBAL
  6535. # define LT_DLGLOBAL DL_GLOBAL
  6536. # else
  6537. # define LT_DLGLOBAL 0
  6538. # endif
  6539. #endif
  6540. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  6541. find out it does not work in some platform. */
  6542. #ifndef LT_DLLAZY_OR_NOW
  6543. # ifdef RTLD_LAZY
  6544. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  6545. # else
  6546. # ifdef DL_LAZY
  6547. # define LT_DLLAZY_OR_NOW DL_LAZY
  6548. # else
  6549. # ifdef RTLD_NOW
  6550. # define LT_DLLAZY_OR_NOW RTLD_NOW
  6551. # else
  6552. # ifdef DL_NOW
  6553. # define LT_DLLAZY_OR_NOW DL_NOW
  6554. # else
  6555. # define LT_DLLAZY_OR_NOW 0
  6556. # endif
  6557. # endif
  6558. # endif
  6559. # endif
  6560. #endif
  6561. #ifdef __cplusplus
  6562. extern "C" void exit (int);
  6563. #endif
  6564. void fnord() { int i=42;}
  6565. int main ()
  6566. {
  6567. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  6568. int status = $lt_dlunknown;
  6569. if (self)
  6570. {
  6571. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  6572. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  6573. /* dlclose (self); */
  6574. }
  6575. exit (status);
  6576. }
  6577. EOF
  6578. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6579. (eval $ac_link) 2>&5
  6580. ac_status=$?
  6581. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6582. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  6583. (./conftest; exit; ) 2>/dev/null
  6584. lt_status=$?
  6585. case x$lt_status in
  6586. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  6587. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  6588. x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  6589. esac
  6590. else :
  6591. # compilation failed
  6592. lt_cv_dlopen_self_static=no
  6593. fi
  6594. fi
  6595. rm -fr conftest*
  6596. fi
  6597. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  6598. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
  6599. fi
  6600. CPPFLAGS="$save_CPPFLAGS"
  6601. LDFLAGS="$save_LDFLAGS"
  6602. LIBS="$save_LIBS"
  6603. ;;
  6604. esac
  6605. case $lt_cv_dlopen_self in
  6606. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  6607. *) enable_dlopen_self=unknown ;;
  6608. esac
  6609. case $lt_cv_dlopen_self_static in
  6610. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  6611. *) enable_dlopen_self_static=unknown ;;
  6612. esac
  6613. fi
  6614. if test "$enable_shared" = yes && test "$GCC" = yes; then
  6615. case $archive_cmds in
  6616. *'~'*)
  6617. # FIXME: we may have to deal with multi-command sequences.
  6618. ;;
  6619. '$CC '*)
  6620. # Test whether the compiler implicitly links with -lc since on some
  6621. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  6622. # to ld, don't add -lc before -lgcc.
  6623. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  6624. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  6625. if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
  6626. echo $ECHO_N "(cached) $ECHO_C" >&6
  6627. else
  6628. $rm conftest*
  6629. echo 'static int dummy;' > conftest.$ac_ext
  6630. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6631. (eval $ac_compile) 2>&5
  6632. ac_status=$?
  6633. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6634. (exit $ac_status); }; then
  6635. soname=conftest
  6636. lib=conftest
  6637. libobjs=conftest.$ac_objext
  6638. deplibs=
  6639. wl=$lt_cv_prog_cc_wl
  6640. compiler_flags=-v
  6641. linker_flags=-v
  6642. verstring=
  6643. output_objdir=.
  6644. libname=conftest
  6645. save_allow_undefined_flag=$allow_undefined_flag
  6646. allow_undefined_flag=
  6647. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  6648. (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  6649. ac_status=$?
  6650. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6651. (exit $ac_status); }
  6652. then
  6653. lt_cv_archive_cmds_need_lc=no
  6654. else
  6655. lt_cv_archive_cmds_need_lc=yes
  6656. fi
  6657. allow_undefined_flag=$save_allow_undefined_flag
  6658. else
  6659. cat conftest.err 1>&5
  6660. fi
  6661. fi
  6662. echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
  6663. echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
  6664. ;;
  6665. esac
  6666. fi
  6667. need_lc=${lt_cv_archive_cmds_need_lc-yes}
  6668. # The second clause should only fire when bootstrapping the
  6669. # libtool distribution, otherwise you forgot to ship ltmain.sh
  6670. # with your package, and you will get complaints that there are
  6671. # no rules to generate ltmain.sh.
  6672. if test -f "$ltmain"; then
  6673. :
  6674. else
  6675. # If there is no Makefile yet, we rely on a make rule to execute
  6676. # `config.status --recheck' to rerun these tests and create the
  6677. # libtool script then.
  6678. test -f Makefile && make "$ltmain"
  6679. fi
  6680. if test -f "$ltmain"; then
  6681. trap "$rm \"${ofile}T\"; exit 1" 1 2 15
  6682. $rm -f "${ofile}T"
  6683. echo creating $ofile
  6684. # Now quote all the things that may contain metacharacters while being
  6685. # careful not to overquote the AC_SUBSTed values. We take copies of the
  6686. # variables and quote the copies for generation of the libtool script.
  6687. for var in echo old_CC old_CFLAGS SED \
  6688. AR AR_FLAGS CC LD LN_S NM SHELL \
  6689. reload_flag reload_cmds wl \
  6690. pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
  6691. thread_safe_flag_spec whole_archive_flag_spec libname_spec \
  6692. library_names_spec soname_spec \
  6693. RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
  6694. old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
  6695. postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
  6696. old_striplib striplib file_magic_cmd export_symbols_cmds \
  6697. deplibs_check_method allow_undefined_flag no_undefined_flag \
  6698. finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
  6699. global_symbol_to_c_name_address \
  6700. hardcode_libdir_flag_spec hardcode_libdir_separator \
  6701. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  6702. compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
  6703. case $var in
  6704. reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
  6705. old_postinstall_cmds | old_postuninstall_cmds | \
  6706. export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
  6707. extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
  6708. postinstall_cmds | postuninstall_cmds | \
  6709. finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  6710. # Double-quote double-evaled strings.
  6711. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  6712. ;;
  6713. *)
  6714. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  6715. ;;
  6716. esac
  6717. done
  6718. cat <<__EOF__ > "${ofile}T"
  6719. #! $SHELL
  6720. # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  6721. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  6722. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  6723. #
  6724. # Copyright (C) 1996-2000 Free Software Foundation, Inc.
  6725. # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  6726. #
  6727. # This program is free software; you can redistribute it and/or modify
  6728. # it under the terms of the GNU General Public License as published by
  6729. # the Free Software Foundation; either version 2 of the License, or
  6730. # (at your option) any later version.
  6731. #
  6732. # This program is distributed in the hope that it will be useful, but
  6733. # WITHOUT ANY WARRANTY; without even the implied warranty of
  6734. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  6735. # General Public License for more details.
  6736. #
  6737. # You should have received a copy of the GNU General Public License
  6738. # along with this program; if not, write to the Free Software
  6739. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  6740. #
  6741. # As a special exception to the GNU General Public License, if you
  6742. # distribute this file as part of a program that contains a
  6743. # configuration script generated by Autoconf, you may include it under
  6744. # the same distribution terms that you use for the rest of that program.
  6745. # A sed that does not truncate output.
  6746. SED=$lt_SED
  6747. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  6748. Xsed="${SED} -e s/^X//"
  6749. # The HP-UX ksh and POSIX shell print the target directory to stdout
  6750. # if CDPATH is set.
  6751. if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
  6752. # ### BEGIN LIBTOOL CONFIG
  6753. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  6754. # Shell to use when invoking shell scripts.
  6755. SHELL=$lt_SHELL
  6756. # Whether or not to build shared libraries.
  6757. build_libtool_libs=$enable_shared
  6758. # Whether or not to build static libraries.
  6759. build_old_libs=$enable_static
  6760. # Whether or not to add -lc for building shared libraries.
  6761. build_libtool_need_lc=$need_lc
  6762. # Whether or not to optimize for fast installation.
  6763. fast_install=$enable_fast_install
  6764. # The host system.
  6765. host_alias=$host_alias
  6766. host=$host
  6767. # An echo program that does not interpret backslashes.
  6768. echo=$lt_echo
  6769. # The archiver.
  6770. AR=$lt_AR
  6771. AR_FLAGS=$lt_AR_FLAGS
  6772. # The default C compiler.
  6773. CC=$lt_CC
  6774. # Is the compiler the GNU C compiler?
  6775. with_gcc=$GCC
  6776. # The linker used to build libraries.
  6777. LD=$lt_LD
  6778. # Whether we need hard or soft links.
  6779. LN_S=$lt_LN_S
  6780. # A BSD-compatible nm program.
  6781. NM=$lt_NM
  6782. # A symbol stripping program
  6783. STRIP=$STRIP
  6784. # Used to examine libraries when file_magic_cmd begins "file"
  6785. MAGIC_CMD=$MAGIC_CMD
  6786. # Used on cygwin: DLL creation program.
  6787. DLLTOOL="$DLLTOOL"
  6788. # Used on cygwin: object dumper.
  6789. OBJDUMP="$OBJDUMP"
  6790. # Used on cygwin: assembler.
  6791. AS="$AS"
  6792. # The name of the directory that contains temporary libtool files.
  6793. objdir=$objdir
  6794. # How to create reloadable object files.
  6795. reload_flag=$lt_reload_flag
  6796. reload_cmds=$lt_reload_cmds
  6797. # How to pass a linker flag through the compiler.
  6798. wl=$lt_wl
  6799. # Object file suffix (normally "o").
  6800. objext="$ac_objext"
  6801. # Old archive suffix (normally "a").
  6802. libext="$libext"
  6803. # Executable file suffix (normally "").
  6804. exeext="$exeext"
  6805. # Additional compiler flags for building library objects.
  6806. pic_flag=$lt_pic_flag
  6807. pic_mode=$pic_mode
  6808. # Does compiler simultaneously support -c and -o options?
  6809. compiler_c_o=$lt_compiler_c_o
  6810. # Can we write directly to a .lo ?
  6811. compiler_o_lo=$lt_compiler_o_lo
  6812. # Must we lock files when doing compilation ?
  6813. need_locks=$lt_need_locks
  6814. # Do we need the lib prefix for modules?
  6815. need_lib_prefix=$need_lib_prefix
  6816. # Do we need a version for libraries?
  6817. need_version=$need_version
  6818. # Whether dlopen is supported.
  6819. dlopen_support=$enable_dlopen
  6820. # Whether dlopen of programs is supported.
  6821. dlopen_self=$enable_dlopen_self
  6822. # Whether dlopen of statically linked programs is supported.
  6823. dlopen_self_static=$enable_dlopen_self_static
  6824. # Compiler flag to prevent dynamic linking.
  6825. link_static_flag=$lt_link_static_flag
  6826. # Compiler flag to turn off builtin functions.
  6827. no_builtin_flag=$lt_no_builtin_flag
  6828. # Compiler flag to allow reflexive dlopens.
  6829. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  6830. # Compiler flag to generate shared objects directly from archives.
  6831. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  6832. # Compiler flag to generate thread-safe objects.
  6833. thread_safe_flag_spec=$lt_thread_safe_flag_spec
  6834. # Library versioning type.
  6835. version_type=$version_type
  6836. # Format of library name prefix.
  6837. libname_spec=$lt_libname_spec
  6838. # List of archive names. First name is the real one, the rest are links.
  6839. # The last name is the one that the linker finds with -lNAME.
  6840. library_names_spec=$lt_library_names_spec
  6841. # The coded name of the library, if different from the real name.
  6842. soname_spec=$lt_soname_spec
  6843. # Commands used to build and install an old-style archive.
  6844. RANLIB=$lt_RANLIB
  6845. old_archive_cmds=$lt_old_archive_cmds
  6846. old_postinstall_cmds=$lt_old_postinstall_cmds
  6847. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  6848. # Create an old-style archive from a shared archive.
  6849. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  6850. # Create a temporary old-style archive to link instead of a shared archive.
  6851. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  6852. # Commands used to build and install a shared archive.
  6853. archive_cmds=$lt_archive_cmds
  6854. archive_expsym_cmds=$lt_archive_expsym_cmds
  6855. postinstall_cmds=$lt_postinstall_cmds
  6856. postuninstall_cmds=$lt_postuninstall_cmds
  6857. # Commands to strip libraries.
  6858. old_striplib=$lt_old_striplib
  6859. striplib=$lt_striplib
  6860. # Method to check whether dependent libraries are shared objects.
  6861. deplibs_check_method=$lt_deplibs_check_method
  6862. # Command to use when deplibs_check_method == file_magic.
  6863. file_magic_cmd=$lt_file_magic_cmd
  6864. # Flag that allows shared libraries with undefined symbols to be built.
  6865. allow_undefined_flag=$lt_allow_undefined_flag
  6866. # Flag that forces no undefined symbols.
  6867. no_undefined_flag=$lt_no_undefined_flag
  6868. # Commands used to finish a libtool library installation in a directory.
  6869. finish_cmds=$lt_finish_cmds
  6870. # Same as above, but a single script fragment to be evaled but not shown.
  6871. finish_eval=$lt_finish_eval
  6872. # Take the output of nm and produce a listing of raw symbols and C names.
  6873. global_symbol_pipe=$lt_global_symbol_pipe
  6874. # Transform the output of nm in a proper C declaration
  6875. global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
  6876. # Transform the output of nm in a C name address pair
  6877. global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
  6878. # This is the shared library runtime path variable.
  6879. runpath_var=$runpath_var
  6880. # This is the shared library path variable.
  6881. shlibpath_var=$shlibpath_var
  6882. # Is shlibpath searched before the hard-coded library search path?
  6883. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  6884. # How to hardcode a shared library path into an executable.
  6885. hardcode_action=$hardcode_action
  6886. # Whether we should hardcode library paths into libraries.
  6887. hardcode_into_libs=$hardcode_into_libs
  6888. # Flag to hardcode \$libdir into a binary during linking.
  6889. # This must work even if \$libdir does not exist.
  6890. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  6891. # Whether we need a single -rpath flag with a separated argument.
  6892. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  6893. # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
  6894. # resulting binary.
  6895. hardcode_direct=$hardcode_direct
  6896. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  6897. # resulting binary.
  6898. hardcode_minus_L=$hardcode_minus_L
  6899. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  6900. # the resulting binary.
  6901. hardcode_shlibpath_var=$hardcode_shlibpath_var
  6902. # Variables whose values should be saved in libtool wrapper scripts and
  6903. # restored at relink time.
  6904. variables_saved_for_relink="$variables_saved_for_relink"
  6905. # Whether libtool must link a program against all its dependency libraries.
  6906. link_all_deplibs=$link_all_deplibs
  6907. # Compile-time system search path for libraries
  6908. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  6909. # Run-time system search path for libraries
  6910. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  6911. # Fix the shell variable \$srcfile for the compiler.
  6912. fix_srcfile_path="$fix_srcfile_path"
  6913. # Set to yes if exported symbols are required.
  6914. always_export_symbols=$always_export_symbols
  6915. # The commands to list exported symbols.
  6916. export_symbols_cmds=$lt_export_symbols_cmds
  6917. # The commands to extract the exported symbol list from a shared archive.
  6918. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  6919. # Symbols that should not be listed in the preloaded symbols.
  6920. exclude_expsyms=$lt_exclude_expsyms
  6921. # Symbols that must always be exported.
  6922. include_expsyms=$lt_include_expsyms
  6923. # ### END LIBTOOL CONFIG
  6924. __EOF__
  6925. case $host_os in
  6926. aix3*)
  6927. cat <<\EOF >> "${ofile}T"
  6928. # AIX sometimes has problems with the GCC collect2 program. For some
  6929. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6930. # vanish in a puff of smoke.
  6931. if test "X${COLLECT_NAMES+set}" != Xset; then
  6932. COLLECT_NAMES=
  6933. export COLLECT_NAMES
  6934. fi
  6935. EOF
  6936. ;;
  6937. esac
  6938. case $host_os in
  6939. cygwin* | mingw* | pw32* | os2*)
  6940. cat <<'EOF' >> "${ofile}T"
  6941. # This is a source program that is used to create dlls on Windows
  6942. # Don't remove nor modify the starting and closing comments
  6943. # /* ltdll.c starts here */
  6944. # #define WIN32_LEAN_AND_MEAN
  6945. # #include <windows.h>
  6946. # #undef WIN32_LEAN_AND_MEAN
  6947. # #include <stdio.h>
  6948. #
  6949. # #ifndef __CYGWIN__
  6950. # # ifdef __CYGWIN32__
  6951. # # define __CYGWIN__ __CYGWIN32__
  6952. # # endif
  6953. # #endif
  6954. #
  6955. # #ifdef __cplusplus
  6956. # extern "C" {
  6957. # #endif
  6958. # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
  6959. # #ifdef __cplusplus
  6960. # }
  6961. # #endif
  6962. #
  6963. # #ifdef __CYGWIN__
  6964. # #include <cygwin/cygwin_dll.h>
  6965. # DECLARE_CYGWIN_DLL( DllMain );
  6966. # #endif
  6967. # HINSTANCE __hDllInstance_base;
  6968. #
  6969. # BOOL APIENTRY
  6970. # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
  6971. # {
  6972. # __hDllInstance_base = hInst;
  6973. # return TRUE;
  6974. # }
  6975. # /* ltdll.c ends here */
  6976. # This is a source program that is used to create import libraries
  6977. # on Windows for dlls which lack them. Don't remove nor modify the
  6978. # starting and closing comments
  6979. # /* impgen.c starts here */
  6980. # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
  6981. #
  6982. # This file is part of GNU libtool.
  6983. #
  6984. # This program is free software; you can redistribute it and/or modify
  6985. # it under the terms of the GNU General Public License as published by
  6986. # the Free Software Foundation; either version 2 of the License, or
  6987. # (at your option) any later version.
  6988. #
  6989. # This program is distributed in the hope that it will be useful,
  6990. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  6991. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  6992. # GNU General Public License for more details.
  6993. #
  6994. # You should have received a copy of the GNU General Public License
  6995. # along with this program; if not, write to the Free Software
  6996. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  6997. # */
  6998. #
  6999. # #include <stdio.h> /* for printf() */
  7000. # #include <unistd.h> /* for open(), lseek(), read() */
  7001. # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
  7002. # #include <string.h> /* for strdup() */
  7003. #
  7004. # /* O_BINARY isn't required (or even defined sometimes) under Unix */
  7005. # #ifndef O_BINARY
  7006. # #define O_BINARY 0
  7007. # #endif
  7008. #
  7009. # static unsigned int
  7010. # pe_get16 (fd, offset)
  7011. # int fd;
  7012. # int offset;
  7013. # {
  7014. # unsigned char b[2];
  7015. # lseek (fd, offset, SEEK_SET);
  7016. # read (fd, b, 2);
  7017. # return b[0] + (b[1]<<8);
  7018. # }
  7019. #
  7020. # static unsigned int
  7021. # pe_get32 (fd, offset)
  7022. # int fd;
  7023. # int offset;
  7024. # {
  7025. # unsigned char b[4];
  7026. # lseek (fd, offset, SEEK_SET);
  7027. # read (fd, b, 4);
  7028. # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
  7029. # }
  7030. #
  7031. # static unsigned int
  7032. # pe_as32 (ptr)
  7033. # void *ptr;
  7034. # {
  7035. # unsigned char *b = ptr;
  7036. # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
  7037. # }
  7038. #
  7039. # int
  7040. # main (argc, argv)
  7041. # int argc;
  7042. # char *argv[];
  7043. # {
  7044. # int dll;
  7045. # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
  7046. # unsigned long export_rva, export_size, nsections, secptr, expptr;
  7047. # unsigned long name_rvas, nexp;
  7048. # unsigned char *expdata, *erva;
  7049. # char *filename, *dll_name;
  7050. #
  7051. # filename = argv[1];
  7052. #
  7053. # dll = open(filename, O_RDONLY|O_BINARY);
  7054. # if (dll < 1)
  7055. # return 1;
  7056. #
  7057. # dll_name = filename;
  7058. #
  7059. # for (i=0; filename[i]; i++)
  7060. # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
  7061. # dll_name = filename + i +1;
  7062. #
  7063. # pe_header_offset = pe_get32 (dll, 0x3c);
  7064. # opthdr_ofs = pe_header_offset + 4 + 20;
  7065. # num_entries = pe_get32 (dll, opthdr_ofs + 92);
  7066. #
  7067. # if (num_entries < 1) /* no exports */
  7068. # return 1;
  7069. #
  7070. # export_rva = pe_get32 (dll, opthdr_ofs + 96);
  7071. # export_size = pe_get32 (dll, opthdr_ofs + 100);
  7072. # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
  7073. # secptr = (pe_header_offset + 4 + 20 +
  7074. # pe_get16 (dll, pe_header_offset + 4 + 16));
  7075. #
  7076. # expptr = 0;
  7077. # for (i = 0; i < nsections; i++)
  7078. # {
  7079. # char sname[8];
  7080. # unsigned long secptr1 = secptr + 40 * i;
  7081. # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
  7082. # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
  7083. # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
  7084. # lseek(dll, secptr1, SEEK_SET);
  7085. # read(dll, sname, 8);
  7086. # if (vaddr <= export_rva && vaddr+vsize > export_rva)
  7087. # {
  7088. # expptr = fptr + (export_rva - vaddr);
  7089. # if (export_rva + export_size > vaddr + vsize)
  7090. # export_size = vsize - (export_rva - vaddr);
  7091. # break;
  7092. # }
  7093. # }
  7094. #
  7095. # expdata = (unsigned char*)malloc(export_size);
  7096. # lseek (dll, expptr, SEEK_SET);
  7097. # read (dll, expdata, export_size);
  7098. # erva = expdata - export_rva;
  7099. #
  7100. # nexp = pe_as32 (expdata+24);
  7101. # name_rvas = pe_as32 (expdata+32);
  7102. #
  7103. # printf ("EXPORTS\n");
  7104. # for (i = 0; i<nexp; i++)
  7105. # {
  7106. # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
  7107. # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
  7108. # }
  7109. #
  7110. # return 0;
  7111. # }
  7112. # /* impgen.c ends here */
  7113. EOF
  7114. ;;
  7115. esac
  7116. # We use sed instead of cat because bash on DJGPP gets confused if
  7117. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  7118. # text mode, it properly converts lines to CR/LF. This bash problem
  7119. # is reportedly fixed, but why not run on old versions too?
  7120. sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
  7121. mv -f "${ofile}T" "$ofile" || \
  7122. (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
  7123. chmod +x "$ofile"
  7124. fi
  7125. # This can be used to rebuild libtool when needed
  7126. LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  7127. # Always use our own libtool.
  7128. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7129. # Prevent multiple expansion
  7130. # Check whether --with-glib-prefix or --without-glib-prefix was given.
  7131. if test "${with_glib_prefix+set}" = set; then
  7132. withval="$with_glib_prefix"
  7133. glib_config_prefix="$withval"
  7134. else
  7135. glib_config_prefix=""
  7136. fi;
  7137. # Check whether --with-glib-exec-prefix or --without-glib-exec-prefix was given.
  7138. if test "${with_glib_exec_prefix+set}" = set; then
  7139. withval="$with_glib_exec_prefix"
  7140. glib_config_exec_prefix="$withval"
  7141. else
  7142. glib_config_exec_prefix=""
  7143. fi;
  7144. # Check whether --enable-glibtest or --disable-glibtest was given.
  7145. if test "${enable_glibtest+set}" = set; then
  7146. enableval="$enable_glibtest"
  7147. else
  7148. enable_glibtest=yes
  7149. fi;
  7150. if test x$glib_config_exec_prefix != x ; then
  7151. glib_config_args="$glib_config_args --exec-prefix=$glib_config_exec_prefix"
  7152. if test x${GLIB_CONFIG+set} != xset ; then
  7153. GLIB_CONFIG=$glib_config_exec_prefix/bin/glib-config
  7154. fi
  7155. fi
  7156. if test x$glib_config_prefix != x ; then
  7157. glib_config_args="$glib_config_args --prefix=$glib_config_prefix"
  7158. if test x${GLIB_CONFIG+set} != xset ; then
  7159. GLIB_CONFIG=$glib_config_prefix/bin/glib-config
  7160. fi
  7161. fi
  7162. for module in .
  7163. do
  7164. case "$module" in
  7165. gmodule)
  7166. glib_config_args="$glib_config_args gmodule"
  7167. ;;
  7168. gthread)
  7169. glib_config_args="$glib_config_args gthread"
  7170. ;;
  7171. esac
  7172. done
  7173. # Extract the first word of "glib-config", so it can be a program name with args.
  7174. set dummy glib-config; ac_word=$2
  7175. echo "$as_me:$LINENO: checking for $ac_word" >&5
  7176. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  7177. if test "${ac_cv_path_GLIB_CONFIG+set}" = set; then
  7178. echo $ECHO_N "(cached) $ECHO_C" >&6
  7179. else
  7180. case $GLIB_CONFIG in
  7181. [\\/]* | ?:[\\/]*)
  7182. ac_cv_path_GLIB_CONFIG="$GLIB_CONFIG" # Let the user override the test with a path.
  7183. ;;
  7184. *)
  7185. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7186. for as_dir in $PATH
  7187. do
  7188. IFS=$as_save_IFS
  7189. test -z "$as_dir" && as_dir=.
  7190. for ac_exec_ext in '' $ac_executable_extensions; do
  7191. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7192. ac_cv_path_GLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  7193. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7194. break 2
  7195. fi
  7196. done
  7197. done
  7198. test -z "$ac_cv_path_GLIB_CONFIG" && ac_cv_path_GLIB_CONFIG="no"
  7199. ;;
  7200. esac
  7201. fi
  7202. GLIB_CONFIG=$ac_cv_path_GLIB_CONFIG
  7203. if test -n "$GLIB_CONFIG"; then
  7204. echo "$as_me:$LINENO: result: $GLIB_CONFIG" >&5
  7205. echo "${ECHO_T}$GLIB_CONFIG" >&6
  7206. else
  7207. echo "$as_me:$LINENO: result: no" >&5
  7208. echo "${ECHO_T}no" >&6
  7209. fi
  7210. min_glib_version=1.2.0
  7211. echo "$as_me:$LINENO: checking for GLIB - version >= $min_glib_version" >&5
  7212. echo $ECHO_N "checking for GLIB - version >= $min_glib_version... $ECHO_C" >&6
  7213. no_glib=""
  7214. if test "$GLIB_CONFIG" = "no" ; then
  7215. no_glib=yes
  7216. else
  7217. GLIB_CFLAGS=`$GLIB_CONFIG $glib_config_args --cflags`
  7218. GLIB_LIBS=`$GLIB_CONFIG $glib_config_args --libs`
  7219. glib_config_major_version=`$GLIB_CONFIG $glib_config_args --version | \
  7220. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  7221. glib_config_minor_version=`$GLIB_CONFIG $glib_config_args --version | \
  7222. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  7223. glib_config_micro_version=`$GLIB_CONFIG $glib_config_args --version | \
  7224. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  7225. if test "x$enable_glibtest" = "xyes" ; then
  7226. ac_save_CFLAGS="$CFLAGS"
  7227. ac_save_LIBS="$LIBS"
  7228. CFLAGS="$CFLAGS $GLIB_CFLAGS"
  7229. LIBS="$GLIB_LIBS $LIBS"
  7230. rm -f conf.glibtest
  7231. if test "$cross_compiling" = yes; then
  7232. echo $ac_n "cross compiling; assumed OK... $ac_c"
  7233. else
  7234. cat >conftest.$ac_ext <<_ACEOF
  7235. #line $LINENO "configure"
  7236. /* confdefs.h. */
  7237. _ACEOF
  7238. cat confdefs.h >>conftest.$ac_ext
  7239. cat >>conftest.$ac_ext <<_ACEOF
  7240. /* end confdefs.h. */
  7241. #include <glib.h>
  7242. #include <stdio.h>
  7243. #include <stdlib.h>
  7244. int
  7245. main ()
  7246. {
  7247. int major, minor, micro;
  7248. char *tmp_version;
  7249. system ("touch conf.glibtest");
  7250. /* HP/UX 9 (%@#!) writes to sscanf strings */
  7251. tmp_version = g_strdup("$min_glib_version");
  7252. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  7253. printf("%s, bad version string\n", "$min_glib_version");
  7254. exit(1);
  7255. }
  7256. if ((glib_major_version != $glib_config_major_version) ||
  7257. (glib_minor_version != $glib_config_minor_version) ||
  7258. (glib_micro_version != $glib_config_micro_version))
  7259. {
  7260. printf("\n*** 'glib-config --version' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
  7261. $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
  7262. glib_major_version, glib_minor_version, glib_micro_version);
  7263. printf ("*** was found! If glib-config was correct, then it is best\n");
  7264. printf ("*** to remove the old version of GLIB. You may also be able to fix the error\n");
  7265. printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  7266. printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  7267. printf("*** required on your system.\n");
  7268. printf("*** If glib-config was wrong, set the environment variable GLIB_CONFIG\n");
  7269. printf("*** to point to the correct copy of glib-config, and remove the file config.cache\n");
  7270. printf("*** before re-running configure\n");
  7271. }
  7272. else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
  7273. (glib_minor_version != GLIB_MINOR_VERSION) ||
  7274. (glib_micro_version != GLIB_MICRO_VERSION))
  7275. {
  7276. printf("*** GLIB header files (version %d.%d.%d) do not match\n",
  7277. GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
  7278. printf("*** library (version %d.%d.%d)\n",
  7279. glib_major_version, glib_minor_version, glib_micro_version);
  7280. }
  7281. else
  7282. {
  7283. if ((glib_major_version > major) ||
  7284. ((glib_major_version == major) && (glib_minor_version > minor)) ||
  7285. ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
  7286. {
  7287. return 0;
  7288. }
  7289. else
  7290. {
  7291. printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
  7292. glib_major_version, glib_minor_version, glib_micro_version);
  7293. printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
  7294. major, minor, micro);
  7295. printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
  7296. printf("***\n");
  7297. printf("*** If you have already installed a sufficiently new version, this error\n");
  7298. printf("*** probably means that the wrong copy of the glib-config shell script is\n");
  7299. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  7300. printf("*** of GLIB, but you can also set the GLIB_CONFIG environment to point to the\n");
  7301. printf("*** correct copy of glib-config. (In this case, you will have to\n");
  7302. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  7303. printf("*** so that the correct libraries are found at run-time))\n");
  7304. }
  7305. }
  7306. return 1;
  7307. }
  7308. _ACEOF
  7309. rm -f conftest$ac_exeext
  7310. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7311. (eval $ac_link) 2>&5
  7312. ac_status=$?
  7313. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7314. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7315. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7316. (eval $ac_try) 2>&5
  7317. ac_status=$?
  7318. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7319. (exit $ac_status); }; }; then
  7320. :
  7321. else
  7322. echo "$as_me: program exited with status $ac_status" >&5
  7323. echo "$as_me: failed program was:" >&5
  7324. sed 's/^/| /' conftest.$ac_ext >&5
  7325. ( exit $ac_status )
  7326. no_glib=yes
  7327. fi
  7328. rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7329. fi
  7330. CFLAGS="$ac_save_CFLAGS"
  7331. LIBS="$ac_save_LIBS"
  7332. fi
  7333. fi
  7334. if test "x$no_glib" = x ; then
  7335. echo "$as_me:$LINENO: result: yes" >&5
  7336. echo "${ECHO_T}yes" >&6
  7337. LIBS="$LIBS $GLIB_LIBS"
  7338. CFLAGS="$CFLAGS $GLIB_CFLAGS"
  7339. else
  7340. echo "$as_me:$LINENO: result: no" >&5
  7341. echo "${ECHO_T}no" >&6
  7342. if test "$GLIB_CONFIG" = "no" ; then
  7343. echo "*** The glib-config script installed by GLIB could not be found"
  7344. echo "*** If GLIB was installed in PREFIX, make sure PREFIX/bin is in"
  7345. echo "*** your path, or set the GLIB_CONFIG environment variable to the"
  7346. echo "*** full path to glib-config."
  7347. else
  7348. if test -f conf.glibtest ; then
  7349. :
  7350. else
  7351. echo "*** Could not run GLIB test program, checking why..."
  7352. CFLAGS="$CFLAGS $GLIB_CFLAGS"
  7353. LIBS="$LIBS $GLIB_LIBS"
  7354. cat >conftest.$ac_ext <<_ACEOF
  7355. #line $LINENO "configure"
  7356. /* confdefs.h. */
  7357. _ACEOF
  7358. cat confdefs.h >>conftest.$ac_ext
  7359. cat >>conftest.$ac_ext <<_ACEOF
  7360. /* end confdefs.h. */
  7361. #include <glib.h>
  7362. #include <stdio.h>
  7363. int
  7364. main ()
  7365. {
  7366. return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
  7367. ;
  7368. return 0;
  7369. }
  7370. _ACEOF
  7371. rm -f conftest.$ac_objext conftest$ac_exeext
  7372. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7373. (eval $ac_link) 2>&5
  7374. ac_status=$?
  7375. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7376. (exit $ac_status); } &&
  7377. { ac_try='test -s conftest$ac_exeext'
  7378. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7379. (eval $ac_try) 2>&5
  7380. ac_status=$?
  7381. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7382. (exit $ac_status); }; }; then
  7383. echo "*** The test program compiled, but did not run. This usually means"
  7384. echo "*** that the run-time linker is not finding GLIB or finding the wrong"
  7385. echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
  7386. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  7387. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  7388. echo "*** is required on your system"
  7389. echo "***"
  7390. echo "*** If you have an old version installed, it is best to remove it, although"
  7391. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  7392. echo "***"
  7393. echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
  7394. echo "*** came with the system with the command"
  7395. echo "***"
  7396. echo "*** rpm --erase --nodeps gtk gtk-devel"
  7397. else
  7398. echo "$as_me: failed program was:" >&5
  7399. sed 's/^/| /' conftest.$ac_ext >&5
  7400. echo "*** The test program failed to compile or link. See the file config.log for the"
  7401. echo "*** exact error that occured. This usually means GLIB was incorrectly installed"
  7402. echo "*** or that you have moved GLIB since it was installed. In the latter case, you"
  7403. echo "*** may want to edit the glib-config script: $GLIB_CONFIG"
  7404. fi
  7405. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  7406. CFLAGS="$ac_save_CFLAGS"
  7407. LIBS="$ac_save_LIBS"
  7408. fi
  7409. fi
  7410. GLIB_CFLAGS=""
  7411. GLIB_LIBS=""
  7412. { { echo "$as_me:$LINENO: error: You need glib 1.2 or later to build this plug-in." >&5
  7413. echo "$as_me: error: You need glib 1.2 or later to build this plug-in." >&2;}
  7414. { (exit 1); exit 1; }; }
  7415. fi
  7416. rm -f conf.glibtest
  7417. # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
  7418. if test "${with_gtk_prefix+set}" = set; then
  7419. withval="$with_gtk_prefix"
  7420. gtk_config_prefix="$withval"
  7421. else
  7422. gtk_config_prefix=""
  7423. fi;
  7424. # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
  7425. if test "${with_gtk_exec_prefix+set}" = set; then
  7426. withval="$with_gtk_exec_prefix"
  7427. gtk_config_exec_prefix="$withval"
  7428. else
  7429. gtk_config_exec_prefix=""
  7430. fi;
  7431. # Check whether --enable-gtktest or --disable-gtktest was given.
  7432. if test "${enable_gtktest+set}" = set; then
  7433. enableval="$enable_gtktest"
  7434. else
  7435. enable_gtktest=yes
  7436. fi;
  7437. for module in .
  7438. do
  7439. case "$module" in
  7440. gthread)
  7441. gtk_config_args="$gtk_config_args gthread"
  7442. ;;
  7443. esac
  7444. done
  7445. if test x$gtk_config_exec_prefix != x ; then
  7446. gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
  7447. if test x${GTK_CONFIG+set} != xset ; then
  7448. GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
  7449. fi
  7450. fi
  7451. if test x$gtk_config_prefix != x ; then
  7452. gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
  7453. if test x${GTK_CONFIG+set} != xset ; then
  7454. GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
  7455. fi
  7456. fi
  7457. # Extract the first word of "gtk-config", so it can be a program name with args.
  7458. set dummy gtk-config; ac_word=$2
  7459. echo "$as_me:$LINENO: checking for $ac_word" >&5
  7460. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  7461. if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
  7462. echo $ECHO_N "(cached) $ECHO_C" >&6
  7463. else
  7464. case $GTK_CONFIG in
  7465. [\\/]* | ?:[\\/]*)
  7466. ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
  7467. ;;
  7468. *)
  7469. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7470. for as_dir in $PATH
  7471. do
  7472. IFS=$as_save_IFS
  7473. test -z "$as_dir" && as_dir=.
  7474. for ac_exec_ext in '' $ac_executable_extensions; do
  7475. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7476. ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  7477. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7478. break 2
  7479. fi
  7480. done
  7481. done
  7482. test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
  7483. ;;
  7484. esac
  7485. fi
  7486. GTK_CONFIG=$ac_cv_path_GTK_CONFIG
  7487. if test -n "$GTK_CONFIG"; then
  7488. echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
  7489. echo "${ECHO_T}$GTK_CONFIG" >&6
  7490. else
  7491. echo "$as_me:$LINENO: result: no" >&5
  7492. echo "${ECHO_T}no" >&6
  7493. fi
  7494. min_gtk_version=1.2.0
  7495. echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
  7496. echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
  7497. no_gtk=""
  7498. if test "$GTK_CONFIG" = "no" ; then
  7499. no_gtk=yes
  7500. else
  7501. GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
  7502. GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
  7503. gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
  7504. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  7505. gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
  7506. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  7507. gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
  7508. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  7509. if test "x$enable_gtktest" = "xyes" ; then
  7510. ac_save_CFLAGS="$CFLAGS"
  7511. ac_save_LIBS="$LIBS"
  7512. CFLAGS="$CFLAGS $GTK_CFLAGS"
  7513. LIBS="$GTK_LIBS $LIBS"
  7514. rm -f conf.gtktest
  7515. if test "$cross_compiling" = yes; then
  7516. echo $ac_n "cross compiling; assumed OK... $ac_c"
  7517. else
  7518. cat >conftest.$ac_ext <<_ACEOF
  7519. #line $LINENO "configure"
  7520. /* confdefs.h. */
  7521. _ACEOF
  7522. cat confdefs.h >>conftest.$ac_ext
  7523. cat >>conftest.$ac_ext <<_ACEOF
  7524. /* end confdefs.h. */
  7525. #include <gtk/gtk.h>
  7526. #include <stdio.h>
  7527. #include <stdlib.h>
  7528. int
  7529. main ()
  7530. {
  7531. int major, minor, micro;
  7532. char *tmp_version;
  7533. system ("touch conf.gtktest");
  7534. /* HP/UX 9 (%@#!) writes to sscanf strings */
  7535. tmp_version = g_strdup("$min_gtk_version");
  7536. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  7537. printf("%s, bad version string\n", "$min_gtk_version");
  7538. exit(1);
  7539. }
  7540. if ((gtk_major_version != $gtk_config_major_version) ||
  7541. (gtk_minor_version != $gtk_config_minor_version) ||
  7542. (gtk_micro_version != $gtk_config_micro_version))
  7543. {
  7544. printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
  7545. $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
  7546. gtk_major_version, gtk_minor_version, gtk_micro_version);
  7547. printf ("*** was found! If gtk-config was correct, then it is best\n");
  7548. printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
  7549. printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  7550. printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  7551. printf("*** required on your system.\n");
  7552. printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
  7553. printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
  7554. printf("*** before re-running configure\n");
  7555. }
  7556. #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
  7557. else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
  7558. (gtk_minor_version != GTK_MINOR_VERSION) ||
  7559. (gtk_micro_version != GTK_MICRO_VERSION))
  7560. {
  7561. printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
  7562. GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
  7563. printf("*** library (version %d.%d.%d)\n",
  7564. gtk_major_version, gtk_minor_version, gtk_micro_version);
  7565. }
  7566. #endif /* defined (GTK_MAJOR_VERSION) ... */
  7567. else
  7568. {
  7569. if ((gtk_major_version > major) ||
  7570. ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
  7571. ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
  7572. {
  7573. return 0;
  7574. }
  7575. else
  7576. {
  7577. printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
  7578. gtk_major_version, gtk_minor_version, gtk_micro_version);
  7579. printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
  7580. major, minor, micro);
  7581. printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
  7582. printf("***\n");
  7583. printf("*** If you have already installed a sufficiently new version, this error\n");
  7584. printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
  7585. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  7586. printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
  7587. printf("*** correct copy of gtk-config. (In this case, you will have to\n");
  7588. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  7589. printf("*** so that the correct libraries are found at run-time))\n");
  7590. }
  7591. }
  7592. return 1;
  7593. }
  7594. _ACEOF
  7595. rm -f conftest$ac_exeext
  7596. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7597. (eval $ac_link) 2>&5
  7598. ac_status=$?
  7599. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7600. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7601. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7602. (eval $ac_try) 2>&5
  7603. ac_status=$?
  7604. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7605. (exit $ac_status); }; }; then
  7606. :
  7607. else
  7608. echo "$as_me: program exited with status $ac_status" >&5
  7609. echo "$as_me: failed program was:" >&5
  7610. sed 's/^/| /' conftest.$ac_ext >&5
  7611. ( exit $ac_status )
  7612. no_gtk=yes
  7613. fi
  7614. rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7615. fi
  7616. CFLAGS="$ac_save_CFLAGS"
  7617. LIBS="$ac_save_LIBS"
  7618. fi
  7619. fi
  7620. if test "x$no_gtk" = x ; then
  7621. echo "$as_me:$LINENO: result: yes" >&5
  7622. echo "${ECHO_T}yes" >&6
  7623. LIBS="$LIBS $GTK_LIBS"
  7624. CFLAGS="$CFLAGS $GTK_CFLAGS"
  7625. else
  7626. echo "$as_me:$LINENO: result: no" >&5
  7627. echo "${ECHO_T}no" >&6
  7628. if test "$GTK_CONFIG" = "no" ; then
  7629. echo "*** The gtk-config script installed by GTK could not be found"
  7630. echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
  7631. echo "*** your path, or set the GTK_CONFIG environment variable to the"
  7632. echo "*** full path to gtk-config."
  7633. else
  7634. if test -f conf.gtktest ; then
  7635. :
  7636. else
  7637. echo "*** Could not run GTK test program, checking why..."
  7638. CFLAGS="$CFLAGS $GTK_CFLAGS"
  7639. LIBS="$LIBS $GTK_LIBS"
  7640. cat >conftest.$ac_ext <<_ACEOF
  7641. #line $LINENO "configure"
  7642. /* confdefs.h. */
  7643. _ACEOF
  7644. cat confdefs.h >>conftest.$ac_ext
  7645. cat >>conftest.$ac_ext <<_ACEOF
  7646. /* end confdefs.h. */
  7647. #include <gtk/gtk.h>
  7648. #include <stdio.h>
  7649. int
  7650. main ()
  7651. {
  7652. return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
  7653. ;
  7654. return 0;
  7655. }
  7656. _ACEOF
  7657. rm -f conftest.$ac_objext conftest$ac_exeext
  7658. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7659. (eval $ac_link) 2>&5
  7660. ac_status=$?
  7661. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7662. (exit $ac_status); } &&
  7663. { ac_try='test -s conftest$ac_exeext'
  7664. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7665. (eval $ac_try) 2>&5
  7666. ac_status=$?
  7667. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7668. (exit $ac_status); }; }; then
  7669. echo "*** The test program compiled, but did not run. This usually means"
  7670. echo "*** that the run-time linker is not finding GTK or finding the wrong"
  7671. echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
  7672. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  7673. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  7674. echo "*** is required on your system"
  7675. echo "***"
  7676. echo "*** If you have an old version installed, it is best to remove it, although"
  7677. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  7678. echo "***"
  7679. echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
  7680. echo "*** came with the system with the command"
  7681. echo "***"
  7682. echo "*** rpm --erase --nodeps gtk gtk-devel"
  7683. else
  7684. echo "$as_me: failed program was:" >&5
  7685. sed 's/^/| /' conftest.$ac_ext >&5
  7686. echo "*** The test program failed to compile or link. See the file config.log for the"
  7687. echo "*** exact error that occured. This usually means GTK was incorrectly installed"
  7688. echo "*** or that you have moved GTK since it was installed. In the latter case, you"
  7689. echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
  7690. fi
  7691. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  7692. CFLAGS="$ac_save_CFLAGS"
  7693. LIBS="$ac_save_LIBS"
  7694. fi
  7695. fi
  7696. GTK_CFLAGS=""
  7697. GTK_LIBS=""
  7698. { { echo "$as_me:$LINENO: error: You need GTK+ 1.2 or later to build this plug-in." >&5
  7699. echo "$as_me: error: You need GTK+ 1.2 or later to build this plug-in." >&2;}
  7700. { (exit 1); exit 1; }; }
  7701. fi
  7702. rm -f conf.gtktest
  7703. # Check whether --with-xmms-prefix or --without-xmms-prefix was given.
  7704. if test "${with_xmms_prefix+set}" = set; then
  7705. withval="$with_xmms_prefix"
  7706. xmms_config_prefix="$withval"
  7707. else
  7708. xmms_config_prefix=""
  7709. fi;
  7710. # Check whether --with-xmms-exec-prefix or --without-xmms-exec-prefix was given.
  7711. if test "${with_xmms_exec_prefix+set}" = set; then
  7712. withval="$with_xmms_exec_prefix"
  7713. xmms_config_exec_prefix="$withval"
  7714. else
  7715. xmms_config_exec_prefix=""
  7716. fi;
  7717. if test x$xmms_config_exec_prefix != x; then
  7718. xmms_config_args="$xmms_config_args --exec-prefix=$xmms_config_exec_prefix"
  7719. if test x${XMMS_CONFIG+set} != xset; then
  7720. XMMS_CONFIG=$xmms_config_exec_prefix/bin/xmms-config
  7721. fi
  7722. fi
  7723. if test x$xmms_config_prefix != x; then
  7724. xmms_config_args="$xmms_config_args --prefix=$xmms_config_prefix"
  7725. if test x${XMMS_CONFIG+set} != xset; then
  7726. XMMS_CONFIG=$xmms_config_prefix/bin/xmms-config
  7727. fi
  7728. fi
  7729. # Extract the first word of "xmms-config", so it can be a program name with args.
  7730. set dummy xmms-config; ac_word=$2
  7731. echo "$as_me:$LINENO: checking for $ac_word" >&5
  7732. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  7733. if test "${ac_cv_path_XMMS_CONFIG+set}" = set; then
  7734. echo $ECHO_N "(cached) $ECHO_C" >&6
  7735. else
  7736. case $XMMS_CONFIG in
  7737. [\\/]* | ?:[\\/]*)
  7738. ac_cv_path_XMMS_CONFIG="$XMMS_CONFIG" # Let the user override the test with a path.
  7739. ;;
  7740. *)
  7741. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7742. for as_dir in $PATH
  7743. do
  7744. IFS=$as_save_IFS
  7745. test -z "$as_dir" && as_dir=.
  7746. for ac_exec_ext in '' $ac_executable_extensions; do
  7747. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7748. ac_cv_path_XMMS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  7749. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7750. break 2
  7751. fi
  7752. done
  7753. done
  7754. test -z "$ac_cv_path_XMMS_CONFIG" && ac_cv_path_XMMS_CONFIG="no"
  7755. ;;
  7756. esac
  7757. fi
  7758. XMMS_CONFIG=$ac_cv_path_XMMS_CONFIG
  7759. if test -n "$XMMS_CONFIG"; then
  7760. echo "$as_me:$LINENO: result: $XMMS_CONFIG" >&5
  7761. echo "${ECHO_T}$XMMS_CONFIG" >&6
  7762. else
  7763. echo "$as_me:$LINENO: result: no" >&5
  7764. echo "${ECHO_T}no" >&6
  7765. fi
  7766. min_xmms_version=1.0.0
  7767. if test "$XMMS_CONFIG" = "no"; then
  7768. no_xmms=yes
  7769. else
  7770. XMMS_CFLAGS=`$XMMS_CONFIG $xmms_config_args --cflags`
  7771. XMMS_LIBS=`$XMMS_CONFIG $xmms_config_args --libs`
  7772. XMMS_VERSION=`$XMMS_CONFIG $xmms_config_args --version`
  7773. XMMS_DATA_DIR=`$XMMS_CONFIG $xmms_config_args --data-dir`
  7774. XMMS_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args --plugin-dir`
  7775. XMMS_VISUALIZATION_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args \
  7776. --visualization-plugin-dir`
  7777. XMMS_INPUT_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args --input-plugin-dir`
  7778. XMMS_OUTPUT_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args --output-plugin-dir`
  7779. XMMS_EFFECT_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args --effect-plugin-dir`
  7780. XMMS_GENERAL_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args --general-plugin-dir`
  7781. # Determine which version number is greater. Prints 2 to stdout if
  7782. # the second number is greater, 1 if the first number is greater,
  7783. # 0 if the numbers are equal.
  7784. # Written 15 December 1999 by Ben Gertzfield <che@debian.org>
  7785. # Revised 15 December 1999 by Jim Monty <monty@primenet.com>
  7786. for ac_prog in gawk mawk nawk awk
  7787. do
  7788. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7789. set dummy $ac_prog; ac_word=$2
  7790. echo "$as_me:$LINENO: checking for $ac_word" >&5
  7791. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  7792. if test "${ac_cv_prog_AWK+set}" = set; then
  7793. echo $ECHO_N "(cached) $ECHO_C" >&6
  7794. else
  7795. if test -n "$AWK"; then
  7796. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  7797. else
  7798. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7799. for as_dir in $PATH
  7800. do
  7801. IFS=$as_save_IFS
  7802. test -z "$as_dir" && as_dir=.
  7803. for ac_exec_ext in '' $ac_executable_extensions; do
  7804. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7805. ac_cv_prog_AWK="$ac_prog"
  7806. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7807. break 2
  7808. fi
  7809. done
  7810. done
  7811. fi
  7812. fi
  7813. AWK=$ac_cv_prog_AWK
  7814. if test -n "$AWK"; then
  7815. echo "$as_me:$LINENO: result: $AWK" >&5
  7816. echo "${ECHO_T}$AWK" >&6
  7817. else
  7818. echo "$as_me:$LINENO: result: no" >&5
  7819. echo "${ECHO_T}no" >&6
  7820. fi
  7821. test -n "$AWK" && break
  7822. done
  7823. xmms_got_version=` $AWK ' \
  7824. BEGIN { \
  7825. print vercmp(ARGV[1], ARGV[2]); \
  7826. } \
  7827. \
  7828. function vercmp(ver1, ver2, ver1arr, ver2arr, \
  7829. ver1len, ver2len, \
  7830. ver1int, ver2int, len, i, p) { \
  7831. \
  7832. ver1len = split(ver1, ver1arr, /\./); \
  7833. ver2len = split(ver2, ver2arr, /\./); \
  7834. \
  7835. len = ver1len > ver2len ? ver1len : ver2len; \
  7836. \
  7837. for (i = 1; i <= len; i++) { \
  7838. p = 1000 ^ (len - i); \
  7839. ver1int += ver1arr[i] * p; \
  7840. ver2int += ver2arr[i] * p; \
  7841. } \
  7842. \
  7843. if (ver1int < ver2int) \
  7844. return 2; \
  7845. else if (ver1int > ver2int) \
  7846. return 1; \
  7847. else \
  7848. return 0; \
  7849. }' $XMMS_VERSION $min_xmms_version`
  7850. if test $xmms_got_version -eq 2; then # failure
  7851. no_xmms=version
  7852. else # success!
  7853. :
  7854. fi
  7855. fi
  7856. echo "$as_me:$LINENO: checking for XMMS - version >= $min_xmms_version" >&5
  7857. echo $ECHO_N "checking for XMMS - version >= $min_xmms_version... $ECHO_C" >&6
  7858. if test "x$no_xmms" = x; then
  7859. echo "$as_me:$LINENO: result: yes" >&5
  7860. echo "${ECHO_T}yes" >&6
  7861. LIBS="$LIBS $XMMS_LIBS"
  7862. CFLAGS="$CFLAGS $XMMS_CFLAGS"
  7863. else
  7864. echo "$as_me:$LINENO: result: no" >&5
  7865. echo "${ECHO_T}no" >&6
  7866. if test "$XMMS_CONFIG" = "no" ; then
  7867. echo "*** The xmms-config script installed by XMMS could not be found."
  7868. echo "*** If XMMS was installed in PREFIX, make sure PREFIX/bin is in"
  7869. echo "*** your path, or set the XMMS_CONFIG environment variable to the"
  7870. echo "*** full path to xmms-config."
  7871. else
  7872. if test "$no_xmms" = "version"; then
  7873. echo "*** An old version of XMMS, $XMMS_VERSION, was found."
  7874. echo "*** You need a version of XMMS newer than $min_xmms_version."
  7875. echo "*** The latest version of XMMS is always available from"
  7876. echo "*** http://www.xmms.org/"
  7877. echo "***"
  7878. echo "*** If you have already installed a sufficiently new version, this error"
  7879. echo "*** probably means that the wrong copy of the xmms-config shell script is"
  7880. echo "*** being found. The easiest way to fix this is to remove the old version"
  7881. echo "*** of XMMS, but you can also set the XMMS_CONFIG environment to point to the"
  7882. echo "*** correct copy of xmms-config. (In this case, you will have to"
  7883. echo "*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf"
  7884. echo "*** so that the correct libraries are found at run-time)"
  7885. fi
  7886. fi
  7887. XMMS_CFLAGS=""
  7888. XMMS_LIBS=""
  7889. { { echo "$as_me:$LINENO: error: You need XMMS version >= 1.0.0" >&5
  7890. echo "$as_me: error: You need XMMS version >= 1.0.0" >&2;}
  7891. { (exit naturally.); exit naturally.; }; }
  7892. fi
  7893. echo "$as_me:$LINENO: checking for id3_tag_new in -lid3tag" >&5
  7894. echo $ECHO_N "checking for id3_tag_new in -lid3tag... $ECHO_C" >&6
  7895. if test "${ac_cv_lib_id3tag_id3_tag_new+set}" = set; then
  7896. echo $ECHO_N "(cached) $ECHO_C" >&6
  7897. else
  7898. ac_check_lib_save_LIBS=$LIBS
  7899. LIBS="-lid3tag -lz $LIBS"
  7900. cat >conftest.$ac_ext <<_ACEOF
  7901. #line $LINENO "configure"
  7902. /* confdefs.h. */
  7903. _ACEOF
  7904. cat confdefs.h >>conftest.$ac_ext
  7905. cat >>conftest.$ac_ext <<_ACEOF
  7906. /* end confdefs.h. */
  7907. /* Override any gcc2 internal prototype to avoid an error. */
  7908. #ifdef __cplusplus
  7909. extern "C"
  7910. #endif
  7911. /* We use char because int might match the return type of a gcc2
  7912. builtin and then its argument prototype would still apply. */
  7913. char id3_tag_new ();
  7914. int
  7915. main ()
  7916. {
  7917. id3_tag_new ();
  7918. ;
  7919. return 0;
  7920. }
  7921. _ACEOF
  7922. rm -f conftest.$ac_objext conftest$ac_exeext
  7923. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7924. (eval $ac_link) 2>&5
  7925. ac_status=$?
  7926. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7927. (exit $ac_status); } &&
  7928. { ac_try='test -s conftest$ac_exeext'
  7929. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7930. (eval $ac_try) 2>&5
  7931. ac_status=$?
  7932. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7933. (exit $ac_status); }; }; then
  7934. ac_cv_lib_id3tag_id3_tag_new=yes
  7935. else
  7936. echo "$as_me: failed program was:" >&5
  7937. sed 's/^/| /' conftest.$ac_ext >&5
  7938. ac_cv_lib_id3tag_id3_tag_new=no
  7939. fi
  7940. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  7941. LIBS=$ac_check_lib_save_LIBS
  7942. fi
  7943. echo "$as_me:$LINENO: result: $ac_cv_lib_id3tag_id3_tag_new" >&5
  7944. echo "${ECHO_T}$ac_cv_lib_id3tag_id3_tag_new" >&6
  7945. if test $ac_cv_lib_id3tag_id3_tag_new = yes; then
  7946. cat >>confdefs.h <<_ACEOF
  7947. #define HAVE_LIBID3TAG 1
  7948. _ACEOF
  7949. LIBS="-lid3tag $LIBS"
  7950. else
  7951. { { echo "$as_me:$LINENO: error: \"libid3tag is required for ID3 support. Find it in the MAD distribution at http://www.mars.org/home/rob/proj/mpeg/ - version 0.14.1 or better.\"" >&5
  7952. echo "$as_me: error: \"libid3tag is required for ID3 support. Find it in the MAD distribution at http://www.mars.org/home/rob/proj/mpeg/ - version 0.14.1 or better.\"" >&2;}
  7953. { (exit 1); exit 1; }; }
  7954. fi
  7955. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  7956. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  7957. if test "${ac_cv_header_stdc+set}" = set; then
  7958. echo $ECHO_N "(cached) $ECHO_C" >&6
  7959. else
  7960. cat >conftest.$ac_ext <<_ACEOF
  7961. #line $LINENO "configure"
  7962. /* confdefs.h. */
  7963. _ACEOF
  7964. cat confdefs.h >>conftest.$ac_ext
  7965. cat >>conftest.$ac_ext <<_ACEOF
  7966. /* end confdefs.h. */
  7967. #include <stdlib.h>
  7968. #include <stdarg.h>
  7969. #include <string.h>
  7970. #include <float.h>
  7971. int
  7972. main ()
  7973. {
  7974. ;
  7975. return 0;
  7976. }
  7977. _ACEOF
  7978. rm -f conftest.$ac_objext
  7979. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7980. (eval $ac_compile) 2>&5
  7981. ac_status=$?
  7982. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7983. (exit $ac_status); } &&
  7984. { ac_try='test -s conftest.$ac_objext'
  7985. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7986. (eval $ac_try) 2>&5
  7987. ac_status=$?
  7988. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7989. (exit $ac_status); }; }; then
  7990. ac_cv_header_stdc=yes
  7991. else
  7992. echo "$as_me: failed program was:" >&5
  7993. sed 's/^/| /' conftest.$ac_ext >&5
  7994. ac_cv_header_stdc=no
  7995. fi
  7996. rm -f conftest.$ac_objext conftest.$ac_ext
  7997. if test $ac_cv_header_stdc = yes; then
  7998. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7999. cat >conftest.$ac_ext <<_ACEOF
  8000. #line $LINENO "configure"
  8001. /* confdefs.h. */
  8002. _ACEOF
  8003. cat confdefs.h >>conftest.$ac_ext
  8004. cat >>conftest.$ac_ext <<_ACEOF
  8005. /* end confdefs.h. */
  8006. #include <string.h>
  8007. _ACEOF
  8008. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8009. $EGREP "memchr" >/dev/null 2>&1; then
  8010. :
  8011. else
  8012. ac_cv_header_stdc=no
  8013. fi
  8014. rm -f conftest*
  8015. fi
  8016. if test $ac_cv_header_stdc = yes; then
  8017. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  8018. cat >conftest.$ac_ext <<_ACEOF
  8019. #line $LINENO "configure"
  8020. /* confdefs.h. */
  8021. _ACEOF
  8022. cat confdefs.h >>conftest.$ac_ext
  8023. cat >>conftest.$ac_ext <<_ACEOF
  8024. /* end confdefs.h. */
  8025. #include <stdlib.h>
  8026. _ACEOF
  8027. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8028. $EGREP "free" >/dev/null 2>&1; then
  8029. :
  8030. else
  8031. ac_cv_header_stdc=no
  8032. fi
  8033. rm -f conftest*
  8034. fi
  8035. if test $ac_cv_header_stdc = yes; then
  8036. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  8037. if test "$cross_compiling" = yes; then
  8038. :
  8039. else
  8040. cat >conftest.$ac_ext <<_ACEOF
  8041. #line $LINENO "configure"
  8042. /* confdefs.h. */
  8043. _ACEOF
  8044. cat confdefs.h >>conftest.$ac_ext
  8045. cat >>conftest.$ac_ext <<_ACEOF
  8046. /* end confdefs.h. */
  8047. #include <ctype.h>
  8048. #if ((' ' & 0x0FF) == 0x020)
  8049. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  8050. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  8051. #else
  8052. # define ISLOWER(c) \
  8053. (('a' <= (c) && (c) <= 'i') \
  8054. || ('j' <= (c) && (c) <= 'r') \
  8055. || ('s' <= (c) && (c) <= 'z'))
  8056. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  8057. #endif
  8058. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  8059. int
  8060. main ()
  8061. {
  8062. int i;
  8063. for (i = 0; i < 256; i++)
  8064. if (XOR (islower (i), ISLOWER (i))
  8065. || toupper (i) != TOUPPER (i))
  8066. exit(2);
  8067. exit (0);
  8068. }
  8069. _ACEOF
  8070. rm -f conftest$ac_exeext
  8071. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8072. (eval $ac_link) 2>&5
  8073. ac_status=$?
  8074. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8075. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8076. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8077. (eval $ac_try) 2>&5
  8078. ac_status=$?
  8079. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8080. (exit $ac_status); }; }; then
  8081. :
  8082. else
  8083. echo "$as_me: program exited with status $ac_status" >&5
  8084. echo "$as_me: failed program was:" >&5
  8085. sed 's/^/| /' conftest.$ac_ext >&5
  8086. ( exit $ac_status )
  8087. ac_cv_header_stdc=no
  8088. fi
  8089. rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8090. fi
  8091. fi
  8092. fi
  8093. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  8094. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  8095. if test $ac_cv_header_stdc = yes; then
  8096. cat >>confdefs.h <<\_ACEOF
  8097. #define STDC_HEADERS 1
  8098. _ACEOF
  8099. fi
  8100. for ac_header in "unistd.h"
  8101. do
  8102. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8103. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8104. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8105. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8106. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8107. echo $ECHO_N "(cached) $ECHO_C" >&6
  8108. fi
  8109. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8110. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8111. else
  8112. # Is the header compilable?
  8113. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8114. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8115. cat >conftest.$ac_ext <<_ACEOF
  8116. #line $LINENO "configure"
  8117. /* confdefs.h. */
  8118. _ACEOF
  8119. cat confdefs.h >>conftest.$ac_ext
  8120. cat >>conftest.$ac_ext <<_ACEOF
  8121. /* end confdefs.h. */
  8122. $ac_includes_default
  8123. #include <$ac_header>
  8124. _ACEOF
  8125. rm -f conftest.$ac_objext
  8126. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8127. (eval $ac_compile) 2>&5
  8128. ac_status=$?
  8129. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8130. (exit $ac_status); } &&
  8131. { ac_try='test -s conftest.$ac_objext'
  8132. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8133. (eval $ac_try) 2>&5
  8134. ac_status=$?
  8135. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8136. (exit $ac_status); }; }; then
  8137. ac_header_compiler=yes
  8138. else
  8139. echo "$as_me: failed program was:" >&5
  8140. sed 's/^/| /' conftest.$ac_ext >&5
  8141. ac_header_compiler=no
  8142. fi
  8143. rm -f conftest.$ac_objext conftest.$ac_ext
  8144. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8145. echo "${ECHO_T}$ac_header_compiler" >&6
  8146. # Is the header present?
  8147. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8148. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8149. cat >conftest.$ac_ext <<_ACEOF
  8150. #line $LINENO "configure"
  8151. /* confdefs.h. */
  8152. _ACEOF
  8153. cat confdefs.h >>conftest.$ac_ext
  8154. cat >>conftest.$ac_ext <<_ACEOF
  8155. /* end confdefs.h. */
  8156. #include <$ac_header>
  8157. _ACEOF
  8158. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8159. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8160. ac_status=$?
  8161. grep -v '^ *+' conftest.er1 >conftest.err
  8162. rm -f conftest.er1
  8163. cat conftest.err >&5
  8164. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8165. (exit $ac_status); } >/dev/null; then
  8166. if test -s conftest.err; then
  8167. ac_cpp_err=$ac_c_preproc_warn_flag
  8168. else
  8169. ac_cpp_err=
  8170. fi
  8171. else
  8172. ac_cpp_err=yes
  8173. fi
  8174. if test -z "$ac_cpp_err"; then
  8175. ac_header_preproc=yes
  8176. else
  8177. echo "$as_me: failed program was:" >&5
  8178. sed 's/^/| /' conftest.$ac_ext >&5
  8179. ac_header_preproc=no
  8180. fi
  8181. rm -f conftest.err conftest.$ac_ext
  8182. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8183. echo "${ECHO_T}$ac_header_preproc" >&6
  8184. # So? What about this header?
  8185. case $ac_header_compiler:$ac_header_preproc in
  8186. yes:no )
  8187. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8188. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8189. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8190. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8191. (
  8192. cat <<\_ASBOX
  8193. ## ------------------------------------ ##
  8194. ## Report this to bug-autoconf@gnu.org. ##
  8195. ## ------------------------------------ ##
  8196. _ASBOX
  8197. ) |
  8198. sed "s/^/$as_me: WARNING: /" >&2
  8199. ;;
  8200. no:yes )
  8201. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8202. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8203. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8204. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8205. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8206. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8207. (
  8208. cat <<\_ASBOX
  8209. ## ------------------------------------ ##
  8210. ## Report this to bug-autoconf@gnu.org. ##
  8211. ## ------------------------------------ ##
  8212. _ASBOX
  8213. ) |
  8214. sed "s/^/$as_me: WARNING: /" >&2
  8215. ;;
  8216. esac
  8217. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8218. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8219. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8220. echo $ECHO_N "(cached) $ECHO_C" >&6
  8221. else
  8222. eval "$as_ac_Header=$ac_header_preproc"
  8223. fi
  8224. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8225. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8226. fi
  8227. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8228. cat >>confdefs.h <<_ACEOF
  8229. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8230. _ACEOF
  8231. fi
  8232. done
  8233. #AC_CHECK_HEADERS("pthread.h")
  8234. for ac_header in "errno.h"
  8235. do
  8236. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8237. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8238. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8239. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8240. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8241. echo $ECHO_N "(cached) $ECHO_C" >&6
  8242. fi
  8243. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8244. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8245. else
  8246. # Is the header compilable?
  8247. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8248. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8249. cat >conftest.$ac_ext <<_ACEOF
  8250. #line $LINENO "configure"
  8251. /* confdefs.h. */
  8252. _ACEOF
  8253. cat confdefs.h >>conftest.$ac_ext
  8254. cat >>conftest.$ac_ext <<_ACEOF
  8255. /* end confdefs.h. */
  8256. $ac_includes_default
  8257. #include <$ac_header>
  8258. _ACEOF
  8259. rm -f conftest.$ac_objext
  8260. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8261. (eval $ac_compile) 2>&5
  8262. ac_status=$?
  8263. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8264. (exit $ac_status); } &&
  8265. { ac_try='test -s conftest.$ac_objext'
  8266. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8267. (eval $ac_try) 2>&5
  8268. ac_status=$?
  8269. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8270. (exit $ac_status); }; }; then
  8271. ac_header_compiler=yes
  8272. else
  8273. echo "$as_me: failed program was:" >&5
  8274. sed 's/^/| /' conftest.$ac_ext >&5
  8275. ac_header_compiler=no
  8276. fi
  8277. rm -f conftest.$ac_objext conftest.$ac_ext
  8278. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8279. echo "${ECHO_T}$ac_header_compiler" >&6
  8280. # Is the header present?
  8281. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8282. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8283. cat >conftest.$ac_ext <<_ACEOF
  8284. #line $LINENO "configure"
  8285. /* confdefs.h. */
  8286. _ACEOF
  8287. cat confdefs.h >>conftest.$ac_ext
  8288. cat >>conftest.$ac_ext <<_ACEOF
  8289. /* end confdefs.h. */
  8290. #include <$ac_header>
  8291. _ACEOF
  8292. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8293. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8294. ac_status=$?
  8295. grep -v '^ *+' conftest.er1 >conftest.err
  8296. rm -f conftest.er1
  8297. cat conftest.err >&5
  8298. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8299. (exit $ac_status); } >/dev/null; then
  8300. if test -s conftest.err; then
  8301. ac_cpp_err=$ac_c_preproc_warn_flag
  8302. else
  8303. ac_cpp_err=
  8304. fi
  8305. else
  8306. ac_cpp_err=yes
  8307. fi
  8308. if test -z "$ac_cpp_err"; then
  8309. ac_header_preproc=yes
  8310. else
  8311. echo "$as_me: failed program was:" >&5
  8312. sed 's/^/| /' conftest.$ac_ext >&5
  8313. ac_header_preproc=no
  8314. fi
  8315. rm -f conftest.err conftest.$ac_ext
  8316. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8317. echo "${ECHO_T}$ac_header_preproc" >&6
  8318. # So? What about this header?
  8319. case $ac_header_compiler:$ac_header_preproc in
  8320. yes:no )
  8321. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8322. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8323. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8324. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8325. (
  8326. cat <<\_ASBOX
  8327. ## ------------------------------------ ##
  8328. ## Report this to bug-autoconf@gnu.org. ##
  8329. ## ------------------------------------ ##
  8330. _ASBOX
  8331. ) |
  8332. sed "s/^/$as_me: WARNING: /" >&2
  8333. ;;
  8334. no:yes )
  8335. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8336. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8337. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8338. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8339. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8340. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8341. (
  8342. cat <<\_ASBOX
  8343. ## ------------------------------------ ##
  8344. ## Report this to bug-autoconf@gnu.org. ##
  8345. ## ------------------------------------ ##
  8346. _ASBOX
  8347. ) |
  8348. sed "s/^/$as_me: WARNING: /" >&2
  8349. ;;
  8350. esac
  8351. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8352. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8353. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8354. echo $ECHO_N "(cached) $ECHO_C" >&6
  8355. else
  8356. eval "$as_ac_Header=$ac_header_preproc"
  8357. fi
  8358. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8359. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8360. fi
  8361. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8362. cat >>confdefs.h <<_ACEOF
  8363. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8364. _ACEOF
  8365. fi
  8366. done
  8367. for ac_header in "fcntl.h"
  8368. do
  8369. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8370. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8371. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8372. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8373. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8374. echo $ECHO_N "(cached) $ECHO_C" >&6
  8375. fi
  8376. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8377. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8378. else
  8379. # Is the header compilable?
  8380. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8381. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8382. cat >conftest.$ac_ext <<_ACEOF
  8383. #line $LINENO "configure"
  8384. /* confdefs.h. */
  8385. _ACEOF
  8386. cat confdefs.h >>conftest.$ac_ext
  8387. cat >>conftest.$ac_ext <<_ACEOF
  8388. /* end confdefs.h. */
  8389. $ac_includes_default
  8390. #include <$ac_header>
  8391. _ACEOF
  8392. rm -f conftest.$ac_objext
  8393. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8394. (eval $ac_compile) 2>&5
  8395. ac_status=$?
  8396. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8397. (exit $ac_status); } &&
  8398. { ac_try='test -s conftest.$ac_objext'
  8399. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8400. (eval $ac_try) 2>&5
  8401. ac_status=$?
  8402. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8403. (exit $ac_status); }; }; then
  8404. ac_header_compiler=yes
  8405. else
  8406. echo "$as_me: failed program was:" >&5
  8407. sed 's/^/| /' conftest.$ac_ext >&5
  8408. ac_header_compiler=no
  8409. fi
  8410. rm -f conftest.$ac_objext conftest.$ac_ext
  8411. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8412. echo "${ECHO_T}$ac_header_compiler" >&6
  8413. # Is the header present?
  8414. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8415. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8416. cat >conftest.$ac_ext <<_ACEOF
  8417. #line $LINENO "configure"
  8418. /* confdefs.h. */
  8419. _ACEOF
  8420. cat confdefs.h >>conftest.$ac_ext
  8421. cat >>conftest.$ac_ext <<_ACEOF
  8422. /* end confdefs.h. */
  8423. #include <$ac_header>
  8424. _ACEOF
  8425. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8426. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8427. ac_status=$?
  8428. grep -v '^ *+' conftest.er1 >conftest.err
  8429. rm -f conftest.er1
  8430. cat conftest.err >&5
  8431. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8432. (exit $ac_status); } >/dev/null; then
  8433. if test -s conftest.err; then
  8434. ac_cpp_err=$ac_c_preproc_warn_flag
  8435. else
  8436. ac_cpp_err=
  8437. fi
  8438. else
  8439. ac_cpp_err=yes
  8440. fi
  8441. if test -z "$ac_cpp_err"; then
  8442. ac_header_preproc=yes
  8443. else
  8444. echo "$as_me: failed program was:" >&5
  8445. sed 's/^/| /' conftest.$ac_ext >&5
  8446. ac_header_preproc=no
  8447. fi
  8448. rm -f conftest.err conftest.$ac_ext
  8449. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8450. echo "${ECHO_T}$ac_header_preproc" >&6
  8451. # So? What about this header?
  8452. case $ac_header_compiler:$ac_header_preproc in
  8453. yes:no )
  8454. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8455. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8456. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8457. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8458. (
  8459. cat <<\_ASBOX
  8460. ## ------------------------------------ ##
  8461. ## Report this to bug-autoconf@gnu.org. ##
  8462. ## ------------------------------------ ##
  8463. _ASBOX
  8464. ) |
  8465. sed "s/^/$as_me: WARNING: /" >&2
  8466. ;;
  8467. no:yes )
  8468. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8469. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8470. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8471. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8472. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8473. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8474. (
  8475. cat <<\_ASBOX
  8476. ## ------------------------------------ ##
  8477. ## Report this to bug-autoconf@gnu.org. ##
  8478. ## ------------------------------------ ##
  8479. _ASBOX
  8480. ) |
  8481. sed "s/^/$as_me: WARNING: /" >&2
  8482. ;;
  8483. esac
  8484. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8485. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8486. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8487. echo $ECHO_N "(cached) $ECHO_C" >&6
  8488. else
  8489. eval "$as_ac_Header=$ac_header_preproc"
  8490. fi
  8491. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8492. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8493. fi
  8494. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8495. cat >>confdefs.h <<_ACEOF
  8496. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8497. _ACEOF
  8498. fi
  8499. done
  8500. for ac_header in "time.h"
  8501. do
  8502. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8503. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8504. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8505. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8506. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8507. echo $ECHO_N "(cached) $ECHO_C" >&6
  8508. fi
  8509. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8510. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8511. else
  8512. # Is the header compilable?
  8513. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8514. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8515. cat >conftest.$ac_ext <<_ACEOF
  8516. #line $LINENO "configure"
  8517. /* confdefs.h. */
  8518. _ACEOF
  8519. cat confdefs.h >>conftest.$ac_ext
  8520. cat >>conftest.$ac_ext <<_ACEOF
  8521. /* end confdefs.h. */
  8522. $ac_includes_default
  8523. #include <$ac_header>
  8524. _ACEOF
  8525. rm -f conftest.$ac_objext
  8526. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8527. (eval $ac_compile) 2>&5
  8528. ac_status=$?
  8529. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8530. (exit $ac_status); } &&
  8531. { ac_try='test -s conftest.$ac_objext'
  8532. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8533. (eval $ac_try) 2>&5
  8534. ac_status=$?
  8535. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8536. (exit $ac_status); }; }; then
  8537. ac_header_compiler=yes
  8538. else
  8539. echo "$as_me: failed program was:" >&5
  8540. sed 's/^/| /' conftest.$ac_ext >&5
  8541. ac_header_compiler=no
  8542. fi
  8543. rm -f conftest.$ac_objext conftest.$ac_ext
  8544. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8545. echo "${ECHO_T}$ac_header_compiler" >&6
  8546. # Is the header present?
  8547. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8548. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8549. cat >conftest.$ac_ext <<_ACEOF
  8550. #line $LINENO "configure"
  8551. /* confdefs.h. */
  8552. _ACEOF
  8553. cat confdefs.h >>conftest.$ac_ext
  8554. cat >>conftest.$ac_ext <<_ACEOF
  8555. /* end confdefs.h. */
  8556. #include <$ac_header>
  8557. _ACEOF
  8558. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8559. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8560. ac_status=$?
  8561. grep -v '^ *+' conftest.er1 >conftest.err
  8562. rm -f conftest.er1
  8563. cat conftest.err >&5
  8564. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8565. (exit $ac_status); } >/dev/null; then
  8566. if test -s conftest.err; then
  8567. ac_cpp_err=$ac_c_preproc_warn_flag
  8568. else
  8569. ac_cpp_err=
  8570. fi
  8571. else
  8572. ac_cpp_err=yes
  8573. fi
  8574. if test -z "$ac_cpp_err"; then
  8575. ac_header_preproc=yes
  8576. else
  8577. echo "$as_me: failed program was:" >&5
  8578. sed 's/^/| /' conftest.$ac_ext >&5
  8579. ac_header_preproc=no
  8580. fi
  8581. rm -f conftest.err conftest.$ac_ext
  8582. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8583. echo "${ECHO_T}$ac_header_preproc" >&6
  8584. # So? What about this header?
  8585. case $ac_header_compiler:$ac_header_preproc in
  8586. yes:no )
  8587. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8588. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8589. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8590. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8591. (
  8592. cat <<\_ASBOX
  8593. ## ------------------------------------ ##
  8594. ## Report this to bug-autoconf@gnu.org. ##
  8595. ## ------------------------------------ ##
  8596. _ASBOX
  8597. ) |
  8598. sed "s/^/$as_me: WARNING: /" >&2
  8599. ;;
  8600. no:yes )
  8601. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8602. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8603. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8604. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8605. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8606. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8607. (
  8608. cat <<\_ASBOX
  8609. ## ------------------------------------ ##
  8610. ## Report this to bug-autoconf@gnu.org. ##
  8611. ## ------------------------------------ ##
  8612. _ASBOX
  8613. ) |
  8614. sed "s/^/$as_me: WARNING: /" >&2
  8615. ;;
  8616. esac
  8617. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8618. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8619. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8620. echo $ECHO_N "(cached) $ECHO_C" >&6
  8621. else
  8622. eval "$as_ac_Header=$ac_header_preproc"
  8623. fi
  8624. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8625. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8626. fi
  8627. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8628. cat >>confdefs.h <<_ACEOF
  8629. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8630. _ACEOF
  8631. fi
  8632. done
  8633. for ac_header in "pwd.h"
  8634. do
  8635. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8636. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8637. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8638. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8639. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8640. echo $ECHO_N "(cached) $ECHO_C" >&6
  8641. fi
  8642. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8643. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8644. else
  8645. # Is the header compilable?
  8646. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8647. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8648. cat >conftest.$ac_ext <<_ACEOF
  8649. #line $LINENO "configure"
  8650. /* confdefs.h. */
  8651. _ACEOF
  8652. cat confdefs.h >>conftest.$ac_ext
  8653. cat >>conftest.$ac_ext <<_ACEOF
  8654. /* end confdefs.h. */
  8655. $ac_includes_default
  8656. #include <$ac_header>
  8657. _ACEOF
  8658. rm -f conftest.$ac_objext
  8659. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8660. (eval $ac_compile) 2>&5
  8661. ac_status=$?
  8662. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8663. (exit $ac_status); } &&
  8664. { ac_try='test -s conftest.$ac_objext'
  8665. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8666. (eval $ac_try) 2>&5
  8667. ac_status=$?
  8668. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8669. (exit $ac_status); }; }; then
  8670. ac_header_compiler=yes
  8671. else
  8672. echo "$as_me: failed program was:" >&5
  8673. sed 's/^/| /' conftest.$ac_ext >&5
  8674. ac_header_compiler=no
  8675. fi
  8676. rm -f conftest.$ac_objext conftest.$ac_ext
  8677. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8678. echo "${ECHO_T}$ac_header_compiler" >&6
  8679. # Is the header present?
  8680. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8681. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8682. cat >conftest.$ac_ext <<_ACEOF
  8683. #line $LINENO "configure"
  8684. /* confdefs.h. */
  8685. _ACEOF
  8686. cat confdefs.h >>conftest.$ac_ext
  8687. cat >>conftest.$ac_ext <<_ACEOF
  8688. /* end confdefs.h. */
  8689. #include <$ac_header>
  8690. _ACEOF
  8691. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8692. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8693. ac_status=$?
  8694. grep -v '^ *+' conftest.er1 >conftest.err
  8695. rm -f conftest.er1
  8696. cat conftest.err >&5
  8697. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8698. (exit $ac_status); } >/dev/null; then
  8699. if test -s conftest.err; then
  8700. ac_cpp_err=$ac_c_preproc_warn_flag
  8701. else
  8702. ac_cpp_err=
  8703. fi
  8704. else
  8705. ac_cpp_err=yes
  8706. fi
  8707. if test -z "$ac_cpp_err"; then
  8708. ac_header_preproc=yes
  8709. else
  8710. echo "$as_me: failed program was:" >&5
  8711. sed 's/^/| /' conftest.$ac_ext >&5
  8712. ac_header_preproc=no
  8713. fi
  8714. rm -f conftest.err conftest.$ac_ext
  8715. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8716. echo "${ECHO_T}$ac_header_preproc" >&6
  8717. # So? What about this header?
  8718. case $ac_header_compiler:$ac_header_preproc in
  8719. yes:no )
  8720. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8721. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8722. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8723. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8724. (
  8725. cat <<\_ASBOX
  8726. ## ------------------------------------ ##
  8727. ## Report this to bug-autoconf@gnu.org. ##
  8728. ## ------------------------------------ ##
  8729. _ASBOX
  8730. ) |
  8731. sed "s/^/$as_me: WARNING: /" >&2
  8732. ;;
  8733. no:yes )
  8734. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8735. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8736. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8737. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8738. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8739. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8740. (
  8741. cat <<\_ASBOX
  8742. ## ------------------------------------ ##
  8743. ## Report this to bug-autoconf@gnu.org. ##
  8744. ## ------------------------------------ ##
  8745. _ASBOX
  8746. ) |
  8747. sed "s/^/$as_me: WARNING: /" >&2
  8748. ;;
  8749. esac
  8750. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8751. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8752. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8753. echo $ECHO_N "(cached) $ECHO_C" >&6
  8754. else
  8755. eval "$as_ac_Header=$ac_header_preproc"
  8756. fi
  8757. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8758. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8759. fi
  8760. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8761. cat >>confdefs.h <<_ACEOF
  8762. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8763. _ACEOF
  8764. fi
  8765. done
  8766. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  8767. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  8768. if test "${ac_cv_c_const+set}" = set; then
  8769. echo $ECHO_N "(cached) $ECHO_C" >&6
  8770. else
  8771. cat >conftest.$ac_ext <<_ACEOF
  8772. #line $LINENO "configure"
  8773. /* confdefs.h. */
  8774. _ACEOF
  8775. cat confdefs.h >>conftest.$ac_ext
  8776. cat >>conftest.$ac_ext <<_ACEOF
  8777. /* end confdefs.h. */
  8778. int
  8779. main ()
  8780. {
  8781. /* FIXME: Include the comments suggested by Paul. */
  8782. #ifndef __cplusplus
  8783. /* Ultrix mips cc rejects this. */
  8784. typedef int charset[2];
  8785. const charset x;
  8786. /* SunOS 4.1.1 cc rejects this. */
  8787. char const *const *ccp;
  8788. char **p;
  8789. /* NEC SVR4.0.2 mips cc rejects this. */
  8790. struct point {int x, y;};
  8791. static struct point const zero = {0,0};
  8792. /* AIX XL C 1.02.0.0 rejects this.
  8793. It does not let you subtract one const X* pointer from another in
  8794. an arm of an if-expression whose if-part is not a constant
  8795. expression */
  8796. const char *g = "string";
  8797. ccp = &g + (g ? g-g : 0);
  8798. /* HPUX 7.0 cc rejects these. */
  8799. ++ccp;
  8800. p = (char**) ccp;
  8801. ccp = (char const *const *) p;
  8802. { /* SCO 3.2v4 cc rejects this. */
  8803. char *t;
  8804. char const *s = 0 ? (char *) 0 : (char const *) 0;
  8805. *t++ = 0;
  8806. }
  8807. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  8808. int x[] = {25, 17};
  8809. const int *foo = &x[0];
  8810. ++foo;
  8811. }
  8812. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  8813. typedef const int *iptr;
  8814. iptr p = 0;
  8815. ++p;
  8816. }
  8817. { /* AIX XL C 1.02.0.0 rejects this saying
  8818. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  8819. struct s { int j; const int *ap[3]; };
  8820. struct s *b; b->j = 5;
  8821. }
  8822. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  8823. const int foo = 10;
  8824. }
  8825. #endif
  8826. ;
  8827. return 0;
  8828. }
  8829. _ACEOF
  8830. rm -f conftest.$ac_objext
  8831. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8832. (eval $ac_compile) 2>&5
  8833. ac_status=$?
  8834. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8835. (exit $ac_status); } &&
  8836. { ac_try='test -s conftest.$ac_objext'
  8837. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8838. (eval $ac_try) 2>&5
  8839. ac_status=$?
  8840. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8841. (exit $ac_status); }; }; then
  8842. ac_cv_c_const=yes
  8843. else
  8844. echo "$as_me: failed program was:" >&5
  8845. sed 's/^/| /' conftest.$ac_ext >&5
  8846. ac_cv_c_const=no
  8847. fi
  8848. rm -f conftest.$ac_objext conftest.$ac_ext
  8849. fi
  8850. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  8851. echo "${ECHO_T}$ac_cv_c_const" >&6
  8852. if test $ac_cv_c_const = no; then
  8853. cat >>confdefs.h <<\_ACEOF
  8854. #define const
  8855. _ACEOF
  8856. fi
  8857. ac_config_headers="$ac_config_headers config.h"
  8858. ac_config_commands="$ac_config_commands default-1"
  8859. ac_config_files="$ac_config_files Makefile src/Makefile"
  8860. cat >confcache <<\_ACEOF
  8861. # This file is a shell script that caches the results of configure
  8862. # tests run on this system so they can be shared between configure
  8863. # scripts and configure runs, see configure's option --config-cache.
  8864. # It is not useful on other systems. If it contains results you don't
  8865. # want to keep, you may remove or edit it.
  8866. #
  8867. # config.status only pays attention to the cache file if you give it
  8868. # the --recheck option to rerun configure.
  8869. #
  8870. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  8871. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  8872. # following values.
  8873. _ACEOF
  8874. # The following way of writing the cache mishandles newlines in values,
  8875. # but we know of no workaround that is simple, portable, and efficient.
  8876. # So, don't put newlines in cache variables' values.
  8877. # Ultrix sh set writes to stderr and can't be redirected directly,
  8878. # and sets the high bit in the cache file unless we assign to the vars.
  8879. {
  8880. (set) 2>&1 |
  8881. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  8882. *ac_space=\ *)
  8883. # `set' does not quote correctly, so add quotes (double-quote
  8884. # substitution turns \\\\ into \\, and sed turns \\ into \).
  8885. sed -n \
  8886. "s/'/'\\\\''/g;
  8887. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  8888. ;;
  8889. *)
  8890. # `set' quotes correctly as required by POSIX, so do not add quotes.
  8891. sed -n \
  8892. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  8893. ;;
  8894. esac;
  8895. } |
  8896. sed '
  8897. t clear
  8898. : clear
  8899. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  8900. t end
  8901. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  8902. : end' >>confcache
  8903. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  8904. if test -w $cache_file; then
  8905. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  8906. cat confcache >$cache_file
  8907. else
  8908. echo "not updating unwritable cache $cache_file"
  8909. fi
  8910. fi
  8911. rm -f confcache
  8912. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  8913. # Let make expand exec_prefix.
  8914. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  8915. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  8916. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  8917. # trailing colons and then remove the whole line if VPATH becomes empty
  8918. # (actually we leave an empty line to preserve line numbers).
  8919. if test "x$srcdir" = x.; then
  8920. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  8921. s/:*\$(srcdir):*/:/;
  8922. s/:*\${srcdir}:*/:/;
  8923. s/:*@srcdir@:*/:/;
  8924. s/^\([^=]*=[ ]*\):*/\1/;
  8925. s/:*$//;
  8926. s/^[^=]*=[ ]*$//;
  8927. }'
  8928. fi
  8929. DEFS=-DHAVE_CONFIG_H
  8930. ac_libobjs=
  8931. ac_ltlibobjs=
  8932. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  8933. # 1. Remove the extension, and $U if already installed.
  8934. ac_i=`echo "$ac_i" |
  8935. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  8936. # 2. Add them.
  8937. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  8938. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  8939. done
  8940. LIBOBJS=$ac_libobjs
  8941. LTLIBOBJS=$ac_ltlibobjs
  8942. : ${CONFIG_STATUS=./config.status}
  8943. ac_clean_files_save=$ac_clean_files
  8944. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  8945. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  8946. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  8947. cat >$CONFIG_STATUS <<_ACEOF
  8948. #! $SHELL
  8949. # Generated by $as_me.
  8950. # Run this file to recreate the current configuration.
  8951. # Compiler output produced by configure, useful for debugging
  8952. # configure, is in config.log if it exists.
  8953. debug=false
  8954. ac_cs_recheck=false
  8955. ac_cs_silent=false
  8956. SHELL=\${CONFIG_SHELL-$SHELL}
  8957. _ACEOF
  8958. cat >>$CONFIG_STATUS <<\_ACEOF
  8959. ## --------------------- ##
  8960. ## M4sh Initialization. ##
  8961. ## --------------------- ##
  8962. # Be Bourne compatible
  8963. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  8964. emulate sh
  8965. NULLCMD=:
  8966. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  8967. # is contrary to our usage. Disable this feature.
  8968. alias -g '${1+"$@"}'='"$@"'
  8969. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  8970. set -o posix
  8971. fi
  8972. # Support unset when possible.
  8973. if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  8974. as_unset=unset
  8975. else
  8976. as_unset=false
  8977. fi
  8978. # Work around bugs in pre-3.0 UWIN ksh.
  8979. $as_unset ENV MAIL MAILPATH
  8980. PS1='$ '
  8981. PS2='> '
  8982. PS4='+ '
  8983. # NLS nuisances.
  8984. for as_var in \
  8985. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  8986. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  8987. LC_TELEPHONE LC_TIME
  8988. do
  8989. if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
  8990. eval $as_var=C; export $as_var
  8991. else
  8992. $as_unset $as_var
  8993. fi
  8994. done
  8995. # Required to use basename.
  8996. if expr a : '\(a\)' >/dev/null 2>&1; then
  8997. as_expr=expr
  8998. else
  8999. as_expr=false
  9000. fi
  9001. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  9002. as_basename=basename
  9003. else
  9004. as_basename=false
  9005. fi
  9006. # Name of the executable.
  9007. as_me=`$as_basename "$0" ||
  9008. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  9009. X"$0" : 'X\(//\)$' \| \
  9010. X"$0" : 'X\(/\)$' \| \
  9011. . : '\(.\)' 2>/dev/null ||
  9012. echo X/"$0" |
  9013. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  9014. /^X\/\(\/\/\)$/{ s//\1/; q; }
  9015. /^X\/\(\/\).*/{ s//\1/; q; }
  9016. s/.*/./; q'`
  9017. # PATH needs CR, and LINENO needs CR and PATH.
  9018. # Avoid depending upon Character Ranges.
  9019. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  9020. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  9021. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  9022. as_cr_digits='0123456789'
  9023. as_cr_alnum=$as_cr_Letters$as_cr_digits
  9024. # The user is always right.
  9025. if test "${PATH_SEPARATOR+set}" != set; then
  9026. echo "#! /bin/sh" >conf$$.sh
  9027. echo "exit 0" >>conf$$.sh
  9028. chmod +x conf$$.sh
  9029. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  9030. PATH_SEPARATOR=';'
  9031. else
  9032. PATH_SEPARATOR=:
  9033. fi
  9034. rm -f conf$$.sh
  9035. fi
  9036. as_lineno_1=$LINENO
  9037. as_lineno_2=$LINENO
  9038. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  9039. test "x$as_lineno_1" != "x$as_lineno_2" &&
  9040. test "x$as_lineno_3" = "x$as_lineno_2" || {
  9041. # Find who we are. Look in the path if we contain no path at all
  9042. # relative or not.
  9043. case $0 in
  9044. *[\\/]* ) as_myself=$0 ;;
  9045. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9046. for as_dir in $PATH
  9047. do
  9048. IFS=$as_save_IFS
  9049. test -z "$as_dir" && as_dir=.
  9050. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  9051. done
  9052. ;;
  9053. esac
  9054. # We did not find ourselves, most probably we were run as `sh COMMAND'
  9055. # in which case we are not to be found in the path.
  9056. if test "x$as_myself" = x; then
  9057. as_myself=$0
  9058. fi
  9059. if test ! -f "$as_myself"; then
  9060. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  9061. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  9062. { (exit 1); exit 1; }; }
  9063. fi
  9064. case $CONFIG_SHELL in
  9065. '')
  9066. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9067. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  9068. do
  9069. IFS=$as_save_IFS
  9070. test -z "$as_dir" && as_dir=.
  9071. for as_base in sh bash ksh sh5; do
  9072. case $as_dir in
  9073. /*)
  9074. if ("$as_dir/$as_base" -c '
  9075. as_lineno_1=$LINENO
  9076. as_lineno_2=$LINENO
  9077. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  9078. test "x$as_lineno_1" != "x$as_lineno_2" &&
  9079. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  9080. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  9081. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  9082. CONFIG_SHELL=$as_dir/$as_base
  9083. export CONFIG_SHELL
  9084. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  9085. fi;;
  9086. esac
  9087. done
  9088. done
  9089. ;;
  9090. esac
  9091. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  9092. # uniformly replaced by the line number. The first 'sed' inserts a
  9093. # line-number line before each line; the second 'sed' does the real
  9094. # work. The second script uses 'N' to pair each line-number line
  9095. # with the numbered line, and appends trailing '-' during
  9096. # substitution so that $LINENO is not a special case at line end.
  9097. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  9098. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  9099. sed '=' <$as_myself |
  9100. sed '
  9101. N
  9102. s,$,-,
  9103. : loop
  9104. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  9105. t loop
  9106. s,-$,,
  9107. s,^['$as_cr_digits']*\n,,
  9108. ' >$as_me.lineno &&
  9109. chmod +x $as_me.lineno ||
  9110. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  9111. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  9112. { (exit 1); exit 1; }; }
  9113. # Don't try to exec as it changes $[0], causing all sort of problems
  9114. # (the dirname of $[0] is not the place where we might find the
  9115. # original and so on. Autoconf is especially sensible to this).
  9116. . ./$as_me.lineno
  9117. # Exit status is that of the last command.
  9118. exit
  9119. }
  9120. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  9121. *c*,-n*) ECHO_N= ECHO_C='
  9122. ' ECHO_T=' ' ;;
  9123. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  9124. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  9125. esac
  9126. if expr a : '\(a\)' >/dev/null 2>&1; then
  9127. as_expr=expr
  9128. else
  9129. as_expr=false
  9130. fi
  9131. rm -f conf$$ conf$$.exe conf$$.file
  9132. echo >conf$$.file
  9133. if ln -s conf$$.file conf$$ 2>/dev/null; then
  9134. # We could just check for DJGPP; but this test a) works b) is more generic
  9135. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  9136. if test -f conf$$.exe; then
  9137. # Don't use ln at all; we don't have any links
  9138. as_ln_s='cp -p'
  9139. else
  9140. as_ln_s='ln -s'
  9141. fi
  9142. elif ln conf$$.file conf$$ 2>/dev/null; then
  9143. as_ln_s=ln
  9144. else
  9145. as_ln_s='cp -p'
  9146. fi
  9147. rm -f conf$$ conf$$.exe conf$$.file
  9148. if mkdir -p . 2>/dev/null; then
  9149. as_mkdir_p=:
  9150. else
  9151. as_mkdir_p=false
  9152. fi
  9153. as_executable_p="test -f"
  9154. # Sed expression to map a string onto a valid CPP name.
  9155. as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
  9156. # Sed expression to map a string onto a valid variable name.
  9157. as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
  9158. # IFS
  9159. # We need space, tab and new line, in precisely that order.
  9160. as_nl='
  9161. '
  9162. IFS=" $as_nl"
  9163. # CDPATH.
  9164. $as_unset CDPATH
  9165. exec 6>&1
  9166. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  9167. # report actual input values of CONFIG_FILES etc. instead of their
  9168. # values after options handling. Logging --version etc. is OK.
  9169. exec 5>>config.log
  9170. {
  9171. echo
  9172. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  9173. ## Running $as_me. ##
  9174. _ASBOX
  9175. } >&5
  9176. cat >&5 <<_CSEOF
  9177. This file was extended by $as_me, which was
  9178. generated by GNU Autoconf 2.57. Invocation command line was
  9179. CONFIG_FILES = $CONFIG_FILES
  9180. CONFIG_HEADERS = $CONFIG_HEADERS
  9181. CONFIG_LINKS = $CONFIG_LINKS
  9182. CONFIG_COMMANDS = $CONFIG_COMMANDS
  9183. $ $0 $@
  9184. _CSEOF
  9185. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  9186. echo >&5
  9187. _ACEOF
  9188. # Files that config.status was made for.
  9189. if test -n "$ac_config_files"; then
  9190. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  9191. fi
  9192. if test -n "$ac_config_headers"; then
  9193. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  9194. fi
  9195. if test -n "$ac_config_links"; then
  9196. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  9197. fi
  9198. if test -n "$ac_config_commands"; then
  9199. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  9200. fi
  9201. cat >>$CONFIG_STATUS <<\_ACEOF
  9202. ac_cs_usage="\
  9203. \`$as_me' instantiates files from templates according to the
  9204. current configuration.
  9205. Usage: $0 [OPTIONS] [FILE]...
  9206. -h, --help print this help, then exit
  9207. -V, --version print version number, then exit
  9208. -q, --quiet do not print progress messages
  9209. -d, --debug don't remove temporary files
  9210. --recheck update $as_me by reconfiguring in the same conditions
  9211. --file=FILE[:TEMPLATE]
  9212. instantiate the configuration file FILE
  9213. --header=FILE[:TEMPLATE]
  9214. instantiate the configuration header FILE
  9215. Configuration files:
  9216. $config_files
  9217. Configuration headers:
  9218. $config_headers
  9219. Configuration commands:
  9220. $config_commands
  9221. Report bugs to <bug-autoconf@gnu.org>."
  9222. _ACEOF
  9223. cat >>$CONFIG_STATUS <<_ACEOF
  9224. ac_cs_version="\\
  9225. config.status
  9226. configured by $0, generated by GNU Autoconf 2.57,
  9227. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  9228. Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
  9229. Free Software Foundation, Inc.
  9230. This config.status script is free software; the Free Software Foundation
  9231. gives unlimited permission to copy, distribute and modify it."
  9232. srcdir=$srcdir
  9233. INSTALL="$INSTALL"
  9234. _ACEOF
  9235. cat >>$CONFIG_STATUS <<\_ACEOF
  9236. # If no file are specified by the user, then we need to provide default
  9237. # value. By we need to know if files were specified by the user.
  9238. ac_need_defaults=:
  9239. while test $# != 0
  9240. do
  9241. case $1 in
  9242. --*=*)
  9243. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  9244. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  9245. ac_shift=:
  9246. ;;
  9247. -*)
  9248. ac_option=$1
  9249. ac_optarg=$2
  9250. ac_shift=shift
  9251. ;;
  9252. *) # This is not an option, so the user has probably given explicit
  9253. # arguments.
  9254. ac_option=$1
  9255. ac_need_defaults=false;;
  9256. esac
  9257. case $ac_option in
  9258. # Handling of the options.
  9259. _ACEOF
  9260. cat >>$CONFIG_STATUS <<\_ACEOF
  9261. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  9262. ac_cs_recheck=: ;;
  9263. --version | --vers* | -V )
  9264. echo "$ac_cs_version"; exit 0 ;;
  9265. --he | --h)
  9266. # Conflict between --help and --header
  9267. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  9268. Try \`$0 --help' for more information." >&5
  9269. echo "$as_me: error: ambiguous option: $1
  9270. Try \`$0 --help' for more information." >&2;}
  9271. { (exit 1); exit 1; }; };;
  9272. --help | --hel | -h )
  9273. echo "$ac_cs_usage"; exit 0 ;;
  9274. --debug | --d* | -d )
  9275. debug=: ;;
  9276. --file | --fil | --fi | --f )
  9277. $ac_shift
  9278. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  9279. ac_need_defaults=false;;
  9280. --header | --heade | --head | --hea )
  9281. $ac_shift
  9282. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  9283. ac_need_defaults=false;;
  9284. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  9285. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  9286. ac_cs_silent=: ;;
  9287. # This is an error.
  9288. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  9289. Try \`$0 --help' for more information." >&5
  9290. echo "$as_me: error: unrecognized option: $1
  9291. Try \`$0 --help' for more information." >&2;}
  9292. { (exit 1); exit 1; }; } ;;
  9293. *) ac_config_targets="$ac_config_targets $1" ;;
  9294. esac
  9295. shift
  9296. done
  9297. ac_configure_extra_args=
  9298. if $ac_cs_silent; then
  9299. exec 6>/dev/null
  9300. ac_configure_extra_args="$ac_configure_extra_args --silent"
  9301. fi
  9302. _ACEOF
  9303. cat >>$CONFIG_STATUS <<_ACEOF
  9304. if \$ac_cs_recheck; then
  9305. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  9306. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  9307. fi
  9308. _ACEOF
  9309. cat >>$CONFIG_STATUS <<_ACEOF
  9310. #
  9311. # INIT-COMMANDS section.
  9312. #
  9313. _ACEOF
  9314. cat >>$CONFIG_STATUS <<\_ACEOF
  9315. for ac_config_target in $ac_config_targets
  9316. do
  9317. case "$ac_config_target" in
  9318. # Handling of arguments.
  9319. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  9320. "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  9321. "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  9322. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  9323. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  9324. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  9325. { (exit 1); exit 1; }; };;
  9326. esac
  9327. done
  9328. # If the user did not use the arguments to specify the items to instantiate,
  9329. # then the envvar interface is used. Set only those that are not.
  9330. # We use the long form for the default assignment because of an extremely
  9331. # bizarre bug on SunOS 4.1.3.
  9332. if $ac_need_defaults; then
  9333. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  9334. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  9335. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  9336. fi
  9337. # Have a temporary directory for convenience. Make it in the build tree
  9338. # simply because there is no reason to put it here, and in addition,
  9339. # creating and moving files from /tmp can sometimes cause problems.
  9340. # Create a temporary directory, and hook for its removal unless debugging.
  9341. $debug ||
  9342. {
  9343. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  9344. trap '{ (exit 1); exit 1; }' 1 2 13 15
  9345. }
  9346. # Create a (secure) tmp directory for tmp files.
  9347. {
  9348. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  9349. test -n "$tmp" && test -d "$tmp"
  9350. } ||
  9351. {
  9352. tmp=./confstat$$-$RANDOM
  9353. (umask 077 && mkdir $tmp)
  9354. } ||
  9355. {
  9356. echo "$me: cannot create a temporary directory in ." >&2
  9357. { (exit 1); exit 1; }
  9358. }
  9359. _ACEOF
  9360. cat >>$CONFIG_STATUS <<_ACEOF
  9361. #
  9362. # CONFIG_FILES section.
  9363. #
  9364. # No need to generate the scripts if there are no CONFIG_FILES.
  9365. # This happens for instance when ./config.status config.h
  9366. if test -n "\$CONFIG_FILES"; then
  9367. # Protect against being on the right side of a sed subst in config.status.
  9368. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  9369. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  9370. s,@SHELL@,$SHELL,;t t
  9371. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  9372. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  9373. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  9374. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  9375. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  9376. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  9377. s,@exec_prefix@,$exec_prefix,;t t
  9378. s,@prefix@,$prefix,;t t
  9379. s,@program_transform_name@,$program_transform_name,;t t
  9380. s,@bindir@,$bindir,;t t
  9381. s,@sbindir@,$sbindir,;t t
  9382. s,@libexecdir@,$libexecdir,;t t
  9383. s,@datadir@,$datadir,;t t
  9384. s,@sysconfdir@,$sysconfdir,;t t
  9385. s,@sharedstatedir@,$sharedstatedir,;t t
  9386. s,@localstatedir@,$localstatedir,;t t
  9387. s,@libdir@,$libdir,;t t
  9388. s,@includedir@,$includedir,;t t
  9389. s,@oldincludedir@,$oldincludedir,;t t
  9390. s,@infodir@,$infodir,;t t
  9391. s,@mandir@,$mandir,;t t
  9392. s,@build_alias@,$build_alias,;t t
  9393. s,@host_alias@,$host_alias,;t t
  9394. s,@target_alias@,$target_alias,;t t
  9395. s,@DEFS@,$DEFS,;t t
  9396. s,@ECHO_C@,$ECHO_C,;t t
  9397. s,@ECHO_N@,$ECHO_N,;t t
  9398. s,@ECHO_T@,$ECHO_T,;t t
  9399. s,@LIBS@,$LIBS,;t t
  9400. s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  9401. s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  9402. s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  9403. s,@PACKAGE@,$PACKAGE,;t t
  9404. s,@VERSION@,$VERSION,;t t
  9405. s,@ACLOCAL@,$ACLOCAL,;t t
  9406. s,@AUTOCONF@,$AUTOCONF,;t t
  9407. s,@AUTOMAKE@,$AUTOMAKE,;t t
  9408. s,@AUTOHEADER@,$AUTOHEADER,;t t
  9409. s,@MAKEINFO@,$MAKEINFO,;t t
  9410. s,@SET_MAKE@,$SET_MAKE,;t t
  9411. s,@CXX@,$CXX,;t t
  9412. s,@CXXFLAGS@,$CXXFLAGS,;t t
  9413. s,@LDFLAGS@,$LDFLAGS,;t t
  9414. s,@CPPFLAGS@,$CPPFLAGS,;t t
  9415. s,@ac_ct_CXX@,$ac_ct_CXX,;t t
  9416. s,@EXEEXT@,$EXEEXT,;t t
  9417. s,@OBJEXT@,$OBJEXT,;t t
  9418. s,@CC@,$CC,;t t
  9419. s,@CFLAGS@,$CFLAGS,;t t
  9420. s,@ac_ct_CC@,$ac_ct_CC,;t t
  9421. s,@LN_S@,$LN_S,;t t
  9422. s,@build@,$build,;t t
  9423. s,@build_cpu@,$build_cpu,;t t
  9424. s,@build_vendor@,$build_vendor,;t t
  9425. s,@build_os@,$build_os,;t t
  9426. s,@host@,$host,;t t
  9427. s,@host_cpu@,$host_cpu,;t t
  9428. s,@host_vendor@,$host_vendor,;t t
  9429. s,@host_os@,$host_os,;t t
  9430. s,@ECHO@,$ECHO,;t t
  9431. s,@RANLIB@,$RANLIB,;t t
  9432. s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  9433. s,@STRIP@,$STRIP,;t t
  9434. s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
  9435. s,@CPP@,$CPP,;t t
  9436. s,@EGREP@,$EGREP,;t t
  9437. s,@LIBTOOL@,$LIBTOOL,;t t
  9438. s,@GLIB_CONFIG@,$GLIB_CONFIG,;t t
  9439. s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
  9440. s,@GLIB_LIBS@,$GLIB_LIBS,;t t
  9441. s,@GTK_CONFIG@,$GTK_CONFIG,;t t
  9442. s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
  9443. s,@GTK_LIBS@,$GTK_LIBS,;t t
  9444. s,@XMMS_CONFIG@,$XMMS_CONFIG,;t t
  9445. s,@AWK@,$AWK,;t t
  9446. s,@XMMS_CFLAGS@,$XMMS_CFLAGS,;t t
  9447. s,@XMMS_LIBS@,$XMMS_LIBS,;t t
  9448. s,@XMMS_VERSION@,$XMMS_VERSION,;t t
  9449. s,@XMMS_DATA_DIR@,$XMMS_DATA_DIR,;t t
  9450. s,@XMMS_PLUGIN_DIR@,$XMMS_PLUGIN_DIR,;t t
  9451. s,@XMMS_VISUALIZATION_PLUGIN_DIR@,$XMMS_VISUALIZATION_PLUGIN_DIR,;t t
  9452. s,@XMMS_INPUT_PLUGIN_DIR@,$XMMS_INPUT_PLUGIN_DIR,;t t
  9453. s,@XMMS_OUTPUT_PLUGIN_DIR@,$XMMS_OUTPUT_PLUGIN_DIR,;t t
  9454. s,@XMMS_GENERAL_PLUGIN_DIR@,$XMMS_GENERAL_PLUGIN_DIR,;t t
  9455. s,@XMMS_EFFECT_PLUGIN_DIR@,$XMMS_EFFECT_PLUGIN_DIR,;t t
  9456. s,@LIBOBJS@,$LIBOBJS,;t t
  9457. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  9458. CEOF
  9459. _ACEOF
  9460. cat >>$CONFIG_STATUS <<\_ACEOF
  9461. # Split the substitutions into bite-sized pieces for seds with
  9462. # small command number limits, like on Digital OSF/1 and HP-UX.
  9463. ac_max_sed_lines=48
  9464. ac_sed_frag=1 # Number of current file.
  9465. ac_beg=1 # First line for current file.
  9466. ac_end=$ac_max_sed_lines # Line after last line for current file.
  9467. ac_more_lines=:
  9468. ac_sed_cmds=
  9469. while $ac_more_lines; do
  9470. if test $ac_beg -gt 1; then
  9471. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  9472. else
  9473. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  9474. fi
  9475. if test ! -s $tmp/subs.frag; then
  9476. ac_more_lines=false
  9477. else
  9478. # The purpose of the label and of the branching condition is to
  9479. # speed up the sed processing (if there are no `@' at all, there
  9480. # is no need to browse any of the substitutions).
  9481. # These are the two extra sed commands mentioned above.
  9482. (echo ':t
  9483. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  9484. if test -z "$ac_sed_cmds"; then
  9485. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  9486. else
  9487. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  9488. fi
  9489. ac_sed_frag=`expr $ac_sed_frag + 1`
  9490. ac_beg=$ac_end
  9491. ac_end=`expr $ac_end + $ac_max_sed_lines`
  9492. fi
  9493. done
  9494. if test -z "$ac_sed_cmds"; then
  9495. ac_sed_cmds=cat
  9496. fi
  9497. fi # test -n "$CONFIG_FILES"
  9498. _ACEOF
  9499. cat >>$CONFIG_STATUS <<\_ACEOF
  9500. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  9501. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  9502. case $ac_file in
  9503. - | *:- | *:-:* ) # input from stdin
  9504. cat >$tmp/stdin
  9505. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  9506. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  9507. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  9508. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  9509. * ) ac_file_in=$ac_file.in ;;
  9510. esac
  9511. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  9512. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  9513. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9514. X"$ac_file" : 'X\(//\)[^/]' \| \
  9515. X"$ac_file" : 'X\(//\)$' \| \
  9516. X"$ac_file" : 'X\(/\)' \| \
  9517. . : '\(.\)' 2>/dev/null ||
  9518. echo X"$ac_file" |
  9519. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9520. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9521. /^X\(\/\/\)$/{ s//\1/; q; }
  9522. /^X\(\/\).*/{ s//\1/; q; }
  9523. s/.*/./; q'`
  9524. { if $as_mkdir_p; then
  9525. mkdir -p "$ac_dir"
  9526. else
  9527. as_dir="$ac_dir"
  9528. as_dirs=
  9529. while test ! -d "$as_dir"; do
  9530. as_dirs="$as_dir $as_dirs"
  9531. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  9532. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9533. X"$as_dir" : 'X\(//\)[^/]' \| \
  9534. X"$as_dir" : 'X\(//\)$' \| \
  9535. X"$as_dir" : 'X\(/\)' \| \
  9536. . : '\(.\)' 2>/dev/null ||
  9537. echo X"$as_dir" |
  9538. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9539. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9540. /^X\(\/\/\)$/{ s//\1/; q; }
  9541. /^X\(\/\).*/{ s//\1/; q; }
  9542. s/.*/./; q'`
  9543. done
  9544. test ! -n "$as_dirs" || mkdir $as_dirs
  9545. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  9546. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  9547. { (exit 1); exit 1; }; }; }
  9548. ac_builddir=.
  9549. if test "$ac_dir" != .; then
  9550. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  9551. # A "../" for each directory in $ac_dir_suffix.
  9552. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  9553. else
  9554. ac_dir_suffix= ac_top_builddir=
  9555. fi
  9556. case $srcdir in
  9557. .) # No --srcdir option. We are building in place.
  9558. ac_srcdir=.
  9559. if test -z "$ac_top_builddir"; then
  9560. ac_top_srcdir=.
  9561. else
  9562. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  9563. fi ;;
  9564. [\\/]* | ?:[\\/]* ) # Absolute path.
  9565. ac_srcdir=$srcdir$ac_dir_suffix;
  9566. ac_top_srcdir=$srcdir ;;
  9567. *) # Relative path.
  9568. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  9569. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  9570. esac
  9571. # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
  9572. # absolute.
  9573. ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
  9574. ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
  9575. ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
  9576. ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
  9577. case $INSTALL in
  9578. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  9579. *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  9580. esac
  9581. if test x"$ac_file" != x-; then
  9582. { echo "$as_me:$LINENO: creating $ac_file" >&5
  9583. echo "$as_me: creating $ac_file" >&6;}
  9584. rm -f "$ac_file"
  9585. fi
  9586. # Let's still pretend it is `configure' which instantiates (i.e., don't
  9587. # use $as_me), people would be surprised to read:
  9588. # /* config.h. Generated by config.status. */
  9589. if test x"$ac_file" = x-; then
  9590. configure_input=
  9591. else
  9592. configure_input="$ac_file. "
  9593. fi
  9594. configure_input=$configure_input"Generated from `echo $ac_file_in |
  9595. sed 's,.*/,,'` by configure."
  9596. # First look for the input files in the build tree, otherwise in the
  9597. # src tree.
  9598. ac_file_inputs=`IFS=:
  9599. for f in $ac_file_in; do
  9600. case $f in
  9601. -) echo $tmp/stdin ;;
  9602. [\\/$]*)
  9603. # Absolute (can't be DOS-style, as IFS=:)
  9604. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  9605. echo "$as_me: error: cannot find input file: $f" >&2;}
  9606. { (exit 1); exit 1; }; }
  9607. echo $f;;
  9608. *) # Relative
  9609. if test -f "$f"; then
  9610. # Build tree
  9611. echo $f
  9612. elif test -f "$srcdir/$f"; then
  9613. # Source tree
  9614. echo $srcdir/$f
  9615. else
  9616. # /dev/null tree
  9617. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  9618. echo "$as_me: error: cannot find input file: $f" >&2;}
  9619. { (exit 1); exit 1; }; }
  9620. fi;;
  9621. esac
  9622. done` || { (exit 1); exit 1; }
  9623. _ACEOF
  9624. cat >>$CONFIG_STATUS <<_ACEOF
  9625. sed "$ac_vpsub
  9626. $extrasub
  9627. _ACEOF
  9628. cat >>$CONFIG_STATUS <<\_ACEOF
  9629. :t
  9630. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  9631. s,@configure_input@,$configure_input,;t t
  9632. s,@srcdir@,$ac_srcdir,;t t
  9633. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  9634. s,@top_srcdir@,$ac_top_srcdir,;t t
  9635. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  9636. s,@builddir@,$ac_builddir,;t t
  9637. s,@abs_builddir@,$ac_abs_builddir,;t t
  9638. s,@top_builddir@,$ac_top_builddir,;t t
  9639. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  9640. s,@INSTALL@,$ac_INSTALL,;t t
  9641. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  9642. rm -f $tmp/stdin
  9643. if test x"$ac_file" != x-; then
  9644. mv $tmp/out $ac_file
  9645. else
  9646. cat $tmp/out
  9647. rm -f $tmp/out
  9648. fi
  9649. done
  9650. _ACEOF
  9651. cat >>$CONFIG_STATUS <<\_ACEOF
  9652. #
  9653. # CONFIG_HEADER section.
  9654. #
  9655. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  9656. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  9657. #
  9658. # ac_d sets the value in "#define NAME VALUE" lines.
  9659. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  9660. ac_dB='[ ].*$,\1#\2'
  9661. ac_dC=' '
  9662. ac_dD=',;t'
  9663. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  9664. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  9665. ac_uB='$,\1#\2define\3'
  9666. ac_uC=' '
  9667. ac_uD=',;t'
  9668. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  9669. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  9670. case $ac_file in
  9671. - | *:- | *:-:* ) # input from stdin
  9672. cat >$tmp/stdin
  9673. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  9674. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  9675. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  9676. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  9677. * ) ac_file_in=$ac_file.in ;;
  9678. esac
  9679. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  9680. echo "$as_me: creating $ac_file" >&6;}
  9681. # First look for the input files in the build tree, otherwise in the
  9682. # src tree.
  9683. ac_file_inputs=`IFS=:
  9684. for f in $ac_file_in; do
  9685. case $f in
  9686. -) echo $tmp/stdin ;;
  9687. [\\/$]*)
  9688. # Absolute (can't be DOS-style, as IFS=:)
  9689. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  9690. echo "$as_me: error: cannot find input file: $f" >&2;}
  9691. { (exit 1); exit 1; }; }
  9692. echo $f;;
  9693. *) # Relative
  9694. if test -f "$f"; then
  9695. # Build tree
  9696. echo $f
  9697. elif test -f "$srcdir/$f"; then
  9698. # Source tree
  9699. echo $srcdir/$f
  9700. else
  9701. # /dev/null tree
  9702. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  9703. echo "$as_me: error: cannot find input file: $f" >&2;}
  9704. { (exit 1); exit 1; }; }
  9705. fi;;
  9706. esac
  9707. done` || { (exit 1); exit 1; }
  9708. # Remove the trailing spaces.
  9709. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  9710. _ACEOF
  9711. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  9712. # `conftest.undefs', that substitutes the proper values into
  9713. # config.h.in to produce config.h. The first handles `#define'
  9714. # templates, and the second `#undef' templates.
  9715. # And first: Protect against being on the right side of a sed subst in
  9716. # config.status. Protect against being in an unquoted here document
  9717. # in config.status.
  9718. rm -f conftest.defines conftest.undefs
  9719. # Using a here document instead of a string reduces the quoting nightmare.
  9720. # Putting comments in sed scripts is not portable.
  9721. #
  9722. # `end' is used to avoid that the second main sed command (meant for
  9723. # 0-ary CPP macros) applies to n-ary macro definitions.
  9724. # See the Autoconf documentation for `clear'.
  9725. cat >confdef2sed.sed <<\_ACEOF
  9726. s/[\\&,]/\\&/g
  9727. s,[\\$`],\\&,g
  9728. t clear
  9729. : clear
  9730. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  9731. t end
  9732. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  9733. : end
  9734. _ACEOF
  9735. # If some macros were called several times there might be several times
  9736. # the same #defines, which is useless. Nevertheless, we may not want to
  9737. # sort them, since we want the *last* AC-DEFINE to be honored.
  9738. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  9739. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  9740. rm -f confdef2sed.sed
  9741. # This sed command replaces #undef with comments. This is necessary, for
  9742. # example, in the case of _POSIX_SOURCE, which is predefined and required
  9743. # on some systems where configure will not decide to define it.
  9744. cat >>conftest.undefs <<\_ACEOF
  9745. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  9746. _ACEOF
  9747. # Break up conftest.defines because some shells have a limit on the size
  9748. # of here documents, and old seds have small limits too (100 cmds).
  9749. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  9750. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  9751. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  9752. echo ' :' >>$CONFIG_STATUS
  9753. rm -f conftest.tail
  9754. while grep . conftest.defines >/dev/null
  9755. do
  9756. # Write a limited-size here document to $tmp/defines.sed.
  9757. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  9758. # Speed up: don't consider the non `#define' lines.
  9759. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  9760. # Work around the forget-to-reset-the-flag bug.
  9761. echo 't clr' >>$CONFIG_STATUS
  9762. echo ': clr' >>$CONFIG_STATUS
  9763. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  9764. echo 'CEOF
  9765. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  9766. rm -f $tmp/in
  9767. mv $tmp/out $tmp/in
  9768. ' >>$CONFIG_STATUS
  9769. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  9770. rm -f conftest.defines
  9771. mv conftest.tail conftest.defines
  9772. done
  9773. rm -f conftest.defines
  9774. echo ' fi # grep' >>$CONFIG_STATUS
  9775. echo >>$CONFIG_STATUS
  9776. # Break up conftest.undefs because some shells have a limit on the size
  9777. # of here documents, and old seds have small limits too (100 cmds).
  9778. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  9779. rm -f conftest.tail
  9780. while grep . conftest.undefs >/dev/null
  9781. do
  9782. # Write a limited-size here document to $tmp/undefs.sed.
  9783. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  9784. # Speed up: don't consider the non `#undef'
  9785. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  9786. # Work around the forget-to-reset-the-flag bug.
  9787. echo 't clr' >>$CONFIG_STATUS
  9788. echo ': clr' >>$CONFIG_STATUS
  9789. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  9790. echo 'CEOF
  9791. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  9792. rm -f $tmp/in
  9793. mv $tmp/out $tmp/in
  9794. ' >>$CONFIG_STATUS
  9795. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  9796. rm -f conftest.undefs
  9797. mv conftest.tail conftest.undefs
  9798. done
  9799. rm -f conftest.undefs
  9800. cat >>$CONFIG_STATUS <<\_ACEOF
  9801. # Let's still pretend it is `configure' which instantiates (i.e., don't
  9802. # use $as_me), people would be surprised to read:
  9803. # /* config.h. Generated by config.status. */
  9804. if test x"$ac_file" = x-; then
  9805. echo "/* Generated by configure. */" >$tmp/config.h
  9806. else
  9807. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  9808. fi
  9809. cat $tmp/in >>$tmp/config.h
  9810. rm -f $tmp/in
  9811. if test x"$ac_file" != x-; then
  9812. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  9813. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  9814. echo "$as_me: $ac_file is unchanged" >&6;}
  9815. else
  9816. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  9817. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9818. X"$ac_file" : 'X\(//\)[^/]' \| \
  9819. X"$ac_file" : 'X\(//\)$' \| \
  9820. X"$ac_file" : 'X\(/\)' \| \
  9821. . : '\(.\)' 2>/dev/null ||
  9822. echo X"$ac_file" |
  9823. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9824. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9825. /^X\(\/\/\)$/{ s//\1/; q; }
  9826. /^X\(\/\).*/{ s//\1/; q; }
  9827. s/.*/./; q'`
  9828. { if $as_mkdir_p; then
  9829. mkdir -p "$ac_dir"
  9830. else
  9831. as_dir="$ac_dir"
  9832. as_dirs=
  9833. while test ! -d "$as_dir"; do
  9834. as_dirs="$as_dir $as_dirs"
  9835. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  9836. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9837. X"$as_dir" : 'X\(//\)[^/]' \| \
  9838. X"$as_dir" : 'X\(//\)$' \| \
  9839. X"$as_dir" : 'X\(/\)' \| \
  9840. . : '\(.\)' 2>/dev/null ||
  9841. echo X"$as_dir" |
  9842. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9843. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9844. /^X\(\/\/\)$/{ s//\1/; q; }
  9845. /^X\(\/\).*/{ s//\1/; q; }
  9846. s/.*/./; q'`
  9847. done
  9848. test ! -n "$as_dirs" || mkdir $as_dirs
  9849. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  9850. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  9851. { (exit 1); exit 1; }; }; }
  9852. rm -f $ac_file
  9853. mv $tmp/config.h $ac_file
  9854. fi
  9855. else
  9856. cat $tmp/config.h
  9857. rm -f $tmp/config.h
  9858. fi
  9859. done
  9860. _ACEOF
  9861. cat >>$CONFIG_STATUS <<\_ACEOF
  9862. #
  9863. # CONFIG_COMMANDS section.
  9864. #
  9865. for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  9866. ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  9867. ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  9868. ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  9869. $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9870. X"$ac_dest" : 'X\(//\)[^/]' \| \
  9871. X"$ac_dest" : 'X\(//\)$' \| \
  9872. X"$ac_dest" : 'X\(/\)' \| \
  9873. . : '\(.\)' 2>/dev/null ||
  9874. echo X"$ac_dest" |
  9875. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9876. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9877. /^X\(\/\/\)$/{ s//\1/; q; }
  9878. /^X\(\/\).*/{ s//\1/; q; }
  9879. s/.*/./; q'`
  9880. ac_builddir=.
  9881. if test "$ac_dir" != .; then
  9882. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  9883. # A "../" for each directory in $ac_dir_suffix.
  9884. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  9885. else
  9886. ac_dir_suffix= ac_top_builddir=
  9887. fi
  9888. case $srcdir in
  9889. .) # No --srcdir option. We are building in place.
  9890. ac_srcdir=.
  9891. if test -z "$ac_top_builddir"; then
  9892. ac_top_srcdir=.
  9893. else
  9894. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  9895. fi ;;
  9896. [\\/]* | ?:[\\/]* ) # Absolute path.
  9897. ac_srcdir=$srcdir$ac_dir_suffix;
  9898. ac_top_srcdir=$srcdir ;;
  9899. *) # Relative path.
  9900. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  9901. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  9902. esac
  9903. # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
  9904. # absolute.
  9905. ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
  9906. ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
  9907. ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
  9908. ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
  9909. { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  9910. echo "$as_me: executing $ac_dest commands" >&6;}
  9911. case $ac_dest in
  9912. default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
  9913. esac
  9914. done
  9915. _ACEOF
  9916. cat >>$CONFIG_STATUS <<\_ACEOF
  9917. { (exit 0); exit 0; }
  9918. _ACEOF
  9919. chmod +x $CONFIG_STATUS
  9920. ac_clean_files=$ac_clean_files_save
  9921. # configure is writing to config.log, and then calls config.status.
  9922. # config.status does its own redirection, appending to config.log.
  9923. # Unfortunately, on DOS this fails, as config.log is still kept open
  9924. # by configure, so config.status won't be able to write to it; its
  9925. # output is simply discarded. So we exec the FD to /dev/null,
  9926. # effectively closing config.log, so it can be properly (re)opened and
  9927. # appended to by config.status. When coming back to configure, we
  9928. # need to make the FD available again.
  9929. if test "$no_create" != yes; then
  9930. ac_cs_success=:
  9931. ac_config_status_args=
  9932. test "$silent" = yes &&
  9933. ac_config_status_args="$ac_config_status_args --quiet"
  9934. exec 5>/dev/null
  9935. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  9936. exec 5>>config.log
  9937. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  9938. # would make configure fail if this is the last instruction.
  9939. $ac_cs_success || { (exit 1); exit 1; }
  9940. fi
  9941. echo "$as_me:$LINENO: result: configure complete, now type \"make\"" >&5
  9942. echo "${ECHO_T}configure complete, now type \"make\"" >&6